Skip to content

cli: show favicon and fix title on auth success page#187

Draft
jarugupj wants to merge 3 commits into
mainfrom
hypeship/cli-auth-favicon-title
Draft

cli: show favicon and fix title on auth success page#187
jarugupj wants to merge 3 commits into
mainfrom
hypeship/cli-auth-favicon-title

Conversation

@jarugupj

Copy link
Copy Markdown
Contributor

Summary

The browser page shown after kernel login (pkg/auth/success.html) had two issues, both visible in the tab:

  • No favicon — browsers fell back to the default globe icon. Embedded the Kernel favicon inline as an SVG data URI. Inlining (rather than serving /favicon.ico) avoids a race with the local callback server, which shuts down immediately after serving the page, so a follow-up request for the icon would fail.
  • Garbled title — the <title> used an em-dash that rendered as mojibake (â€") because the page declares no charset. Swapped it for a hyphen so the tab reads kernel cli - authenticated.

Test plan

  • go build ./... passes
  • Verified the embedded data URI decodes to a valid Kernel mark SVG
  • Manual: run kernel login, confirm the browser tab shows the Kernel favicon and the title reads kernel cli - authenticated (both live in browser chrome, which headless screenshots can't capture)

jarugupj and others added 3 commits June 16, 2026 21:46
The browser page shown after `kernel login` had no favicon, so browsers
fell back to the default icon. Embed the Kernel favicon inline as an SVG
data URI so it renders without a follow-up request (the local callback
server stops right after serving the page).

The title used an em-dash that rendered as mojibake because the page
declares no charset. Replace it with a hyphen.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Swap the embedded favicon to the green Kernel logomark on a transparent
background (matching the dashboard mark) instead of the dark-on-tile docs
variant.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Keep the success page readable by embedding the favicon as favicon.svg and
inlining the data URI at serve time, instead of a hardcoded base64 blob in the
HTML. Served output is byte-for-byte unchanged.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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