Skip to content

Consolidate StatGridItem radius override; widen search hit target - #259

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-ui-wiring-fixes
Aug 21, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
cl-ui-wiring-fixes

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Summary

A design review flagged three defects against origin/main. Re-verifying on current origin/main (2a0c7b1) found two of the three already fixed by prior merges:

  • /evals unreachable — already wired: routes.tsx registers EvalsRoute in APP_ROUTES/NAV_ROUTES, sidebar.tsx has the footer row, and test/routes.test.tsx asserts both. Landed in b2c1b21a.
  • Insights "Running now" strip unstyled — already styled: .insights-running-now* / .insights-flight* rules exist in app.css:2622-2688, using the established hairline-border/var(--card) panel language. Landed in the same commit as the feature (5d97bb98).

The third was real and is fixed here:

  • StatGridItem radius patched twice locally. @corbits/react-ui's StatGridItem hardcodes rounded-lg instead of consuming var(--radius), and two authors each wrote a page-scoped zero-radius override (.insights-layout [data-slot="stat-grid-item"], .mission-control-layout [data-slot="stat-grid-item"]). Evals uses the same component with no override, so its tiles were rounded while its neighbors were square. Since --radius: 0 is already an app-wide rule (not per-page), I collapsed both copies into one selector — [data-slot="stat-grid-item"] { border-radius: 0; } — which now covers Insights, Mission Control, Evals, and any future consumer without adding a third local copy. react-ui is a separate repo I can't land a fix in from here, so this is the from-this-side consolidation rather than an upstream patch; the upstream gap (hardcoded rounded-lg) is worth a ticket there.

Also fixed while in the area (minor, time-permitting per the ask): .stage-search-button was 1.9rem square — 28.5px at the 15px root, under the 40px hit-target floor for a primary chrome control. Bumped it and its collapsed .stage-search wrapper to 2.75rem (41.25px).

Test plan

  • bun test test/routes.test.tsx — 37 pass (confirms /evals registered + reachable from rail and palette)
  • bun test test/evals-route.test.tsx test/insights-page.test.tsx test/insights-route.test.tsx test/mission-control-page.test.tsx — 47 pass
  • bunx prettier --write apps/web/src/app.css — no changes needed

Two local overrides for react-ui's hardcoded StatGridItem rounding
(insights and mission-control) duplicated the same zero-radius
re-assertion; replace both with one selector so every consumer,
including Evals, stays square without a third copy. Also widen
.stage-search-button to the 40px floor for a primary chrome control.
@TheGreatAxios
TheGreatAxios merged commit c75868e into main Aug 21, 2026
5 checks passed
@TheGreatAxios
TheGreatAxios deleted the cl-ui-wiring-fixes branch August 25, 2026 15:29
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