Skip to content

cli: the post-login loopback page is unbranded; make it squirrelscan branded #1286

Closed

Description

@nc9

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

  1. added
    enhancement
    size: S
    on Oct 29, 2026
  2. added theissue type on Oct 29, 2026
  3. nc9 commented on Oct 30, 2026

    @nc9
    ContributorAuthor

    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

  4. nc9 commented on Nov 1, 2026

    @nc9
    ContributorAuthor

    Checked against main (v0.0.154). The branded loopback page is in apps/cli/src/controllers/auth/callback-page.ts, and apps/cli/tests/controllers/auth-login.test.ts pins 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementsize: S

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions