Skip to content

fix(canvas): raise minimum text size in Legend + WorkspaceNode (UX Audit Run 6) - #30

Merged
HongmingWang-Rabbit merged 1 commit into
mainfrom
fix/legend-min-text-size
Apr 14, 2026
Merged

fix(canvas): raise minimum text size in Legend + WorkspaceNode (UX Audit Run 6)#30
HongmingWang-Rabbit merged 1 commit into
mainfrom
fix/legend-min-text-size

Conversation

@HongmingWang-Rabbit

Copy link
Copy Markdown
Contributor

Summary

  • Legend.tsx — all text-[8px]/[9px]/[10px] raised to text-[11px] across every sub-component: StatusItem labels, TierItem badge + label, CommItem icon + label, section headers (Status / Tier / Communication / Legend)
  • WorkspaceNode.tsx — all text-[8px]/[9px] readable labels raised to text-[10px] in the main card (status text, tier badge, skill badges, task/error banners, sub-count badge, Team Members header) and TeamMemberChip primary name + role text
  • Compact text-[7px] elements inside TeamMemberChip (tier/sub badges, status micropills) retained — they are non-readable decorative indicators, not human-legible text

Root cause: UX Audit Run 6 live-HTML scan found 17× text-[8px] (6pt), 8× text-[9px], and 10× text-[10px] in the Legend panel — below WCAG minimum readable size of ~11px.

Test plan

  • cd canvas && npm test --run365/365 tests pass
  • No new text-[8px] or text-[9px] in Legend.tsx (verified via grep)
  • No remaining text-[8px] or text-[9px] in WorkspaceNode.tsx (verified via grep)
  • Pre-commit hook passed (dark theme, 'use client' present, no secrets)

🤖 Generated with Claude Code

…eet WCAG readability

UX Audit Run 6 critical finding: Legend panel and workspace node cards used 8px and 9px
text (6–7pt), which is physically unreadable and fails WCAG minimum guidelines.

- Legend.tsx: raise all text-[8px]/[9px]/[10px] → text-[11px] across every sub-component
  (StatusItem labels, TierItem badge+label, CommItem icon+label, section headers)
- WorkspaceNode.tsx: raise text-[8px]/[9px] → text-[10px] for all readable labels in
  the main card (status text, skill badges, task/error banners, tier badge, sub count,
  Team Members header) and TeamMemberChip primary name/role text

Compact 7px elements inside TeamMemberChip (tier/sub badges, status micropills) retained
to preserve dense canvas layout — only human-readable labels were upgraded.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@HongmingWang-Rabbit

Copy link
Copy Markdown
Contributor Author

7-gate verification PASS.

  • Gate 1 CI: 6/6 green
  • Gate 2 build: canvas builds clean
  • Gate 3 tests: 365/365 vitest passing
  • Gate 4 diff: pure text-size bumps ([8-10px] -> [10-11px]); no secrets, no logic changes
  • Gate 5 design: no native confirm/alert/prompt; dark-theme preserved; client-side components unchanged
  • Gate 6 line review: size bumps are modest and consistent; no hardcoded px where Tailwind classes already used
  • Gate 7 smoke: Playwright smoke passed; /tmp/pr30-readability.png confirms Legend + WorkspaceNode text is readable at new sizes

Merging.

@HongmingWang-Rabbit
HongmingWang-Rabbit merged commit edf69b3 into main Apr 14, 2026
6 checks passed
@HongmingWang-Rabbit
HongmingWang-Rabbit deleted the fix/legend-min-text-size branch April 14, 2026 06:26
HongmingWang-Rabbit pushed a commit that referenced this pull request Apr 14, 2026
Adds a `canvas-deploy-reminder` job to ci.yml that fires on every
push to main once `canvas-build` passes. It posts a commit comment via
the built-in GITHUB_TOKEN (no new secrets needed) reminding whoever
monitors CI to run:

  cd /g/personal_programs/molecule-monorepo
  git pull origin main
  docker compose build canvas && docker compose up -d canvas

The comment includes the commit SHA and a direct link to the build log.

Rationale: 5 consecutive merge cycles (PRs #21, #25, #30, #32, #34)
went undeployed because there is no auto-deploy hook and the manual
step was silently forgotten. A commit comment on the merge commit is
the lowest-friction reminder that requires no external secrets or infra.

Does NOT run on PRs — only on direct pushes to main (i.e. post-merge).
Uses `needs: canvas-build` so the reminder only fires after build+tests
pass; a failing build produces no comment.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
molecule-ai Bot pushed a commit that referenced this pull request Apr 21, 2026
fix(canvas): raise minimum text size in Legend + WorkspaceNode (UX Audit Run 6)
molecule-ai Bot pushed a commit that referenced this pull request Apr 21, 2026
Adds a `canvas-deploy-reminder` job to ci.yml that fires on every
push to main once `canvas-build` passes. It posts a commit comment via
the built-in GITHUB_TOKEN (no new secrets needed) reminding whoever
monitors CI to run:

  cd /g/personal_programs/molecule-monorepo
  git pull origin main
  docker compose build canvas && docker compose up -d canvas

The comment includes the commit SHA and a direct link to the build log.

Rationale: 5 consecutive merge cycles (PRs #21, #25, #30, #32, #34)
went undeployed because there is no auto-deploy hook and the manual
step was silently forgotten. A commit comment on the merge commit is
the lowest-friction reminder that requires no external secrets or infra.

Does NOT run on PRs — only on direct pushes to main (i.e. post-merge).
Uses `needs: canvas-build` so the reminder only fires after build+tests
pass; a failing build produces no comment.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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