Repository navigation
Polish production UI after visual review - #14
Merged
Merged
Conversation
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.
Step 6 — a real browser pass over the merged public experience. This found two defects that
every DOM test had passed. Both fixes below are directly from observed findings; no refactors.
How this was validated
mainbuilt withVITE_API_ROOTpointed at the deployed API, served behind a same-origin proxy(the deployed API allows only its own registered origins, so a locally served build cannot call it
directly), driven with real Chromium at 320–1920px in both themes, plus a real signup → quiz →
attempt → dashboard journey against production.
Screenshots were reviewed by eye, not just measured.
Defect 1 — the landing header overflowed horizontally on every width below 1024px
scrollWidthexceededclientWidthat 360, 390, 768 and 820. At 390px the CTA's right edge sat at481px in a 390px viewport — "Open workspace" was visibly sliced off, and the page scrolled
sideways. Two independent causes:
md:flexswitches on at 768px. The five items needed ~836px, sofrom
mdthe row could not hold lockup + nav + CTA at all.a 342px content box, leaving too little for a 170px CTA on a phone.
Fixed: nav waits for
lgand uses short labels ("Stack", "Limits") with the full wording kept in thefooter; the tagline is hidden below
lgvia a newtaglineClassNameprop; the CTA arrow drops belowsm; the lockup getsmin-w-0 shrinkso it yields space rather than shoving the CTA off-screen;padding and gap step down on small screens.
scrollW 481, CTA right=481scrollW 390, CTA right=374scrollW 836, CTA right=836scrollW 768, CTA right=744Verified at all nine widths from 320 to 1920.
Defect 2 — the sidebar tagline wrapped to a second line
The canonical tagline is three words where the sidebar's old one-liner was two. At
10pxwith0.2emtracking it measured 215px inside a rail with ~196px to give, so it wrapped to"INTELLIGENT LEARNING / SYSTEM" and broke the 64px header. This landed in PR #13 and was invisible to
the test suite, because the suite asserted classNames rather than rendered width.
smis now9px/0.12em(174px, one line),md/lgtracking tightened to match, and every sizecarries
whitespace-nowrapso a future longer tagline truncates instead of wrapping.What the pass confirmed
delta 0pxin both states — topbar bottom 64, sidebar brand bottom64. Collapsing the rail does not move it (
before 64, after 64, moved false). The shared--app-header-heighttoken does what it was introduced to do./analytics/dashboard→
topicMastery): 20×20px chip, 12×12px glyph, flexible 165px title withmin-w-0+ ellipsis,fixed 18px count,
tabular-numson, title/count vertical centres agreeing to the pixel, accentsvisibly differentiated (sky for Operating Systems, cyan for Neural Networks), full name in
title, mastery figure inaria-label.everywhere. No "Learning OS" variant survives.
Ada Lovelace; no personal data reaches any rendered page.60px/60pxInstrument Serif, 2 lines desktop / 3 lines at 390px, no clipping. Stat stripfour equal 191px columns. Boundary section reads cleanly as does/does-not.
/dashboardand/authserve correctly through SPA fallback.Not fixed, deliberately
The stored light theme is ignored on
/and/auth.ThemeToggleis mounted only inAppLayout, so thetheme-lightclass is never applied on the public routes — measuredhtml.className === ""withathenaeum-theme=lightstored. This is pre-existing on/authand myrouting change extends it to
/. The brief says theme behaviour "where supported", and fixing itproperly means applying the stored theme at boot in
main.tsx/index.html, which is a wider blastradius than this gate should take. Flagging it for the README limitations pass rather than
expanding scope here.
"Retrieval Augmented Generation" falls to a hash fallback icon rather than the NLP mapping,
because no keyword rule matches it. That is the designed behaviour for an unrecognised topic —
stable, not wrong — so I left it. Worth a keyword rule if RAG becomes a common subject label.
Tests — 10 new, and honest about their limit
landingResponsive.test.tsxasserts the contract that prevents the overflow: nav not atmd,tagline hidden below
lg,min-w-0on the lockup,whitespace-nowrapon every nav label and everytagline size, short-vs-long label pairing, and every anchor resolving to a real section id.
It cannot assert the absence of overflow itself. jsdom performs no layout — every element
reports width 0 — which is precisely why both defects reached
main. Width assertions belong to theChromium pass above; these tests lock the contract so the next edit has to break it deliberately.
PROOF.frontendupdated 347 → 357 against actual runs. That number drifted the moment this branch'sown tests landed, the same trap as last time.