fix(pages): primary Sign in button and tooltips on the page header
Before / after: https://app.superset.sh/page/pr-7751-page-header-before-and-after-l5u6kf
Two small page-header fixes from the Pages cycle.
Sign in is now the primary button (SUPER-2419)
On a page shared with someone signed out, the header's only call to action was a ghost link, which reads as chrome next to the page title. It's now the default (primary) button variant. Size and placement are unchanged.
The other half of SUPER-2419 — overscroll revealing a background colour that isn't the document's — is not in this PR.
The two icon buttons explain themselves (SUPER-2417)
Open in Superset (AppWindow) and the comment-mode toggle (SquareMousePointer) carried only the native title attribute. The OS renders that after a ~1s delay, outside our styling, and not at all in some embedded contexts — so in practice neither icon told you what it did. Both now use the design-system <Tooltip>, matching PageWatchBadge a few elements away in the same toolbar. aria-label is kept; title is dropped so there's no doubled tooltip.
The comment-mode toggle's two size branches collapsed into one while touching it — they differed only by className.
Verification
lint:fix, turbo typecheck --filter=@superset/ui --filter=@superset/web, and check:i18n all pass; no catalog changes (no message text changed). Not verified in a running app — apps/web needs a root .env with DB and auth credentials that this workspace doesn't have, so the header was not rendered live. Both changed patterns are already in use elsewhere in the same toolbar.
Summary by cubic
Two small header fixes from the Pages cycle: signed-out visitors now see "Sign in" as the primary button, and the two icon-only header buttons use the design-system tooltip instead of the native title attribute.
- "Sign in" changes from the ghost variant to the default button on public pages; size and placement are unchanged, and the overscroll half of SUPER-2419 is not included here.
Open in Supersetand the comment-mode toggle now use the<Tooltip>wrapper, droppingtitlewhile keepingaria-label. The toggle's condensed and full size branches were collapsed into one variant.lint:fix, typecheck, andcheck:i18npass with no catalog changes; the header was not rendered in a running app because the local workspace lacks the required DB and auth env config.
Summary by CodeRabbit
- UI Improvements
- Open-in-Superset and comment-mode buttons now show their labels in tooltips.
- The signed-out “Sign in” button now uses the default button style.
- Comment-mode buttons display a compact or regular layout based on the selected mode.