Skip to content

fix(dashboard): Enforce a readable type scale floor - #1284

Merged
dcramer merged 3 commits into
mainfrom
fix/dashboard-type-scale
Aug 7, 2026
Merged

fix(dashboard): Enforce a readable type scale floor#1284
dcramer merged 3 commits into
mainfrom
fix/dashboard-type-scale

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Dashboard chrome had dozens of arbitrary text-[0.5xrem] one-offs, so labels like task-drawer Instruction landed around 8–9px — well under the readable floor set by status text like active.

This collapses product UI onto a named type scale and makes text-xs (13px) the minimum size.

Type scale

packages/junior-dashboard/src/tailwind.css owns text-xs through text-4xl with an explicit floor note. Components use those steps instead of freeform rem sizes. Relative markdown em sizes stay for parent-scaled content.

Guardrails

pnpm dashboard-style:check now fails on absolute arbitrary text sizes (text-[0.54rem], text-[12px], …) and hardcoded chart fontSize values under 13px. Chart axis ticks were lifted from 9/10 → 13 to match. Documented in the dashboard README and policies/frontend-components.md.

Checks

  • pnpm typecheck, pnpm lint, pnpm test in @sentry/junior-dashboard (199 tests)
  • pnpm dashboard-style:check + unit tests
  • local visual QA on tasks drawer/list, conversations, and system with measured min font size 13px

Requested by David Cramer.

--

View Junior Session [Sentry]

sentry-junior Bot and others added 2 commits August 7, 2026 00:29
Collapse arbitrary text-[Nrem] one-offs onto the named Tailwind scale and
make text-xs (13px) the minimum size for product UI chrome.

Co-Authored-By: David Cramer <david@sentry.io>
Keep product UI from regressing below text-xs by banning arbitrary absolute
text sizes and sub-13px hardcoded chart font sizes in dashboard-style:check.

Co-Authored-By: David Cramer <david@sentry.io>
@vercel

vercel Bot commented Aug 7, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview Aug 7, 2026 2:10am

Request Review

@dcramer
dcramer marked this pull request as ready for review August 7, 2026 02:04
@github-actions github-actions Bot added the risk: high PR risk score: high label Aug 7, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit bfda191. Configure here.

Larger axis labels were clipping against overflow-hidden chart wrappers.
Bump left plot margins so end-anchored currency and multi-digit ticks fit.

Co-Authored-By: David Cramer <david@sentry.io>
@dcramer
dcramer merged commit c30b181 into main Aug 7, 2026
29 of 32 checks passed
@dcramer
dcramer deleted the fix/dashboard-type-scale branch August 7, 2026 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant