Search r4: no bottom band, no kind row, natural-language filters, fits above the keyboard #399
Open
opened 2026-10-15 03:55:19 +00:00 by kayg
·
6 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#399
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, about the search r3 mockup on an iPhone (screenshots attached): "In general, I love search. I love how it looks." Then:
The screenshots also show:
Check both while doing this.
Mockup first (preview.calternal.cloud/search.html), r4. Supersedes the band and kind-row parts of #330/#331/#352.
kayg's grill answers, 2026-10-15:
Search r4 on preview (PR #416)
Try it:
I backed up the site first (
site.bak-399-202610150934). The other mockups are untouched.What changed
photos from Spiti, and after the space "photos" becomes a Photos token while "from Spiti" stays as words. Only Spiti photos show.2026-03-04,2026-03,2025), a day and month (4 March,March 4 2025), or a relative date: today, yesterday, this / last / past week, month or year, last monday.#tag(it includes its children), pinned, in trash, newest, oldest.The parser is a small pure module,
packages/ui/src/search/words.ts, so the real app can reuse it. Its 34 unit tests run in CI.How it fits above the keyboard (sources)
interactive-widget=resizes-content. Safari has no VirtualKeyboard API (env(keyboard-inset-height)) either. Sources: WebKit 230225, Chrome's viewport-resize notes.visualViewport. Its top isoffsetTopand its bottom isoffsetTop + height, never below100svh.offsetTop(WebKit 237851), so every change is read again on the next frame and once more 80 ms later.100svhor above, never under them.touchstartwould also stop the list scrolling from a row (WebKit 231161; its reporter rejected that fix for the same reason). Rows canceldragstartandselectstartinstead, and set-webkit-user-drag: noneon the row and its thumbnail. A non-passivetouchmoveandtouchendtake over only after the long press fires.-webkit-touch-calloutalone has been reported ignored on iOS 26.1 (Apple forums 808606). Checklist items 13 and 14 cover this.None of this can be proved in emulated WebKit; please run the checklist on the iPhone.
Device checklist (real iPhone; emulated WebKit can't show any of this)
Open https://preview.calternal.cloud/search.html#/list/journal and tap search (or pull down).
photos from Spiti. After the space, "photos" turns into a Photos token and "from Spiti" stays as words. Only Spiti photos show.Screenshots (my own, Chromium)
Phone strips, left to right:
run before 2026-09-01 #area/health newesttyped, with the line scrolled to the words;visualViewportshrunk);Desktop strips, left to right: empty, the example, typed, a long list.
320 light / dark


360 light / dark


375 light / dark


390 light / dark


900 light / dark


1440 light / dark


WebKit, 390 and 1440 (layout only: this headless WebKit draws no blur, so the app shows through the glass):


Grow-back, measured (panel height after the keyboard goes down at 390, in px): 494 at 0 ms, 587 at 60 ms, 748 at 140 ms, 821 at 260 ms, 830 at 500 ms. Shrinking is instant.
Questions for you
kayg, 2026-10-15: S14–S18 accepted as recommended:
Also fix the two things I saw: the placeholder is clipped at 390 (use "Search everything" on phones), and leftover words show highlighted after a URL query.
kayg, 2026-10-15, after trying r4 on an iPhone:
(kayg's message was cut off after this; the rest is pending.)
kayg, 2026-10-15 (S19): keep "scrolling dismisses the keyboard" for now. kayg: "that's also what iOS mail does... We can keep this behavior for a while, and if it bothers me, we can flick it." Make the dismissal animation smoother and more polished, so it feels natural.
Search r5 on preview (PR #436; replaces #416)
Try it on the iPhone: https://preview.calternal.cloud/search.html#/list/journal, then tap search. On a wide screen: https://preview.calternal.cloud/search.html#/note/2026-10-13?list=journal&find=1&examples=1. I backed up the site first (
site.bak-399r5-202610151327).What changed
interactive-widgetis ignored: WebKit 230225). The best a page can do is start at the same moment as the keyboard, on a similar curve.inert(search is a modal dialog, so this is right for VoiceOver too). The search field is then the only field, so ⌃ ⌄ should be greyed out. I can't test that without a device; checklist item 17 covers it.--edge-top/--edge-bottomvalues that nothing reads any more, so Safari tinted its bars paper over a sky backdrop.--sky-edgelike the app, and the phone's list screens setdata-edgewith the glass's own colour and melt into it at the top and bottom. On the Home Screen the app is sized by the real screen (WebKit 301994), with no strips.glass-edge.tsandhome-screen.tsmove topackages/ui, so the app and the mockup share them; the app re-exports them, so its imports are unchanged. This PR is stacked on #405.apps/mockup/src/lib/fit/(hug.tsandviewport.svelte.ts), for any floating panel.Frame strips at 390 (real time; my own)
Recorded in Chromium's screencast while it runs at full speed. The numbers under each strip are milliseconds after the trigger, and the "edge" lines give the panel's visible bottom (px) from the page's own per-frame log.
The keyboard is simulated:
This machine renders without a GPU, so the strips have few frames. Judge the feel on the iPhone.
1. Hugging: from the recent list to "photos from Spiti" (4 rows), soft spring (light, then dark): edge 828 → 718 → 418 → 326 px over about 0.9 s.


2. Growing back when the field is cleared:

3. "Nothing matches": just the field and the line (settles at 144 px):

4. Keyboard down by scrolling the list. The panel starts growing on the blur, with the keyboard, before Safari's late report, and keeps its edge just above the keyboard's top as it slides away:


5. Keyboard down with the keyboard's ⌄ key (a plain blur):

6. Keyboard up, first time: Safari's late report is all there is, so the panel follows it. The keyboard covers that edge meanwhile.

7. Keyboard up after that: the panel remembers the keyboard's height and rises with it:


Screenshots at every width (Chromium; light and dark)
Phone strips, left to right: empty, "photos from Spiti", typed tokens, keyboard up, keyboard down, few results (hug), "Nothing matches" (hug), long-press preview. Desktop strips: empty, example, typed, long list (unchanged layout).
320:







360:
375:
390:
900:
1440:
WebKit 390 and 1440 (layout only; this headless WebKit draws no blur):
Checks: all pass in Chromium (6 widths) and WebKit (390, 1440), light and dark, with no page errors. They cover:
Unit tests: 66 of 66.
apps/web check: 0 errors, and both apps build.Device checklist, round 5 (real iPhone; please run each in a Safari tab and in the Home Screen app)
Open https://preview.calternal.cloud/search.html#/list/journal and tap search.
Hugging
kunzum: the panel shrinks around the one or two rows on a soft spring. Clear the field and it grows back the same way. Typing fast never makes it jitter or jump.zzqx: the panel is just the field plus "Nothing matches", rounded at the bottom.The keyboard going down (the main one)
5. Type
calternal, then scroll the results: the keyboard goes down, and the panel's bottom edge moves down with it at the same moment and the same pace, settling without a bounce. There's no pause before it moves and no second jump when Safari catches up.6. The keyboard's own ⌄ key: the same.
7. Cancel, then open again: no leftover gap at the bottom, and no short panel.
8. The address bar at the bottom (iOS 26 default), then with the bar collapsed by scrolling a list first: the same in both. In the second case Safari reports at once, and the prediction and the report agree.
The keyboard coming up
9. Tap the field the first time after loading: the panel shrinks to the keyboard's top, at the latest when the keyboard finishes. Nothing hides under the keyboard afterwards.
10. Every time after that: the panel's edge moves up with the keyboard as it rises (it remembers the keyboard's height).
11. Switch to the emoji keyboard, or start dictation: the panel follows the new height on the same spring.
Still right from round 4
12. Long list, keyboard up: scroll to the end; the last row comes fully above the keyboard.
13. Long-press a row: the preview shows, with no drag ghost, callout or selection, and scrolling that starts on a row still works.
14. The placeholder reads "Search everything" and isn't cut off.
15. A link with words (for example the "photos from Spiti" link above) opens with the words not highlighted.
16. At 320 (an iPhone SE in zoomed display): the tokens show words only, and the line scrolls sideways.
Edges and the keyboard's bar
17. With search open and the keyboard up: the ⌃ ⌄ arrows on the bar above the keyboard are greyed out, because the search field is the only field. The bar itself stays; a web page can't remove it.
18. Safari tab, sky backdrop, on a list: the strip behind the status bar and the strip around Safari's bottom bar are the glass's colour, with no paper-coloured band. Open a note: they turn paper.
19. Home Screen app: the glass and the sky run to both edges, with no flat strip at the top or bottom, and the search panel still ends above the keyboard.
Questions for you
kayg referenced this issue2026-11-05 23:21:12 +00:00