Repository navigation
The dashboard on a phone: a bottom bar with Menu, a full-screen menu sheet, 44px targets and 16px text - #543
Merged
Conversation
…sheet, 44px targets and 16px text On a phone the menu was a 40px button in the top corner opening a narrow drawer of 27px rows. Now four destinations (Runs, Review, Chat, Security) sit in a bar at the bottom of the screen, where a thumb reaches, with Menu beside them. Menu opens the sidebar as a full-screen sheet: 54px rows in 18px type, the current page marked with a bar, the team switcher with large rows, Help, the account and Sign out. The bar's order keeps the second place for a Pull requests destination (lib/nav.ts PHONE_BAR_KEYS). Below md every button, field and select is at least 44px, body text and fields are 16px so iOS never zooms on focus, the viewport covers the notch with safe-area padding, and bars pinned to the bottom of a page sit above the phone bar. Three pages that scrolled sideways at 320px now wrap. e2e/phone-nav.spec.ts checks every main page at 320 and 375: no sideways scroll, no navigation target under 44px, no field under 16px, the current page marked, the sheet from the keyboard, and the Pull requests place. no-sideways-scroll.spec.ts now also runs at 320.
Contributor
|
🟡 Post-merge health check: deploy cancelled: the deploy for
|
This was referenced Dec 5, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
On a phone, the dashboard's menu was a 40px button in the top right corner, the hardest place to reach with a thumb. It opened a 252px drawer of 27px rows in 15.75px type, and Close was a 36px text button. Most controls were under 44px, and most fields were under 16px, so iOS Safari zoomed the page whenever one took focus.
Now the four places people check from a phone sit in a bar along the bottom of the screen: Runs, Review, Chat and Security. Menu sits beside them and opens the whole sidebar as a full-screen sheet with large rows. Below
md:, every button, field and select is at least 44px, and text and fields are 16px.Why a bottom bar plus a Menu sheet. There are 12 destinations, with Pull requests coming next.
Pull requests. The bar's order is
runs, pull-requests, reviews, chat, security(PHONE_BAR_KEYSinlib/nav.ts). Once apull-requestssection is added toNAV_SECTIONS, it takes second place in the bar and Security moves into the Menu sheet, with no other change. A test checks this.All screenshots use the e2e mock data (invented), in the dark theme, at 375px (the last one at 320px).
Changes
components/phone-bar.tsx(new): the bottom bar.aria-current="page", a bar above it and white type.client-shell.tsx: the sidebar is the Menu sheet belowmd:.ShellNav, so a count arriving redraws only the navigation.globals.css.md:, every button, field and select is at least 44px (unlayered, so it beats size utilities), and checkboxes are 24px.sm:,text-smis 16px and fields are at least 16px.--bottom-barholds the bar's height, for anything pinned to the bottom.ui.ts. Shared buttons are at least 44px tall belowmd:. The Modal and Drawer Close buttons are 49px. (Both were already full height on a phone.)layout.tsx.viewportFit: "cover", so the existingenv(safe-area-inset-*)padding works.e2e/phone-nav.spec.ts(new) runs on every page a menu item opens, 26 routes. At 320 and 375 it fails on sideways scroll. At 375 it fails on any bottom bar, top bar, page tab or Menu sheet target under 44x44, and on any field under 16px. It also checks the current-page marking, the sheet from the keyboard, the team switcher's rows, and the Pull requests place.no-sideways-scroll.spec.tsnow also runs at 320 on every route in the route map.e2e/phone-nav-shots.spec.tswrites these screenshots whenE2E_SHOTS_DIRis set.app-map.spec.ts"screens list groups…" now opens the group until it stays open. The viewer redraws its list just after load, which closed the group again in about 1 of 8 runs, on main as well.Verification
npm run lint(UI lint, hosted links, fixture words),npm run typecheckand rooteslintondashboard/src,dashboard/e2eandsrc: all pass.python3 -m unittest discover -s .github/scripts: 37 tests pass.text_guard.py --textpasses on this body and on the commit message.E2E_STATIC=1, chromium and iphone-webkit): 2,192 passed, 1 failed, 28 skipped. The failure was the app-map race above. After the fix, that test passed 16 of 16 times, and passed again withsecurity.spec.tsandtests.spec.tsalongside it on 6 workers (115 of 115).phone-nav.spec.tsandphone-nav-shots.spec.tspass again on the final build: 32 of 32.