Skip to content

fix(browser): POLISH-APP-3 — drain design drift - #412

Merged
th3-br41n merged 1 commit into
mainfrom
fix/polish-app-3-browser
Aug 1, 2026
Merged

th3-br41n merged 1 commit into
mainfrom
fix/polish-app-3-browser

Conversation

@th3-br41n

Copy link
Copy Markdown
Contributor

POLISH-APP-3 — Browser (third rung of the per-app design-polish program)

Drift drain: 17 literal colors → 0 in apps/browser/src/styles.css (fleet total 103 → 86). All 17 were dead light-theme hex fallbacks (var(--color-text-primary, #111), --color-text-secondary, #555, --color-border-subtle, #e3e3e3) on tokens the SDK app-theme sheet guarantees. Checked before dropping: styles.css is imported only by the app page (main.tsx) — guest content renders in a separate BrowserView, so the fallbacks could never fire anywhere tokens are absent.

Rubric walk: chrome verified compliant — every menu on the shared runtime with anchor elements (history Start-aligned under its button, overflow ⋯ End-aligned), start page on the shared <EmptyState>, panel toggles fine. The active-tab neutral surface fill is deliberate tab-family chrome (OS-tab convention), not the list-row selection case.

Evidence: harness session 312-polish-browser-both-themes — start page + tab strip + history menu in both app themes. The dark pass is the discriminating one: any chrome actually leaning on a light-hex fallback would render unthemed there. All clean.

Verify: bun run verify green (exit 0); browser suite 15 files / 158 tests green; per-app tsc clean.

🤖 Generated with Claude Code

Drift: 17 literal colors -> 0. All were dead light-theme hex fallbacks
(var(--color-text-primary, #111) / secondary #555 / border #e3e3e3) on
tokens the SDK app-theme sheet guarantees — styles.css only loads in
the app page, never guest content, so the fallbacks could never fire
where tokens are absent. Rubric walk: chrome already compliant (shared
menus with anchors, EmptyState start page, tab family is deliberate
neutral chrome).

Evidence: harness session 312 (both app themes; dark pass is the one a
live light-hex fallback would have broken).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@th3-br41n
th3-br41n merged commit f247fb2 into main Aug 1, 2026
3 checks passed
@th3-br41n
th3-br41n deleted the fix/polish-app-3-browser branch August 1, 2026 11:06
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