Saved searches as Views in the sidebar (smart folders, very easy to create) #312

Open
opened 2026-10-14 16:15:49 +00:00 by kayg · 9 comments
Owner

kayg (2026-10-14): "any search can be saved as a 'view' in the sidebar, so these are just smart folders but very easy to create. Likely needs a separate grill."

Idea: any search (query + kind + date + tag + sort, i.e. the URL state from #275) can be saved in one step as a View in the sidebar. It's live, so it updates as notes change, like a smart folder, with no folders shown (decision r4).

To grill before building (questions to draft):

  • where Save lives in the search panel;
  • naming, and the icon;
  • ordering, and where Views go in the sidebar next to Today, Journal and tags;
  • editing a View's query later;
  • whether a View can be pinned to the bar on phones;
  • whether Views live in a file in the Home (plain-text, syncable) or in settings;
  • sharing (later);
  • the perf budget for live counts on a 100k Home.

Mockup first on preview.

kayg (2026-10-14): "any search can be saved as a 'view' in the sidebar, so these are just smart folders but very easy to create. Likely needs a separate grill." **Idea:** any search (query + kind + date + tag + sort, i.e. the URL state from #275) can be saved in one step as a **View** in the sidebar. It's live, so it updates as notes change, like a smart folder, with no folders shown (decision r4). **To grill before building (questions to draft):** - where Save lives in the search panel; - naming, and the icon; - ordering, and where Views go in the sidebar next to Today, Journal and tags; - editing a View's query later; - whether a View can be pinned to the bar on phones; - whether Views live in a file in the Home (plain-text, syncable) or in settings; - sharing (later); - the perf budget for live counts on a 100k Home. Mockup first on preview.
Author
Owner

kayg's grill answers for Views, 2026-10-15:

  • V1: yes. Save as View goes in the search panel's ⋯ menu, and ⌘S saves while search is open.
  • V2: yes. A new View takes the query as its name and can be renamed.
  • V3: kayg asked what the glyph would be. The mockup will show 2 or 3 options to choose from.
  • V4: yes. A Views group in the sidebar after Journal / All notes / Pinned / Trash and before tags; it can be reordered and is hidden when empty.
  • V5: yes. Opening a View shows its query; changing it brings up an Update view pill. In the mockup.
  • V6: clarified. On phones the sidebar is the Places screen (the '‹ Calternal' root list), so Views appear in the sidebar on every device. No bar pin for now.
  • V7: yes, 'file over app'. Views are stored as a plain file in the Home.
  • V8: yes. Live counts, computed lazily and cached; nothing runs while idle.
  • V9: sharing comes later, but grill it soon: cross-user leak protection matters a great deal (tracked in its own issue).
**kayg's grill answers for Views, 2026-10-15:** - **V1:** yes. *Save as View* goes in the search panel's ⋯ menu, and ⌘S saves while search is open. - **V2:** yes. A new View takes the query as its name and can be renamed. - **V3:** kayg asked what the glyph would be. The mockup will show 2 or 3 options to choose from. - **V4:** yes. A Views group in the sidebar after Journal / All notes / Pinned / Trash and before tags; it can be reordered and is hidden when empty. - **V5:** yes. Opening a View shows its query; changing it brings up an *Update view* pill. In the mockup. - **V6:** clarified. On phones the sidebar *is* the Places screen (the '‹ Calternal' root list), so Views appear in the sidebar on every device. No bar pin for now. - **V7:** yes, 'file over app'. Views are stored as a plain file in the Home. - **V8:** yes. Live counts, computed lazily and cached; nothing runs while idle. - **V9:** sharing comes later, but grill it soon: cross-user leak protection matters a great deal (tracked in its own issue).
Author
Owner

The Views mockup is on preview

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

It's a separate page, so search.html and the other mockups on preview stay as they were (backup site.bak-312-202610151105). PR #430, stacked on #352, because Views build on the latest search mockup. It's a mockup only; nothing changes in production.

More links:

There are three Views to start with: Health, past month (#area/health past month), Canal runs (canal run newest) and Travel photos (photos #area/travel). The "Mockup" pill has these links too, plus the glyph switcher at the top.

What I built (V1–V9)

  • V1: search's new ⋯ (beside esc / Cancel) holds Save as view. ⌘S does the same while search is open. If what you typed already is a View, the menu says Open “Canal runs” and ⌘S opens it.
  • V2: saving closes search and opens the new View. Its name is the query, already selected, so typing renames it right away. Enter keeps the name and Esc keeps the query as the name. Double-click renames it later, in the sidebar or in the list's title.
  • V3: three glyphs, switched under View glyph in the Mockup panel: lens + bookmark (the default), layers and a sparkle tray. Screenshots below.
  • V4: a Views group right after Journal / All notes / Pinned / Trash and before the tags. Drag a View to reorder (or ⌥↑ / ⌥↓, or right-click › Move up / down). With no Views there's no group. Right-click also has Rename and Delete view, which has Undo in its toast.
  • V5: a View's list shows its query as tokens, in the box where other lists have Filter. Edit it and the list follows as you type; an Update view glass pill (accent tint) and an undo pill appear in their own row under the list, so rows never rest under them (as decided in #350). ⌘S keeps the change and Esc puts it back. Clicking a row opens the note beside the View; a photo or a PDF opens its day.
  • V6: on a phone the group is on the Places screen (‹ Calternal), with counts. Tapping a View opens its list screen with the same tokens, and the pills sit above the home indicator, left of +, at 44 px. No bar pin.
  • V7: Views live in Views.md; both ⋯ menus end with Kept in Views.md. The format is below.
  • V8: live counts beside each View. They're worked out once when the sidebar shows, then only after notes change and settle for 300 ms; a View you just saved or changed is recounted at once. Nothing runs while idle, and typing in a note never pays for it. The real app asks the index (#10) and caches per View.
  • V9: no sharing.
  • #399, tokens: search's kind row and filter band are gone in this page. These words are read from the query and tinted in the accent, in search and in a View alike: photos, files, days, notes, tags, today, last/past/this week or month, this year, before/after 2026-03-04, newest, in trash and #tags. The tint never changes a word's width, so the caret always sits on the letters (checked in both engines). Keyboard-aware sizing and swipe actions stay with #399.
  • Motion: saved from ⋯, the new row springs into the sidebar and the rows below glide down. Update view springs up when a pointer changed the query and sinks away when clicked. ⌘S, Esc and typing never animate.

Views.md (V7): proposed format

One plain list item per View, in sidebar order. Each is a link whose target is the search, written as you'd type it:

# Views

- [Health, past month](<search:?q=#area/health past month>)
- [Canal runs](<search:?q=canal run newest>)
- [Travel photos](<search:?q=photos #area/travel>)
  • It uses the [t](<…>) link form we use everywhere, so spaces and # need no escaping. Only > and a newline can't appear in a query.
  • The name is the link text (\] escapes a bracket). Reordering in the sidebar rewrites the order of the lines.
  • Anything else in the file (a heading, a note to yourself) is kept as it is and ignored.
  • ?q= leaves room for more later (say &sort=) without changing old lines. If you'd rather keep it shorter, search:#area/health past month also works.

Checked

38 scripted checks pass in Chromium and WebKit, with no page errors:

  • the group sits between the places and the tags;
  • tokens are recognised, and the drawn layer lines up with the input;
  • Ctrl+S saves, closes search and opens the View with its name selected;
  • renaming reaches the sidebar and Views.md;
  • Update view updates the file, and Esc reverts;
  • live count 19 → 20 after tagging today's note #area/health, unchanged mid-typing;
  • delete, then Undo, brings the View back;
  • Views survive a reload;
  • no Views means no group.

Screenshots (Chromium)

Each set is, in order: the View · Update view · search ⋯ menu · just saved, name selected.

1440 light: 1-view-1440-light.png 3-update-1440-light.png 4-menu-1440-light.png 5-saved-1440-light.png

1440 dark: 1-view-1440-dark.png 3-update-1440-dark.png 4-menu-1440-dark.png 5-saved-1440-dark.png

900 light (the sidebar is a drawer here, shown open): 1-view-900-light.png 3-update-900-light.png 4-menu-900-light.png 5-saved-900-light.png

900 dark: 1-view-900-dark.png 3-update-900-dark.png 4-menu-900-dark.png 5-saved-900-dark.png

Phone sets are, in order: Places · a View · Update view · search ⋯ · just saved.

390 light: 1-places-390-light.png 2-view-390-light.png 3-update-390-light.png 4-menu-390-light.png 5-saved-390-light.png

390 dark: 1-places-390-dark.png 2-view-390-dark.png 3-update-390-dark.png 4-menu-390-dark.png 5-saved-390-dark.png

375 light: 1-places-375-light.png 2-view-375-light.png 3-update-375-light.png 4-menu-375-light.png 5-saved-375-light.png

375 dark: 1-places-375-dark.png 2-view-375-dark.png 3-update-375-dark.png 4-menu-375-dark.png 5-saved-375-dark.png

360 light: 1-places-360-light.png 2-view-360-light.png 3-update-360-light.png 4-menu-360-light.png 5-saved-360-light.png

360 dark: 1-places-360-dark.png 2-view-360-dark.png 3-update-360-dark.png 4-menu-360-dark.png 5-saved-360-dark.png

320 light: 1-places-320-light.png 2-view-320-light.png 3-update-320-light.png 4-menu-320-light.png 5-saved-320-light.png

320 dark: 1-places-320-dark.png 2-view-320-dark.png 3-update-320-dark.png 4-menu-320-dark.png 5-saved-320-dark.png

V3: pick a glyph

In order: lens + bookmark · layers · sparkle tray, light then dark.

glyph-saved-light.png glyph-layers-light.png glyph-spark-light.png

glyph-saved-dark.png glyph-layers-dark.png glyph-spark-dark.png

For you to decide

  1. The glyph (V3): lens + bookmark, layers, or sparkle tray?
  2. Views.md: keep search:?q=…, or the shorter search:…? And should Views.md show up as a note in All notes (it's just a file you can edit), or stay out of the lists the way settings do?
  3. "notes" as a kind word: "reading notes" now reads "notes" as a filter. Should kind words count only at the start or end of a query, or only in their plural forms ("photos", "files")?
  4. A View's results: a View lists notes, days, photos and files, but not the tag itself (it did in search). OK?
  5. Phone: the Mockup pill overlaps the search field on the phone sheet, and it did before this change too. It's the mockup's own switcher, not part of the design.
## The Views mockup is on preview **Try it:** https://preview.calternal.cloud/views.html#/note/2026-10-13?list=view:health It's a separate page, so `search.html` and the other mockups on preview stay as they were (backup `site.bak-312-202610151105`). PR #430, stacked on #352, because Views build on the latest search mockup. It's a mockup only; nothing changes in production. More links: - [a changed View, with *Update view*](https://preview.calternal.cloud/views.html#/note/2026-10-13?list=view:canal&vq=canal%20run%20past%20month) - [a search ready to save (open ⋯, or press ⌘S)](https://preview.calternal.cloud/views.html#/note/2026-10-13?list=journal&find=1&q=%23area/homelab%20newest) - [no Views yet: no group](https://preview.calternal.cloud/views.html#/note/2026-10-13?list=journal&views=none) - on a phone: [the Places screen](https://preview.calternal.cloud/views.html#/home) and [a View](https://preview.calternal.cloud/views.html#/list/view:health) - the glyphs: [lens + bookmark](https://preview.calternal.cloud/views.html#/note/2026-10-13?list=view:health&glyph=saved) · [layers](https://preview.calternal.cloud/views.html#/note/2026-10-13?list=view:health&glyph=layers) · [sparkle tray](https://preview.calternal.cloud/views.html#/note/2026-10-13?list=view:health&glyph=spark) There are three Views to start with: *Health, past month* (`#area/health past month`), *Canal runs* (`canal run newest`) and *Travel photos* (`photos #area/travel`). The "Mockup" pill has these links too, plus the glyph switcher at the top. ### What I built (V1–V9) - **V1:** search's new **⋯** (beside esc / Cancel) holds *Save as view*. **⌘S** does the same while search is open. If what you typed already is a View, the menu says *Open “Canal runs”* and ⌘S opens it. - **V2:** saving closes search and opens the new View. Its name is the query, already selected, so typing renames it right away. Enter keeps the name and Esc keeps the query as the name. Double-click renames it later, in the sidebar or in the list's title. - **V3:** three glyphs, switched under *View glyph* in the Mockup panel: **lens + bookmark** (the default), **layers** and a **sparkle tray**. Screenshots below. - **V4:** a **Views group** right after Journal / All notes / Pinned / Trash and before the tags. Drag a View to reorder (or ⌥↑ / ⌥↓, or right-click › Move up / down). With no Views there's no group. Right-click also has Rename and *Delete view*, which has Undo in its toast. - **V5:** a View's list shows its **query as tokens**, in the box where other lists have Filter. Edit it and the list follows as you type; an ***Update view*** glass pill (accent tint) and an undo pill appear in their own row under the list, so rows never rest under them (as decided in #350). **⌘S** keeps the change and **Esc** puts it back. Clicking a row opens the note beside the View; a photo or a PDF opens its day. - **V6:** on a phone the group is on the Places screen (‹ Calternal), with counts. Tapping a View opens its list screen with the same tokens, and the pills sit above the home indicator, left of +, at 44 px. No bar pin. - **V7:** Views live in **`Views.md`**; both ⋯ menus end with *Kept in Views.md*. The format is below. - **V8:** **live counts** beside each View. They're worked out once when the sidebar shows, then only after notes change and settle for 300 ms; a View you just saved or changed is recounted at once. Nothing runs while idle, and typing in a note never pays for it. The real app asks the index (#10) and caches per View. - **V9:** no sharing. - **#399, tokens:** search's kind row and filter band are gone in this page. These words are read from the query and tinted in the accent, in search and in a View alike: *photos, files, days, notes, tags, today, last/past/this week or month, this year, before/after 2026-03-04, newest, in trash* and `#tags`. The tint never changes a word's width, so the caret always sits on the letters (checked in both engines). Keyboard-aware sizing and swipe actions stay with #399. - **Motion:** saved from ⋯, the new row springs into the sidebar and the rows below glide down. *Update view* springs up when a pointer changed the query and sinks away when clicked. ⌘S, Esc and typing never animate. ### Views.md (V7): proposed format One plain list item per View, in sidebar order. Each is a link whose target is the search, written as you'd type it: ```markdown # Views - [Health, past month](<search:?q=#area/health past month>) - [Canal runs](<search:?q=canal run newest>) - [Travel photos](<search:?q=photos #area/travel>) ``` - It uses the `[t](<…>)` link form we use everywhere, so spaces and `#` need no escaping. Only `>` and a newline can't appear in a query. - The name is the link text (`\]` escapes a bracket). Reordering in the sidebar rewrites the order of the lines. - Anything else in the file (a heading, a note to yourself) is kept as it is and ignored. - `?q=` leaves room for more later (say `&sort=`) without changing old lines. If you'd rather keep it shorter, `search:#area/health past month` also works. ### Checked 38 scripted checks pass in **Chromium and WebKit**, with no page errors: - the group sits between the places and the tags; - tokens are recognised, and the drawn layer lines up with the input; - Ctrl+S saves, closes search and opens the View with its name selected; - renaming reaches the sidebar and `Views.md`; - *Update view* updates the file, and Esc reverts; - **live count 19 → 20** after tagging today's note `#area/health`, unchanged mid-typing; - delete, then Undo, brings the View back; - Views survive a reload; - no Views means no group. ### Screenshots (Chromium) Each set is, in order: the View · *Update view* · search ⋯ menu · just saved, name selected. **1440 light:** ![1-view-1440-light.png](https://git.kayg.org/attachments/4fb00a2e-0724-41af-b462-e86cce4c850e) ![3-update-1440-light.png](https://git.kayg.org/attachments/dea87165-315f-47ae-8d8e-e317eb580b06) ![4-menu-1440-light.png](https://git.kayg.org/attachments/b53d1bf8-6a31-4319-bd54-10ddb46d2a57) ![5-saved-1440-light.png](https://git.kayg.org/attachments/0437ebed-729d-4f41-a215-e60d0d289fee) **1440 dark:** ![1-view-1440-dark.png](https://git.kayg.org/attachments/4a12eb27-3ce4-4fdb-ab51-c7625caec901) ![3-update-1440-dark.png](https://git.kayg.org/attachments/4d74b665-ed36-4941-9473-a571e6543213) ![4-menu-1440-dark.png](https://git.kayg.org/attachments/a5e85f4c-47ea-4120-b133-0b6cc78b1a65) ![5-saved-1440-dark.png](https://git.kayg.org/attachments/b0a7ceae-fdd3-45ca-9b09-e1aaefffb4b1) **900 light** (the sidebar is a drawer here, shown open): ![1-view-900-light.png](https://git.kayg.org/attachments/522506c7-8240-4679-bcce-568cfc789760) ![3-update-900-light.png](https://git.kayg.org/attachments/05cb3c8a-7e20-4a9c-b7a6-a54be6528a75) ![4-menu-900-light.png](https://git.kayg.org/attachments/95429172-08ee-4d53-a318-026d435cd43b) ![5-saved-900-light.png](https://git.kayg.org/attachments/d03aa649-8def-4f02-9c2e-074c418d8e42) **900 dark:** ![1-view-900-dark.png](https://git.kayg.org/attachments/77d7091c-4c13-4cd9-9f49-fe708571896d) ![3-update-900-dark.png](https://git.kayg.org/attachments/fa9fa069-097c-4440-86c3-0aafb467ccc6) ![4-menu-900-dark.png](https://git.kayg.org/attachments/23f0d034-3b54-44be-aa5a-6763ad7e3d16) ![5-saved-900-dark.png](https://git.kayg.org/attachments/a1db0411-40ab-4c05-ab8a-0b3076f87810) Phone sets are, in order: Places · a View · *Update view* · search ⋯ · just saved. **390 light:** ![1-places-390-light.png](https://git.kayg.org/attachments/f363471b-3c2b-4264-9a94-ad3d5ded26e5) ![2-view-390-light.png](https://git.kayg.org/attachments/0a1a1cf1-95eb-4ae7-b8d6-6a7644ca7822) ![3-update-390-light.png](https://git.kayg.org/attachments/ebb1ef7c-eeba-4ae6-9f65-f6e4bd53046a) ![4-menu-390-light.png](https://git.kayg.org/attachments/3ac52318-a319-497e-865f-dfc368a25f6e) ![5-saved-390-light.png](https://git.kayg.org/attachments/539eb4ef-18e9-4495-8076-2e1eb504b753) **390 dark:** ![1-places-390-dark.png](https://git.kayg.org/attachments/926d91bb-bbe9-4e0e-baa9-2d0ede417da4) ![2-view-390-dark.png](https://git.kayg.org/attachments/657885de-374a-477d-9c36-b82826a02a1b) ![3-update-390-dark.png](https://git.kayg.org/attachments/957e6ee5-14d3-456a-a9ba-5f1853d06dcd) ![4-menu-390-dark.png](https://git.kayg.org/attachments/2f98e74f-509b-436d-8114-3a0cb16aa01c) ![5-saved-390-dark.png](https://git.kayg.org/attachments/c7906788-8371-49a3-88ff-f1a0dd9cc96e) **375 light:** ![1-places-375-light.png](https://git.kayg.org/attachments/d0810c34-d677-4e63-a85d-4d62b62c8dbf) ![2-view-375-light.png](https://git.kayg.org/attachments/e73342f3-1189-4bb3-9161-04fb084f8b88) ![3-update-375-light.png](https://git.kayg.org/attachments/a20f8c5a-de3a-42e2-8c0b-aac48384231b) ![4-menu-375-light.png](https://git.kayg.org/attachments/dea7365f-1567-44d5-8a44-de34e197f138) ![5-saved-375-light.png](https://git.kayg.org/attachments/243e26d4-3a2c-4834-a1f6-c9ea85798f59) **375 dark:** ![1-places-375-dark.png](https://git.kayg.org/attachments/2c16ec16-b0cc-4863-a5be-d92c5dde845a) ![2-view-375-dark.png](https://git.kayg.org/attachments/c4f6f1f6-0f7a-4d5b-b30d-b60939493115) ![3-update-375-dark.png](https://git.kayg.org/attachments/7d0ca35a-b7b1-478f-9aeb-87170da3c674) ![4-menu-375-dark.png](https://git.kayg.org/attachments/ce368557-3a6f-40c9-9104-3cd3125fe80f) ![5-saved-375-dark.png](https://git.kayg.org/attachments/a8c8aa91-3ad0-4a47-8c6e-3775a109c2c9) **360 light:** ![1-places-360-light.png](https://git.kayg.org/attachments/daff161c-7486-445c-bad2-ffb7dc5bae3b) ![2-view-360-light.png](https://git.kayg.org/attachments/310550df-158d-45e1-9fb7-7e46f79ad8e6) ![3-update-360-light.png](https://git.kayg.org/attachments/18b37141-fc9a-4e4a-a1c8-58d579e54aef) ![4-menu-360-light.png](https://git.kayg.org/attachments/efc2047d-8328-4a65-a591-f68f2e4f8ce6) ![5-saved-360-light.png](https://git.kayg.org/attachments/ac77716d-6bb3-4386-8f37-38cd3338cd6f) **360 dark:** ![1-places-360-dark.png](https://git.kayg.org/attachments/09cef654-5725-4b36-b7d0-aae71a213bc2) ![2-view-360-dark.png](https://git.kayg.org/attachments/8c64fcd1-3060-4052-85f7-0058541ec031) ![3-update-360-dark.png](https://git.kayg.org/attachments/6cba48b9-bfab-4479-a682-f7b390f2e105) ![4-menu-360-dark.png](https://git.kayg.org/attachments/6aa37685-d0b2-4380-b91a-f028485b7bd1) ![5-saved-360-dark.png](https://git.kayg.org/attachments/e42b4dfa-cf20-419c-8257-af548a274307) **320 light:** ![1-places-320-light.png](https://git.kayg.org/attachments/27ef72fb-66fd-4d54-8177-5f82272c1780) ![2-view-320-light.png](https://git.kayg.org/attachments/ab32074f-2f67-40e0-a55c-587e5452b215) ![3-update-320-light.png](https://git.kayg.org/attachments/d8efed6e-760c-43db-8ad7-624cc0e3e48a) ![4-menu-320-light.png](https://git.kayg.org/attachments/f6e2be3a-24cf-402f-b4bc-db77357e2f46) ![5-saved-320-light.png](https://git.kayg.org/attachments/10ec2ca4-565d-42f6-8a6f-83cdc4457f9f) **320 dark:** ![1-places-320-dark.png](https://git.kayg.org/attachments/9839a549-dc56-4af1-a217-fa9eb4bbb5d9) ![2-view-320-dark.png](https://git.kayg.org/attachments/75f3b81b-80ac-4b10-81d9-4b159add3261) ![3-update-320-dark.png](https://git.kayg.org/attachments/50373b68-678f-4c32-ad07-b721f94a7769) ![4-menu-320-dark.png](https://git.kayg.org/attachments/d5a91e6b-9722-4519-8725-b2ded6195b4c) ![5-saved-320-dark.png](https://git.kayg.org/attachments/cd6a5f24-5fb1-458f-b08a-f90bf3b7066f) ### V3: pick a glyph In order: lens + bookmark · layers · sparkle tray, light then dark. ![glyph-saved-light.png](https://git.kayg.org/attachments/eca6f814-e7d9-4da9-8d02-b09131c01625) ![glyph-layers-light.png](https://git.kayg.org/attachments/ad23dc3c-7f1a-477c-8a0d-603690dff731) ![glyph-spark-light.png](https://git.kayg.org/attachments/df160f47-ddd9-49f4-b683-6a813a60b906) ![glyph-saved-dark.png](https://git.kayg.org/attachments/b3cfe8c9-f43b-41cd-b4e8-67ffa44348ef) ![glyph-layers-dark.png](https://git.kayg.org/attachments/13f7023f-e548-4a2e-bb6f-532a0b1b7353) ![glyph-spark-dark.png](https://git.kayg.org/attachments/048206a0-2fe6-41ff-8168-aec417e67a96) ### For you to decide 1. **The glyph (V3):** lens + bookmark, layers, or sparkle tray? 2. **Views.md:** keep `search:?q=…`, or the shorter `search:…`? And should `Views.md` show up as a note in All notes (it's just a file you can edit), or stay out of the lists the way settings do? 3. **"notes" as a kind word:** "reading notes" now reads "notes" as a filter. Should kind words count only at the start or end of a query, or only in their plural forms ("photos", "files")? 4. **A View's results:** a View lists notes, days, photos and files, but not the tag itself (it did in search). OK? 5. **Phone:** the Mockup pill overlaps the search field on the phone sheet, and it did before this change too. It's the mockup's own switcher, not part of the design.
Author
Owner

kayg, round 2:

  • V10: yes. "notes" filters only when it is the first or last word.
  • V11: yes. A View never lists the tag.
  • V7b: files and folders starting with . are hidden by default, so Views go in a dot folder.
  • V7a: use a very human-readable, stable syntax that is extensible and modular, so it survives future plugins.

UI fixes:

  • Query tokens become chips that hug their text with padding.
  • Clicking a photo row does nothing today; it must open the photo.
  • Group the field's trailing ⋯ and esc into one pill.
  • Remove the "Kept in Views.md" menu line, because it shows machinery.

Sent to the #312 agent. kayg is testing on a phone next.

kayg, round 2: - **V10:** yes. "notes" filters only when it is the first or last word. - **V11:** yes. A View never lists the tag. - **V7b:** files and folders starting with `.` are hidden by default, so Views go in a dot folder. - **V7a:** use a very human-readable, stable syntax that is extensible and modular, so it survives future plugins. UI fixes: - Query tokens become chips that hug their text with padding. - Clicking a photo row does nothing today; it must open the photo. - Group the field's trailing ⋯ and esc into one pill. - Remove the "Kept in Views.md" menu line, because it shows machinery. Sent to the #312 agent. kayg is testing on a phone next.
Author
Owner

Views, round 2: your feedback and the iPhone test

Try it: https://preview.calternal.cloud/views.html#/note/2026-10-13?list=view:health · on a phone: https://preview.calternal.cloud/views.html#/home

PR #438, on a fresh branch issue/312-views-r2. It now builds on search r5 (issue/399-search-r5) instead of an older search. Only views.html and its new assets changed, so the backup is the old views.html (views.html.bak-312r1-202610151411). The other preview pages are untouched. The staging disk is full right now, filled by another job (#398's memory probe in /srv/i398), so a whole-site copy didn't fit.

Views no longer have their own search (A)

Views now use search's own pieces, so the two can't drift apart:

  • the field with its chips (search/Field.svelte) and the reader for filter words (packages/ui/src/search/words.ts);
  • the phone panel that hugs its content and stays above the keyboard (lib/fit/hug.ts, viewport.svelte.ts).

My separate token field and word reader from round 1 are gone. To share, I made three small changes to r5's code:

  • One query, read one way. search/state.svelte.ts gets QueryState (tokens, words, kept phrases) and queryOf(). Search keeps its own query, and a View's list edits its own copy with the same functions, so a View and search can never read a query differently.
  • One field for both. Field.svelte takes an optional q (the query it edits), onmore (the ⋯), small (the list-header size), and a label and placeholder. Search passes none of these and behaves exactly as before.
  • V10 is in words.ts, with tests (35 pass).

The r5 work should take these too; I've told the coordinator.

Decisions

  • V10: "notes" is a filter only as the first word, or as the last word with nothing typed after it. A space after it means more words are coming, so it stays a word. "reading notes in the park" searches the words; "notes canal" and "canal notes" filter.
  • V11: a View never lists the tag itself, only notes, days, photos and files.
  • V7b: Views live in .calternal/views.md. A dot folder stays out of every list, and .calternal/ has room for other app files later, all hidden the same way. The "Kept in Views.md" line is gone from the menus.

V7a: the file format: three options

Each option shows the same two Views, plus a key that some other plugin added (layout: grid).

A. One file per View, with frontmatter (.calternal/views/canal-runs.md, .calternal/views/travel-photos.md)

---
name: Canal runs
query: "canal run newest"
order: 2
---
---
name: Travel photos
query: "photos #area/travel"
order: 3
layout: grid
---
  • For: two devices editing two different Views never touch the same file.
  • Against: the order needs order: numbers, so one drag rewrites several files.
  • Against: it's YAML, and in YAML # starts a comment. query: #area/health silently becomes an empty query unless it's quoted, and that's exactly the mistake a hand edit makes.
  • Against: renaming means either renaming the file or the file name drifting away from the name.
  • Against: many small files for a handful of lines.

B. One file, a heading per View, key: value lines under it (recommended, built)

# Views

## Canal runs
query: canal run newest
id: canal

## Travel photos
query: photos #area/travel
id: travel-photos
layout: grid

C. One file, a list item per View, keys indented under it

# Views

- Canal runs
  query: canal run newest
  id: canal
- Travel photos
  query: photos #area/travel
  id: travel-photos
  layout: grid
  • Against: it reads well, but indentation is easy to break by hand (tabs or spaces, one space too few).
  • Against: every markdown viewer folds the keys into one run-on line under the bullet.

Why B. It reads like a note, and any markdown viewer shows it as an outline of Views. It needs no quoting or escaping, so # is just a character. Its rules:

  • Ordering: the file's order is the sidebar's order. Dragging a View moves its whole section (heading and every line under it); nothing gets renumbered.
  • Renames: the heading is the name, so a rename edits one line. id: keeps the View the same View through renames, so links keep working. The app adds an id the first time it saves a View that doesn't have one.
  • Extensible: only query: is required. A plugin adds its own key: value line under a View; a prefix such as calendar.color: sea is recommended so two plugins never pick the same key. Readers ignore keys they don't know and keep them when saving.
  • Round trips: the app only ever changes the lines it owns. A rename changes the heading, an update changes the query: line in place, and a missing id: is added once. Everything else stays where it was: unknown keys, notes to yourself, anything above the first View. The one thing it normalises is blank lines between Views (to one).
  • Hand edits:
    • A section without query: is kept in the file but isn't shown.
    • Two Views can share a name, because their ids differ. A repeated id gets -2 on the next save.
    • Keys don't care about case.
    • A value runs to the end of its line.
    • If two devices add Views at the same time, each adds a section, so a text merge keeps both.

All of this is built and checked. A file with free text, an unknown color: sea key and a section without a query survives a rename with everything in place. To read the live file, open the "Mockup" pill and expand .calternal/views.md.

Fixes

  1. Chips: a View's query now uses search's own chips, which are real pills. Each hugs its words with even padding and has 6 px of air before the next, with an icon in front. Tapping a chip turns it back into words. Search's caret rules apply (it lives in the words after the chips).
  2. Every row opens. Clicking a photo row or its thumbnail opens the photo large over the app. A file opens its first page. Notes and days open beside the View as before. From a photo or a file, the pill underneath opens its day. Esc, × (44 px) or a click outside closes it.
  3. One pill for the field's controls. Clear (×), ⋯ and esc share one glass pill, in search and in a View's query. On a phone the pill holds × and ⋯; Cancel stays a word beside it, and each segment has a 44 px hit area.

iPhone (B, C)

B: the band under the list. In a Safari tab the mockup was sized by 100svh, so it ended above Safari's floating toolbar, and the strip below was the flat page colour. Now the phone's list screens reach the large viewport (100lvh), so the list runs on under the toolbar's glass. The note screen keeps its height. The + button and Update view are lifted by the difference, and Update view floats beside + with no row behind it. The only thing at the very bottom is r5's soft fade into the page colour, with no accent in it. On a Home Screen app the difference is 0, so nothing changes there.

C: Safari's top and bottom. r5 already brought the app's #396/#405 approach into the mockup's shared shell: fitHomeScreen(), the root's colour taken from the backdrop or the glass, and soft fades at both edges. Building on r5 means views.html gets it now. search.html, sticky-header.html and the main page get it the next time they're built from a branch that includes r5. What I found about iOS 26 Safari:

  • It ignores theme-color. It tints the status bar and toolbar from the CSS background-color of position: fixed or sticky elements at the top or bottom edge. One write-up gives the thresholds: within 4 px of the top or 3 px of the bottom, at least 80% wide, at least 3 px tall. Otherwise it uses the root background. (jahir.dev, 1ar.io, safari-color-tinting)
  • A transparent root often turns the bars white, so the root needs a real colour. The mockup's root takes the sky's top colour, or the glass colour on the list screens. (1ar.io)
  • viewport-fit=cover is needed for content to show under the floating toolbar. The mockup already has it. (1ar.io)
  • An invisible fixed overlay still counts. A full-width position: fixed scrim at opacity: 0 still tints the bars. Ours are only on the page while they're open. (jahir.dev, 1ar.io)
  • A WebKit engineer says the tint is a solid colour extension that only appears when a fixed or sticky element sits at an edge. A page with no such element gets no tint. (WebKit bug 301756)
  • There's no Apple documentation; all of this is reverse-engineered, so the device has the last word.

Checklist for kayg's iPhone (Safari, iOS 26, floating bottom toolbar; please send a screenshot of each):

  1. Open https://preview.calternal.cloud/views.html#/home. The status bar area should match the top of the screen (frosted glass over the sky), not a flat cream band.
  2. Go into Canal runs and scroll to the bottom. Rows should keep going under Safari's toolbar and fade softly at the very bottom. There should be no grey or frosted strip with a hard edge.
  3. Tap the View's query, type newest and close the keyboard. Update view and the undo pill should float left of +, on the same line, clear of Safari's toolbar, with no strip behind them.
  4. Tap ⌕ (search). The panel should hang from the top and end just above the keyboard; with the keyboard down, it should shrink to its results.
  5. Open Travel photos and tap a row. The photo should open large, with × at the top right, tappable.
  6. Add the page to the Home Screen and repeat 1–3. There should be no strips at either edge.
  7. Turn the phone sideways on a list. The notch side should stay clear.

Checked

  • Chromium and WebKit, 1440 and touch at 390: 54 checks pass, with no page errors:

    • Views sit between the places and the tags;
    • chips form in search, with 6 px of air between them;
    • the controls pill has three segments;
    • Ctrl+S saves, and the name is selected;
    • the file gets the new section, and a plugin's key is kept;
    • a View's query is chips in the shared field, and Update view rewrites query: in place while the id stays;
    • Esc puts it back;
    • a photo row and its thumbnail open the photo, and Enter on a file opens its page;
    • a hand-edited file survives a rename;
    • no Views means no group.
  • Touch at 390 (WebKit and Chromium, emulated):

    • tapping a View opens it, and tapping a photo row opens the photo;
    • × is 44×44;
    • Update view is 44 px tall and on screen, and tapping it keeps the change;
    • the ⋯ segment opens the menu.

    Emulation isn't proof: no emulator has Safari's floating toolbar or the real lvh/svh gap, so B and C need the checklist above.

  • Parser: 35 unit tests pass, V10's included.

Screenshots (Chromium)

Desktop sets are, in order: the View · Update view · search ⋯ · just saved · a photo opened from a View.

1440 light: 1-view-1440-light.png 3-update-1440-light.png 4-menu-1440-light.png 5-saved-1440-light.png 6-photo-1440-light.png

1440 dark: 1-view-1440-dark.png 3-update-1440-dark.png 4-menu-1440-dark.png 5-saved-1440-dark.png 6-photo-1440-dark.png

900 light: 1-view-900-light.png 3-update-900-light.png 4-menu-900-light.png 5-saved-900-light.png 6-photo-900-light.png

900 dark: 1-view-900-dark.png 3-update-900-dark.png 4-menu-900-dark.png 5-saved-900-dark.png 6-photo-900-dark.png

Phone sets are, in order: Places · a View · Update view · search ⋯ · just saved · a photo opened from a View.

390 light: 1-places-390-light.png 2-view-390-light.png 3-update-390-light.png 4-menu-390-light.png 5-saved-390-light.png 6-photo-390-light.png

390 dark: 1-places-390-dark.png 2-view-390-dark.png 3-update-390-dark.png 4-menu-390-dark.png 5-saved-390-dark.png 6-photo-390-dark.png

375 light: 1-places-375-light.png 2-view-375-light.png 3-update-375-light.png 4-menu-375-light.png 5-saved-375-light.png 6-photo-375-light.png

375 dark: 1-places-375-dark.png 2-view-375-dark.png 3-update-375-dark.png 4-menu-375-dark.png 5-saved-375-dark.png 6-photo-375-dark.png

360 light: 1-places-360-light.png 2-view-360-light.png 3-update-360-light.png 4-menu-360-light.png 5-saved-360-light.png 6-photo-360-light.png

360 dark: 1-places-360-dark.png 2-view-360-dark.png 3-update-360-dark.png 4-menu-360-dark.png 5-saved-360-dark.png 6-photo-360-dark.png

320 light: 1-places-320-light.png 2-view-320-light.png 3-update-320-light.png 4-menu-320-light.png 5-saved-320-light.png 6-photo-320-light.png

320 dark: 1-places-320-dark.png 2-view-320-dark.png 3-update-320-dark.png 4-menu-320-dark.png 5-saved-320-dark.png 6-photo-320-dark.png

At 320 the search line scrolls to the words you're typing, so finished chips can slide off its left edge (r5's behaviour, with a fade); search's clear moves into ⋯ there to give them room.

## Views, round 2: your feedback and the iPhone test **Try it:** https://preview.calternal.cloud/views.html#/note/2026-10-13?list=view:health · on a phone: https://preview.calternal.cloud/views.html#/home PR #438, on a fresh branch `issue/312-views-r2`. It now builds on **search r5 (`issue/399-search-r5`)** instead of an older search. Only `views.html` and its new assets changed, so the backup is the old `views.html` (`views.html.bak-312r1-202610151411`). The other preview pages are untouched. The staging disk is full right now, filled by another job (#398's memory probe in `/srv/i398`), so a whole-site copy didn't fit. ### Views no longer have their own search (A) Views now use search's own pieces, so the two can't drift apart: - the field with its chips (`search/Field.svelte`) and the reader for filter words (`packages/ui/src/search/words.ts`); - the phone panel that hugs its content and stays above the keyboard (`lib/fit/hug.ts`, `viewport.svelte.ts`). My separate token field and word reader from round 1 are gone. To share, I made three small changes to r5's code: - **One query, read one way.** `search/state.svelte.ts` gets `QueryState` (tokens, words, kept phrases) and `queryOf()`. Search keeps its own query, and a View's list edits its own copy with the same functions, so a View and search can never read a query differently. - **One field for both.** `Field.svelte` takes an optional `q` (the query it edits), `onmore` (the ⋯), `small` (the list-header size), and a label and placeholder. Search passes none of these and behaves exactly as before. - **V10** is in `words.ts`, with tests (35 pass). The r5 work should take these too; I've told the coordinator. ### Decisions - **V10:** "notes" is a filter only as the first word, or as the last word with nothing typed after it. A space after it means more words are coming, so it stays a word. "reading notes in the park" searches the words; "notes canal" and "canal notes" filter. - **V11:** a View never lists the tag itself, only notes, days, photos and files. - **V7b:** Views live in **`.calternal/views.md`**. A dot folder stays out of every list, and `.calternal/` has room for other app files later, all hidden the same way. The "Kept in Views.md" line is gone from the menus. ### V7a: the file format: three options Each option shows the same two Views, plus a key that some other plugin added (`layout: grid`). **A. One file per View, with frontmatter** (`.calternal/views/canal-runs.md`, `.calternal/views/travel-photos.md`) ```markdown --- name: Canal runs query: "canal run newest" order: 2 --- ``` ```markdown --- name: Travel photos query: "photos #area/travel" order: 3 layout: grid --- ``` - **For:** two devices editing two different Views never touch the same file. - **Against:** the order needs `order:` numbers, so one drag rewrites several files. - **Against:** it's YAML, and in YAML `#` starts a comment. `query: #area/health` silently becomes an empty query unless it's quoted, and that's exactly the mistake a hand edit makes. - **Against:** renaming means either renaming the file or the file name drifting away from the name. - **Against:** many small files for a handful of lines. **B. One file, a heading per View, `key: value` lines under it** *(recommended, built)* ```markdown # Views ## Canal runs query: canal run newest id: canal ## Travel photos query: photos #area/travel id: travel-photos layout: grid ``` **C. One file, a list item per View, keys indented under it** ```markdown # Views - Canal runs query: canal run newest id: canal - Travel photos query: photos #area/travel id: travel-photos layout: grid ``` - **Against:** it reads well, but indentation is easy to break by hand (tabs or spaces, one space too few). - **Against:** every markdown viewer folds the keys into one run-on line under the bullet. **Why B.** It reads like a note, and any markdown viewer shows it as an outline of Views. It needs no quoting or escaping, so `#` is just a character. Its rules: - **Ordering:** the file's order is the sidebar's order. Dragging a View moves its whole section (heading and every line under it); nothing gets renumbered. - **Renames:** the heading is the name, so a rename edits one line. `id:` keeps the View the same View through renames, so links keep working. The app adds an `id` the first time it saves a View that doesn't have one. - **Extensible:** only `query:` is required. A plugin adds its own `key: value` line under a View; a prefix such as `calendar.color: sea` is recommended so two plugins never pick the same key. Readers ignore keys they don't know and keep them when saving. - **Round trips:** the app only ever changes the lines it owns. A rename changes the heading, an update changes the `query:` line in place, and a missing `id:` is added once. Everything else stays where it was: unknown keys, notes to yourself, anything above the first View. The one thing it normalises is blank lines between Views (to one). - **Hand edits:** - A section without `query:` is kept in the file but isn't shown. - Two Views can share a name, because their ids differ. A repeated id gets `-2` on the next save. - Keys don't care about case. - A value runs to the end of its line. - If two devices add Views at the same time, each adds a section, so a text merge keeps both. All of this is built and checked. A file with free text, an unknown `color: sea` key and a section without a query survives a rename with everything in place. To read the live file, open the "Mockup" pill and expand `.calternal/views.md`. ### Fixes 1. **Chips:** a View's query now uses search's own chips, which are real pills. Each hugs its words with even padding and has 6 px of air before the next, with an icon in front. Tapping a chip turns it back into words. Search's caret rules apply (it lives in the words after the chips). 2. **Every row opens.** Clicking a photo row or its thumbnail opens the photo large over the app. A file opens its first page. Notes and days open beside the View as before. From a photo or a file, the pill underneath opens its day. Esc, × (44 px) or a click outside closes it. 3. **One pill for the field's controls.** Clear (×), ⋯ and esc share one glass pill, in search and in a View's query. On a phone the pill holds × and ⋯; Cancel stays a word beside it, and each segment has a 44 px hit area. ### iPhone (B, C) **B: the band under the list.** In a Safari tab the mockup was sized by `100svh`, so it ended above Safari's floating toolbar, and the strip below was the flat page colour. Now the phone's list screens reach the large viewport (`100lvh`), so the list runs on under the toolbar's glass. The note screen keeps its height. The + button and *Update view* are lifted by the difference, and *Update view* floats beside + with no row behind it. The only thing at the very bottom is r5's soft fade into the page colour, with no accent in it. On a Home Screen app the difference is 0, so nothing changes there. **C: Safari's top and bottom.** r5 already brought the app's #396/#405 approach into the mockup's shared shell: `fitHomeScreen()`, the root's colour taken from the backdrop or the glass, and soft fades at both edges. Building on r5 means views.html gets it now. search.html, sticky-header.html and the main page get it the next time they're built from a branch that includes r5. What I found about iOS 26 Safari: - **It ignores `theme-color`.** It tints the status bar and toolbar from the CSS `background-color` of `position: fixed` or `sticky` elements at the top or bottom edge. One write-up gives the thresholds: within 4 px of the top or 3 px of the bottom, at least 80% wide, at least 3 px tall. Otherwise it uses the root background. ([jahir.dev](https://jahir.dev/blog/safari-toolbar), [1ar.io](https://1ar.io/updates/safari-26-liquid-glass-web/), [safari-color-tinting](https://github.com/andesco/safari-color-tinting)) - **A transparent root often turns the bars white,** so the root needs a real colour. The mockup's root takes the sky's top colour, or the glass colour on the list screens. ([1ar.io](https://1ar.io/updates/safari-26-liquid-glass-web/)) - **`viewport-fit=cover` is needed** for content to show under the floating toolbar. The mockup already has it. ([1ar.io](https://1ar.io/updates/safari-26-liquid-glass-web/)) - **An invisible fixed overlay still counts.** A full-width `position: fixed` scrim at `opacity: 0` still tints the bars. Ours are only on the page while they're open. ([jahir.dev](https://jahir.dev/blog/safari-toolbar), [1ar.io](https://1ar.io/updates/safari-26-liquid-glass-web/)) - **A WebKit engineer says the tint is a solid colour extension** that only appears when a fixed or sticky element sits at an edge. A page with no such element gets no tint. ([WebKit bug 301756](https://bugs.webkit.org/show_bug.cgi?id=301756)) - There's no Apple documentation; all of this is reverse-engineered, so the device has the last word. **Checklist for kayg's iPhone** (Safari, iOS 26, floating bottom toolbar; please send a screenshot of each): 1. Open https://preview.calternal.cloud/views.html#/home. The status bar area should match the top of the screen (frosted glass over the sky), not a flat cream band. 2. Go into *Canal runs* and scroll to the bottom. Rows should keep going under Safari's toolbar and fade softly at the very bottom. There should be no grey or frosted strip with a hard edge. 3. Tap the View's query, type `newest` and close the keyboard. *Update view* and the undo pill should float left of +, on the same line, clear of Safari's toolbar, with no strip behind them. 4. Tap ⌕ (search). The panel should hang from the top and end just above the keyboard; with the keyboard down, it should shrink to its results. 5. Open *Travel photos* and tap a row. The photo should open large, with × at the top right, tappable. 6. Add the page to the Home Screen and repeat 1–3. There should be no strips at either edge. 7. Turn the phone sideways on a list. The notch side should stay clear. ### Checked - **Chromium and WebKit, 1440 and touch at 390:** 54 checks pass, with no page errors: - Views sit between the places and the tags; - chips form in search, with 6 px of air between them; - the controls pill has three segments; - Ctrl+S saves, and the name is selected; - the file gets the new section, and a plugin's key is kept; - a View's query is chips in the shared field, and *Update view* rewrites `query:` in place while the id stays; - Esc puts it back; - a photo row and its thumbnail open the photo, and Enter on a file opens its page; - a hand-edited file survives a rename; - no Views means no group. - **Touch at 390 (WebKit and Chromium, emulated):** - tapping a View opens it, and tapping a photo row opens the photo; - × is 44×44; - *Update view* is 44 px tall and on screen, and tapping it keeps the change; - the ⋯ segment opens the menu. Emulation isn't proof: no emulator has Safari's floating toolbar or the real `lvh`/`svh` gap, so B and C need the checklist above. - **Parser:** 35 unit tests pass, V10's included. ### Screenshots (Chromium) Desktop sets are, in order: the View · *Update view* · search ⋯ · just saved · a photo opened from a View. **1440 light:** ![1-view-1440-light.png](https://git.kayg.org/attachments/fcde2790-6807-4b8a-b1fd-1ce4e00b804d) ![3-update-1440-light.png](https://git.kayg.org/attachments/eb022840-2f79-43d5-850b-c8a3e5e1d222) ![4-menu-1440-light.png](https://git.kayg.org/attachments/ea608ccc-213d-44c2-b6cb-8df8dc261a94) ![5-saved-1440-light.png](https://git.kayg.org/attachments/0abf9bfe-f29d-4fee-bfe7-e72cffb093f6) ![6-photo-1440-light.png](https://git.kayg.org/attachments/d3013ccc-feb8-4281-96b7-4ae19455d9d2) **1440 dark:** ![1-view-1440-dark.png](https://git.kayg.org/attachments/b3cd2bd4-fbec-4e6c-b437-e772d1895739) ![3-update-1440-dark.png](https://git.kayg.org/attachments/1002822c-9bb9-4b92-aef0-7b665c591c98) ![4-menu-1440-dark.png](https://git.kayg.org/attachments/fecd30ea-e787-4616-8e85-38f6db423c6f) ![5-saved-1440-dark.png](https://git.kayg.org/attachments/4563b327-75c3-4157-bd16-02abf6fa7d62) ![6-photo-1440-dark.png](https://git.kayg.org/attachments/c8e318ed-d219-4879-b7a8-d5f657e7d814) **900 light:** ![1-view-900-light.png](https://git.kayg.org/attachments/5dbe96b5-a3a8-4719-88d8-5f484fadc8e9) ![3-update-900-light.png](https://git.kayg.org/attachments/f3b23550-fa28-4b1a-8a73-9da5e9a5d4f8) ![4-menu-900-light.png](https://git.kayg.org/attachments/e22f0d28-46ca-4c4d-8b32-234490ef3ec9) ![5-saved-900-light.png](https://git.kayg.org/attachments/373197de-c9b6-4955-8cfc-085c40741090) ![6-photo-900-light.png](https://git.kayg.org/attachments/be9d9226-31a6-4712-99df-17e567de2243) **900 dark:** ![1-view-900-dark.png](https://git.kayg.org/attachments/4cf67928-eab0-4be2-a20b-dc90b1f783e1) ![3-update-900-dark.png](https://git.kayg.org/attachments/66013836-9de0-40aa-8bae-bfbdd4165f1c) ![4-menu-900-dark.png](https://git.kayg.org/attachments/10c08877-8a79-495e-9cac-b811c54474fa) ![5-saved-900-dark.png](https://git.kayg.org/attachments/43e11559-ae92-4b3f-ad06-67c83c959f60) ![6-photo-900-dark.png](https://git.kayg.org/attachments/cc9e087d-513c-43ec-a066-062a73a3da2b) Phone sets are, in order: Places · a View · *Update view* · search ⋯ · just saved · a photo opened from a View. **390 light:** ![1-places-390-light.png](https://git.kayg.org/attachments/9aa90bce-7c81-4462-8269-e1f6be0b0e17) ![2-view-390-light.png](https://git.kayg.org/attachments/7ad0d367-2070-4eaf-8b43-7eaf923f6a7e) ![3-update-390-light.png](https://git.kayg.org/attachments/79c471b3-e3cf-47a2-a051-81ac6e55e724) ![4-menu-390-light.png](https://git.kayg.org/attachments/410245b7-7237-48c1-9e02-effcbd0f42f1) ![5-saved-390-light.png](https://git.kayg.org/attachments/7bdc5ba7-6349-4edc-9f4d-aaabdccb0af4) ![6-photo-390-light.png](https://git.kayg.org/attachments/face067f-a8f2-47b1-b467-4382f34e05b3) **390 dark:** ![1-places-390-dark.png](https://git.kayg.org/attachments/b7768d51-0959-468f-b813-1f33682dbe2b) ![2-view-390-dark.png](https://git.kayg.org/attachments/9ee8e41a-b5de-4857-a149-23d0664acad4) ![3-update-390-dark.png](https://git.kayg.org/attachments/23c0d4c0-a834-423e-9498-e3dd4f04218f) ![4-menu-390-dark.png](https://git.kayg.org/attachments/4aa5a7c8-777a-4c1e-b520-5cb75fd2d317) ![5-saved-390-dark.png](https://git.kayg.org/attachments/1ff854bc-2ab6-4e02-9a01-890dacab3a87) ![6-photo-390-dark.png](https://git.kayg.org/attachments/5f820378-da93-41d3-a044-19d940adc051) **375 light:** ![1-places-375-light.png](https://git.kayg.org/attachments/a833f161-8e42-44f6-bdbc-c36f2d3dfe8a) ![2-view-375-light.png](https://git.kayg.org/attachments/f006e0a0-c63f-401d-b66f-cb903455aa5d) ![3-update-375-light.png](https://git.kayg.org/attachments/458d940e-ab62-480f-bc1d-109899bec4f9) ![4-menu-375-light.png](https://git.kayg.org/attachments/ab3e169c-eb25-4119-8da0-11be66b90b76) ![5-saved-375-light.png](https://git.kayg.org/attachments/068f2dcd-5f67-49c1-9133-95d39be0de1c) ![6-photo-375-light.png](https://git.kayg.org/attachments/ad871c16-ad24-484b-8826-bd1240ab164e) **375 dark:** ![1-places-375-dark.png](https://git.kayg.org/attachments/87152a63-65a6-4dd2-9ea2-1e240ecb9d38) ![2-view-375-dark.png](https://git.kayg.org/attachments/683ba34a-4650-46cd-bd78-84e6b8b80c85) ![3-update-375-dark.png](https://git.kayg.org/attachments/774f87a6-1d5b-4bf5-b30b-9957f9c8aac7) ![4-menu-375-dark.png](https://git.kayg.org/attachments/1d3ea6cb-e221-4b5a-8601-42b161e0326c) ![5-saved-375-dark.png](https://git.kayg.org/attachments/80b03f83-7779-451b-9f79-29da31fb9454) ![6-photo-375-dark.png](https://git.kayg.org/attachments/4c72341d-38e9-4ea9-9c72-d615ec6c87f5) **360 light:** ![1-places-360-light.png](https://git.kayg.org/attachments/44a710e0-615d-4380-b3f3-6650494f9c50) ![2-view-360-light.png](https://git.kayg.org/attachments/b78eedd1-a44c-4099-9688-a421b969e3a2) ![3-update-360-light.png](https://git.kayg.org/attachments/a7310a66-a944-4a9e-88b0-88800870b26c) ![4-menu-360-light.png](https://git.kayg.org/attachments/a029d853-961d-4fff-99d5-6e0c88bd5106) ![5-saved-360-light.png](https://git.kayg.org/attachments/9e1a243b-ab32-4ebb-8c43-8af6c391e1e5) ![6-photo-360-light.png](https://git.kayg.org/attachments/267e1837-2c7a-48ca-8c0f-13156f537df4) **360 dark:** ![1-places-360-dark.png](https://git.kayg.org/attachments/29a8df55-b424-4ddb-939b-dc2ecc2769de) ![2-view-360-dark.png](https://git.kayg.org/attachments/7bce2795-41e8-4fe3-9d97-7380f8f0b833) ![3-update-360-dark.png](https://git.kayg.org/attachments/a31ba09a-47fe-423f-899a-ff3172ce0a4f) ![4-menu-360-dark.png](https://git.kayg.org/attachments/5f85b220-8831-487a-8b2c-2664ca37b3bd) ![5-saved-360-dark.png](https://git.kayg.org/attachments/506e7e0b-45c9-4b0d-b708-25308bf6d44b) ![6-photo-360-dark.png](https://git.kayg.org/attachments/7aa868b9-0054-484c-9844-ee8d0e272a9b) **320 light:** ![1-places-320-light.png](https://git.kayg.org/attachments/9abc76aa-7417-4507-8123-a3c30dd4e3f9) ![2-view-320-light.png](https://git.kayg.org/attachments/814e4ca0-2937-4b05-8e7a-0d57f9dc82f7) ![3-update-320-light.png](https://git.kayg.org/attachments/d921e817-a573-4c59-881e-884e7814f8ad) ![4-menu-320-light.png](https://git.kayg.org/attachments/bae6696e-dc7f-459a-9542-357c600eb8c7) ![5-saved-320-light.png](https://git.kayg.org/attachments/4d9e229b-52cd-44ae-9b5e-b4be1d728f47) ![6-photo-320-light.png](https://git.kayg.org/attachments/da0542e4-aef1-48f4-a66b-7f20973b7014) **320 dark:** ![1-places-320-dark.png](https://git.kayg.org/attachments/ee623a03-0157-4e9e-80c7-7384482a9085) ![2-view-320-dark.png](https://git.kayg.org/attachments/004d24ae-7d72-4390-ba68-af8268e72040) ![3-update-320-dark.png](https://git.kayg.org/attachments/d6a71902-f5bb-4a03-a68f-ac06e3bff545) ![4-menu-320-dark.png](https://git.kayg.org/attachments/ae2b64eb-ec2d-4ce6-8542-9154ec958624) ![5-saved-320-dark.png](https://git.kayg.org/attachments/0291601a-3f92-473d-91cf-936e3525ab9b) ![6-photo-320-dark.png](https://git.kayg.org/attachments/501bf458-bbba-4c01-a859-7b64dc40e53a) At 320 the search line scrolls to the words you're typing, so finished chips can slide off its left edge (r5's behaviour, with a fade); search's clear moves into ⋯ there to give them room.
Author
Owner

Fix: Update view no longer floats over a note on a phone

The coordinator caught this: at 390, views.html#/note/2026-10-13?list=view:canal&vq=canal run past month showed Update view and its ↶ over the note, on top of the note's bottom bar. On a phone the pills now show only on the View's own list screen. Go back to the View and its changed query and pills are still there. Wide screens are unchanged: the pills stay under the list.

Deployed to https://preview.calternal.cloud/views.html#/note/2026-10-13?list=view:canal&vq=canal%20run%20past%20month (backup site.bak-312r2b-202610151426). PR #440 replaces #438.

New checks (Chromium and WebKit, touch at 390): no Update view over a note; back goes to the View; Update view is there again. All 60 checks pass.

Before (390 light · dark): the pills sit on the note's bar
before-note-390-light.png before-note-390-dark.png

After (390 light · dark): the note has its own bar only
after-note-390-light.png after-note-390-dark.png

After, back on the View (390 light · dark): Update view is there with the changed query
after-list-390-light.png after-list-390-dark.png

## Fix: *Update view* no longer floats over a note on a phone The coordinator caught this: at 390, `views.html#/note/2026-10-13?list=view:canal&vq=canal run past month` showed *Update view* and its ↶ over the note, on top of the note's bottom bar. On a phone the pills now show only on the View's own list screen. Go back to the View and its changed query and pills are still there. Wide screens are unchanged: the pills stay under the list. Deployed to https://preview.calternal.cloud/views.html#/note/2026-10-13?list=view:canal&vq=canal%20run%20past%20month (backup `site.bak-312r2b-202610151426`). PR #440 replaces #438. **New checks** (Chromium and WebKit, touch at 390): no *Update view* over a note; back goes to the View; *Update view* is there again. All 60 checks pass. **Before** (390 light · dark): the pills sit on the note's bar ![before-note-390-light.png](https://git.kayg.org/attachments/3ceaa792-1d75-4d65-91ff-ceec6d46c229) ![before-note-390-dark.png](https://git.kayg.org/attachments/c1f7d5f9-6751-4340-8ccf-01c759b4a225) **After** (390 light · dark): the note has its own bar only ![after-note-390-light.png](https://git.kayg.org/attachments/f1c4ec66-5b55-4e6a-be90-45960fd21974) ![after-note-390-dark.png](https://git.kayg.org/attachments/ffbfbc20-c40f-4605-826c-6bb49f88b4f5) **After, back on the View** (390 light · dark): *Update view* is there with the changed query ![after-list-390-light.png](https://git.kayg.org/attachments/8d4be691-8189-4dbc-8df3-c49faa1b919f) ![after-list-390-dark.png](https://git.kayg.org/attachments/04cc83e5-6fea-421d-ae9a-5c94227ac307)
Author
Owner

Fix: a pushed note covers the list beneath it (real iOS 27 Safari)

Found on the iOS 27 simulator (iPhone 18 Pro), Safari with the floating bottom toolbar. With a note open over a View, a row of the list screen underneath ("6 October … 6 Oct") showed behind Safari's toolbar.

  • Cause: the note screen stopped at the small viewport, which is above the toolbar; the list screen is pushed back underneath it and showed through the gap.
  • Fix: the note screen now covers the whole stack down to the physical bottom. Its page still ends above the toolbar, and its bar rises by the toolbar's height (--under), so the bar is exactly where it was.

Deployed to https://preview.calternal.cloud/views.html#/note/2026-10-13?list=view:canal&vq=canal%20run%20past%20month (backup site.bak-312r2c-202610151951). PR #452 replaces #440. All 60 scripted checks still pass.

All screenshots below are from the iOS 27 simulator, Safari.

The note, before (light · dark): a list row peeks out above the toolbar
before-note-light.png before-note-dark.png

The note, after (light · dark): paper right down under the toolbar
after-note-light.png after-note-dark.png

A View's list, after (light · dark): it runs on under the toolbar; Update view and + float above it
after-list-light.png after-list-dark.png

Places, after (light · dark): the status bar takes the sky's colour; the list runs under the toolbar
after-places-light.png after-places-dark.png

The list and Places looked the same before (unchanged by this fix): before-list-light.png before-list-dark.png before-places-light.png before-places-dark.png

## Fix: a pushed note covers the list beneath it (real iOS 27 Safari) Found on the iOS 27 simulator (iPhone 18 Pro), Safari with the floating bottom toolbar. With a note open over a View, a row of the list screen underneath ("6 October … 6 Oct") showed behind Safari's toolbar. - **Cause:** the note screen stopped at the small viewport, which is above the toolbar; the list screen is pushed back underneath it and showed through the gap. - **Fix:** the note screen now covers the whole stack down to the physical bottom. Its page still ends above the toolbar, and its bar rises by the toolbar's height (`--under`), so the bar is exactly where it was. Deployed to https://preview.calternal.cloud/views.html#/note/2026-10-13?list=view:canal&vq=canal%20run%20past%20month (backup `site.bak-312r2c-202610151951`). PR #452 replaces #440. All 60 scripted checks still pass. All screenshots below are from the **iOS 27 simulator**, Safari. **The note, before** (light · dark): a list row peeks out above the toolbar ![before-note-light.png](https://git.kayg.org/attachments/d0848787-fb9c-4ed7-a93c-12b7dd3de6d4) ![before-note-dark.png](https://git.kayg.org/attachments/475b9c88-a674-478e-a33d-1e817634663d) **The note, after** (light · dark): paper right down under the toolbar ![after-note-light.png](https://git.kayg.org/attachments/54c0b432-2e57-4a8a-af5f-d1899e67cb11) ![after-note-dark.png](https://git.kayg.org/attachments/3a952a6d-3695-4735-a5f9-5b279d515381) **A View's list, after** (light · dark): it runs on under the toolbar; *Update view* and + float above it ![after-list-light.png](https://git.kayg.org/attachments/f99ae238-51da-4109-b1b0-fed6ca707784) ![after-list-dark.png](https://git.kayg.org/attachments/3c1df26c-55c6-435f-bd04-17266477ea01) **Places, after** (light · dark): the status bar takes the sky's colour; the list runs under the toolbar ![after-places-light.png](https://git.kayg.org/attachments/0ba050b6-432f-453b-ad4e-6a0244906644) ![after-places-dark.png](https://git.kayg.org/attachments/7e169ac1-27cd-4b52-bc32-9779f6301eef) The list and Places looked the same before (unchanged by this fix): ![before-list-light.png](https://git.kayg.org/attachments/c93f63bf-88c5-4c65-ac30-3119f2339206) ![before-list-dark.png](https://git.kayg.org/attachments/cae26e5e-1174-4b3a-8740-17d2e7de5e3d) ![before-places-light.png](https://git.kayg.org/attachments/6027ffce-5ff4-4aeb-bf82-87808af7b73b) ![before-places-dark.png](https://git.kayg.org/attachments/b91f98ff-fc2c-4724-a227-bb0041532ff6)
Author
Owner

The leak at 23:28 was a stale page; preview pages now always revalidate

The coordinator's check at 23:28 still showed the list row under the note. That tab was running an old copy of views.html:

  • Preview served HTML with no Cache-Control, so Safari kept the page "fresh" by its own heuristic: about 10% of the time since last modified, so about 30 minutes here.
  • That tab first loaded the page at 23:18, before the fix went out at about 23:21.
  • At 23:28 Safari reused that page, which still pointed at the old scripts. Adding &r=2 after # doesn't fetch a new page; only the hash changes.

Fixed on the server, for every preview page. Preview's Caddy now sends Cache-Control: no-cache for / and every *.html. Each load checks back (a cheap 304 by ETag), so a phone can't run an old page against new assets after a deploy. Assets stay immutable. The old Caddyfile is backed up as Caddyfile.bak-312-*; the change was validated, then applied by a graceful reload.

$ curl -sI https://preview.calternal.cloud/views.html | grep -i cache-control
cache-control: no-cache
$ curl -sI https://preview.calternal.cloud/assets/index-BXYVwimA.js | grep -i cache-control
cache-control: public, max-age=31536000, immutable

Re-verified on the iOS 27 simulator (Safari), plain URL with no cache-busting, fresh navigation each time. I went through another page first so views.html really loaded again rather than just changing its hash. The ◀ Cal 4810 in the status bar is the harness agent's app, which shares the simulator.

  • By deep link to views.html#/note/2026-10-13?list=view:canal&vq=canal run past month, light · dark: paper down under the toolbar, nothing showing through
    cold-deep-light.png cold-deep-dark.png
  • Coming from the View (Canal runs list, then into the note in the same page), light · dark: clean
    cold-flow-light.png cold-flow-dark.png
  • For reference, the 23:28 screenshot from the stale tab:
    coord-2328-stale.png

Not checked here: with the caret in the note (the bar shows Log ⊞ Aa ⓘ), the bar sits by the same rule. I can't tap in the simulator from here, so the harness agent could confirm that state. The code fix itself is unchanged from PR #452.

## The leak at 23:28 was a stale page; preview pages now always revalidate The coordinator's check at 23:28 still showed the list row under the note. That tab was running an **old copy of `views.html`**: - Preview served HTML with **no `Cache-Control`**, so Safari kept the page "fresh" by its own heuristic: about 10% of the time since last modified, so about 30 minutes here. - That tab first loaded the page at 23:18, before the fix went out at about 23:21. - At 23:28 Safari reused that page, which still pointed at the old scripts. Adding `&r=2` after `#` doesn't fetch a new page; only the hash changes. **Fixed on the server, for every preview page.** Preview's Caddy now sends `Cache-Control: no-cache` for `/` and every `*.html`. Each load checks back (a cheap 304 by ETag), so a phone can't run an old page against new assets after a deploy. Assets stay `immutable`. The old Caddyfile is backed up as `Caddyfile.bak-312-*`; the change was validated, then applied by a graceful reload. ``` $ curl -sI https://preview.calternal.cloud/views.html | grep -i cache-control cache-control: no-cache $ curl -sI https://preview.calternal.cloud/assets/index-BXYVwimA.js | grep -i cache-control cache-control: public, max-age=31536000, immutable ``` **Re-verified on the iOS 27 simulator (Safari), plain URL with no cache-busting, fresh navigation each time.** I went through another page first so `views.html` really loaded again rather than just changing its hash. The ◀ Cal 4810 in the status bar is the harness agent's app, which shares the simulator. - **By deep link** to `views.html#/note/2026-10-13?list=view:canal&vq=canal run past month`, light · dark: paper down under the toolbar, nothing showing through ![cold-deep-light.png](https://git.kayg.org/attachments/41fb6aea-195b-4fe0-93ef-c89ca2961baf) ![cold-deep-dark.png](https://git.kayg.org/attachments/572e9cf8-ec36-420c-95af-12723b714c40) - **Coming from the View** (Canal runs list, then into the note in the same page), light · dark: clean ![cold-flow-light.png](https://git.kayg.org/attachments/fa96448a-6cac-4ada-9681-b76a5d97537f) ![cold-flow-dark.png](https://git.kayg.org/attachments/62c4e190-5cc9-4d3b-ab34-6dc5c0987df5) - **For reference, the 23:28 screenshot** from the stale tab: ![coord-2328-stale.png](https://git.kayg.org/attachments/a40292be-3bca-4b17-bdb5-f5e1448e6fb2) **Not checked here:** with the caret in the note (the bar shows Log ⊞ Aa ⓘ), the bar sits by the same rule. I can't tap in the simulator from here, so the harness agent could confirm that state. The code fix itself is unchanged from PR #452.
Author
Owner

Decided by kayg, 2026-10-17: Views are named Collections. Starter examples for new users are still open: the six in the mockup sidebar are placeholders.

**Decided by kayg, 2026-10-17:** Views are named **Collections**. Starter examples for new users are still open: the six in the mockup sidebar are placeholders.
Author
Owner

kayg, 2026-10-17: "examples would be awesome in mockups". The mockup replaces the tag-only placeholders with example Collections that show what a Collection does beyond a tag:

  • This week: edited in the last 7 days;
  • Open tasks: notes with unchecked to-dos;
  • With photos: gallery view by default;
  • Calternal: a tag OR links to a note.

Each list shows its rule as its subtitle.

**kayg, 2026-10-17:** "examples would be awesome in mockups". The mockup replaces the tag-only placeholders with example Collections that show what a Collection does beyond a tag: - **This week:** edited in the last 7 days; - **Open tasks:** notes with unchecked to-dos; - **With photos:** gallery view by default; - **Calternal:** a tag OR links to a note. Each list shows its rule as its subtitle.
Sign in to join this conversation.
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#312
No description provided.