Swipe gestures on rows everywhere: research, then grill #400
Closed
opened 2026-10-15 03:55:20 +00:00 by kayg
·
9 comments
No Branch/Tag specified
main
port/tasks-float-2
fix/train-1116-2
fix/train-1116-3
fix/train-1116-1
fix/flake-1134
fix/server-1182
dev
port/notes-float-3c
docs/auto-update-ig
feat/dav-transport
port/tasks-float-1
wip/mail1011-sv-order-1116
fix/flake-1179
fix/flake-1178
fix/guards-1153-fsio-split
fix/guards-1153-notes-split-we
fix/guards-1153-notes-lib
fix/guards-1153-notes-home
fix/guards-1153-ui-primitives
fix/guards-1153-primitives-e2e
fix/guards-1153-visibility-doc
feat/paper-grey-1116
fix/flake-1165
fix/flake-1119
docs/imap-766-plan-v2
fix/e2e-unique-ports
t3/paged-search-reconcile-final
wip/mail1011-final-1115
docs/tasks-float-port
perf/editor-first-paint-1c
feat/imap-notes-fetch
feat/imap-notes-projection
feat/imap-notes-readonly
feat/imap-notes-auth
feat/imap-notes-server-foundation
wip/mail1011-txn-ownvocab-1115
wip/mail1011-txn-novocab-1115
perf/p1117-final-harness
perf/single-shot-repeats
port/tasks-matrix
wip/mail1011-txn-1115
fix/static-gates-1155
feat/files-s1-identity-r7
fix/files-r7-idle-loop
fix/daily-train-1152
port/notes-float
fix/editor-tables-test-types
port/notes-float-listscript
feat/tasks-actions
port/notes-float-phone-preload
perf/sound-comparator
port/notes-float-listscroll
port/notes-float-budgets
port/notes-float-suite-fix-b
port/notes-float-sidebar-fix
port/notes-float-trim
port/notes-float-3-lists
fix/attachments-meta-capability
docs/carddav-writes-v2-plan
feat/contacts-companion-pure
issue/carddav-read-perf-fix-r2
issue/carddav-read-r2
port/notes-float-devsync2
review/calendar-2
review/switcher-a-pills
port/notes-float-switcher-a
port/port-tables-2
review/switcher-ends
wip/whiteboard-s1-1114
port/port-tables
wip/mail1011-perfneutral
review/photo-tint
port/notes-float-shell
wip/local/collections-db
wip/local/mail-p1
wip/local/cold-growth-on-tiering
wip/local/tiering-v3-s1
wip/local/wal1051-cap
wip/local/tiering-v3-s1-resume
wip/local/index-position-startup-scan
port/notes-float-flat
port/notes-float-promote
wip/handover/mail1011-candidate
wip/handover/files-s1-candidate
port/notes-float-shell-only
port/notes-float-perf
feat/whiteboard-s1
feat/tiering-v5
fix/app-switch-hitch
wip/local/files-s1-dev-v4-final
feat/files-s1-dev-v4
fix/c2-glass-shared
feat/flat-lists
wip/handover/whiteboard-s1-resume
wip/att-lazy-861
feat/switcher-browse
wip/att-lazy-860
feat/tasks-float
recovered/flat-backup-candidate
perf/stalls-1054-kc
land/ai-toolbar
feat/collections-db
feat/collections-db-fixes
codex/mail-1011-redesign-20261111
fix/ai-toolbar
backup/macos-vm/st3-head
perf/trim-candidate-phonestack
feat/switcher-three
fix/1051-index-idle-checkpoint
perf/stalls-1054-kb
perf/stalls-1054-k
perf/stalls-1054-r3
fix/c2-contrast-tail
perf/stalls-1054-r3-preview
feat/collections-before
feat/tiering-v4
fix/timelog-caret
wip/local/tasks-actions
docs/tasks-writes-v2-plan
st3-r3
feat/pass8
review/calendar-2-before-1111
wip/tiering-v3-cold4
perf/stalls-1054-r2
fix/suite-A4
fix/suite-A5-probe
fix/suite-A6
fix/suite-A3
fix/suite-A2
fix/suite-A5
fix/suite-A1
wip/local/attachments-861-fix
feat/contrast
wip/local/ports-861
storage/wal-checkpoint-off-save-1051
wip/local/mail-1011-reconcile-20261110
feat/style-sheet-fixes
feat/money-round
perf/stalls-1054
wip/tiering-v3-cold5
t3/mail-1011-liveness
feat/iphone-fixes
feat/notes-approve
wip/local/shrow-work
feat/files-s1-identity
feat/quickfix
wip/tiering-v3-cold
wip/local/shared-row-swipes
backup/macos-vm/pfx-B
backup/macos-vm/pfx-C
backup/macos-vm/pfx-D
feat/contrast-r1
feat/tiering-v3-s2-tags
feat/folder-drop
t3/photos-s1
feat/tiering-v3-s1-namespace
wip/local/photos-s1
t3/photos-plan-slice-one
recovered/backup/p1b-61505
t3/paged-search-reconcile
t3/smooth-pane-transitions
t3/index-position-startup-scan
fix/private-staging-759b-r2
backup/macos-vm/hk/hk1009/pr877
backup/macos-vm/hk/hk1009/pr878
docs/undo-block-ids-plan
fix/undo-768
backup/macos-vm/hk/hk1009/pr875
backup/macos-vm/hk/hk1009/pr904
proto/block-identity-v7d
backup/macos-vm/hk/hk1009/pr846
backup/macos-vm/hk/hk1009/pr860
backup/macos-vm/hk/hk1009/pr861
backup/macos-vm/hk/hk1009/pr849
backup/macos-vm/hk/hk1009/pr848
backup/macos-vm/hk/hk1009/pr853
backup/macos-vm/hk/hk1009/pr957
backup/macos-vm/hk/hk1009/pr893
backup/macos-vm/hk/hk1009/pr889
backup/macos-vm/hk/hk1009/pr902
docs/imap-notes-plan
docs/quota-plan-2
fix/parallel-test-flakes
docs/calendar-backend-v2-plan
feat/calendar-ical-converter
backup/macos-vm/hk/hk1009/pr808
docs/contacts-import-v2-plan
issue/610-pm-midnight
feat/calendar-v2-s1-containment
backup/macos-vm/hk/hk1009/pr854
backup/macos-vm/hk/hk1009/pr845
backup/macos-vm/hk/hk1009/pr917
docs/dav-recorder-v2-plan
plan/previews-865
plan/save-log-durable-entry
backup/macos-vm/hk/hk1009/pr934
fix/e2e-data-on-ram
backup/macos-vm/hk/hk1009/pr888
feat/appwindow3
feat/appwindow2
feat/appwindow
feat/money-p1
feat/keys-sheet
review/calendar-2-themes
feat/smooth-cursor
fix/float-style
review/calendar-2-float
release/2026-11-06-hotfix
archive/port/rows-drop-code
archive/port/rows-actions
archive/port/rows
scratch/tasks-894-ui-gates
review/calendar-2-night-wip
recovered/flaky/toast-reduced
release/2026-11-05
archive/flaky/rows-drop-fixed
archive/flaky/rows-actions
archive/flaky/rows
sim/bm15-final
sim/bm15-bis-932
sim/bm15-bis-909
sim/bm15
sim/bm15-bis-887
perf/tiering-option-b
fix/sw-lazy-precache
archive/plan/save-log-durable-entry
mock/money-fix2
archive/fix/e2e-data-on-ram
mock/appearance-all
mock/pill-press
mock/pill-press-mac
backup/macos-vm/appearance-after
mock/auto-swipes
mock/mail-actions
backup/macos-vm/mock/mail-actions
mock/money-static
archive/review/standards-917
perf/tiering-761-fix
mock/type-audit
mock/third-pane
feat/contacts-import-v2-s1
perf/executor-hot-path
archive/port/hidden-blocks
archive/port/devices
scratch/executor-on-894
scratch/executor-spans2
scratch/executor-spans
archive/port/rows-drop
feat/tiering-761-d-scale
feat/tiering-761-c-index
feat/tiering-761-b-reader
archive/review/sharing-pr3-review-9fec3d1f
perf/ports-lazy-budgets
feat/tiering-761-a-migration
archive/review/sharing-pr3-review
archive/review/sharing-pr3-review-code
archive/plan/previews-865
archive/port/port-attachments-3
archive/port/contacts-merge
fix/motion-audit-859
fix/motion-audit-859-mac
archive/port/port-pickers
archive/port/port-tables-2
archive/port/port-tables
recovered/local/sharing-s1-pr2-room-snapshot-candidate
archive/fix/parallel-test-flakes-code-minipc01
docs/imap-766-readonly-slice
feat/dav-recorder-v3
research/788-diagnosis
archive/fix/parallel-test-flakes
archive/perf/pr792-cold-index-edit
docs/sharing-slice-1
recovered/feat/dav-recorder-v2
recovered/feat/dav-recorder-v2-edd7bbb
spike/imap-766-s0-cases
archive/fix/undo-768
recovered/feat/dav-recorder
recovered/feat/dav-recorder-901acd4
feat/contacts-import
perf/cold-growth-on-764
perf/cold-growth-on-tiering
recovered/feat/tasks-set-status
feat/tasks-move-reorder
feat/tasks-delete-promote-duplicate
feat/carddav-writes
perf/quota-on-tiering
perf/quota-simple
perf/cold-growth-on-quota-stack
recovered/perf/cold-growth-on-tiering
feat/calendar-identity
feat/calendar-event-parser
feat/calendar-props-maps
port/glass-when-ring
recovered/feat/tiering-761-s1-wip-8132a84
recovered/feat/tiering-761-s1-wip-9da4094
recovered/feat/tiering-761-s1-wip-724512c
recovered/feat/tiering-761-s1-wip-66e667e
recovered/feat/tiering-761-s1
wip/6by32-01-tier-761-s1-pause-20261030
spike/imap-766-s0
wip/6by32-02-calternal-pause-20261030
wip/8by64-01-review-688-pause-20261030
wip/6by32-01-verify-744-pause-20261030
wip/6by32-01-verify-742-pause-20261030
fix/private-staging-759b
wip/6by32-01-review-748-pause-20261030
wip/6by32-01-review-733c-pause-20261030
wip/6by32-01-review-733b-pause-20261030
review/calendar-month
wip/local/bm15-trash
plan/759b-staging
review/767b-tests
review/preview-2026-10-29
docs/tiering-731-plan
wip/c6b02-review-733d
wip/c6b02-bm1-full-a
docs/deploy-plan
fix/storage-owner-liveness-642
fix/storage-fix-7
feat/tiering-731
wip/tiering-731-first-attempt
perf/idle-honest-2
fix/storage-private-tmp-642-dev
fix/storage-exact-file-quarantine-642
perf/one-flush-save
review/calendar-static
review/indexing-ring
review/when-field-2
proto/block-identity-2-review
proto/block-identity-review
review/when-field
issue/tasks-create-ids
issue/tasks-create
review/combined
review/task-polish
review/top-buttons
review/q1-q5
archive/integ325-293
archive/integ325-ci
issue/calendar-adr
archive/old/train/2026-10-23bk2
archive/old/train/2026-10-23bk
issue/469-mockup-9a
issue/smart-tasks-mockup
issue/469-menus
issue/652-signout-flake
issue/652-history-fix7
issue/652-history-fix6
archive/old/issue/spring-check-perf
issue/spring-check-perf
issue/659-rename-fast
archive/old/train/2026-10-21ar
issue/search-hardening-3
issue/652-history-fix5
issue/660-port-sheets-glass
issue/652-history-fix4
issue/652-history-fix3
issue/652-history-fix2
issue/652-history-flake
train/2026-10-21an
issue/settings-admin-port
issue/search-port
train/2026-10-20am
issue/storage-split-fix2
issue/storage-split
archive/old/issue/folder-ids-fix
train/2026-10-20al
archive/old/issue/folder-ids
train/2026-10-20ak
issue/tables-mockup
train/2026-10-19aj
train/2026-10-19ai
issue/469-merge-fixes
issue/sidebar-band
archive/old/issue/608-settings-spec
train/2026-10-19ah
issue/swipe-offscreen
train/2026-10-19ag
archive/old/issue/590-nlp-adr
archive/old/issue/587-event-after-write-2
train/2026-10-19af
archive/old/issue/587-event-after-write
issue/469-pill-room-c
issue/469-pill-room
train/2026-10-19ae
issue/469-narrow-handle
issue/397-ios-swipe-2
issue/469-desk-fixes
archive/old/issue/auto-update-adr
issue/469-filter-gap
issue/469-port-1b
issue/442-opacity-flake
issue/327-web-fast-3
archive/old/issue/469-port-1
issue/469-port-1
issue/327-web-fast-2
archive/old/issue/327-web-fast
archive/old/issue/425-stt-bench-vq1
archive/old/issue/445-no-bleed
archive/old/issue/400-swipe-mockup-2
issue/426-client-review
issue/426-client-2
issue/426-client
archive/old/issue/476-safe-area-lab
archive/old/issue/445-top-light
issue/471-blocks-mockup
archive/old/issue/448-links-app-2
archive/old/issue/448-links-app
archive/old/issue/398-cold-links
issue/434-442-small-2
issue/434-442-small
archive/old/issue/398-unload
archive/old/issue/445-bottom-band
issue/445-bottom-band
issue/351-rem-3
issue/351-rem-2
issue/351-rem
archive/old/issue/327-first-note
issue/395-width-phone
archive/old/issue/327-typing
issue/396-ios-edges
issue/397-ios-swipe
archive/old/issue/327-notes-index
issue/345-347-contrast-empty-2
archive/old/issue/44-arenas
issue/44-arenas
archive/integ325
archive/old/issue/327-perf-harness
archive/old/issue/44-thp
issue/44-thp
archive/old/issue/285-sticky-pills
archive/old/issue/44-trim-3
issue/44-trim-3
archive/old/issue/165-cards
archive/old/issue/165-picker-2
archive/old/issue/212-multi-select
No results found.
Labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
kayg/calternal#400
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
kayg, 2026-10-15: "I feel like each search row should have its swipe actions so that I could just insert the link of that item into the place the cursor right now is, or I could copy the link to that item, or I could just open the link. So I would love if sidebar included, or the middle pane included, things generally having swipe gestures. So I believe what I'm saying is that swipe gestures, the UX needs to be researched and it needs another grill."
Scope: one swipe-gesture system for rows everywhere (search results, the note list / middle pane, the sidebar or Places, Trash, maybe tags). It also has to live alongside block swipe-select in the editor (#397, G1–G6) and the browser and iOS back-swipe from the left edge.
Research (cite sources): the iOS Mail/Reminders/Things swipe conventions (leading versus trailing, full-swipe commits the first action, haptics, rubber-banding, reveal widths), Android Material swipe; how web apps do it on iOS Safari without fighting scroll or the edge back gesture (touch-action, thresholds, velocity); accessibility (every swipe action must also be reachable by long press or a ⋯ menu, and by keyboard on desktop); desktop equivalents (hover actions, right-click).
Then draft a numbered grill with recommended answers for kayg, and after that a mockup on preview.
Research: swipe actions on rows
Reference products are named in these notes only, never in the UI.
1. What the platforms do
swipeActions, Use Your Loaf, UIKitperformsFirstActionWithFullSwipe.2. Numbers that work, from web libraries
item-slidingswipeoutSources: item-sliding.tsx, swipeout.js, react-swipeable-list.
Our own numbers already line up. PhoneStack's back swipe only starts within 24px of the edge.
touch.tsusesBACK_EDGE = 24and decides a swipe at 10px. #397's new claim is ≥10px sideways, more than 2× the vertical movement, within 300ms.3. iOS Safari specifics
touch-action: pan-yis not enough on iOS. When the page doesn't scroll sideways, a touch that starts horizontally can still turn into a vertical scroll (WebKit 232545, open since 2021). A pointer stream also getspointercancelas soon as Safari decides to scroll. So rows need a non-passivetouchmovethat callspreventDefault()once the axis is locked sideways. This is the #397 finding: only the firsttouchmovegets a vote (WebPageProxy.cpp). We can still use Pointer Events for mouse and pen, and Touch Events for fingers on iOS.user-select: noneso a drag doesn't select its title. And long-press on an<a>or image starts a native drag or callout: #399 has a screenshot of a drag ghost over search rows.-webkit-touch-callout: noneplusdraggable="false"usually helps, but has been reported ignored on iOS 26.1 (Apple forums). The reliable fix is a non-passivetouchstartthat only callspreventDefaulton rows that have a long-press of their own (WebKit 231161). It must also keep taps working.navigator.vibrate. The workaround clicks the<label>of a hidden<input type=checkbox switch>, which plays the system switch tick (Safari 18+). WebKit then limited this to user activation (WebKit 285120). Sources: ios-haptics, Ionic #29942, azukiazusa. Atouchmoveis not user activation, so we can't tick at the moment a full swipe crosses its threshold, which is the moment that matters. At best we could tick on release. One tester reports that iOS 26.5 closed it entirely (rapidtoolset, unverified). Android hasnavigator.vibrate.transform: translate3don the row's content, no layout reads per frame. Action widths are fixed in CSS, so there's nothing to measure. One row is open at a time. Any scroll, tap elsewhere or new swipe closes it. The note list is virtual (NoteList.svelte), so the open state is keyed by note id and dropped when the row unmounts.4. Accessibility and desktop
aria-actionsis proposed for ARIA 1.3. Firefox and Chrome 151 ship it, and Safari has it behind a flag; it has only been tested with macOS VoiceOver (azukiazusa, Aug 2026, ARIA minutes 2026-01). Cheap to add now (it points at the row's action buttons), but it can't be the only route.noteMenu,sidebarMenu) but no ⋯ and no touch route to them, apart from the sidebar's press-drag and search r3's long-press preview. On phones, the note list's actions can't be reached at all except by the native long-presscontextmenu, which is unreliable on iOS.open(Enter) andlink(⌘Enter inserts the link). Swipes don't exist on desktop, and keyboard actions never animate.Inventory: rows and proposed actions
Leading means swipe right, revealed from the left. Trailing means swipe left. Full is what a full swipe commits.
search/ResultRow.svelteNoteList.svelte:196noteMenuSidebar.svelte:170Sidebar.svelte:176TrashList.svelte:66NotePicker,TagPicker,PaletteInfoSheet.svelte:146/161packages/editor/src/blocks/touch.tsRows 1, 2, 4, 5 and 7 should all use one
rowActionsregistry. Each plugin adds{id, label, icon, tone: accent|plain|danger, side, full?, when(row), run(row), key?}for a row kind (note,search:<provider>,tag,trash, …). The same list builds the swipe tray, the ⋯ and right-click menu, the long-press menu, the shortcut map andaria-actions. That replaces the hand-writtennoteMenu/sidebarMenubuilders for rows. Today the palette'sACTIONSand the menus aren't shared.Grill for kayg
Recommended: search results, the note list, Trash and unlinked mentions. Not the sidebar, the pickers or settings.
Why: the sidebar is navigation with a press-drag already, and its few actions (rename, reorder) are rare enough for ⋯.
Recommended: yes. It only appears when a note is open behind search. After inserting, search stays open with a small "Linked" confirmation, so you can link several in a row.
Why: it's the action you asked for first, and it's what ⌘Enter does on desktop.
Recommended: yes. A full swipe left copies.
Why: Open as a swipe would only repeat the tap. Copy needs no confirmation and can't hurt.
Recommended: yes.
Why: this matches what people's thumbs already expect in mail and to-do apps. Delete only moves the note to Trash, and the Undo toast covers mistakes, so no confirmation is needed.
Recommended: never. In Trash, swipe left shows "Delete forever", which needs a tap and then confirms in place. A full swipe there only opens the tray.
Why: it's the only action that can't be undone.
Recommended: at most one leading, and at most two trailing plus ⋯. Each button is a fixed 72px icon with a label, on the accent, plain or danger color, never a gradient.
Why: fixed widths mean nothing is measured while the finger moves. More than three buttons won't fit a 390px row.
Recommended: the row follows your finger 1:1. Past the buttons it stretches with resistance (×0.55). When you cross the full-swipe point, the first button grows to fill the row with a small spring "detent". On release, a spring settles it open or closed, and it opens if past half the tray or flicked faster than 0.3 px/ms. Keyboard and menu actions run with no animation.
Why: this is springy and in place without a per-frame layout read, and it matches what native rows feel like.
Recommended: none on iPhone for now, with a visual detent instead. Use
navigator.vibrate(8)on Android only.Why: iOS Safari can only tick from a tap or release, never at the threshold mid-swipe. The workaround is a hack Apple has already narrowed, and may have closed in 26.5.
Recommended:
Why: one rule everywhere means rows, blocks and back never argue.
Recommended: on search results, the preview card (#271) with the same actions listed under it. On note-list rows, the same card. Never the browser's own drag or callout.
Why: one hold gesture, everywhere, gives the touch route to every swipe action (WCAG 2.5.1), and it fixes the drag ghost in #399.
Recommended: on desktop, show ⋯ on hover and on the focused row. On phones, no permanent ⋯. The swipe tray's last button is ⋯, and long-press opens the same actions.
Why: this keeps rows quiet ("no machinery") while every action stays reachable.
Recommended:
All of these come from the same registry, so a plugin's action gets a shortcut for free.
Why: desktop gets the same actions with no gesture, and they don't animate.
kayg's grill answers, 2026-10-15:
Open questions W13–W16 are in chat: what Archive and Hide mean, search's left-to-right set, where Pin goes, and how many buttons fit at 320.
kayg's grill answers, 2026-10-15 (Archive and Hide):
archived: trueandhidden: true.<!-- hidden -->marker, kept separate from the block id so links don't break. Make sure it doesn't break our renderer: the editor must neither show nor mangle the comment, and must round-trip it losslessly.kayg, 2026-10-15 (W22): agreed. 'Hidden' means decluttering, not protection, so the UI always says Hide, never Private or Lock. Truly protected notes (encrypted, unlocked with a passkey) are a separate feature, to be grilled alongside sharing in #409.
Mockup: swipe actions on rows (PR #433)
Try it: on a phone, https://preview.calternal.cloud/swipe.html#/list/all (the note list), the sidebar, search with a note open and the Trash. On a desktop: https://preview.calternal.cloud/swipe.html#/note/calternal-rewrite?list=all. Rows also drag with a mouse there, so you can feel the motion. It's a new page, so the other mockups are untouched (backup
site.bak-400-202610151309).What it does
<!-- hidden -->.Still open: try them from the Mockup pill (top right on a phone)
&slead=insert&pin=swipe&open=tapFrame strip: a long swipe left to delete (390, real touch)
The finger at −12 … −240 px, then crossing the long-swipe point (the tile grows into the bar), then let go, with the spring frozen and stepped through at +0 to +260 ms, and the list closing the gap.

390 wide
Notes, light: rest · left → right mid-swipe · left → right open · right → left mid-swipe · long-swipe detent · deleted, with Undo · long-press card



Archive and the sidebar, light: right → left open · the Archive place appears · long swipe to Unarchive · "archived" in search · a tag, right → left · a place, left → right
Search and the Trash, light: left → right mid-swipe · long swipe (Copy link) · long-press card with Show hidden items · Trash, right → left open · Delete forever asks Confirm
Notes, dark: rest · left → right mid-swipe · left → right open · right → left mid-swipe · long-swipe detent · deleted, with Undo · long-press card



Archive and the sidebar, dark: right → left open · the Archive place appears · long swipe to Unarchive · "archived" in search · a tag, right → left · a place, left → right
Search and the Trash, dark: left → right mid-swipe · long swipe (Copy link) · long-press card with Show hidden items · Trash, right → left open · Delete forever asks Confirm
375 wide
Notes, light: rest · left → right mid-swipe · left → right open · right → left mid-swipe · long-swipe detent · deleted, with Undo · long-press card



Archive and the sidebar, light: right → left open · the Archive place appears · long swipe to Unarchive · "archived" in search · a tag, right → left · a place, left → right
Search and the Trash, light: left → right mid-swipe · long swipe (Copy link) · long-press card with Show hidden items · Trash, right → left open · Delete forever asks Confirm
Notes, dark: rest · left → right mid-swipe · left → right open · right → left mid-swipe · long-swipe detent · deleted, with Undo · long-press card



Archive and the sidebar, dark: right → left open · the Archive place appears · long swipe to Unarchive · "archived" in search · a tag, right → left · a place, left → right
Search and the Trash, dark: left → right mid-swipe · long swipe (Copy link) · long-press card with Show hidden items · Trash, right → left open · Delete forever asks Confirm
320 wide
Notes, light: rest · left → right mid-swipe · left → right open · right → left mid-swipe · long-swipe detent · deleted, with Undo · long-press card



Archive and the sidebar, light: right → left open · the Archive place appears · long swipe to Unarchive · "archived" in search · a tag, right → left · a place, left → right
Search and the Trash, light: left → right mid-swipe · long swipe (Copy link) · long-press card with Show hidden items · Trash, right → left open · Delete forever asks Confirm
Notes, dark: rest · left → right mid-swipe · left → right open · right → left mid-swipe · long-swipe detent · deleted, with Undo · long-press card



Archive and the sidebar, dark: right → left open · the Archive place appears · long swipe to Unarchive · "archived" in search · a tag, right → left · a place, left → right
Search and the Trash, dark: left → right mid-swipe · long swipe (Copy link) · long-press card with Show hidden items · Trash, right → left open · Delete forever asks Confirm
At 390 light, the "long swipe" search frame shows the long-press card: the shared build host was busy enough that the hold won that one run. Every other width and theme shows the long-swipe bar.
1440
light: ⋯ on hover · its menu · a mouse swipe · right-click in search


dark: ⋯ on hover · its menu · a mouse swipe · right-click in search
Noticed, not changed here: at 320, the shared toast wraps "moved to Trash" mid-word ("Tras / h") next to Undo. That's the toast component's, not this PR's; it needs its own issue.
iPhone checklist (emulation can't prove the gesture; please try these on the phone)
Open the phone links above in Safari, and once more from the Home Screen app if you have it installed. Tick what works and note anything that doesn't.
Swiping a row
Edges and other gestures
Long press
Search (
?find=1&q=canalwith a note open)Trash
Archive and Hide (decided)
Feel
Row changes from the chrome round are live on https://preview.calternal.cloud/swipe.html (PR #501) and chrome.html: no hover dots, one pill at a time, Copy link then Pin (Open is gone, a tap opens), a sideways trackpad scroll swipes rows, a full swipe springs back with a toast ('Link copied') or collapses with Undo. Details on #469.
Approved by kayg on 2026-10-17 (IST morning): "the list view swipes are approved". This covers the swipe rows as on preview
chrome.htmlandswipe.html: one pill at a time, the elastic outer pill, trackpad swipe, Copy link then Pin, a toast for what a swipe did, and one rowActions registry. Next: port them into the app (apps/web) on top of the list port slice 1 (#516).Port rebased onto dev (train AA) and re-checked. PR into dev: #575
Gates (
E2E_MATRIX=sample,--no-deps --workers=1; swipe-rows, touch-select, contrast, list-chrome, phone-bars):test-resultsfolder; both pass alone)actions.gen.tswas out of date on dev (attachments actions), socheckfailed there; regenerated in its own commit.Perf (phone-size All notes, 10,000 notes, Chromium, CPU 4x, touch gestures, 60 per run, frame time of the frames while the finger moves; one run of 3 earlier under heavy host load is noted below):
Gate (swipe p95 within 2 ms of scroll p95, no more frames over 20 ms): p95 passes. Share over 20 ms is 1 to 2% for swipe against 0% for scroll. Scroll is now a pure compositor scroll on the new base, so it sits at the vsync floor. An earlier set of 3 runs (40 gestures) taken while the host was at load 10 to 13 showed swipe at p95 33 / 33 / 17 ms and 17% / 7% / 0% over 20 ms, with scroll at 16.8; the quiet-host rerun above did not reproduce it.
iPhone simulator (iOS 27, iPhone 18 Pro, Safari, new base). Icons and labels sit centred in each pill, and the pills are centred on the row, in light and dark.
kayg referenced this issue2026-11-05 23:21:12 +00:00
Housekeeping: linked PR #575 is merged into dev. Comments record kayg’s approval of the requested swipe research/mockup and the completed port with browser and iPhone simulator evidence. Closing the completed issue.