Skip to content

fix(website): unbreak TS build (AnalyticsSurface + Button anchorAttrs)#274

Merged
blove merged 2 commits into
mainfrom
claude/fix-analytics-surface-home-whitepaper
May 13, 2026
Merged

fix(website): unbreak TS build (AnalyticsSurface + Button anchorAttrs)#274
blove merged 2 commits into
mainfrom
claude/fix-analytics-surface-home-whitepaper

Conversation

@blove
Copy link
Copy Markdown
Contributor

@blove blove commented May 12, 2026

Summary

Two pre-existing TypeScript errors on main introduced by the Statusbrew website refactor (PR #270). Both blocked the required `Website — lint / build` check on every unrelated PR.

  1. `AnalyticsSurface` union missing `'home_whitepaper'` — `WhitePaperBlock.tsx:42` passes that value to `track(...)`.
  2. `href` specified more than once on `` in Button.tsx:118 — the cast `rest as AnchorButtonProps` contradicted the prior destructure that pulled `href` out. TS then thought `anchorAttrs` still carried `href`.

Test plan

  • TS errors gone locally
  • CI green

WhitePaperBlock.tsx passes 'home_whitepaper' as the surface property
when tracking signup submissions, but the AnalyticsSurface union did
not include that value — causing TS2322 build failures on main since
the Statusbrew website refactor landed (#270).

This is blocking unrelated PRs from merging because Website lint is a
required check.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cacheplane Ready Ready Preview, Comment May 13, 2026 0:01am

Request Review

…Attrs

The 'rest as AnchorButtonProps' cast on line 115 contradicted the prior
destructure on line 106 that pulled 'href' out — TS then inferred that
anchorAttrs still had 'href', conflicting with the explicit href={href}
JSX prop. Result: TS2783 'href is specified more than once' build
failure since the Statusbrew website refactor (#270).

Removing the redundant cast lets TS infer anchorAttrs from the runtime-
true type (rest without href).
@blove blove changed the title fix(website): add 'home_whitepaper' to AnalyticsSurface fix(website): unbreak TS build (AnalyticsSurface + Button anchorAttrs) May 12, 2026
@blove blove merged commit e98ecd4 into main May 13, 2026
14 checks passed
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