feat(frontend): redesign UI and self-host OFL fonts#58
Merged
Conversation
Replace the generic indigo-on-charcoal theme with a cohesive editorial "Observatory" aesthetic: warm dark palette, Instrument Serif display + Geist body + Geist Mono data, hairline rules, tabular numerics, and a quieter score gradient (HSL oxide → wheat → sage) for the comparison grid. Updates login, chat, results index + detail, and history with semantic tokens (ink / bone / rule / ember / sage / wheat / oxide). Self-host the three font families under SIL Open Font License 1.1 to remove the build-time dependency on fonts.gstatic.com and make AWS Labs OSS compliance explicit: - bundle 4 woff2 files in frontend/app/fonts/ (distributed unmodified) - pin SHA256 hashes in SHA256SUMS for integrity verification - bundle SIL OFL 1.1 license text + copyright statements (OFL.txt) - add three attribution entries to THIRD_PARTY - switch frontend/app/layout.tsx from next/font/google to next/font/local Verified: tsc --noEmit clean; both BUILD_MODE=standalone and BUILD_MODE=export builds clean; nine Playwright screenshots across all routes with realistic mocked API data (0 console errors, 0 warnings).
b17f231 to
01ee138
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/THIRD_PARTYand bundledOFL.txt— removes the build-time dependency onfonts.gstatic.comand makes AWS Labs OSS compliance auditable.What changed visually
Design tokens consolidated into
tailwind.config.tsandglobals.cssas semantic names (ink,bone,rule,ember,sage,wheat,oxide) — no more ad-hocclaude-*colour classes scattered across components.License and compliance (AWS Labs)
frontend/app/fonts/(~175 KB total)frontend/app/fonts/SHA256SUMSfor integrity verificationfrontend/app/fonts/OFL.txt/THIRD_PARTYmatching the existing format (Geist, Geist Mono, Instrument Serif)Sources:
Verification
tsc --noEmit→ cleanBUILD_MODE=standalone next build→ clean, all routes prerenderBUILD_MODE=export next build→ clean (the static export consumed by theeval_mcpviewer).next/static/media/byte-identical to the upstream files/,/chat,/results,/results?group=...,/historywith realistic mocked API data — 0 console errors, 0 console warningsSide effect: dev hot-reload restored
next devpreviously hung indefinitely on/chatdue to a Turbopack +next/font/googleinteraction (font refetch at compile time). Switching tonext/font/localremoves the runtime Google dependency and unbreaksnext devfor local frontend iteration.Known gaps (deliberately deferred — happy to follow up)
prefers-reduced-motionnot yet respected in keyframe animationsbone-mute(#6f6759) onink(#0c0a08) is ~3.7:1 — below WCAG AA for normal-size body text; used on eyebrows and metadata in several places<button onClick={router.push(...)}>instead of<Link href>(loses prefetching, right-click "copy link", middle-click new tab, and proper screen-reader link semantics)aria-current="page"missing on active nav itemsscoreColorhelper duplicated across four components (should be onelib/score.ts)claude-*Tailwind aliases left intailwind.config.tsas a safety net during the migration — now unused and removableTest plan
npm run build:viewerinfrontend/, hard-reloadlocalhost:4001/results— verify the redesign renders with real eval datanpm run devinfrontend/— verify/chatno longer hangs (was broken pre-PR)BUILD_MODE=standalone npm run build— verify the EKS-deployable bundle still produces/THIRD_PARTYand the bundledOFL.txtfor license-review correctness