Repository navigation
Adopt the blue aurora visual system and contextual dashboard language - #9
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.
A blue-aurora polish pass. Two commits, because the previously requested branding work is already
merged and this is genuinely new.
Already done — not repeated here
#7removed the Llama 3 70B copy.#8removed emoji from the favicon, feature cards and warningglyph, moved subject/card icons to Lucide, widened the collapsed rail to 4rem with a 44px centred
mark, and pointed the favicon at the blue Athenaeum mark.
1.
Adopt the blue aurora visual systemThe gold theme is gone
A third "Academia" theme (brown/gold) shipped alongside Blue Aurora and Light, which is why the app
could present as brown while its own accents stayed blue.
.theme-academiais deleted and the toggleis two modes.
Because the choice persists in
localStorage, the read path normalises a stored"academia"to a real theme and rewrites it. Without that, returning visitors would have loaded unthemed with a
label for a mode that no longer exists.
apply()still clears a staletheme-academiaclassdefensively, in case a cached page still carries it.
Instrument Serif is now actually used
This was the typography bug, and it was in two places:
The face was imported and then mapped to Inter everywhere, so every
font-serifin the JSX —including the sidebar wordmark, the auth title and the dashboard hero — silently rendered as body
text.
.font-serifnow resolves to Instrument Serif in both places.Headings deliberately stay on Inter. A serif on every
h1–h4made dense pages (analytics,review) read like prose, so the display face is opt-in via the utility and applied by hand to hero
lines and section titles. The dashboard greeting now uses the mixed treatment:
Good morning,inInter, the given name in Instrument Serif italic.
Also added
text-wrap: balanceon headings andtabular-numson.font-mono, so numeric metadatastops jittering.
The actual gold is fixed
Worth stating plainly:
bg-gradient-goldwas never gold. It aliased--gradient-accent, whichis electric blue — the name is a legacy leftover. So it needed no colour change, only an honest one:
the components now use
bg-gradient-brand, and--gradient-goldremains as an alias.The genuine blue-plus-gold clash was three hardcoded arbitrary values, now corrected:
Index.tsxhsl(38_55%_58%/0.1)hover glowhsl(199_90%_60%/0.14)CreateAssessment.tsxhsl(38_60%_50%/0.15)hsl(199_90%_60%/0.16)ResultAssessment.tsxhsl(38_55%_58%/0.08)hsl(199_90%_60%/0.12)AuroraBackground: left alone, deliberately
It already meets the brief — three large blurred blobs on 26–38s drift, subtle pointer parallax,
grain, and
prefers-reduced-motionsupport, with no particles. It also runs onauth, which is thestrongest place for it. Churning it would have been change for its own sake.
2.
Improve dashboard typography and messagingSubject emoji came from the API, not the source
The reason a source scan found no subject emoji:
SubjectInfo.iconis an emoji string seeded bythe backend and rendered as text. The UI now derives its icon from the subject, so emoji cannot
reach the product even though the field is still on the wire.
Operating Systems →
Monitor· DSA →GitBranch· Networks →Network· DBMS →Database·Data Mining →
Pickaxe· Deep Learning →Brain· NLP →MessageSquareText· CV →ScanEye, eachin a tinted tile using the existing per-subject colours, so the visual distinction is preserved. An
unrecognised subject gets
Shapesrather than raw text.No backend change: the emoji are still seeded, just never displayed.
Contextual copy, deterministic rotation
"Your adaptive workspace is ready." is gone. Four states — new, attempting, due, weak — each with
their own pool, and the most specific true signal wins: due reviews outrank weak topics, which
outrank plain attempt history.
Variation is keyed on the day index, so copy rotates as the day turns over and is stable within
a day. Randomising per render would churn the DOM and anything reading it aloud. Hero and support
lines rotate on offset keys so they never echo each other.
Signals come from data already on the page —
analytics.totals.quizzesTaken,reviewDueToday,weakTopics, plusrecommendationsas a fallback. No new endpoint.Section labels
Subjects → Your Subjects·Recent Quizzes → Recent Assessments·Quick Start → Your Next Move·Recommended next action → Best next step, chosen from your attempts·Recommended Quiz → Suggested for you.Tests — 46 new
themeTypography.test.tsdashboardCopy.test.tssubjectIcons.test.tsThree bugs were caught by these tests rather than by eye: a leftover
BookOpenreference to thedeleted theme, a fuzzy-match ordering bug where "Deep Neural Networks" resolved to
Networkinsteadof
Brain, and my own comment insubjectIcons.tsreproducing the emoji it documents — which therepo-wide emoji guard correctly rejected, since it reads shipped source.
Verification
npm run typechecknpm run buildnpm run lintsrc/+index.htmlWorth a human eye before merging: the two themes side by side, and the dashboard hero in each
learner state. The tests pin the tokens and the selection logic, not the rendering.