Skip to content

fix(playground): unblock CI — add 'theme' to activeTool union type - #4

Merged
LIN4CRE merged 1 commit into
mainfrom
fix/ci-tsc-theme-union
Jul 22, 2026
Merged

fix(playground): unblock CI — add 'theme' to activeTool union type#4
LIN4CRE merged 1 commit into
mainfrom
fix/ci-tsc-theme-union

Conversation

@LIN4CRE

@LIN4CRE LIN4CRE commented Jul 22, 2026

Copy link
Copy Markdown
Owner

What broke

CI (npm run linttsc --noEmit) has been failing since the HSL Theme Engine (TOOL 9) landed in DevPlayground.tsx: the button and pane use setActiveTool('theme') / activeTool === 'theme', but the useState union type was never widened to include 'theme'.

error TS2345: Argument of type '"theme"' is not assignable ...
error TS2367: This comparison appears to be unintentional ...

Fix

One-word change — add | 'theme' to the union:

useState<... | 'cron' | 'theme'>('jwt');

Verified locally: tsc --noEmit ✅ and npm run build (vite + prerender 22 routes + esbuild server bundle) ✅


Fix authored via repo-audit session.

The HSL Theme Engine (TOOL 9) button/pane used 'theme' but the useState
union type was never updated, causing TS2345/TS2367 errors and red CI.
@vercel

vercel Bot commented Jul 22, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
linacre-site-repo Ready Ready Preview, Comment Jul 22, 2026 4:15pm
linacre.site Ready Ready Preview, Comment Jul 22, 2026 4:15pm

@LIN4CRE
LIN4CRE merged commit bbee8ed into main Jul 22, 2026
3 of 4 checks passed
@LIN4CRE
LIN4CRE deleted the fix/ci-tsc-theme-union branch July 22, 2026 16:18
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