Mockup: search surface, results left, preview right, filters bottom-left (#275) #301

Closed
kayg wants to merge 0 commits from issue/275-search-mockup into dev
Owner

Mockup only (#275): the search surface in apps/mockup, built on Claude's S1–S6 answers. Nothing in apps/web or the server changes.

What it is

  • ⌘K (or the new search button beside "Calternal") opens a large glass panel over the app. Input on top, kind chips under it (All, Notes, Journal, Photos, Files, Tags; the shared Selector capsule).
  • Left: one ranked list. Its top edge has a progressive blur under the input; its bottom carries the filter buttons (Date, Tag, Sort, Trash) on a second progressive blur. The buttons open the one shared menu.
  • Right: the selected result's preview. A note is shown scrolled to the match with every hit marked, ⌘G / ⇧⌘G or ↑ ↓ to step. A day shows its log plus that day's photos. A photo has its caption on a soft blur. A PDF shows its first page. A tag lists what carries it.
  • Keys: ↑ ↓ swap the preview at once, Enter opens, ⌘Enter inserts a link into the open note (with Undo), Esc closes. Nothing done from the keyboard animates; a click springs the panel in.
  • Phone: a full-screen sheet with results only. A long press shows the preview in a popover.
  • Every state is a link: ?find=1&q=…&in=…&when=…&tag=…&sort=newest&trash=1.

Built the plugin way: src/search/providers/* is one file per kind. Each finds its results and brings its own preview. The surface never names a kind.

Fixtures: src/search/corpus.ts has older life-log days with #area/ tags, long project notes, seven photos (Unsplash via Picsum, credited in the README) and five PDFs.

Checks (Chromium + WebKit, scripted walk-through): Ctrl+K, typing, chips, arrows, ⌘G, the date filter, the Trash, ⌘Enter, Enter and Esc all pass with no page errors. The work per keystroke in the demo Home is a median of 5–8 ms, and 0.5 ms per arrow. Screenshots, strips and numbers are on #275.

Preview: https://preview.calternal.cloud/search.html#/note/2026-10-13?list=journal&find=1&q=canal (a separate page, so the attachment and tree-line mockups on preview are untouched).

🤖 Generated with Claude Code

https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T

Mockup only (#275): the search surface in `apps/mockup`, built on Claude's S1–S6 answers. Nothing in apps/web or the server changes. **What it is** - ⌘K (or the new search button beside "Calternal") opens a large glass panel over the app. Input on top, kind chips under it (All, Notes, Journal, Photos, Files, Tags; the shared Selector capsule). - Left: one ranked list. Its top edge has a progressive blur under the input; its bottom carries the filter buttons (Date, Tag, Sort, Trash) on a second progressive blur. The buttons open the one shared menu. - Right: the selected result's preview. A note is shown scrolled to the match with every hit marked, ⌘G / ⇧⌘G or ↑ ↓ to step. A day shows its log plus that day's photos. A photo has its caption on a soft blur. A PDF shows its first page. A tag lists what carries it. - Keys: ↑ ↓ swap the preview at once, Enter opens, ⌘Enter inserts a link into the open note (with Undo), Esc closes. Nothing done from the keyboard animates; a click springs the panel in. - Phone: a full-screen sheet with results only. A long press shows the preview in a popover. - Every state is a link: `?find=1&q=…&in=…&when=…&tag=…&sort=newest&trash=1`. **Built the plugin way:** `src/search/providers/*` is one file per kind. Each finds its results and brings its own preview. The surface never names a kind. **Fixtures:** `src/search/corpus.ts` has older life-log days with `#area/` tags, long project notes, seven photos (Unsplash via Picsum, credited in the README) and five PDFs. **Checks** (Chromium + WebKit, scripted walk-through): Ctrl+K, typing, chips, arrows, ⌘G, the date filter, the Trash, ⌘Enter, Enter and Esc all pass with no page errors. The work per keystroke in the demo Home is a median of 5–8 ms, and 0.5 ms per arrow. Screenshots, strips and numbers are on #275. Preview: https://preview.calternal.cloud/search.html#/note/2026-10-13?list=journal&find=1&q=canal (a separate page, so the attachment and tree-line mockups on preview are untouched). 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Mockup: search surface, results left, preview right, filters bottom-left (#275)
Some checks failed
CI / web (pull_request) Failing after 23s
CI / server (pull_request) Successful in 23s
CI / rust (pull_request) Successful in 1m39s
5d24fc66b9
⌘K (or the search button by "Calternal") opens a large glass panel over the app: the input
across the top, kind chips under it, one ranked list on the left with a progressive blur under
the input and another under the filter buttons, and the selected result's preview on the right.
On a phone it is a full-screen sheet with results only; a long press shows the preview popover.

Search is built the plugin way: each kind (notes, journal, photos, files, tags) is a provider
that finds its results and brings its own preview. Previews: a note scrolled to the match with
every hit marked and ⌘G / ⇧⌘G to step through them, a day's log with that day's photos, a photo
with its caption on a soft blur, a PDF's first page, a tag's items.

Enter opens, ⌘Enter puts a link into the open note, Esc closes. Arrowing swaps the preview at
once and nothing the keyboard does animates; a click springs the panel in. Every state is a
link (?find=1&q=…&in=…&when=…&tag=…&sort=…&trash=1). Search-only fixtures (older #area/ days,
long project notes, seven photos, five PDFs) live in src/search/corpus.ts.

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

Landed in merge train #329.

Landed in merge train #329.
kayg closed this pull request 2026-10-14 17:39:28 +00:00
Some checks failed
CI / web (pull_request) Failing after 23s
CI / server (pull_request) Successful in 23s
CI / rust (pull_request) Successful in 1m39s

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!301
No description provided.