Mockup: Views, saved searches as live smart folders in the sidebar (#312) #430

Closed
kayg wants to merge 4 commits from issue/312-views-mockup into dev
Owner

Mockup for Views (#312): saved searches as live smart folders in the sidebar, built to kayg's grill answers V1–V9. Mockup only; production is unchanged. Stacked on #352 (and so #331/#330), because Views build on the latest search mockup, which isn't on dev yet.

Preview: https://preview.calternal.cloud/views.html#/note/2026-10-13?list=view:health

  • V1: Save as view in search's new ⋯ menu; ⌘S (Ctrl+S) saves while search is open. If the search is already a View, the menu says Open “…” instead.
  • V2: a new View takes its query as its name and opens with the name selected, ready to type over. Double-click renames it in the sidebar or the list header.
  • V3: three glyphs to pick from in the Mockup panel (View glyph): lens + bookmark, layers, sparkle tray (view-saved, view-layers, view-spark in the icon set).
  • V4: a Views group after the places and before the tags. Drag (or ⌥↑/⌥↓, or the menu) reorders it. With no Views there's no group.
  • V5: a View's list shows its query as tokens. Changing it filters live and brings up an Update view glass pill with an undo pill, in their own row under the list (rows never rest under pills, as in #350). ⌘S keeps the change; Esc puts it back.
  • V6: on a phone the group is on the Places screen; no bar pin.
  • V7: Views live in Views.md, one - [name](<search:?q=…>) line each, in sidebar order. The ⋯ menus end with Kept in Views.md. The mockup keeps that text in localStorage.
  • V8: live counts beside each View, worked out once, then again only after the notes change and settle for 300 ms. A View that's just been saved or changed is recounted at once. Nothing runs while idle.
  • #399 direction: search loses the kind row and the filter band. "photos", "files", "days", "notes", "tags", "today", "last/past/this week|month", "this year", "before/after YYYY-MM-DD", "newest", "in trash" and #tags are read from the query and drawn as accent tokens (search/infer.ts, search/TokenField.svelte). A View's query uses the same field. Older ?in=/?when= links still apply. The keyboard-aware sizing and the swipe actions stay with #399.

Small shared changes: InlineRename gets raw (keep a leading #); run() takes a row limit (counts ask for all).

Checked: 38 scripted checks pass in Chromium and WebKit (save with Ctrl+S, rename, file line, Update view, Esc, token layer lines up with the caret, live count 19 → 20 after tagging a note, delete + Undo, reload, no-Views). Screenshots at 320/360/375/390/900/1440, light and dark, are on #312.

🤖 Generated with Claude Code

https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T

Mockup for Views (#312): saved searches as live smart folders in the sidebar, built to kayg's grill answers V1–V9. Mockup only; production is unchanged. **Stacked on #352** (and so #331/#330), because Views build on the latest search mockup, which isn't on dev yet. Preview: https://preview.calternal.cloud/views.html#/note/2026-10-13?list=view:health - **V1:** *Save as view* in search's new ⋯ menu; ⌘S (Ctrl+S) saves while search is open. If the search is already a View, the menu says *Open “…”* instead. - **V2:** a new View takes its query as its name and opens with the name selected, ready to type over. Double-click renames it in the sidebar or the list header. - **V3:** three glyphs to pick from in the Mockup panel (*View glyph*): lens + bookmark, layers, sparkle tray (`view-saved`, `view-layers`, `view-spark` in the icon set). - **V4:** a Views group after the places and before the tags. Drag (or ⌥↑/⌥↓, or the menu) reorders it. With no Views there's no group. - **V5:** a View's list shows its query as tokens. Changing it filters live and brings up an *Update view* glass pill with an undo pill, in their own row under the list (rows never rest under pills, as in #350). ⌘S keeps the change; Esc puts it back. - **V6:** on a phone the group is on the Places screen; no bar pin. - **V7:** Views live in `Views.md`, one `- [name](<search:?q=…>)` line each, in sidebar order. The ⋯ menus end with *Kept in Views.md*. The mockup keeps that text in localStorage. - **V8:** live counts beside each View, worked out once, then again only after the notes change and settle for 300 ms. A View that's just been saved or changed is recounted at once. Nothing runs while idle. - **#399 direction:** search loses the kind row and the filter band. "photos", "files", "days", "notes", "tags", "today", "last/past/this week|month", "this year", "before/after YYYY-MM-DD", "newest", "in trash" and `#tags` are read from the query and drawn as accent tokens (`search/infer.ts`, `search/TokenField.svelte`). A View's query uses the same field. Older `?in=`/`?when=` links still apply. The keyboard-aware sizing and the swipe actions stay with #399. Small shared changes: `InlineRename` gets `raw` (keep a leading `#`); `run()` takes a row limit (counts ask for all). Checked: 38 scripted checks pass in Chromium and WebKit (save with Ctrl+S, rename, file line, Update view, Esc, token layer lines up with the caret, live count 19 → 20 after tagging a note, delete + Undo, reload, no-Views). Screenshots at 320/360/375/390/900/1440, light and dark, are on #312. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Mockup search, round 3: glass pills, one lighter material, pull to search (#275, #320, #321)
Some checks failed
CI / server (pull_request) Successful in 23s
CI / web (pull_request) Failing after 25s
CI / rust (pull_request) Successful in 1m57s
e8233d6db9
kayg on round 2: the band behind the filter buttons "looks bad", and search should be "more
transparent and less blurry so more content can be seen", on one material shared with the bar,
sheets and menus (#319).

- The bottom progressive-blur band is gone. Date, Tag, Sort, Trash and Clear are glass pills on
  the shared floating tokens (--glass-float, --glass-float-filter, --glass-float-edge), floating
  straight over the list. On a phone, unset filters show just their icon (with a tooltip and a
  name that says the setting) so the row fits; Clear becomes an icon pill.
- The panel and the phone sheet use only the floating tokens (no more one-off 72 px blur).
- styles/glass.css tries the lighter material on those shared tokens, mockup-wide: tint 0.30 /
  0.36 (light / dark) and blur 20 px, down from 0.40 / 0.42 and 44 px. Proposed for tokens.css
  on #319; production is unchanged.
- Pull to search (#320): a small gesture plugin (search/pull.svelte.ts) plus its hint pill.
  A downward pull from the top third of any phone screen follows the finger with resistance,
  arms at 72 px ("Let go to search"), opens the sheet coming down from the top, and springs back
  if let go early. It starts only when what's under the finger is at its top (or on a header),
  never from the left edge, never with words selected or inside text being edited, and cancels
  touch moves only once the pull is its own, so iOS overscroll can't fight it.
- Search now floats over Settings too, so the pull works on every screen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Search list clears its pills; the selector capsule never animates from the keyboard (#275)
Some checks failed
CI / server (pull_request) Successful in 24s
CI / web (pull_request) Failing after 25s
CI / rust (pull_request) Successful in 1m45s
8abd41a897
- Search: the results list ends a pill, its gap to the edge (with the home indicator on a
  phone) and 24 px of air further down, so the last row always scrolls fully out from under the
  floating filter pills. One measure (--clear-of-pills) sets both the padding and the keyboard's
  scroll padding. Checked at 1440, 390 and 390 with a 34 px home indicator, Chromium and WebKit.
- Selector (packages/ui): the capsule no longer fades in on first appearance, and changes from
  the keyboard (arrows, Enter, Space) or from outside (a link, another control) jump without
  any fade or slide, reduced motion included. Only a pointer's click glides or fades. Two new
  e2e checks: nothing runs on first appearance or after keyboard choices, and a pointer's first
  choice does fade in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Search: the tab bar steps aside, one pill size, rows never rest under the pills (#350)
Some checks failed
CI / web (pull_request) Failing after 24s
CI / server (pull_request) Successful in 23s
CI / rust (pull_request) Successful in 2m0s
4ec278eacb
- While search is open, the app's bottom bar (tabs and note tools) and the phone's + button are
  hidden at every width, so nothing shows under the sheet's filter pills (it did at 320).
- The filter pills are one size: --f tall (36 px with a 44 px hit area on touch), and square
  when they show only their icon, the Trash included.
- The results list now stops above the pill row instead of running under it, so no row rests
  or scrolls under the pills at any scroll position; its last 14 px fade instead of ending on a
  hard edge. The pills keep their own glass. Checked at the top, mid-list and the end, at 320,
  390, 900 and 1440, light and dark, Chromium and WebKit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Mockup: Views, saved searches as live smart folders in the sidebar (#312)
Some checks failed
CI / server (pull_request) Successful in 27s
CI / rust (pull_request) Failing after 2m36s
CI / web (pull_request) Failing after 25s
ebb27b8ba0
- Save as view in search's ⋯ menu, or ⌘S while search is open (V1). A new View
  takes its query as its name, ready to type over (V2).
- Three glyph candidates, switched in the Mockup panel (V3).
- A Views group after the places and before the tags; drag to reorder;
  no group when there are none (V4).
- A View's list shows its query as tokens; changing it brings an Update view
  pill in its own row under the list; ⌘S keeps, Esc puts it back (V5).
- On a phone the group is on the Places screen (V6).
- Views live in Views.md, one `- [name](<search:?q=…>)` line each (V7).
- Live counts, worked out once and then only after notes change and settle (V8).
- Search takes the #399 direction: no kind row, no filter band; "photos",
  "last week", "before 2026-03-04", "#tag", "newest" are read from the query
  and drawn as tokens, which the View's query uses too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Author
Owner

Superseded by #452 (Views round 2c).

Superseded by #452 (Views round 2c).
kayg closed this pull request 2026-10-15 22:40:28 +00:00
Some checks failed
CI / server (pull_request) Successful in 27s
CI / rust (pull_request) Failing after 2m36s
CI / web (pull_request) Failing after 25s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
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!430
No description provided.