Skip to content

fix(ui): OSS-384 light-theme tokenization, nav hit area, stale refresh - #548

Merged
athNdev merged 2 commits into
mainfrom
codex/ui-full-pass
Nov 19, 2026
Merged

athNdev merged 2 commits into
mainfrom
codex/ui-full-pass

Conversation

@athNdev

@athNdev athNdev commented Nov 19, 2026

Copy link
Copy Markdown
Owner

OSS-384 — final integrated UI consistency pass (Hy4 fallback)

Completes the route-level slice left open by the shared-primitive pass: the 43 measured light-theme WCAG-AA text failures, the 32 px mobile nav hit area and the stale-refresh row loss on /worlds.

What changed

  • Tokenization. Hardcoded dark-theme hex classes replaced with canonical Carbon tokens across the measured routes (/servers, /servers/new, /, /profile, /modpacks, /players, /settings, /modules, /docs/api, /changelog, /modpacks/studio, /servers/[id]), the changelog's rendered-markdown CSS, and the shared Button/Card/sonner/node-status/server-configuration/server-console/activity/backups primitives. No copy was shortened or rewritten.
  • Shell status contrast. node-status.ts UNKNOWN/OFFLINE/ERROR labels now use theme tokens (the UNKNOWN label measured 3.32:1 on every route).
  • Toast contrast. Sonner rich-color text is aliased to --destructive-text / --success-text without a custom-property cycle.
  • Hit area. The mobile hamburger keeps its 32 px visual mark but gains a 44×44 clickable region on coarse pointers (@media (pointer: coarse), ::after { inset:-6px }).
  • Stale refresh. A failed refresh after a successful load keeps the last-good Worlds rows and shows a role="alert" banner with Retry and a per-error dismiss. Cold failures still render the full error state.
  • Embedded API reference. The Scalar iframe is rewritten when the display theme changes, so a live flip does not leave it in the previous palette.
  • Preserved 20-file shared-primitive work is included unchanged in substance; 18 of those files remain byte-identical to the pre-rebase snapshot.

Verification

  • bun install --frozen-lockfile, bun run check, bun test (390 pass / 0 fail), bun run lint: all green.
  • Light-theme WCAG-AA sweep: 43 → 0 across 20 route states plus the delete-confirm dialog. All 13 server-detail tabs also measure 0 with info/warn/error/command log fixtures.
  • Real-browser harness (owned Chromium, fixture-only): 17/17 PASS, 0 page errors — desktop 1440 dark/light × comfortable/compact, mobile 390/320, keyboard focus, loading/error/permission/empty/stale, stale row retention and dismissal, coarse 44 px hit area, 10% motion replay, live docs iframe theme flip.
  • Packed frontend-builder image built in WSL Docker; packed manifest contains /worlds and /worlds/[server]/[world] and the tokenized CSS rules.
  • knowledge-lint -fix then final: 40/40 queries pass, indexes current.
  • Independent read-only review found one HIGH (console scoped CSS) and two MEDIUM findings; all were fixed and re-verified.

Honest scope

This is not a full-panel approval: 1180 literal color occurrences remain in 40 unmeasured component files. No live backend, screen readers, forced-colors, 400% zoom or non-Chromium browsers were exercised. No deployment or release is included. DeepSeek's single authorized probe returned free usage limit; no DeepSeek final pass is claimed. Model used: opencode/hy4-flash-free#high.

Evidence: browser-qa-2026-11-18/ui-consistency/final-2026-11-19/ and oss384-final-report.md in the external audit directory.

Tokenize route and shared surfaces to canonical Carbon tokens, fix the shell UNKNOWN status contrast, rich-color toast text and the coarse-pointer nav hit area. Keep last-good Worlds rows on a failed refresh with a dismissible alert and retry. Make the embedded API reference follow live theme changes. Add regression coverage and update source-contract tests.
Tokenize scrollbar-color, use the darker tag-blue token for command log lines so hover clears AA, and assert the cold-error retry leg in the stale-refresh source contract.
@athNdev
athNdev merged commit dc03b50 into main Nov 19, 2026
14 checks passed
@athNdev
athNdev deleted the codex/ui-full-pass branch November 19, 2026 01:21
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