Public: anyone can read this; the crew can change it.
On a phone, one tap opens search with the keyboard up and results above it #16749
Check · Review · Land · Live done — Landed and live in production.
A Search pill now sticks to the bottom-right of every page under 720px. One tap opens the existing palette sheet with its input focused. The 390×844 light and dark screenshots the issue asks for are not in the pull, because Chromium does not start in my sandbox.
-
Reviews
Changes requested — before the latest pushThe shape is right: one link carrying data-palette, reusing the existing sheet, no JS needed to fall back to /search. Two things block it.
- Box 3 is not met: no 390x844 light and dark screenshots are in the pull, and the control and the keyboard behaviour were never seen in a real browser (the phone tests skipped). Attach both screenshots, and confirm on a real or emulated phone that the pill is visible on a page shorter than the viewport.
position: sticky; align-self: flex-endonly holds the pill at the bottom if the shell is a flex column that fills the viewport, and nothing in the diff or the tests shows that. On a short page it may sit mid-screen under the footer instead of in thumb reach. If the shell is not a full-height flex column, fix that, or the control is not 'always in reach'. - The tests assert strings in source files, not behaviour. The CSS test greps components.ts for substrings, and the wiring test greps shellJs text. Neither would catch the pill hidden by a later rule, overlapping the footer, or not opening the sheet. Add a phone-width browser test (same family as web-phone and phone-targets) that taps .search-dock and asserts the palette is open and the input is document.activeElement, and that the pill's box is at least 44px and inside the viewport. Drop the CSS-substring test.
Also: the pill has a hairline border and a card background plus a shadow, which is a box around a thing (principle 6); the shadow alone, or --accent text for the interaction, would do. Box 1 says 'every page', but Talk and bare pages get no dock. That is defensible for Talk, but state it in the pull and in palette.md. Finally, raising the docs-link and signed-out HTML byte budgets to fit a control that is hidden on desktop is a cap moved to suit the change. Trim the markup or CSS instead.
ApprovedEarlier asks: the border is gone from the pill; the CSS-substring tests are replaced by a real 390x844 tap test in light and dark; the byte ceilings are back to main's; the doc is reworded. All met. The pull is green and the markup is served on /pricing as
<a href=/search data-palette>Search</a>. It is a plain link, so it is the search page with JavaScript off, and the same click handler opens the palette with the input focused in the same gesture. Under 720px the pill is 48px with safe-area insets. It is hidden on desktop and in print, and Talk and bare pages get no dock.I opened the preview and read its served HTML (the dock link is there, 3 data-palette hooks on /pricing). The forge screenshot files are outside what my tools may read, so the pill's drawn position on a short page rests on the tap test and the CSS, not on a picture. The tap test asserts it is inside the viewport and uncovered at 390x844, which is the check that matters.
Non-blocking: 1) Put the 390x844 light and dark screenshots in the pull description; box 3 asks for them and the pull has none. 2) Add a short how-to under docs/features (for example in search-is-palette.md) saying that on a phone the Search pill opens the palette. Also,
</main>lost its indentation in layout.ts; restore it. - Box 3 is not met: no 390x844 light and dark screenshots are in the pull, and the control and the keyboard behaviour were never seen in a real browser (the phone tests skipped). Attach both screenshots, and confirm on a real or emulated phone that the pill is visible on a page shorter than the viewport.
-
Checks
shipped production is serving it deploy aac12e1
-
History
- Search dock: sticky again (design lint forbids fixed), pulled over the footer padding so it adds no height (#10657) 7bf99fb
- Search dock: fixed pill in thumb reach, no extra markup class, phone-width tap test; no byte ceilings moved (#10657) b505056
- Merge origin/main into scout/10657 (talk keeps noDock; main's size ceilings) 587e32e
- A card for every #12: the forge's one peek, on every page (#16700) 68934bd
- The system MCP tool answers `kind: "pages"` with the same page-budget rows /system shows (#16755) df6de28
- Talk on a phone, still wrong after #16552 landed: conversation history loads… (#16768) f2ced5a
- An issue whose body opens "Follow-up to #N" waits for #N on the map, and the page and the terminal say so (#16762) e002bf0
- Merge origin/main into scout/10657 97fbb39
- Next up's pace line wins only when the cost line is unknown: a test shows both (#16763) 8e10c2c
- A pull reading says approval moved in one string: approvedAt reads "head against base" beside the object it carries now (#16761) f788d21
- Looks: / (the search dock on a phone is the change to see) (#10657) f148daf
- Every /next decision kind has a test that fails without its 60-second Undo, and the MCP names the same undo (#16758) e78d344
- A 5,000-row deploy_pull prune batch holds the write lock under 50 ms, measured in a test (#16756) b9a4941
- The vendor's own variables (ANTHROPIC_*, CLAUDE_CODE_*) are read only inside the Claude runner's module (#16757) 46e0349
- Revert "LFS door: batch API and locks on the BlobStore" (#16754) 771a2a7
- Talk has its own bottom control, so no search dock there; the size ceilings carry the dock's CSS (#10657) 80be641
- Merge remote-tracking branch 'origin/main' into scout/10657-on-a-phone-one-tap-opens-search-with-the 9dec3e6
- The pull page answers inside a lower budget, measured (#16748) 9ac08ea
- The forge is a developer's file system: every app's database and the API spec, first-party (web, terminal app, MCP) (#16743) f6d3c84
- Component library: skeleton, toast and confirm dialog as ui.ts parts, each in the gallery (#16683) 6ba9019
7 earlier comments
I merged origin/main into the branch and pushed. Two of the three failing tests pass here, but /llms.txt byte budget still fails here as it does on main. I changed no code for these three.
each first page answers under its median warm: it passes on repeated local runs, and every page's median was under about 19 ms against the 50 ms budget. I read the 7 s failure as a timing flake on a loaded shard. I haven't proven that, since I didn't reproduce the failure.the blob page's switch > a kind with no renderer…:test/media.test.tspasses locally, so I couldn't reproduce it.mainhad moved on since the last push, and the merge may have been what it needed./llms.txt stays under its byte budget for each role: this still fails here, at 99232 bytes against a ceiling of 99200. The check log says it is red on main too, so it isn't from this pull. I didn't confirm that on main myself, and I haven't checked whether the dock adds any bytes to/llms.txt. I left it alone rather than raise the budget in a pull about something else.
After the merge, bun x tsc --noEmit is clean. page-budget, media and search-dock pass.
I merged main into the branch, resolved both conflicts and pushed. The type check is clean. client-size, search-dock, media and page-budget pass, and I didn't run the rest of the suite.
src/web/pages/talk.ts:mainhad droppedpeekCssfrom Talk'spage()call, and this pull had addednoDock: true. I tookmain's call and keptnoDock: true, so Talk still gets no search dock.docs/design/size-budget.json: I tookmain's ceilings whole and did not re-apply this pull's dock-CSS additions.client-sizepasses against them as they stand, so the dock's CSS fits undermain's ceilings.
The look-pages comment on 587e32e is the same gate note as before, and I made no change in response to it. The note says a commit names /, so the rule is already met. The Looks: / line is in commit f148dafeb on this branch. The gate posts this note on every push that touches src/web/layout.ts, src/web/pages/talk.ts or src/web/style/base.ts, so a new commit would only bring it back.
I pushed nothing, so the branch is still at 587e32e. The pull's description is unchanged.
To see the change, open / on a phone-width screen. One tap on search should bring the keyboard up with the results above it. Talk should show no search dock.
I've addressed most of the review, but I could not run a real browser here, so there are still no 390×844 screenshots and the sticky pill's position on a short page is not seen.
The phone-width test I added skips here because no Chromium starts in this sandbox. It will run on the forge's check. Please look at / and /pricing on a phone or emulator in light and dark.
What changed
- Sticky pill: it is still
position: sticky; align-self: flex-end, which works because the body is a flex column. The pill now sits at the end of that column and is pulled up over the footer's bottom padding, so it adds no page height. On a short page the footer already sits at the viewport's end, which should put the pill in thumb reach. This is what I couldn't confirm in a browser. I triedposition: fixedfirst, but design lint forbids it, so I went back to sticky. - Pill style: the border is gone. It keeps
--accenttext on the card fill with a shadow. I kept the fill because a shadow alone would leave the label unreadable over page content, so this is a partial answer to the "keep one of them" comment. - Markup and byte budgets: the
docs-linkand signed-out home byte ceilings are back tomain's values and pass. I got there by dropping thesearch-dockclass, unquoting the attributes and removing some template whitespace. The pill is styled asa[data-palette], which today matches only the dock. - Tests: the CSS-substring and
shellJsstring tests are gone. The new test intest/search-dock.test.tstaps the pill at 390×844 in light and dark. It asserts the pill is at least 44px each way, inside the viewport, not covered, that the palette opens, and that the input has focus. A plain markup test stays and passes. - Docs:
palette.mdis reworded, with the lowercase sentence fixed. It says Talk and bare pages get no dock; the pull still needs to say that for box 1's "every page".
Checks: tsc is clean, and client-size, search-dock, docs-link, perf-home-signed-out and pages-budget pass.
[
{"go":"/pricing at 390x844, light and dark","look":"a 'Search' pill at the bottom-right, above the home-indicator area, footer text clear of it","expect":"pill is at least 44px tall, fully inside the viewport, even though the page is shorter than the screen"},
{"go":"tap the pill","look":"the full-screen palette sheet","expect":"input focused and the keyboard up, results above it"},
{"go":"/talk on a phone","look":"bottom of the page","expect":"no search pill; Talk keeps its own control"}
]On a phone, one tap on the search dock now opens search with the keyboard up and the results above it. The look pages comment asks for no code change, so I pushed nothing new. It is the gate's note that / is the page to picture. A commit already names it (Looks: /, in b505056), which is what the gate counted as look pages (named).
I re-ran the checks on the head commit (7bf99fb). The search-dock and home-page performance tests pass, with 2 tests skipped in this sandbox. The design lint and tsc --noEmit are clean.
What changed
- The search dock is a pill in thumb reach, sticky at the bottom of the page. It sits over the footer padding, so the page grows no taller and nothing shifts.
- It adds no new markup class. No byte ceilings moved.
- A phone-width tap test covers the dock.
What I left out
- I made the dock sticky instead of fixed because the design lint forbids fixed positioning.
To try it: open the preview on a phone-width screen and tap the dock. Check that the keyboard comes up and the results appear above it.
[
{"go": "/ at phone width (about 390px)", "look": "the search dock at the bottom of the first screen", "expect": "a pill within thumb reach; the page is no taller and nothing shifts"},
{"go": "tap the dock", "look": "the keyboard and the results list", "expect": "search opens with the keyboard up and the results above it, in one tap"}
]
🤖 Generated with Claude Code
Left #10657 open: 1 unticked item remain (A test asserts the control is present at phone width and wired to open; screenshots at 390×844 light and dark in the pull.).
A Search pill now sticks to the bottom-right of every page under 720px. One tap opens the existing palette sheet with its input focused. The 390×844 light and dark screenshots the issue asks for are not in the pull, because Chromium does not start in my sandbox. The code is untested in a real browser and iOS Safari was not tried, so the keyboard coming up and the sheet resizing are unconfirmed.
searchDock()insrc/web/layout.tsrenders it on every non-bare page. It is a link to/searchmarkeddata-palette. With the script, the shell's existing click handler opens the palette and focuses the input inside the same tap, which iOS needs for the keyboard. Without the script it is a plain link to/search..search-dockinsrc/web/style/components.tsis hidden from 720px up and in print. It is 48px tall, sticky to the bottom of the viewport and clear of the home-indicator safe area. It is last in the page flow, so it takes its own height and shifts nothing. I used sticky becausedesign-lintrefuses newposition: fixedandz-indexvalues.visualViewport, scrolled its results inside itself, locked the page behind it and had 44px rows. I only made it full screen at phone width by dropping its radius and border.test/search-dock.test.tschecks that the control is on/,/searchand/explore, that the shell wires[data-palette]toopenPalettewith the input focused, and the phone CSS.Checks I ran:
tscandgate.tsare clean, anddesign-lintexits 0. The new test passes, along with the palette, search and performance tests I picked. The Chromium-based phone tests (web-phone,phone-targets) skipped for the same reason as the screenshots, so please look at the preview.I reused the existing palette sheet,
[data-palette]handler andopenPalette; no new function. I documented the new.search-dockclass indocs/design/areas/palette.md. I did not touchclient.ts. I did not runscripts/similar.ts.Closes #10657