Skip to content

fix(admin): Restore _admin page title and add admin favicon - #128406

Open
sentry-junior[bot] wants to merge 2 commits into
masterfrom
evanpurkhiser/fix-admin-title-and-favicon
Open

sentry-junior[bot] wants to merge 2 commits into
masterfrom
evanpurkhiser/fix-admin-title-and-favicon

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

_admin tabs show up as "Sentry" with the regular Sentry icon, so you can't tell them apart from normal app tabs.

The admin.html template in getsentry has set <title>_admin</title> since 2018 (getsentry#1955), for exactly this reason. When DocumentTitleManager was added to gsAdmin in #103150, it began writing document.title on mount. With no page titles registered, it falls back to "Sentry", which overwrote the template's _admin.

This change:

  • Adds an optional defaultTitle prop to DocumentTitleManager (still "Sentry" by default), and gsAdmin passes "_admin". Pages that register a title will now show up as Foo — _admin.
  • Gives _admin its own favicon (favicon-admin.png): the standard glyph on red, so it doesn't look like the prod, dark, dev, or stories icons. gsAdmin swaps it in at render time, the same way the stories favicon is applied.

As far as I can tell, _admin never had a different icon. The getsentry/images/favicon.ico that was removed in getsentry#2625 was just the Sentry glyph from that era.

via Junior system actor event.

--

View Junior Session [Sentry]

The DocumentTitleManager added to gsAdmin in #103150 always writes a title
on mount, defaulting to "Sentry", which clobbered the "_admin" title set by
the admin.html template (added in getsentry#1955 so admin tabs could be told
apart from regular Sentry tabs).

Let DocumentTitleManager take a defaultTitle and pass "_admin" from gsAdmin.
Also give _admin its own purple favicon, swapped in the same way the stories
favicon is.
@sentry-junior
sentry-junior Bot requested a review from a team as a code owner October 21, 2026 18:37
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Oct 21, 2026
@getsantry

getsantry Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

This pull request has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you add the label WIP, I will leave it alone unless WIP is removed ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@getsantry getsantry Bot added the Stale label Nov 12, 2026

This branch was successfully deployed

1 active deployment
Preview — a07736ea Deployed Oct 21, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components Stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant