Repository navigation
feat(search): a search box under the title on every place page, loading and error screens included - #485
Conversation
Country, region and city pages shrank search to a magnifier in the header that led to a separate search page, so a visitor in the wrong place had to spot it before they could search again. The same "search for a place" field the first screen opens on now sits under the title, in the drawer's toolbar, so the list scrolls under it. The header keeps the calendar and filter controls. Typing leaves the page's address alone; picking a suggestion opens /search for that place with the active filters, as on the first screen. The error and loading chrome keep their icon. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The suggestion list's width rides on one RESULTS_BAND constant that the header slot and a new `DrawerToolbar field` both carry, so a toolbar holding a search field no longer repeats the header's arbitrary properties at the call site. The region chrome's comment names the icon it keeps as a shortcut. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A place with nothing to list rendered EmptyEventList, whose panel mounts its own SearchField, under the field the page now shows below its title: two geocoders and two search landmarks with one name. The page passes hasSearchChrome to the empty and no-results panels, as SearchView does, and mounts its field through `DrawerToolbar field`. The spec reuses the typed region mock and stubs only what the page cannot render in node. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…bar's field band Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
🤖 no session running recent dispatchesWritten by the sydevs dispatcher. Sessions never edit this comment. |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
sahajatlas-design | a1eca3d | Nov 25 2026, 11:09 PM |
sydevs-bot
left a comment
There was a problem hiding this comment.
🧐 Adversarial review
The shape is right and the size honest: existing pieces re-mounted, one shared band constant, two boolean props, nothing unrelated refactored. Two things stop it being done. A region page's loading and error chrome keeps the magnifier and gains no band, so the header's controls and the body's top both move when the view arrives — against the invariant stated two lines above the code this diff touches. The body gates merge on a follow-up ticket for it; no such issue exists, and SearchFieldSkeleton is already in that file. And the duplicate-field fix adds a second mechanism where FallbackPanel.hasSearchChrome already does that job. Contracts hold: docs/embedding.md's live-region note is scoped to the field, not the first screen, so "no contract change" is right.
Findings
- should-fix — the region chrome gains no band, so the header changes on arrival; build it here.
src/views/fallbacks.tsx:210 - should-fix —
EmptyEventListre-implements the gateFallbackPanelalready owns.src/views/shared.tsx:439 - should-fix — Streamline:
SearchButtonnow has no caller outsidefallbacks.tsx.src/views/shared.tsx:153
What was checked
Read whole on the branch: RegionView.tsx, shared.tsx, fallbacks.tsx, Drawer.tsx, molecules/Fallbacks/Fallbacks.tsx, embedding.md. Ladder: no dependency added; SearchFieldSkeleton, MapSearch, FallbackPanel.hasSearchChrome and --sy-results-w already exist. Streamliner: 2 pieces walked, both kept, 3 findings, all 3 held. Checked: RegionView serves country, region and city (DrawerStack.tsx:148), so "every place page" holds; leadsWithGeocoder is root-and-search only and RegionView has no inner boundary, so no page draws two fields; every path the body names exists on the branch. No question threads.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
The loading and error chrome for a country, region or city kept the header magnifier while the loaded view puts a field in a toolbar band, so the header's controls and the body's top both moved when the view arrived — against the invariant two lines above the code this branch touched. The chrome now draws the same band, with the live field or `SearchFieldSkeleton` as the loading rationale already decides. `chromeHasField` is what the body reads to suppress its own field, since `leadsWithGeocoder` answers a narrower question once a place page carries one under its title. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjYQwhqVZCsSCYYH8Mk
`EmptyEventList` gated its own field, where `FallbackPanel.hasSearchChrome` already feeds `visibleActions`, which gates the panel's children. Passing it through leaves one mechanism for one concern, and the panel stops counting a `search` action nothing drew. Same render: for the `empty` row the gate and the old conditional suppress the same field, and `onward` carries `offered` either way, so the last-resort report action does not appear. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjYQwhqVZCsSCYYH8Mk
Nothing outside the fallback chrome mounts it now that a place page carries a field, so it folds into `fallbacks.tsx` beside `SearchFieldSkeleton`, where the other chrome-only piece lives, and leaves the shared module 17 lines smaller. Its one remaining branch is the online roll-up, whose own view draws no search affordance — recorded as a `shortcut:` with the trigger that retires it. Same rendered chrome: the spec pins the magnifier's accessible name on that branch and its absence on a place page's. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjYQwhqVZCsSCYYH8Mk
|
Three threads, all adopted and resolved. Pushed for relay:
🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
The geocoder declares its own `--spacing` (0.75em), and every Tailwind spacing step inside it multiplies that rather than the panel's 4px. So the 44px tap floor, `min-h-11`, drew the field 132px tall on every touch screen, and its placeholder padding came out 36px instead of 12px. Both are literal px now. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…h field The chrome a region keeps while it loads or after it fails showed a magnifier the loaded page no longer has, so the header changed when the page arrived. It now mirrors the page: calendar and filters in the header, and the field band under the title, drawn inert while loading and live on an error, including a dead place link. The body's own field gives way to it. The skeleton takes the themed geocoder's exact box and magnifier, so nothing moves on the swap. The online page's chrome drops its icon to match its view, and SearchButton, with no callers left, goes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…h-screen field height Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Approved for Ardnived, who wrote it: GitHub refuses an author's own approval. CI is green and the automated review has run. Enable auto-merge when you want it merged: the queue tests it against its base. 🤖 Written by the sydevs autonomous loop — see what this is
Both sides added a `### Changed` entry at the top of the Unreleased block: this branch's search-box entry and main's Unicode-slug one (#483). Both are kept, newest-landing first, so #485 leads and #483 sits above #482. No code file overlapped, and nothing else conflicted. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjVHCn9v3quiYPtadsg
The entry landed with no `([#483])` and no link definition, the only one in the file without either, while the file's own header says entries reference the pull request that landed them. Nothing checks this, which is how it got through. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjVHCn9v3quiYPtadsg
|
Lean gate on the merged tree: lint + typecheck + Joined, in its own commit: main's #483 entry carried no 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…overs of the header icon RegionView renders its empty and no-results states through one FallbackPanel, as DynamicEventsList's EmptyResults does, so EmptyEventList drops the hasSearchChrome prop this branch added. The geocoder's fallback input loses a 44px floor its wrapper already gives it, and the prop's doc names the chrome, not only SearchView. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e pass The loop's ba5584e, 35fbeaa and f211d1b reworked the same loading/error chrome this branch had already reworked and demoed. Where they overlap this keeps the reviewed version: no magnifier on the online roll-up's chrome (its view has none), SearchButton deleted rather than moved, and the place page's empty state gated through its one FallbackPanel. Main's changes merge unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The place page's other empty panel, "No events match your filters" with Clear all, had no story state. It seeds a days filter beside the emptied region, and every other state seeds an empty query so a filter never outlives its state. Co-Authored-By: Claude Opus 5.5 <[email protected]>
CHANGELOG.md conflicted where both sides added an entry at the top of Changed: both kept, this PR's first as the newest to land. Co-Authored-By: Claude Opus 5.5 <[email protected]>
#485 put a search box under every place title, so the 400px floor that assumed the field in the header no longer fit the suggestions. Any floor breaks whenever the field moves; instead, while the combobox reports `aria-expanded="true"` the panel takes the full height, eased, and the list cap goes. A list view's fallback no longer fills the body either: in a panel sized to its content that pushed the location prompt below it out of view. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Nine conflicts. `main` landed #495, a desktop panel as tall as its view, and #485, a search field under every place page's title, while this branch removed the compact card, the contained map and the `filled` drawer mode. `Drawer.tsx` — `main`'s height ease stays, so the slot context keeps the `wide` flag it reads. `filled` is gone, so `showHandle` loses that arm and the real drawer is always `anchored`. `Drawer.ease.test.tsx` loses its `mode: 'filled'` case for the same reason: there is no such panel left to leave uneased. `src/views/fallbacks.tsx` — `main`'s shape, with the field band and without `SearchButton`, plus this branch's `isPlace` on the header. `Icons.stories.tsx` and `translations.en.json` — both sides' additions. Each glyph has its own call site, and the gallery spec checks both directions. `components/AGENTS.md`, `DESIGN_SYSTEM.md`, `Fallbacks.tsx` — prose where both sides rewrote one line. The geometry class names and the `Disclosure` row are `main`'s; the reasons beside them are this branch's, since the contained map and the map-less container `main` names are gone. `CENTERED_BODY`'s note now names the inline column, the one surface left where the body IS the visible area. `CHANGELOG.md` — every entry stays, `main`'s three above this branch's, which keeps the place the branch chose for its own. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjUybd1Bs7yKWy9HkV7
main reworked the geocoder field (#485, #495), the drawer snaps (#492, #495) and the panel header (#490) while this branch was open. Every hunk keeps both sides' behaviour. - `MapSearch` keeps this branch's controlled `value`/`onChange` — the Where step holds the draft's text, `SearchField` holds `?q` — and takes main's settle delay, measured results band and overlaying not-found message. Main's new spec held the text inside the field, so it now owns it the way both callers do; watched failing against the settle removed. - `NavHeader` takes main's `pendingTitle`, without its `t`: the X it named is this branch's `CloseButton`, which brings its own. - The mobile snap reads `opensTall(kind)` over main's `fitsContent`, so calendar, add and correct stay tall and event and Share still fit their own content. The two predicates are disjoint. - `EventHeader` takes a `title` rather than an event since #490, so the submit listing and its story pass one. - `CHANGELOG.md`, `DESIGN_SYSTEM.md` and the two import hunks are unions. DESIGN_SYSTEM.md is rebuilt on main's restructure, carrying this branch's `ProposalForm` row, `SubmitView`, `CloseButton` and the `Link` footnote note. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjY4MwaWAk4ZhpqxBB5
Summary
SearchButtonis deleted: nothing renders it any more.maintoo.Change outline
Components — RegionView
The header loses its magnifier, and the field sits in a toolbar band between the header and the scrolling body, so the list scrolls under it. The empty states render through one panel, as
DynamicEventsList'sEmptyResultsdoes.RegionView src/views/RegionView/RegionView.tsx NavHeader actions CalendarButton - SearchButton # navigated to /search FilterButton iconOnly + DrawerToolbar field + SearchField # typing never writes ?q; a pick opens /search with the filters DrawerBody … - FallbackPanel kind="no-results" | EmptyEventList # the latter mounted a second SearchField + FallbackPanel hasSearchChrome kind={filtered ? 'no-results' : 'empty'}Components — the Drawer atom's field band
The suggestion list's width (
--sy-results-w, read inMapbox/themes.ts) was declared only on the header slot. One constant now carries it, and a toolbar opts in withfield.Components — the loading and error chrome
DrawerChrome src/views/fallbacks.tsx NavHeader actions region (found): CalendarButton, FilterButton iconOnly - region: SearchButton - online: SearchButton # OnlineView itself draws no search control + DrawerToolbar field # every region, a dead place link included + interactive ? SearchField : SearchFieldSkeleton SearchFieldSkeleton # now the themed geocoder's box: magnifier, 38px / 46px touch +hasFieldBand(entry) ErrorPanel - hasSearchChrome={leadsWithGeocoder(entry)} + hasSearchChrome={leadsWithGeocoder(entry) || hasFieldBand(entry)}Components — the geocoder's touch height
Ladle — the Loading and Empty · filtered states
Preview
/gb/south-east,/gb/south-east/londonand/gbContract impact
Visible to host pages, no contract change: place panels gain a search field (while it is mounted, the place search's hidden
aria-liveregion sits in the host's<body>, asdocs/embedding.mdalready describes), and the field is 44px rather than 132px on touch screens.CHANGELOG.mdis updated. No parameter, origin, CSP, storage or Permissions-Policy change, so WeMeditateWeb'slib/atlas-embed.tsand the WordPress plugin need nothing.Test results
test:run(194 files, 2479 passed, 1 skipped), on the branch withorigin/mainmerged infallbacks.test.tsx(new),RegionView.test.tsx(new),Drawer.results.test.tsx(new),gutter.test.tsx(+1 row). Each new assertion was watched failing against its defect: a chrome without the band, a loading chrome with the live field, an online chrome with a search control, a body drawing a second field, a toolbar without the band or the gutterManual verification
/gb/south-east: a field under "South East", no magnifier; calendar and filter stay.Brighton: the address stays/gb/south-east. Pick "Brighton":/search?…&q=Brighton…with any filter (?days=2) kept./gb/south-east/london, raise the sheet and scroll the list: the field stays put./gb/south-east: the suggestion list is as wide as the field./: the field is 46px tall (44px input plus border), the skeleton the same.Notes for reviewer
SearchButtonis deleted rather than kept for that branch behind ashortcut:;EmptyEventListtakes no prop: the place page renders its own panel, which is the thread's "one gate" carried one step further.@mapbox/[email protected]leaks a 1 Hz timer per destroyed geocoder: pre-existing, filed as fix(search): stop each removed place-search field leaving a timer running #487.Detail
ux/first-screen, which no longer applies tomain: feat(nav): Back says where it goes; a place with one class opens it #476 moved the header toNavHeader, andSearchFieldlostsyncToUrl, so the ticket'ssyncToUrl={false}has nothing to set.px-gutter, not the proposal'spx-4: style(ui): one type scale, one 24px panel edge and one corner rule #471 moved the panel to one 24px edge.--spacing: 0.75em, so any Tailwind spacing step on an element inside it multiplies that rather than 4px. Confirmed 132px on sahajatlas.com before the fix. The comment beside the class carries a ⚠./simplifyand/code-review high;/security-reviewran (the trigger matchessrc/styles/gutter.test.tsx), no findings.origin/mainmerged in three times; onlyCHANGELOG.mdever conflicted with main, both entries kept.🤖 Generated with Claude Code