Skip to content

feat(viewer): make report header logo link back to home - #62

Merged
onevcat merged 1 commit into
masterfrom
feat/viewer-logo-home-link
May 11, 2026
Merged

onevcat merged 1 commit into
masterfrom
feat/viewer-logo-home-link

Conversation

@onevcat

@onevcat onevcat commented May 11, 2026

Copy link
Copy Markdown
Owner

Summary

The report page header had an inert Argue wordmark. Now it is an
anchor back to /, so users on a deep-linked report can return to the
landing page without scrolling to the footer reset button.

  • Wraps mark + wordmark in <a href="/" aria-label="Argue — back to home">
  • Plain left click → preventDefault() → SPA onReset() (same path as
    the existing "← Check Another Report" button)
  • ⌘/Ctrl/Shift/middle click → not intercepted; browser opens / in a
    new tab natively (SPA's routeFromPath("/") then renders Landing)
  • Hover and :focus-visible give the wordmark an amber tint + outline
    so the affordance is discoverable for both mouse and keyboard

Test plan

  • npm run format:check, npm run lint, npm run check
  • npm run test:viewer — 80 / 80 pass (added 2)
    • plain click on the logo returns to Landing
    • metaKey: true click does not reset (the browser handles the new-tab open instead)
  • Manual: npm run dev:viewer, drop a result, verify the logo
    shows hover tint, focus outline, and that left-click and ⌘-click both
    behave as expected

Wrap the mark + wordmark in an <a href="/"> with aria-label, intercept
plain left clicks to route through the SPA onReset path, and let
modifier clicks (cmd/ctrl/shift/middle) fall through to the browser so
the logo can still open the home page in a new tab. Hover and
focus-visible states give the wordmark an amber tint and an outline so
keyboard users can see it is interactive.
@onevcat
onevcat merged commit e1aa119 into master May 11, 2026
1 check passed
@onevcat
onevcat deleted the feat/viewer-logo-home-link branch May 11, 2026 11:23
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