Repository navigation
fix(ui): iPhone panel, pin tap and phone framing fixes from the 6 Nov bug sweep - #369
Conversation
vaul's repositionInputs tracks the keyboard with a flag that goes out of step on iOS after the first close, so the next focus threw the sheet off the top of the screen. Leave the movement to Safari. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The strips follow a measured sheet position, and that read shifts while Safari pans the page for the keyboard. The loop parked on the panned value, which left a see-through panel across the map. Measure against a fixed origin on the same layer, so a pan cancels out. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A drag down from a list at its top scrolled the list, pulled Safari's page and dragged the sheet in turns, so the sheet shook and often failed to collapse. Claim that touch before iOS starts a native pan, and stop list overscroll chaining into the page. Co-Authored-By: Claude Opus 5.5 <[email protected]>
In landscape the page runs under the cut-out, which clipped the side panel's text on one side and covered the locate and attribution buttons on the other. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Mapbox's suggestion list lives in its own shadow root, so a scrolled list looked like one at its top and lost the drag that should scroll it back. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The pin hover handler ran on touch too. iOS sends a fake mouse move before a tap, and when that reveals content Safari treats the tap as a hover, so the first tap only showed the popover. Hover now needs a real pointer. On desktop the popover also names the class and stays inside the visible map, clear of the top edge and the side panel. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…link on its place The camera padded for the 128px peek while the phone sheet opens at 300px, so a framed place was centred on map the sheet hid: on /fr/paris the classes listed first sat under it. Pad for the open height, capped at half the box for a short embed (padding past the canvas makes fitBounds refuse the fit). A dead class link (/fr/paris/999999) left the map on the world view while the panel offered "See events in Paris". It now frames the nearest place the link names, on a not-found only. Ported from 864832d on ux/navigation, without its copy changes: the strings are owned by SahajCloud. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A class opened at the 300px snap, and the sticky Register bar took about 150px of it, so the room and address sat behind the bar; on a 375x667 phone the bar also sliced the "Next session" line in half. The class sheet now opens as tall as its content plus the bar, up to the near-full snap, and grows with it. It never opens lower than 300px, so the short loading state can't make it dip and climb again. One drag down still stops at 300px with the map and pin above, and the camera keeps the pin clear of a fitted sheet. Only the class body opts in (DrawerBody's fitSheet), so a dead class link's message keeps the usual height and the map stays in view. The fit hook is c37d640's from ux/fix-filters; the class wiring follows 5cb919b. vaul echoes every activeSnapPoint back through its setter, so the echo is ignored rather than allowed to replace the "fit" token. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The locate control used Mapbox's six-second timeout, which iOS Safari appears to count while its permission prompt is open. A visitor who took a moment to press Allow got the error dialog on top of the right results. The timeout is now 30 seconds, and a position that arrives after a reported failure closes the dialog. Ported from the Map.tsx part of 8937a31 on ux/filters. Co-Authored-By: Claude Opus 5.5 <[email protected]>
iOS Safari gives a date field an intrinsic minimum width wider than half a phone sheet, so To started where From ended and ran off the panel's edge. min-w-0 and appearance-none let both fields share the row. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
sahajatlas-design | 650526e | Nov 07 2026, 05:17 PM |
|
🤖 no session running recent dispatchesWritten by the sydevs dispatcher. Sessions never edit this comment. |
sydevs-bot
left a comment
There was a problem hiding this comment.
🧐 Adversarial review
Eight phone bugs in one PR, each named in the body. Seven are small and land where they belong. The eighth, #10, is where the diff stops matching its problem: five new pieces to open a class's sheet at its content height, when opening it at the near-full snap is one token in an effect that already branches there. Answer that first. repositionInputs: false is the other one — an iOS-only bug fixed by turning the feature off on every platform.
The embed CSP and the generated types are untouched.
Findings
- should-fix
Map.tsx:155— subscribes to the titles sliver live, against that sliver's own contract comment. - should-fix
use-fit-snap.ts:73— five pieces where a one-token snap change would do. - should-fix
Drawer.tsx:274—repositionInputs: falseon every platform, for an iOS bug. - consider
use-map-controller-real.tsx:122— camera padding stops matching the sheet at the peek. - consider
DrawerStack.tsx:812— a 0×0 fixed div wherevisualViewport.offsetTopexists. - consider no
CHANGELOG.mdentry, though a host sees the taller sheet, the popover's new name and its loss on touch, and the new framing. #363 got one for framing alone. The newenv(safe-area-inset-*)reads also need the host to setviewport-fit=cover, undocumented indocs/embedding.md.
What was checked
Profile read. Whole diff, 20 files. Ladder walked on the five new pieces. sheet-touch.ts and pin-popover.ts earn their place: iOS cancels the pointer events vaul drags from, and Mapbox's own anchor logic measures the canvas, not getPadding(). Confirmed feature.properties.id satisfies the widened EventPinCard type, and that sheet.offsetHeight is the frame height, so snapPoints stays sorted. Read fetch.ts:285-305, fallbacks.tsx:125 and DrawerStack.tsx:384 for the titles contract.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
The hover popover mounted a LIVE observer on the per-locale titles sliver, so one mouse-move over a pin could fetch every title in the locale. The sliver's own contract names cache-only reads as its only mounted observers, and the drawer's fallback chrome is the other one. The card already renders the timing alone while no title is known, so a cold cache costs the class name on that one hover and nothing else. Every view that needs titles loads them through `getRegion` or `filteredFeed`. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjVj42ig3yV1nTyhvYJ
The flag was off for every drawer, every direction and every platform, for a bug seen only in iOS Safari. Everywhere else a software keyboard shrinks the visual viewport and vaul's repositioning is what lifts a focused field clear of it; nothing added here replaces that, and a focused Register field was never checked on Android Chrome. `isIOSPlatform` is split from the navigator read so the platform table is testable in the node lane. `navigator.platform` is deprecated and still the only reliable source: an iPad's user-agent says Mac OS X, and vaul's own platform helpers read the same field without exporting any of them. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjVj42ig3yV1nTyhvYJ
Bottom padding reserved the 300px open snap whenever the layout was narrow, including at the 80px peek — so a frame taken while the sheet was collapsed pushed its content into the top half of a map that was almost entirely visible. `DrawerStack` now resolves its active snap to what the sheet covers and publishes that for every view, not only a class's. The near-full snap deliberately still reports the open snap: the pin is hidden there whatever the camera does, so the framing serves the third-height stop one drag below. `MIN_MAP_STRIP_PX` is now the only bound. It subsumes the half-the-box share, which existed for the same reason — keeping the padding inside a short contained embed, where padding past the canvas makes `fitBounds` refuse the fit. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjVj42ig3yV1nTyhvYJ
A host can see the taller class sheet, the pin popover's new name and its loss on touch, the new framing and the longer locate wait, so the integrator guide and the changelog owe an entry in the same PR. The safe-area insets are the one part that needs the host to act: `env(safe-area-inset-*)` reads zero unless their viewport meta tag carries `viewport-fit=cover`, and opting in runs the whole page under the cut-out, so it is theirs to decide. Prettier is left unrun on `docs/embedding.md`: it was already dirty on this branch and a full pass reflows tables this change never touched. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjVj42ig3yV1nTyhvYJ
…nput The store list said six while this branch added a seventh, and the mapbox rule said map padding is never a DOM measurement while the bottom sheet's height had become one. Both read as settled rules, so a later author trusts them. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjVj42ig3yV1nTyhvYJ
|
All five critic threads answered and resolved. Adopted — titles sliver read cache-only, so the contract holds (3134d2c); Rebutted — one-token snap: 0.97 covers the pin this PR keeps visible. Joined — the changelog and Lean gate green at 1917 tests. Build and size pass: embed 327.7 / 330 KiB. Security sweep clean. 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
Both sides kept in the five overlapping files: the two new stores (useSheetCover, useBrowsedCountry) and their entries in the state rule, both CHANGELOG entries, and in the drawer's error fallback both the dead-link framing and #371's not-found chrome. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Merged Four were add/add, both sides kept: the two store slices (
Nothing Lean gate passes on the merge: lint, typecheck, 1941 unit tests. 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
|
I could not merge the relay here, so this is the step left for you.
🤖 sydevs dispatcher |
… zoom Map.tsx was the one conflict: #369 gates hover on a real pointer and this branch adds the minimum zoom. Both kept — onLoad still arms the reveal and sets the minimum zoom, and onMouseMove is hover-only on a real pointer. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The merge queue run for this PR failed typecheck:
src/components/organisms/Mapbox/Map.tsx(375,9): error TS2451:
Cannot redeclare block-scoped variable 'hasRealPointer'.
#369 and #370 each added the same `useHasRealPointer()` line to Map.tsx,
and the two squash merges landed both copies. The defect is on `main`, not
in this PR's contract re-sync — but it blocks this PR's queue run, so it is
fixed here.
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjVzTVJHHfMJtaFncMp
Brings main's 14 commits (#363-#380) into the combined review build. Non-obvious resolutions: - Clock rule (#380): an in-person time names the venue's clock only when the viewer's differs, an online time always. Replaces the proposals' "every time names its clock". The calendar's TimesNote now says main's one sentence (calendar.times_note), only when an online class is listed, kept above the grid and the week list; its times_city/times_local/times_online keys are gone. Add-a-class Check still spells out the inferred clock once, now added there itself. - Camera padding (#369): the proposals' useClassSheet stays and now reports the peek while the sheet is collapsed; main's useSheetCover, fitSheet marker and fit-snap rewrite are dropped for the proposals' own fit-snap. - World view (#370): world copies back on with main's minZoom, per its Pacific-wrap fix, under the proposals' map controls. - Place search (#371): the proposals' "search all countries" button stays; main's ?cc / browsed-country fallback, per-query release and "couldn't find that place" line are ported into it. - Ancestry (#371): placedPathname/placePathsOf live once, in navigation.ts; DrawerStack's stack follows the region tree. - Deep links to placeless events frame their region (#363), via useFrameEventOnTop, which skips contact-only listings. - Kept proposal designs over main's: registration confirmation, Add to calendar list, consent link, GeolocationSuggestion placement, filter tags in ListToolbar, map control column. Main's failure copy (#365), autofill, by-request type label (#370) and dead-place header (#371) are ported in. - streetAndCity: the proposals' version, now accent-blind as main's is. - Width pin for the per-edit hook ratcheted 20 -> 21 (both sides added one spec). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Summary
This is the first of three PRs for the bugs in
atlas-current-bugs-2026-11-06.md, the 6 November check of the live site. It covers the bugs that show up on phones: the panel and the keyboard, the first tap on a pin, and what the map shows above the phone panel. The numbers below are the report's.repositionInputsis off on iOS, so there only Safari moves the page for the keyboard; the peek strips read the sheet's top against a fixed originux/ios-sheet-keyboard(cherry-picked)touchmovefrom a list at its top goes to the sheet (sheet-touch.ts), plusoverscroll-y-noneon the bodyux/ios-sheet-keyboardux/ios-sheet-keyboardpin-popover.ts)9f90041(cherry-picked)864832d, without its copy changesuse-fit-snap.tsfromc37d640, wiring after5cb919bMap.tsxpart of8937a31min-w-0 appearance-noneon the date inputsNot included: #36, the back swipe from the left edge moving the map. It was only seen in the Simulator, and the report says to try it on a real iPhone before fixing it.
The proposal branches are built on the type-scale and layout proposals, so only the
ux/ios-sheet-keyboardcommits and9f90041were cherry-picked whole. The rest was ported by hand ontomain, with no proposal styling and no copy changes, since SahajCloud owns the strings.CHANGELOG.mdcarries them. The safe-area insets of fix(ui): follow-up fixes for the nested-drawer navigation UI #35 are the one part needing the host to act —env(safe-area-inset-*)reads zero unless their viewport meta tag carriesviewport-fit=cover— sodocs/embedding.md§ Sizing the element says so.Checked
pnpm buildandpnpm sizepass too: embed 327.7 / 330 KiB, standalone 325.9 / 330 KiB./gb/south-east/london/balham-library/717opens near full at both sizes. Room and address end at 215px and 226px, above the Register bar at 717px and 540px. Opened from the London list, the sheet rises from 300px to near full. A drag down stops at 300px and stays there./fr/parisshows the 15e cluster above the sheet./fr/paris/999999frames Paris, and its message keeps the 300px sheet.min-width: 0andappearance: none, side by side at 16–191px and 199–374px. The overlap itself only happens in iOS Safari.Not checked on a device
These ship without a device check. Try them on an iPhone after merge:
🤖 Generated with Claude Code