Repository navigation
Closed
Closed
Copy link
Labels
Description
The page the CLI's local loopback server shows after squirrel auth login (renderAuthSuccessPage in apps/cli/src/controllers/auth/login.ts) is generic: a white card on grey, a bright green "Authentication Successful!" heading in the system font, no logo, no mascot, no squirrelscan identity. It is the first branded moment after install, and today it looks like a placeholder. Nik, 2026-10-29: "looks like shit and should be squirrel branded".
What
Restyle the page in the squirrelscan brand (see .claude/rules/design_system.md and assets/ in the private monorepo for palette, typography and the mascot; copy rules from CLAUDE.md: lowercase product name, playful but clear, no em-dashes, sentence-case headings):
- squirrelscan mark/mascot and wordmark at the top
- brand colours and the brand type stack (self-contained: the page is served from a loopback server with no network assets, so inline the SVG/CSS; no external fonts or scripts)
- a clear success state, the signed-in email, "you can close this window", and the agent-setup block (copy prompt button + link) restyled to match
- light and dark mode (
prefers-color-scheme), readable and accessible (contrast AA, focus states, the copy status already uses aria-live) - keep the existing security properties: only the escaped email is interpolated, no script-context injection, the prompt is plain selectable text, CSP-friendly (no remote loads)
- the failure/expired/denied pages served by the same loopback server get the same treatment
Acceptance Criteria
- The success page shows the squirrelscan mark and brand styling, with no external network requests (offline render works)
- The page works in light and dark mode and at phone width, with AA contrast on text and buttons
- Only the escaped email is interpolated; a test with a hostile email string (
<script>, quotes) pins that no markup is injected - The copy-prompt button, the prompt text and the setup link behave as before (existing tests pass)
- The error, expired and denied responses from the loopback server use the same layout
- No em-dashes in the copy; product name lowercase; headings sentence case
- The page is covered by tests for light and dark styling, no external loads, and the hostile-email case (replaces the screenshot criterion: the PR that was to carry it is gone; amended 2026-11-01)
Activity
test(cli): avoid tag-filter patterns CodeQL flags in the login page t…
fix(cli): send hardened headers on every login callback response, pol…
test(cli): find the emitted script without a tag pattern (#1286)
fix(cli): clearer tick and padlock glyphs, align the used page title (#…
feat(cli): brand the auth login loopback pages (#1286)
test(cli): avoid tag-filter patterns CodeQL flags in the login page t…
fix(cli): send hardened headers on every login callback response, pol…
test(cli): find the emitted script without a tag pattern (#1286)
fix(cli): clearer tick and padlock glyphs, align the used page title (#…
nc9 commentedon Oct 30, 2026
Checked against main (23a34c1, v0.0.144). Ticked what holds. Open: the last criterion (a light and dark screenshot of the success page attached to the PR) is not on PR #1288. Also note the loopback server has no separate denied state, and the AA contrast claim is a code comment, not a test.
nik
nc9 commentedon Nov 1, 2026
Checked against main (v0.0.154). The branded loopback page is in
apps/cli/src/controllers/auth/callback-page.ts, andapps/cli/tests/controllers/auth-login.test.tspins the dark-mode styles (prefers-color-scheme: dark), no remote script loads, the hostile-email escaping, and the error pages sharing the layout. I replaced the last criterion (a screenshot attached to a PR that no longer exists) with that test check, ticked it, and am closing as completed.nik