Skip to content

hotfix(bench-body): fix JSX parse error from PR #273 - #275

Closed
Flotapponnier wants to merge 2 commits into
devfrom
hotfix/bench-body-jsx-parse-error
Closed

hotfix(bench-body): fix JSX parse error from PR #273#275
Flotapponnier wants to merge 2 commits into
devfrom
hotfix/bench-body-jsx-parse-error

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Problem

PR #273 was merged with broken JSX. My perl edit dropped the ${activePanel.label} template interpolation AND the closing } on the ledger title ternary. Vercel staging build failed with "Parsing ecmascript source code failed at line 388:14". Dev is currently un-deploying.

Fix

Reformats the ternary back to a multi-line form with the template literal restored and the closing brace present.

: activePanel
  ? `Product ledger · sorted by ${activePanel.label}`
  : "Product ledger · sorted by p50"}

Test plan

  • Vercel build passes
  • hl-frontends page renders
  • Ledger title swaps when panel tab changes

Re-greped each export in src/lib against the rest of src/.

Deletes (0 references confirmed):
- leaderForChain() in citation.ts — defined when per-chain headline
  rewrites were planned, never wired up.
- fmtCount() in live/format.ts — fmtCountFull is what ticker.tsx uses;
  the short variant has no callers.

Tightened visibility (only used inside the defining file):
- AlternativeWithBench (alternatives.ts) export -> internal type
- stripFaqMarkdown (jsonld.ts) export -> internal helper
- chainIdFragment (jsonld.ts) export -> internal helper

pnpm exec tsc --noEmit --noUnusedLocals --noUnusedParameters: EXIT=0
pnpm build: green.
@Flotapponnier

Copy link
Copy Markdown
Collaborator Author

Closing as part of branch/PR cleanup

@Flotapponnier
Flotapponnier deleted the hotfix/bench-body-jsx-parse-error branch June 18, 2026 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant