Repository navigation
fix: [Timetraked] Restore Radix colors and add design-token, a11y, and markdown checks - #286
Merged
Merged
Conversation
AGENTS.md required pnpm check:design-tokens, check:a11y, and lint:markdown before commits, but none of the scripts existed. - check:design-tokens flags default Tailwind palette and hex color classes in src/ (skips vendored src/components/ui) - check:a11y runs eslint-plugin-jsx-a11y recommended rules - lint:markdown runs markdownlint-cli2 - Fix existing violations: keyboard-inaccessible planned task title, orphaned export date labels, palette classes on task delete button, and markdown lint issues across docs - Ignore local build output in eslint; fix tabs/spaces in checklist
The TrailPeak theme integration removed the @radix-ui/colors imports and their Tailwind @theme mappings, so every Radix scale class (text-blue-11, bg-indigo-9, ring-blue-8, ...) produced no CSS. Restore the 12 light/dark scales and map them in @theme inline so they follow the .dark class wherever it is set.
Restoring the Radix scales brought back cool blue/pink/green column tints and blue/green archive text that clash with the warm TrailPeak palette. Map the board columns to dune/clay/stone/moss tints and the archive totals to foreground/moss. Badges and the active-task state keep their Radix colors.
Deploying timetrackerpro with
|
| Latest commit: |
f73005f
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://7ebcb4e1.timetrackerpro.pages.dev |
| Branch Preview URL: | https://chore-agents-check-scripts.timetrackerpro.pages.dev |
Bump the test job to Node 22.x: markdownlint-cli2 requires Node >=22, and Node 20 is past end of life.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
AGENTS.mdrequiredpnpm check:design-tokens,pnpm check:a11y, andpnpm lint:markdownbefore every commit, but none of those scripts existed. This PR adds them and fixes what they caught.Building the design-token check surfaced a larger bug: the TrailPeak theme integration (
031516f) dropped the@radix-ui/colorsimports and their Tailwind mappings, so every Radix scale class (text-blue-11,bg-indigo-9,ring-blue-8, …) has produced no CSS since September. This PR restores them, then moves the two surfaces that clashed with the warm TrailPeak palette onto theme tokens.Type of Change
Related Issue
None.
Changes Made
New checks (
d0f9b10)scripts/check-design-tokens.mjs(pnpm check:design-tokens): flags default Tailwind palette classes (bg-blue-500) and hex classes (text-[#fff]) insrc/. Skips vendoredsrc/components/ui; adesign-allowcomment suppresses a line.eslint.a11y.config.js(pnpm check:a11y):eslint-plugin-jsx-a11yrecommended rules.autoFocusis allowed on components (dialogs focus their first field intentionally)..markdownlint-cli2.jsonc(pnpm lint:markdown):markdownlint-cli2with line length, inline HTML, first-line heading, and table alignment rules off; skipsCHANGELOG.md,.claude/,.superpowers/,docs/plans/,docs/superpowers/.eslint.config.js: registersjsx-a11yso its disable comments resolve; ignores local build output (src-tauri/target,.claude/worktrees).PlannedTaskCard.tsx: title was a click-only<h3>; now aButton variant="link"inside the heading (keyboard accessible).ExportDialog.tsx: date<label>s with no control are now<span>s (buttons still named viaaria-labelledby).TaskItem.tsx: delete buttontext-red-600/bg-red-50→destructivetokens.tabIndex={0}kept (keyboard access to Shift+F10 menu) with a documented disable.AGENTS.mdpre-commit checklist lists the new checks and corrects "tabs (not spaces)" to spaces;agents/workflow.mdandREADME.mdlist the commands.CI (
f73005f).github/workflows/test.yml: runscheck:design-tokens,check:a11y, andlint:markdownafterlint; Node 20.x → 22.x (markdownlint-cli2requires Node >=22; Node 20 is EOL).Radix colors restored (
705f0fb)src/index.css: re-imports the 12 Radix light/dark scales and maps--color-<scale>-<1..12>in@theme inline, so classes follow.darkwherever it is set.TrailPeak tokens for clashing surfaces (
cd786a6)KanbanColumn.tsx: column tints To Do/In Progress/Blocked/Done → dune (muted) / clay (chart-1) / stone (chart-5) / moss (chart-2); Blocked count badge stays rust (destructive).ArchiveItem.tsx: Restore →muted-foreground, Total →foreground, billable/duration/revenue/value → moss (chart-2, ~5:1 on sand).text-primaryavoided for small text (~4.4:1).Checklist
Documentation
README.mdCHANGELOG.mdupdated accordingly — left to the release workflowGeneral
mainpnpm test,pnpm lint, andpnpm build—pnpm lint(0 errors) andpnpm buildpass;pnpm testnot run locally, relying on CINotes for Reviewers
/reportredirected in guest mode and was not captured.src/components/ui/callout.tsx,badge.tsx, andtoast.tsxstill use default palette classes; they are vendored shadcn files and excluded from the token check.src/trailpeak-theme.cssis an unimported duplicate ofindex.css; left untouched.release.ymlstill uses Node 20 and does not run the new checks.