Skip to content

Remove emoji branding and improve collapsed sidebar proportions - #8

Merged
prathamkashyap merged 2 commits into
mainfrom
chore/remove-emoji-branding
Oct 4, 2026
Merged

prathamkashyap merged 2 commits into
mainfrom
chore/remove-emoji-branding

Conversation

@prathamkashyap

Copy link
Copy Markdown
Owner

Two focused commits, as requested: branding consistency first, then sidebar geometry.

1. Remove emoji branding from the application

The app already had a coherent identity — a rounded tile carrying a Lucide graduation-cap on the
brand gradient, used by the sidebar and both auth breakpoints. The outliers were brought in line
rather than replaced with a new mark.

Surface Before After
index.html:18 inline SVG whose only content was <text>🎓</text> /favicon.svg
CreateAssessment cards 📄 🧠 📝 FileText, Brain, ListChecks
AttemptAssessment warning ⚠ AlertCircle, already in that file's vocabulary
ThemeToggle tooltip Theme: Dark → Light matches the aria-label beside it

The favicon is the existing brand treatment, not a new logo. public/favicon.svg bakes the two
stops of --gradient-accent (hsl(210 90% 65%) → hsl(220 80% 55%)) and uses the exact Lucide
graduation-cap path data extracted from the installed lucide-react package, stroked in
--primary-foreground — the same relationship the sidebar draws.

Three distinct icons rather than one generic glyph, so the cards stay semantically distinct.

A bug the validation caught: the favicon's XML comment originally referenced --gradient-accent,
and -- is illegal inside an XML comment. Browsers are often lenient, but a strict SVG parser
rejects the file outright — which would have shipped a broken favicon to production. Rewritten, and
now verified as well-formed XML and present in dist/.

Tests — new src/test/branding.test.tsx (9 tests): the three cards render headings with distinct
Lucide icons and no emoji; the favicon carries the graduation-cap path and both gradient stops; the
sidebar and both auth breakpoints use the same mark; and a repository-wide scan asserting no
\p{Extended_Pictographic} anywhere under src/ or in index.html
. The scan reads source, not
DOM, because emoji usually hide in states no test renders.

Backend logs and archived documentation are deliberately untouched — not part of the product.

2. Improve collapsed sidebar proportions

Your diagnosis was exact, and the arithmetic is worse than "a little tight":

3rem rail (48) − header p-2 (16) − row px-2 (16) = 16px of content
for a 36px tile → overflows by 20px

So the mark was not merely cramped, it was being squeezed by 20px. Fix:

rail 3rem → 4rem (64px)
collapsed header padding dropped (p-0) so the mark centres in the full rail
collapsed tile h-9 → h-11 (36px → 44px), centred, shrink-0
                    → 10px gutters either side

Expanded state is byte-for-byte unchanged (px-2, h-9 w-9, rounded-md). Navigation is untouched:
collapsed menu buttons stay !size-8 (32px) and remain centred — the assertion pins that, so widening
the rail cannot quietly resize the nav. SIDEBAR_WIDTH (16rem) and SIDEBAR_WIDTH_MOBILE (18rem) are
untouched.

Tests — new src/test/sidebarProportions.test.ts (8 tests) pinning the rail at 4rem (and
asserting it is not 3rem), the expanded/mobile widths unchanged, nav buttons still 32px, the
collapsed block centring, shrink-0 on the tile, and the fit arithmetic itself so a future change to
either number fails a test rather than an eyeball.

Note on the Llama copy

Requirement 6 was already satisfied by #7 (ffe7353): both UI strings now read "AI powered by Groq"
and "Questions crafted by Groq-powered AI", with a source scan preventing model names returning. The
repo-wide emoji scan in this PR covers that text too.

Verification

Check Before After
Frontend 214 / 18 files 231 / 20 files
Playwright E2E 26 passed, 2 skipped unchanged
npm run typecheck exit 0 exit 0
npm run build exit 0 exit 0
npm run lint exit 0, 0 errors exit 0, 0 errors
Emoji in src/ or index.html 4 surfaces + favicon 0

Worth a visual check of the collapsed rail before merging — the tests pin the geometry contract, not
the rendered pixel.

@prathamkashyap
prathamkashyap merged commit 763267c into main Oct 4, 2026
3 checks passed
@prathamkashyap
prathamkashyap deleted the chore/remove-emoji-branding branch October 4, 2026 17:27
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