Repository navigation
feat(widget): keep the map on screen while data loads or fails - #490
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
🤖 no session running recent dispatchesWritten by the sydevs dispatcher. Sessions never edit this comment. |
|
Fixed the accessibility gate's one finding, The new Loading story puts three panels across. At the gate's 390px phone viewport each column drew about 115px wide. The real page's carousel then packed its pagination bullets closer than their 44px pitch, so they took each other's tap pixels. Slide 2's bullet answered to 24×45px. The comparison now stacks until Measured here: 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
sydevs-bot
left a comment
There was a problem hiding this comment.
🧐 Adversarial review
The shape is right and the diff is no bigger than the problem. Taking the client record out of suspense and putting the gate inside the drawer is the smallest change that gets a map on screen early, and ClientGate's one job is deciding where the wait lands.
Every finding is one shape. The diff builds two shared-geometry leaves, chrome-style.ts and drawer-style.ts, then does not use that shape elsewhere: four components import their chrome from a placeholder, and the boot panel re-derives the sheet's stops. Nothing blocks.
The contract side holds. The docs and CHANGELOG.md move with the behaviour, the CSP table is unchanged, and the report form already says it can't send, as the new frame-src row claims.
Findings
should-fixviews/shared.tsx:119— re-export of constants just moved.should-fixListItemSkeleton.tsx:6— row chrome belongs withlistRow.should-fixEventFactsSkeleton.tsx:7—EventFacts' recipe lives in its placeholder.should-fixEventDetailsSkeleton.tsx:82—EventHeaderSkeletonfolds intoEventHeader.should-fixviews/loading.tsx:193—0.97and the cap duplicateDrawerStack.should-fixWidget.tsx:206— no thread, outside the diff.BootSurfacestill says query mode suspends onclients/meand drawsLoadingFallback. False.considerSkeleton/loading.ts:6,drawer-style.ts:113— a file for one attribute; comments on booleans now gone.
What was checked
Read whole on the branch: App.tsx, Widget.tsx, loading.tsx, fallbacks.tsx, use-fit-snap.ts, both turnstile hooks, both forms, DrawerStack.tsx. Streamliner: 63 pieces covered, 48 kept, 7 findings, all held. Cleared: motion-safe:animate-pulse guards the pulse; LOADING lands as a direct child of [data-sheet-fit], all useFitSnap scans; PathPrefix still suspends.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
The full map form no longer waits on the client record before drawing: the map appears at once, and the panel stands where it opens, holding placeholders shaped like what is coming. A failed read shows its message and Try again inside the panel, over the live map. A failed security check pauses only signing up. - AppShell reads the client with useQuery; ClientGate suspends inside the drawer's boundary in the map form, at the shell otherwise. The home redirect and the embed report wait on the record. - BootFallback (views/) draws the drawer from its own geometry (atoms/Drawer/drawer-style.ts, split from vaul so the eager shell can read it) at the sheet's opening stop, per route. The drawer opens in place (enterInPlace), so it no longer slides in a second time. - Each component draws its own skeleton beside itself, from shared layout constants: ListItemSkeleton, EventListItemSkeleton, EventFactsSkeleton, MapSearchSkeleton, EventDetailsSkeleton/EventHeaderSkeleton, over a new Skeleton atom. Placeholders only stand in for missing data: the real Back, Calendar, Search and Filters work, a country is named at once, and a city says "All classes are free" over its class cards. - Placeholders carry data-sy-loading, which useFitSnap ignores, so the phone sheet moves once, when the content arrives. - "Finding classes…" is spoken, not drawn (src/config/a11y). - The Turnstile guard only logs its advice; the registration form shows why Register is off and offers Try again (useTurnstile.retry). The unused captcha-blocked error kind and policy row are gone, and common.errors.captcha_blocked is marked retiring. - The geocoder's touch min-height is pinned in px: its own --spacing made min-h-11 a 132px field on every touch screen. - MapCurtain loses its spinner. Co-Authored-By: Claude Opus 5.5 <[email protected]>
- One shared loading module (views/loading.tsx): the boot panel and the drawer's loading chrome draw the same body per view (LoadingBody), the same static titles and the same title skeleton. The boot panel now reads baseStackEntry, draws search as its field and toolbar, and titled views (register, share, calendar, filters) under their own words with no list. - A pending title draws outside any heading (NavHeader pendingTitle). - The loading marker lives in a light leaf (atoms/Skeleton/loading.ts); useFitSnap watches only the body's direct children. - The geocoder theme hands the geocoder Tailwind's spacing step, so min-h-11 and pe-3 measure as written again. - ClientGate reads atlasAuth.apiKey; the client record is session-long, so a gate per view costs no request per navigation. - Header geometry shared through views/chrome-style.ts; the sheet's in-place transform and short-window cap shared with the boot panel. - Event placeholder bands pulse on real boxes; dead unboxed prop, unused barrel exports and stale comments removed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…the Skeleton atom #488 made ListRow the shell both list rows render into, chevron included. The placeholder rows now render into its inert twin, ListRowSkeleton, from the same recipe (an `inert` variant drops the hover and press feedback), so a class card's placeholder gains the chevron the card now has, and the two cannot drift. The class card's column, title and facts spacing are shared constants with EventListItemSkeleton. The Skeleton atom gets its own Ladle story: lines beside the text they stand for, blocks, and a pulsing group. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The accessibility gate failed on `organisms--event-details`: the pagination bullets of the real page's carousel answered to 24×45px, under the 44px floor. At the gate's 390px phone viewport, three columns left each panel ~115px wide, so the bullets' tap areas packed closer than their 44px pitch and took each other's pixels. The panels now stack until `md`, where a column is a panel's width, and the three-up comparison survives for a reviewer on a desktop. Measured: `pnpm ladle:build && pnpm test:a11y` — 54 stories, 715 controls, clean. Lean gate green. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjVZ1njukf8bNyfpLKU
32c1935 to
1f42553
Compare
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
sahajatlas-design | 4b82410 | Nov 26 2026, 12:14 AM |
`views/shared.tsx` re-exported HEADER_CONTROL and HEADER_EDGE, which it imports from `views/chrome-style.ts`. `nav.tsx` was the only reader, and it already imported NAV_HEADER and NAV_ROW from chrome-style five lines above, so the re-export bought one constant two homes. The module's suspend rule describes shared.tsx's own controls, so it moves to the head of that module rather than riding on the re-export, and the five controls point at it there. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjUsw3gaDEC4LUpJxhY
LIST_ITEM_* and EVENT_CARD* sat in the two placeholder files, so `ListItem` and `EventListItem` imported their own chrome from a component named Skeleton. `List.tsx` already owns the skin every row shares, both pairs already import `ListRow`/`ListRowSkeleton` from it, and it is already eager, so the eight constants move there and the backwards edge goes. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjUsw3gaDEC4LUpJxhY
`facts` and ICON_SIZE are EventFacts' own skin, and sat in EventFactsSkeleton, so the molecule imported its whole recipe from a file named Skeleton. It cannot move back the other way: EventFacts pulls luxon through `use-event-display` and the placeholder is eager. So both now read `EventFacts/facts-style.ts`, beside `drawer-style.ts` and `chrome-style.ts`. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjUsw3gaDEC4LUpJxhY
The row shell every list row renders into had no story of its own, nor its placeholder twin. The List story now shows both, side by side, and the list skeleton sections wrap their placeholders in the Skeleton atom, as the app does. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Lint, Typecheck & Build failed on The gate reported one serious The three surfaces wrapping Checked locally: a11y gate clean at 58 stories and 708 controls, lean gate green, 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
…st the views it mimics The loading panel moves to organisms/Skeleton as `Skeleton`, with the primitives (SkeletonGroup, SkeletonLine, SkeletonBlock) as its sub-components; the Skeleton atom is gone. It gains the two shapes the measurements showed missing: search results' Filters and Sort band, and a class's own header. The height guard gives way to a browser-lane spec (tests/browser/skeleton.spec.ts). For each view — the first screen, a country, search results, a class — on a phone and a desktop, it holds SahajCloud (and, for the boot panel, the interface's code), measures the loading panel's bands and first rows, releases, measures the view, and asserts the same bands at the same places and heights, and a list starting where the placeholder rows did. The drawer's bands carry `data-band` for it to read. It fails on a shifted header, a missing band or a resized row. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Ports 4aed5d7 onto the organism: a loading body holds nothing focusable, so a scrollable one is a region no keyboard can scroll (axe scrollable-region-focusable). The boot panel and the drawer's loading body clip instead (overflow-y-clip, not hidden, #326). Co-Authored-By: Claude Opus 5.5 <[email protected]>
… organism Its target files (views/PanelSkeleton, views/BootFallback's old shape) were replaced in this branch; the fix itself is the commit before this merge.
# Conflicts: # CHANGELOG.md # src/components/atoms/Drawer/Drawer.tsx # src/views/DrawerStack/DrawerStack.tsx
Ten conflicts, all from #490 (the map and a placeholder panel at once, a Turnstile failure that pauses only sign-up), while this branch removed the compact card, the contained map and the `filled` drawer mode. The client record is no longer a suspense read at the shell. With a map, `ClientGate` sits inside each drawer view, so the inline column and the expanded map show a slow or failed API in the panel, beside a live map. Map-less, it stays at the top of the shell, as main has it; `!hasMap` replaces main's `hasMap && !compact`. - `App.tsx`: `StandIn` takes main's place for both stand-ins, filling the window only for the map-first form (`!inline`). `clientLoaded` reaches both interfaces. - `FullInterface.tsx`: `InterfaceProps` carries `clientLoaded`, so `useInterfaceBoot`'s home redirect waits for the record in every form. - `Drawer.tsx`: #490 moved the `tv()` slots to `drawer-style.ts`, so this branch's `inline` mode and its comments move there, and `filled` stays gone. The real drawer stays `anchored`, now with `initialTransform`. - `DrawerStack.tsx`: the shared `topView` gains `ClientGate`, and the cross-fade takes `initial={false}`. The map-less filled drawer and its cog strip stay deleted. - `fallbacks.tsx`, `nav.tsx`: main's cached-region read, country name and `SkeletonField`, plus this branch's `isPlace`. A place's pending-title placeholder carries `data-sy-place`, so inline it gives way to the page heading as the title it stands for will. - `Fallbacks.tsx`: `LoadingFallback` loses `unboxed`, as main has it. - `use-turnstile-guard.ts`: main's non-blocking guard; the call-site rule keeps this branch's `useInterfaceBoot` reason. - `globals.css`: main's control-column `z-index` above the curtain stays; the `[data-sy-expanded]` nudge stays deleted. - `DESIGN_SYSTEM.md`: main's re-padded table with this branch's Drawer row. #490's host-facing prose named the full map form and the compact card: `docs/embedding.md`'s `key` row, its CHANGELOG entry and `mapbox.md` now say "with a map" and "a map-less embed", as #470's entry was cut. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…umn on the embed #490's spec measured both loading stages on full-map.html, which this branch opens inline. The boot panel stands in for the map-first interface alone, so its 8 cases found no panel. It is now measured on the standalone page opened directly, which the review server serves at / alone, with the map-first drawer beside it. The embed measures the inline column's own loading state, on all four routes. Watched failing first: the country case, with the loading chrome's isPlace read off the region tree alone. 'a class' fails locally on main as well as here, header height off by 26px, and passes in CI. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…mbed #490 kept the gate at the top of the shell for map=false, where a centred spinner stood until clients/me answered. A map-less embed is the same inline layout as a map embed here, so it now draws its heading and the placeholder column at once too, and a failed read shows in the column. One placement for every form, and App.tsx loses its branch. #490's CHANGELOG entry and the key row in docs/embedding.md say so. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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
#490's placeholder draws an unknown class title as two bars, the shape titles take in the 352px panel. The inline column is wider, so the title arrived on one line and the header shrank 26px as the class landed, in CI as well as here. DrawerChrome now asks the Drawer atom's mode (`useDrawerMode`, since EventHeader sits outside every slot CSS could reach) and passes `titleLines`: one inline, two in a sheet or panel. The skeleton spec's two class cases were the failure; all 12 pass now. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Four more PRs: #496 (a class drags down to its key facts), #498 (the class address ends with its postcode and copies on tap), and the contract re-syncs #497 and #499. - `CHANGELOG.md`: #496's and #498's entries above #490's, which keeps this branch's wording. - `translations.en.json`: taken from production again with `pnpm sync:translations --write`. Since the last sync SahajCloud#1278 dropped `common.errors.captcha_blocked`, and #498's `common.chrome.copied` replaced `share.copied`. `RETIRING_KEYS` loses its last entry, the key production no longer serves. `pnpm types:cms` wrote no change. #496's ladder changes write only where the sheet can collapse, so the inline column is untouched by them. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Summary
…Skeletoncomponents built from each real component's layout, and they show only where data is missing.--spacingscaledmin-h-11.Widget.tsx'sBootSurfacenote said query mode suspends onclients/meand drawsLoadingFallback. This PR made both halves false, so the note now says what the wait is.Change outline
Flow — boot and loading
The client record no longer gates the whole map form: it's read without suspense, and a gate suspends inside each drawer view instead.
Components — one loading panel organism
The loading states are a few generic shapes in one organism, shared by the boot panel and the drawer's loading state.
Behaviour — Turnstile
Contract —
docs/embedding.mdPreview
/,/gb/south-east/london,/gb/south-east/london/1817,/gb/south-east/london/1817/register, with DevTools network throttling.Contract impact
docs/embedding.mdandCHANGELOG.mdare updated. No parameter, origin, CSP, storage or Permissions-Policy change.registration.form.captcha_blocked, live in production). Its value was added totranslations.en.jsonby hand, exactly as production serves it. A fullpnpm sync:translationsisn't taken here: production no longer servescompact.open, which main's compact card still reads until feat(widget): open every embed inline; expand the map over the page #466 lands, and the sync would also pull other open PRs' keys.common.errors.captcha_blockedis marked retiring. chore(translations): drop the retired common.errors.captcha_blocked atlas key SahajCloud#1278 drops it once this deploys.lib/atlas-embed.tsand the WordPress templates read nothing that changed.Test results
check.sh: lint, typecheck,test:run): ✓pnpm build✓.pnpm size: standalone 331.2 KiB (3.6 spare), embed 332.3 KiB (2.5 spare), loader 2.9 KiB (0.2 spare). Measured byte-identical before and after the review pass, so that pass cost the eager graph nothing.use-fit-snap.loading,RegistrationForm.blocked,loading.test(routes, the places guess, statuses),ListItemSkeleton(it caught theLinkatom'sgap-1),EventListItemcard box. Also ported:Drawer.enter.Manual verification
/gb/south-east/london: the map and panel appear at once, the sheet moves at most once, and Back works throughout.cloud.sydevelopers.com/api/*: the error and Try again sit in the panel, and the map stays.…/api/atlas/challenge, open a class's Register, and wait about 40s: the form explains, Register is off, and Try again remounts the check.Notes for reviewer
organisms/Skeleton), not per-component skeletons: the components (ListItem,EventListItem,EventFacts,EventDetails,List) are back to main's shape. The calendar, the forms and the share sheet keep their header over a spinner.fallbacks.test.tsxis adapted to it. feat(widget): open every embed inline; expand the map over the page #466 and feat(widget): submit or correct a class, and opt into a mailing list #318 still touchApp.tsx,DrawerStack.tsx,fallbacks.tsx,RegistrationForm.tsxand the docs.enterInPlaceandAnimatePresence initial={false}apply in every form, so no panel slides or fades in on first open.Detail
/simplify(four lenses) and/code-review highboth ran; the pr-review-toolkit plugin isn't installed. Applied:contentswrappers;--spacingroot cause, moved into the geocoder theme;unboxedprop;CountriesHeader/SearchHeaderfrom the views: deferred, since the chrome now branches throughleadsWithGeocoderagain.EventDetailsinto an eager head and a lazy tail: deferred.BootSurfacenote the review body flagged with no thread.listRow's inert variant and therecipes' homes were both listed as dismissed above; the review pass overturned both, so those
lines are gone.
App.tsx,src/styles/,src/lib/reportandconfig/api, andagain by the review pass's
Widget.tsxandorganisms/EventDetails/. No findings — that passadded no sink, origin or trust boundary.
captcha-blockedSentry signal is gone. It reported host misconfiguration, which the console still names.🤖 Generated with Claude Code