Skip to content

fix(ui): iPhone panel, pin tap and phone framing fixes from the 6 Nov bug sweep - #369

Merged
Ardnived merged 17 commits into
mainfrom
fix/iphone-panel-touch
Nov 7, 2026
Merged

Ardnived merged 17 commits into
mainfrom
fix/iphone-panel-touch

Conversation

@Ardnived

@Ardnived Ardnived commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

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.

# Bug Fix Source
2, 16 iPhone: tapping a sign-up field hides the form; a see-through ghost panel stays after the keyboard closes vaul's repositionInputs is off on iOS, so there only Safari moves the page for the keyboard; the peek strips read the sheet's top against a fixed origin ux/ios-sheet-keyboard (cherry-picked)
17 iPhone: dragging the panel down from its list shakes, and Safari pulls the page The first downward touchmove from a list at its top goes to the sheet (sheet-touch.ts), plus overscroll-y-none on the body ux/ios-sheet-keyboard
35 iPhone held sideways: the camera cut-out covers the panel or the locate button Safe-area insets on the left panel, the peek strips, and Mapbox's right-hand controls ux/ios-sheet-keyboard
3 The first tap on a pin only shows the time The hover popover is wired only on a real pointer. On desktop it names the class and stays inside the visible map (pin-popover.ts) 9f90041 (cherry-picked)
9 Phones: a place's first classes sit under the panel; a dead class link shows the whole world Camera padding follows the sheet's active snap, not the 128px peek. A not-found frames the nearest place the link names ported from 864832d, without its copy changes
10 Phones: the Register bar hides a class's address, and cuts a line in half on small phones A class's sheet opens as tall as its content, up to near full and never below 300px. Only the class body opts in use-fit-snap.ts from c37d640, wiring after 5cb919b
18 Allowing location late shows "Location not available" over the right results The locate timeout goes from 6s to 30s, and a late position closes the error Map.tsx part of 8937a31
19 iPhone: the From and To date filters overlap min-w-0 appearance-none on the date inputs new

Not 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-keyboard commits and 9f90041 were cherry-picked whole. The rest was ported by hand onto main, with no proposal styling and no copy changes, since SahajCloud owns the strings.

  • The host-facing contract is updated too, which the report's bugs did not list: a host can see the taller class sheet, the popover's class name and its loss on touch, the new framing and the longer locate wait, so CHANGELOG.md carries 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 carries viewport-fit=cover — so docs/embedding.md § Sizing the element says so.

Checked

Not checked on a device

These ship without a device check. Try them on an iPhone after merge:

🤖 Generated with Claude Code

antontcymbal and others added 11 commits November 6, 2026 17:12
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]>
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]>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
sahajatlas-design 650526e Nov 07 2026, 05:17 PM

@Ardnived
Ardnived marked this pull request as ready for review November 7, 2026 01:39
@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 7, 2026
@sydevs-bot

sydevs-bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

🤖 no session running

recent dispatches
  • 17:13Z resolve-conflicts · attempt 1 · session · done
  • 17:13Z resolve-conflicts · attempt 1 · session
  • 01:48Z address-review · attempt 1 · session · done
  • 01:48Z address-review · attempt 1 · session
  • 01:39Z review-pr · attempt 1 · session · done

Written by the sydevs dispatcher. Sessions never edit this comment.

@sydevs-bot sydevs-bot moved this from Awaiting to Working in SYDevelopers Technical Roadmap Nov 7, 2026

@sydevs-bot sydevs-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧐 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: false on 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 where visualViewport.offsetTop exists.
  • consider no CHANGELOG.md entry, 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 new env(safe-area-inset-*) reads also need the host to set viewport-fit=cover, undocumented in docs/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

Comment thread src/components/organisms/Mapbox/Map.tsx Resolved
Comment thread src/views/DrawerStack/use-fit-snap.ts Resolved
Comment thread src/components/atoms/Drawer/Drawer.tsx Resolved
Comment thread src/hooks/use-map-controller-real.tsx Resolved
Comment thread src/views/DrawerStack/DrawerStack.tsx Resolved
@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 7, 2026
@sydevs-bot sydevs-bot moved this from Working to Pending in SYDevelopers Technical Roadmap Nov 7, 2026
@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 7, 2026
@sydevs-bot sydevs-bot moved this from Pending to Working in SYDevelopers Technical Roadmap Nov 7, 2026
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
@sydevs-bot

Copy link
Copy Markdown
Contributor

All five critic threads answered and resolved.

Adopted — titles sliver read cache-only, so the contract holds (3134d2c); repositionInputs off on iOS alone, and no, Android Chrome was never checked (f249121); camera padding follows the sheet's active snap, so a collapsed sheet reserves 80px (c69227e).

Rebutted — one-token snap: 0.97 covers the pin this PR keeps visible. offsetTop: vaul reads .height, and inside a frame the origin needed is the frame's own top.

Joined — the changelog and docs/embedding.md entry the review's sixth point asked for, plus the store list and the mapbox padding rule this branch had made false.

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

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 7, 2026
@sydevs-bot sydevs-bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 7, 2026
@sydevs-bot
sydevs-bot enabled auto-merge November 7, 2026 02:11
@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 7, 2026
@sydevs-bot sydevs-bot moved this from Awaiting to Working in SYDevelopers Technical Roadmap Nov 7, 2026
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]>
@sydevs-bot

Copy link
Copy Markdown
Contributor

Merged main in. #371 had landed and touched five of the same files.

Four were add/add, both sides kept: the two store slices (useSheetCover, useBrowsedCountry) under one merged import, both store bullets in the state rules — the count there is now nine — and both changelog entry sets.

src/views/fallbacks.tsx held the only real choice. Both sides branch on a not-found: this PR frames the nearest region the link names, #371 hides the region-scoped header buttons because nothing can be scoped to a place that doesn't exist. Camera and chrome are orthogonal, so both now run off one predicate.

Nothing main removed was something this PR extends, so no hunk needs a second reading.

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

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 7, 2026
@sydevs-bot

Copy link
Copy Markdown
Contributor

I could not merge the relay here, so this is the step left for you.

  • merge the relay — GitHub said: claude/relay-369-8f98fa4 conflicts with fix/iphone-panel-touch: Merge conflict - https://docs.github.com/rest/branches/branches#merge-a-branch

🤖 sydevs dispatcher

@sydevs-bot sydevs-bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 7, 2026
@Ardnived
Ardnived merged commit 70990fd into main Nov 7, 2026
17 checks passed
@Ardnived
Ardnived deleted the fix/iphone-panel-touch branch November 7, 2026 21:12
@sydevs-bot sydevs-bot moved this from Awaiting to Done in SYDevelopers Technical Roadmap Nov 7, 2026
Ardnived added a commit that referenced this pull request Nov 7, 2026
… 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]>
sydevs-bot added a commit that referenced this pull request Nov 7, 2026
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
antontcymbal added a commit that referenced this pull request Nov 10, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

4 participants