Skip to content

Replace profile tab strip with hamburger dropdown on mobile - #16

Open
OpenSourcePatents wants to merge 1 commit into
mainfrom
claude/vault-ui-redesign-lgqybm
Open

Replace profile tab strip with hamburger dropdown on mobile#16
OpenSourcePatents wants to merge 1 commit into
mainfrom
claude/vault-ui-redesign-lgqybm

Conversation

@OpenSourcePatents

Copy link
Copy Markdown
Owner

Follow-up to #15. On mobile the eight profile tabs (Overview / Bills & Votes / Finances / …) bunched up in the strip, so on screens ≤760px the strip is now replaced by a hamburger button labeled with the current section that opens a dropdown menu of all eight sections. Desktop tabs are unchanged.

Changes

  • index.html
    • New .ptab-mobile hamburger control shown only at ≤760px (the .profile-tabs strip is hidden there); dropdown items are built from the existing tab buttons so labels stay single-source.
    • Selecting an item drives the existing tab-switch logic (.ptab click), so panel-specific redraws (charts, donor network, compare) still run, including the deferred canvas sizing.
    • Menu closes on selection, outside click, and Escape — Escape closes the open menu first, then a second press closes the profile as before. Opening a profile resets the menu to Overview.
  • changelog/2026-08-02-session-1.md — documented the follow-up.

Testing

Headless-Chromium checks at 360px: tab strip hidden / hamburger visible, 8 menu items, selection switches panels and updates the button label, active item highlighted, outside-click and Escape behavior verified, no horizontal overflow, no console errors. Full desktop regression (filters, score breakdown, all tabs, Back/Escape) still passes and the hamburger stays hidden at desktop widths.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PVUzD8swLsXgUxprVNc9g2


Generated by Claude Code

On screens <=760px the eight profile tabs are replaced by a hamburger
button labeled with the current section that opens a dropdown menu.
Items reuse the existing tab-switch logic so panel redraws still run;
the menu closes on selection, outside click, and Escape (which closes
the menu before closing the profile). Desktop tabs are unchanged.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PVUzD8swLsXgUxprVNc9g2
@vercel

vercel Bot commented Aug 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
congresswatch Ready Ready Preview Aug 3, 2026 1:48am

Request Review

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.

2 participants