Repository navigation
Remember mobile navigation state and swipe to dismiss panels - #2861
Conversation
|
Hi @backnotprop, I've addressed both CI failures: the browser test now uses a temporary HOME, and the DOM tests wait for the panels to finish closing. The targeted DOM and Chromium tests pass locally. Could you approve the workflow run when you have a chance? |
|
Thanks for this, and for keeping it up to date. We looked at how reviews get used on a phone, and we'd like to take part of this PR. Keep
Drop
Could you split the PR along those lines? The scroll and folder memory can go in by itself right away. For swipe-to-close, a quick flick should count as well as distance, so a short fast swipe closes the panel. Happy to help with either part. |
|
@backnotprop Thanks for looking into this, and for being open to taking part of the PR. Happy to split it so the concerns can move forward separately. The swipe gestures were what prompted me to build this in the first place. I use Plannotator on my phone, and I keep having to scroll back to the top to navigate the document, open another file, see my annotations, or send feedback. Being able to reach those actions with a swipe feels natural on mobile. I understand the concern about Safari’s Back and Forward gestures. In my own use with mobile Safari, I haven’t run into that conflict so far. Plannotator opens from the agent as a fresh instance, with no browser history, and opening other files within it doesn’t add history entries either. The Back button stays inactive in that flow. That may not cover every way people use it, but it’s the context behind the approach. My plan is to:
For context, I also have two other mobile UX changes ready on my side that I’ll submit next:
These all come from using Plannotator on my phone and trying to make the common actions easier to reach. Thanks again for working through this with me. |
Main replaced the review file lists with @pierre/trees, removed the Sections panel and turned phone review navigation into a sheet without a close button. Swipe-to-close and the slide now apply to that sheet; the Changes and All files trees keep their scroll offset, and All files its open folders, through a small tree memory instead of the old list's scroll area. Main's lazy listing refresh is kept as is.
…newly picked file, swipe checks in Chromium and WebKit
…he apps' page attribute
… wait for the sheet to arrive
…panel swipes and the HTML viewer's lost highlights ui 0.67.0 and core 0.25.35 went to npm on 2026-11-28 with package files that match the v0.29.6 tag (c21f65e), so this pair carries what merged after v0.29.6, up to v0.29.7. core 0.25.36 is additive: the linked mark "decisions" and InboxDecision.machine (backnotprop#4066), DraftFileUploader.previewUrl (backnotprop#4165), and holdingsOf no longer counting a question Mark read closed (backnotprop#4160). No exports subpath changes; nothing removed. ui 0.68.0 is a minor: Escape while an input method composes only ends the composition, and shortcuts skip such keys; holdsImeEscape is new (backnotprop#3689, backnotprop#4162). HtmlViewer treats a collapsed live Range as lost (backnotprop#4152). Compact panels: OverlayScrollArea scrollMemory, SidebarContainer closing and scrollPositions, ActionMenu compactEdgeSwipe, four new hooks and the panel rules in theme.css (backnotprop#2861). useLaunchAnnouncement waits for ready (backnotprop#4067). ui uses nothing new from core; its exact pin follows so a host gets one core. Publish core first. README and HANDOFF name the new pair, and HANDOFF adds what the published 0.25.35 / 0.67.0 already held beyond their notes (backnotprop#4114, backnotprop#4151). bun.lock is bun install's own output: the two package version lines, and six app workspace version lines (0.29.5 to 0.29.7) the release bumps left behind.
Goal
Make it easier to return to the same place on a phone in plan review, annotation and code review. Reopening navigation restores where it was left, and an open panel can be swiped shut.
Behavior
Since main moved
Main swapped the review file lists for
@pierre/trees, removed the Sections panel, and turned phone review navigation into a full sheet that opens on load and has no close button. This branch now:useTreeMemory(packages/review-editor/components/treeMemory.ts), because the trees scroll themselves;Testing
useEdgeSwipe,usePanelPresence,usePanelScrollLock,OverlayScrollAreascroll memory, and All files restoring its folders and scroll after a remount.compact-navigation-scroll.spec.tscovers plan navigation touch scrolling and restore in Chromium.