Links to missing notes: click creates; gone notes explain themselves #448

Closed
opened 2026-10-15 17:28:55 +00:00 by kayg · 16 comments
Owner

kayg (2026-10-15): clicking a link to a note that does not exist does nothing. It should be smart about two cases:

  1. A link I just wrote to a note that never existed: clicking should create that note right there and open it.
  2. A link whose note existed but is gone (Trash, deleted, renamed or moved): say so in friendly words and offer what can be done.

Grill L1–L6 in chat. Mockup on preview with switchable variants first. Nothing is merged until kayg approves the mockup.

kayg (2026-10-15): clicking a link to a note that does not exist does nothing. It should be smart about two cases: 1. A link I just wrote to a note that never existed: clicking should create that note right there and open it. 2. A link whose note existed but is gone (Trash, deleted, renamed or moved): say so in friendly words and offer what can be done. Grill L1–L6 in chat. Mockup on preview with switchable variants first. Nothing is merged until kayg approves the mockup.
Author
Owner

Mockup is up: https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all (variants on the Mockup pill, bottom right, or in the URL). Branch issue/448-links-mockup, PR #453 (mockup, do not merge). It follows kayg's answers L1–L6.

Variant links:

What it does:

  • L1 A click on a note that was never written ([calternal](<calternal.md>) or [[Calternal ideas]]) makes the note at the path the link points to, titled with the link's words, and opens it with "Made '…' · Undo". The link works without being rewritten, and [[…]] stays written as [[…]].
  • L2 No underlines. Every link starts with a kind icon (note, day, photo, file). A link to a missing note shows a note-with-plus icon.
  • L3 In the Trash: a trash icon (trash=replace|beside). The card offers Restore (the link works again; Undo is in the toast) and Open, which shows the note read only, inside the card.
  • L4 Deleted for good: "'Old budget' was deleted on 12 Oct", with Create a new note and Remove link (the words stay).
  • L5 A file moved outside the app is found by its id. The link is rewritten to the new path, and its words change only if they were the old title. One quiet "Link updated" toast.
  • L6 With the caret inside a link, ⌘↵ / Ctrl+Enter does what a click does. The tooltip and the card's first button show the shortcut, and ⌘↵ in the card runs that first action. Esc closes the card and puts the caret back.

Contrast for the missing-link looks (WCAG, worst spot behind it; words need 4.5): icondim ★ 5.4 / 5.3 / 7.0 / 4.5 (light paper / light photo / dark paper / dark photo); icon 14.0 / 13.5 / 12.9 / 7.5; fade 3.2 / 3.2 / 4.6 / 3.5, which fails at its faint end; dim 3.0 / 3.0 / 4.3 / 3.1, which fails. The full table is on #450.

Click to make it; the Trash card, and Open inside it; the deleted-for-good card (Chromium, 1440, light)
sheet-flows.png

Missing-note looks × light/dark × paper/photo, with trash=beside in the last column
sheet-missing.png

320 and 390, light and dark: the Trash card, the deleted card, the tag picker
sheet-phone-states.png

The note at 320 / 360 / 375 / 390, light and dark
sheet-phone-notes.png

iPhone checklist (headless WebKit here draws no backdrop blur, so the glass needs a real device):

  • Open the page in Safari and from the Home Screen. Light and dark. Nothing scrolls sideways at any width.
  • Tap each link: never written (the note is made and opens, and Undo brings you back), Trash (card), deleted (card), moved (opens Books to read).
  • The card sits under the link, or above it near the bottom, stays clear of the notch and the home indicator, and closes when you tap elsewhere.
  • With the keyboard up, the #, @ and [[ picker sits above the keyboard, with no zoom and no jump. Tapping a row puts it in and keeps the keyboard up.
  • Space after a tag closes the picker. "issue #12" never opens it.
  • The picker and card glass blurs the words behind it and reads clearly over the photo (&over=photo&backdrop=photo).
  • A long press on a link does not open the system link preview over the card.

Checks: apps/mockup/tests/links.spec.ts covers every flow above, in Chromium and WebKit, at 320/360/375/390/900/1440. Nothing scrolls sideways, and the cards and the picker stay on screen.

**Mockup is up: https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all** (variants on the Mockup pill, bottom right, or in the URL). Branch `issue/448-links-mockup`, PR #453 (mockup, do not merge). It follows kayg's answers L1–L6. Variant links: - Recommended, everything at its default: [links.html](https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all). On load, the moved file's link updates quietly ("Link updated"). - Missing-note looks: [icondim ★](https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all) · [icon](https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&missing=icon) · [fade](https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&missing=fade) · [dim](https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&missing=dim) - Trash icon: [replace ★](https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all) · [beside](https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&trash=beside) - Cards: [Trash](https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&card=trash) · [Trash, Open (read only)](https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&card=peek) · [deleted for good](https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&card=gone) - Dark, over a photo: [link](https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&theme=dark&over=photo&backdrop=photo) What it does: - **L1** A click on a note that was never written (`[calternal](<calternal.md>)` or `[[Calternal ideas]]`) makes the note at the path the link points to, titled with the link's words, and opens it with "Made '…' · Undo". The link works without being rewritten, and `[[…]]` stays written as `[[…]]`. - **L2** No underlines. Every link starts with a kind icon (note, day, photo, file). A link to a missing note shows a note-with-plus icon. - **L3** In the Trash: a trash icon (`trash=replace|beside`). The card offers Restore (the link works again; Undo is in the toast) and Open, which shows the note read only, inside the card. - **L4** Deleted for good: "'Old budget' was deleted on 12 Oct", with Create a new note and Remove link (the words stay). - **L5** A file moved outside the app is found by its id. The link is rewritten to the new path, and its words change only if they were the old title. One quiet "Link updated" toast. - **L6** With the caret inside a link, ⌘↵ / Ctrl+Enter does what a click does. The tooltip and the card's first button show the shortcut, and ⌘↵ in the card runs that first action. Esc closes the card and puts the caret back. Contrast for the missing-link looks (WCAG, worst spot behind it; words need 4.5): icondim ★ 5.4 / 5.3 / 7.0 / 4.5 (light paper / light photo / dark paper / dark photo); icon 14.0 / 13.5 / 12.9 / 7.5; **fade 3.2 / 3.2 / 4.6 / 3.5, which fails at its faint end**; **dim 3.0 / 3.0 / 4.3 / 3.1, which fails**. The full table is on #450. **Click to make it; the Trash card, and Open inside it; the deleted-for-good card (Chromium, 1440, light)** ![sheet-flows.png](https://git.kayg.org/attachments/a5f7b0ea-7b4d-476d-9866-e06b819728c9) **Missing-note looks × light/dark × paper/photo, with trash=beside in the last column** ![sheet-missing.png](https://git.kayg.org/attachments/79c276a2-0c91-490c-af23-48edc64420c8) **320 and 390, light and dark: the Trash card, the deleted card, the tag picker** ![sheet-phone-states.png](https://git.kayg.org/attachments/a0c73cbd-22b0-40a5-89b7-f0cdd1a3b532) **The note at 320 / 360 / 375 / 390, light and dark** ![sheet-phone-notes.png](https://git.kayg.org/attachments/a14c0aa4-58b2-4995-bcc6-d21773193859) **iPhone checklist** (headless WebKit here draws no backdrop blur, so the glass needs a real device): - [ ] Open the page in Safari and from the Home Screen. Light and dark. Nothing scrolls sideways at any width. - [ ] Tap each link: never written (the note is made and opens, and Undo brings you back), Trash (card), deleted (card), moved (opens Books to read). - [ ] The card sits under the link, or above it near the bottom, stays clear of the notch and the home indicator, and closes when you tap elsewhere. - [ ] With the keyboard up, the `#`, `@` and `[[` picker sits above the keyboard, with no zoom and no jump. Tapping a row puts it in and keeps the keyboard up. - [ ] Space after a tag closes the picker. "issue #12" never opens it. - [ ] The picker and card glass blurs the words behind it and reads clearly over the photo (`&over=photo&backdrop=photo`). - [ ] A long press on a link does not open the system link preview over the card. Checks: `apps/mockup/tests/links.spec.ts` covers every flow above, in Chromium and WebKit, at 320/360/375/390/900/1440. Nothing scrolls sideways, and the cards and the picker stay on screen.
Author
Owner

Approval round is live: https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all. New PR #457 (mockup, do not merge; it replaces #453). The approved defaults are now the defaults.

Fixed:

  • No gap after a link. "Calternal ideas.", "Old budget." and "Books to read," now sit like words. The pill keeps its room for hover and the caret (nothing moves), but an equal negative margin cancels it at rest. Measured in Chromium and WebKit: the gap from a link's last letter to the punctuation is 0.0 px, and the caret just after a link sits 0.0 px (WebKit: −0.5 to 0 px) from the word's end. A test now checks this (links.spec.ts, "a link sits in the sentence like a word"). Today's look (chip=current) keeps its pill and its ~10 px, for comparison.

  • No links summary above the title. The "@ Linked from … · … unlinked mentions" pill is gone everywhere. "Linked here" stays at the end of the note, unchanged.

  • The Trash card shows the note itself (the approved peek), with Restore ⌘↵. The plain card is only a fallback, for a note that can't be read.

  • Cards and pickers use the shared #319 glass: the real Glass component, dense, and its tokens, taken from origin/issue/319-one-glass, not a copy. The ink handle and pill wear float-glass-behind dense.

  • Pickers and cards never follow you. They close on navigation (any change of note or screen), on Esc, on a click elsewhere, and when the caret leaves the trigger. There are tests for each, in Chromium and WebKit.

  • Safari's bars. On the iOS 27 simulator (Safari, dark), with the keyboard up and after moving to the next note, the strip behind Safari's toolbar showed the night sky (navy, 14,19,49) instead of paper. The mockup never set data-edge on the phone stack, and it had no floor under the page, so the fixed sky backdrop's bottom edge was what Safari tinted from. Two writers also set theme-color to different values (the theme colour, and the sky's top). Fixes:

    • one writer copies the root's real edge colour into theme-color, and only when it changes (never on navigation);
    • PhoneStack sets data-edge (paper under a note, glass under the lists), as the app does;
    • the app's .floor under the page now covers at least the bottom edge, and switches at once, never through a fade;
    • the static theme-color tags match paper at first paint.

    After the fix: with the keyboard and picker up, and after the next note, the bar strip is paper (31,27,24 in the screenshot; before, 14,19,49). I recorded light, dark and default theme while the page navigated (links note → a link → back → another link → back), 28–56 frames each. The status-bar and toolbar-strip colours stayed within ±1 of one value in every frame, before and after; the sky only showed with the keyboard up, and that is now fixed.

iOS 27 simulator, Safari, dark: before and after
sim-after.png

Simulator work used only xcrun simctl and the existing ~/calternal-sim tools (wir.py, frames.swift), with files in /tmp/cal/k448. The preview site was backed up before each deploy, and the live files match the build byte for byte.
Known and not from this branch: the story.spec.ts "#90 Trash" test times out in WebKit dark on plain dev too.

**Approval round is live: https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all**. New PR #457 (mockup, do not merge; it replaces #453). The approved defaults are now the defaults. Fixed: - **No gap after a link.** "Calternal ideas.", "Old budget." and "Books to read," now sit like words. The pill keeps its room for hover and the caret (nothing moves), but an equal negative margin cancels it at rest. Measured in Chromium and WebKit: the gap from a link's last letter to the punctuation is 0.0 px, and the caret just after a link sits 0.0 px (WebKit: −0.5 to 0 px) from the word's end. A test now checks this (`links.spec.ts`, "a link sits in the sentence like a word"). Today's look (`chip=current`) keeps its pill and its ~10 px, for comparison. - **No links summary above the title.** The "@ Linked from … · … unlinked mentions" pill is gone everywhere. "Linked here" stays at the end of the note, unchanged. - **The Trash card shows the note itself** (the approved peek), with Restore ⌘↵. The plain card is only a fallback, for a note that can't be read. - **Cards and pickers use the shared #319 glass**: the real `Glass` component, `dense`, and its tokens, taken from `origin/issue/319-one-glass`, not a copy. The ink handle and pill wear `float-glass-behind dense`. - **Pickers and cards never follow you.** They close on navigation (any change of note or screen), on Esc, on a click elsewhere, and when the caret leaves the trigger. There are tests for each, in Chromium and WebKit. - **Safari's bars.** On the iOS 27 simulator (Safari, dark), with the keyboard up and after moving to the next note, the strip behind Safari's toolbar showed the night sky (navy, 14,19,49) instead of paper. The mockup never set `data-edge` on the phone stack, and it had no floor under the page, so the fixed sky backdrop's bottom edge was what Safari tinted from. Two writers also set `theme-color` to different values (the theme colour, and the sky's top). Fixes: - one writer copies the root's real edge colour into `theme-color`, and only when it changes (never on navigation); - PhoneStack sets `data-edge` (paper under a note, glass under the lists), as the app does; - the app's `.floor` under the page now covers at least the bottom edge, and switches at once, never through a fade; - the static `theme-color` tags match paper at first paint. After the fix: with the keyboard and picker up, and after the next note, the bar strip is paper (31,27,24 in the screenshot; before, 14,19,49). I recorded light, dark and default theme while the page navigated (links note → a link → back → another link → back), 28–56 frames each. The status-bar and toolbar-strip colours stayed within ±1 of one value in every frame, before and after; the sky only showed with the keyboard up, and that is now fixed. **iOS 27 simulator, Safari, dark: before and after** ![sim-after.png](https://git.kayg.org/attachments/c6e1b2d5-45ba-4162-a696-87b8e101ae22) Simulator work used only `xcrun simctl` and the existing `~/calternal-sim` tools (`wir.py`, `frames.swift`), with files in `/tmp/cal/k448`. The preview site was backed up before each deploy, and the live files match the build byte for byte. Known and not from this branch: the `story.spec.ts` "#90 Trash" test times out in WebKit dark on plain `dev` too.
Author
Owner

Built into the app on branch issue/448-links-app (PR to follow, closing #448, #449 and #450; not to be merged without kayg). It follows the approved mockup (#457): missing=icondim, trash=replace, the Trash card with its peek, the deleted-for-good card, and the quiet repoint of a note moved outside.

How it works in the app:

  • Never written: a note-with-+ icon at 70% ink. A click, or ⌘↵ / Ctrl+Enter with the caret inside, makes the note at the path the link points to, titled with the link's words, opens it with the caret under the title, and says "Made “…” · Undo". Undo deletes it for real (not to the Trash) if nobody typed in it; the link reads as never written again.
  • In the Trash: the trash icon. The card shows the note's first lines, read only, with Restore ⌘↵ (the link works again) and Open (the whole note in the card, when there is more).
  • Deleted for good: "“Old plan” was deleted on 16 Oct", with Create a new note ⌘↵ and Remove link (the words stay; Undo brings the link back).
  • Moved in Finder: found by its id; the server repoints the link in the open note; one toast, "Link updated". Renames in the app already repointed links.
  • The server remembers where notes used to live (history → departed) and answers a batch of paths at once (notes.link-states): an index lookup per path and one read, never a walk of the Home. The app asks only about paths its list doesn't hold, in batches, never while typing.
  • Cards close on Esc (caret back), a click elsewhere, or a move to another note. ⌘↵ shows a card at once; a click springs it out of the link.
  • There was no "Linked from … · unlinked mentions" line above the title in the app; a test keeps it that way.

Wide, light: rest, hover (handle and pill), caret in a link, tag picker, nested tags, Trash card, Open, deleted card, made
wide-light.png

Wide, dark
wide-dark.png

390, Chromium, light and dark (same order, no hover on a phone)
phone-chromium-light.png
phone-chromium-dark.png

390, WebKit, light and dark
phone-webkit-light.png
phone-webkit-dark.png

iOS 27 simulator, Safari (dark by time of day): the note with "Link updated", the Trash card, the deleted card, the #ar picker
sim.png

On the simulator: tapping the trash link opened its card, Restore restored it, the deleted link opened its card, a tap elsewhere closed it, tapping the never-written link made "Calternal ideas" and opened it, and a plain link opened its note with the editor focused or not. Typing #ar showed the picker above the bar. The XCUITest runner could not type into the page (no keyboard focus in the headless simulator), so the text was put in through the page; the software keyboard itself still needs a device.

iPhone checklist (WebKit here draws no backdrop blur):

  • Tap each link: never written (made, opens; Undo brings you back), Trash (card), deleted (card), moved (opens it; "Link updated" once).
  • The card sits under the link, or above it near the bottom, and closes when you tap elsewhere.
  • With the keyboard up, the #, @ and [[ picker sits above the keyboard; tapping a row keeps the keyboard up.
  • A long press on a link does not open the system link preview.
**Built into the app** on branch `issue/448-links-app` (PR to follow, closing #448, #449 and #450; not to be merged without kayg). It follows the approved mockup (#457): `missing=icondim`, `trash=replace`, the Trash card with its peek, the deleted-for-good card, and the quiet repoint of a note moved outside. How it works in the app: - **Never written**: a note-with-+ icon at 70% ink. A click, or ⌘↵ / Ctrl+Enter with the caret inside, makes the note at the path the link points to, titled with the link's words, opens it with the caret under the title, and says "Made “…” · Undo". Undo deletes it for real (not to the Trash) if nobody typed in it; the link reads as never written again. - **In the Trash**: the trash icon. The card shows the note's first lines, read only, with Restore ⌘↵ (the link works again) and Open (the whole note in the card, when there is more). - **Deleted for good**: "“Old plan” was deleted on 16 Oct", with Create a new note ⌘↵ and Remove link (the words stay; Undo brings the link back). - **Moved in Finder**: found by its id; the server repoints the link in the open note; one toast, "Link updated". Renames in the app already repointed links. - The server remembers where notes used to live (`history` → `departed`) and answers a batch of paths at once (`notes.link-states`): an index lookup per path and one read, never a walk of the Home. The app asks only about paths its list doesn't hold, in batches, never while typing. - Cards close on Esc (caret back), a click elsewhere, or a move to another note. ⌘↵ shows a card at once; a click springs it out of the link. - There was no "Linked from … · unlinked mentions" line above the title in the app; a test keeps it that way. **Wide, light: rest, hover (handle and pill), caret in a link, tag picker, nested tags, Trash card, Open, deleted card, made** ![wide-light.png](https://git.kayg.org/attachments/b6fb9b8a-e05f-45a3-ac2a-c11595fae0f9) **Wide, dark** ![wide-dark.png](https://git.kayg.org/attachments/64b65f80-d25e-498b-bb78-8d396decc76c) **390, Chromium, light and dark** (same order, no hover on a phone) ![phone-chromium-light.png](https://git.kayg.org/attachments/5a264134-7a79-4e65-8fd9-bc53380918d5) ![phone-chromium-dark.png](https://git.kayg.org/attachments/9868877a-fe13-45cc-8457-e27b780be772) **390, WebKit, light and dark** ![phone-webkit-light.png](https://git.kayg.org/attachments/21be6960-4362-48c2-8fc4-74c69cf631aa) ![phone-webkit-dark.png](https://git.kayg.org/attachments/845c7b58-01f4-47c3-9e5c-934d6ebf735d) **iOS 27 simulator, Safari (dark by time of day): the note with "Link updated", the Trash card, the deleted card, the `#ar` picker** ![sim.png](https://git.kayg.org/attachments/6f8ba815-5d50-48f4-8dab-eeaacb089e96) On the simulator: tapping the trash link opened its card, Restore restored it, the deleted link opened its card, a tap elsewhere closed it, tapping the never-written link made "Calternal ideas" and opened it, and a plain link opened its note with the editor focused or not. Typing `#ar` showed the picker above the bar. The XCUITest runner could not type into the page (no keyboard focus in the headless simulator), so the text was put in through the page; the software keyboard itself still needs a device. **iPhone checklist** (WebKit here draws no backdrop blur): - [ ] Tap each link: never written (made, opens; Undo brings you back), Trash (card), deleted (card), moved (opens it; "Link updated" once). - [ ] The card sits under the link, or above it near the bottom, and closes when you tap elsewhere. - [ ] With the keyboard up, the `#`, `@` and `[[` picker sits above the keyboard; tapping a row keeps the keyboard up. - [ ] A long press on a link does not open the system link preview.
Author
Owner

PR #464 (into dev, closes #448, #449, #450; not to be merged without kayg). Rebased on dev after the 16o train landed.

One fix after the screenshots above: on a phone, following a link now lets the keyboard go (the editor is one view for every note, so the tapped caret came along and the text bar swept the “Made” toast and its Undo away). Cards keep the caret to come back to.

PR #464 (into dev, closes #448, #449, #450; **not to be merged without kayg**). Rebased on dev after the 16o train landed. One fix after the screenshots above: on a phone, following a link now lets the keyboard go (the editor is one view for every note, so the tapped caret came along and the text bar swept the “Made” toast and its Undo away). Cards keep the caret to come back to.
Author
Owner

Review fixes are in #465 (replaces #464; not to be merged without kayg).

Fresh simulator run (new server on issue/448-links-app-2, freshly seeded, Safari service worker cleared): never written (note-plus at 70%), in the Trash (trash icon), deleted for good (note-plus), moved in Finder (repointed, plain), a day with its note and a day without one (both day icons):
sim-fresh.png

Tapping "Christmas" (no note yet) opened that day, day-2026-12-25, "Friday, 25 December":
sim-day.png

The wrong looks seen earlier came from my previous session on that server (I had restored "Old budget" and made "Calternal ideas") and from Safari's service worker still serving the old build. A real gap was fixed too: an answer requested while another request for the same path was in flight could be stale. Now a new test shows a link following made → trashed → restored → deleted for good done by another device.

Review fixes are in #465 (replaces #464; not to be merged without kayg). **Fresh simulator run** (new server on `issue/448-links-app-2`, freshly seeded, Safari service worker cleared): never written (note-plus at 70%), in the Trash (trash icon), deleted for good (note-plus), moved in Finder (repointed, plain), a day with its note and a day without one (both day icons): ![sim-fresh.png](https://git.kayg.org/attachments/6d8780fd-e581-4651-97f4-7dcacfcca4f8) Tapping "Christmas" (no note yet) opened that day, `day-2026-12-25`, "Friday, 25 December": ![sim-day.png](https://git.kayg.org/attachments/5dcbe1c6-2cdb-4a28-9b88-65ec4a258c0e) The wrong looks seen earlier came from my previous session on that server (I had restored "Old budget" and made "Calternal ideas") and from Safari's service worker still serving the old build. A real gap was fixed too: an answer requested while another request for the same path was in flight could be stale. Now a new test shows a link following made → trashed → restored → deleted for good done by another device.
Author
Owner

Round 3: PR #472 replaces #465 (closed). kayg's two decisions:

  1. Paper wash removed. Links look the same at every page opacity. Code, CSS and the contrast check over a photo are gone; contrast is measured on paper only.
  2. Card buttons side by side, in one row. Where they don't fit, the obvious button (Restore; Create a new note) is icon-only with a name, a tooltip and a 44 px touch target; Open and Remove link keep icon + words. At 320: Trash card fits both with words (Restore + Open); the deleted card shows Create as an icon beside "Remove link".

Trash card, 320 wide, light. Before | After

Trash card, 320 wide, dark. Before | After

Deleted-for-good card, 320 wide, light. Before | After

Deleted-for-good card, 320 wide, dark. Before | After

1440 wide, light (after): Trash | Deleted

iPhone simulator (iOS 27, Safari; trash light, deleted light, trash dark, deleted dark):

Round 3: **PR #472** replaces #465 (closed). kayg's two decisions: 1. **Paper wash removed.** Links look the same at every page opacity. Code, CSS and the contrast check over a photo are gone; contrast is measured on paper only. 2. **Card buttons side by side**, in one row. Where they don't fit, the obvious button (Restore; Create a new note) is icon-only with a name, a tooltip and a 44 px touch target; Open and Remove link keep icon + words. At 320: Trash card fits both with words (Restore + Open); the deleted card shows Create as an icon beside "Remove link". **Trash card, 320 wide, light.** Before | After ![](https://git.kayg.org/attachments/8adbc223-e106-4236-ae90-773b7ac39d96) ![](https://git.kayg.org/attachments/e91a5907-9ed6-4add-a1a5-e87604384d70) **Trash card, 320 wide, dark.** Before | After ![](https://git.kayg.org/attachments/02295299-7a8b-479f-87c4-7858213a6855) ![](https://git.kayg.org/attachments/da5566d1-060e-48ef-b5ec-50c3fe2cb2f9) **Deleted-for-good card, 320 wide, light.** Before | After ![](https://git.kayg.org/attachments/62a8edd3-b54d-4bbd-90eb-d5da37e5dd4c) ![](https://git.kayg.org/attachments/479eecce-65bc-487d-ae27-d1348a50e8d6) **Deleted-for-good card, 320 wide, dark.** Before | After ![](https://git.kayg.org/attachments/7bf19422-7322-4291-a603-5194caba7216) ![](https://git.kayg.org/attachments/e6a441a4-e238-4be6-aba5-7a6b09a4bece) **1440 wide, light (after):** Trash | Deleted ![](https://git.kayg.org/attachments/fb3a5aff-68a5-4510-ad80-49a74fdd9cdf) ![](https://git.kayg.org/attachments/f2661f1f-8c6e-401e-92a1-60018b7f384b) **iPhone simulator (iOS 27, Safari; trash light, deleted light, trash dark, deleted dark):** ![](https://git.kayg.org/attachments/b1ed2327-38df-43a9-bfb8-70d10aacdc2e) ![](https://git.kayg.org/attachments/ae032901-0078-4ebb-a79e-c87df4e5f160) ![](https://git.kayg.org/attachments/aef93f87-0f46-4e55-bea7-997dfb30a769) ![](https://git.kayg.org/attachments/76f69439-6dc2-4b35-9525-8e7b20b133f0)
Author
Owner

Card buttons now share one fixed height in every state (icon-only, icon + words, 44 px on touch), contents centred, so tops and bottoms line up exactly. Fix is on PR (new) from issue/448-links-app-5; the 375 test failed by 2.1 px before. Screenshots, Chromium, Trash card then Deleted card, at 320 / 375 / 390, light and dark:

Trash card, 320, light
trash-320-light

Trash card, 320, dark
trash-320-dark

Trash card, 375, light
trash-375-light

Trash card, 375, dark
trash-375-dark

Trash card, 390, light
trash-390-light

Trash card, 390, dark
trash-390-dark

Deleted card, 320, light
gone-320-light

Deleted card, 320, dark
gone-320-dark

Deleted card, 375, light
gone-375-light

Deleted card, 375, dark
gone-375-dark

Deleted card, 390, light
gone-390-light

Deleted card, 390, dark
gone-390-dark

Card buttons now share one fixed height in every state (icon-only, icon + words, 44 px on touch), contents centred, so tops and bottoms line up exactly. Fix is on PR (new) from `issue/448-links-app-5`; the 375 test failed by 2.1 px before. Screenshots, Chromium, Trash card then Deleted card, at 320 / 375 / 390, light and dark: **Trash card, 320, light** ![trash-320-light](https://git.kayg.org/attachments/bc3c21b2-210b-4b44-85ee-cbdc804195fe) **Trash card, 320, dark** ![trash-320-dark](https://git.kayg.org/attachments/74fa3319-5989-4851-ae9a-bde5b001ea7d) **Trash card, 375, light** ![trash-375-light](https://git.kayg.org/attachments/bba0e989-9419-4fb3-b6a3-197586bbee02) **Trash card, 375, dark** ![trash-375-dark](https://git.kayg.org/attachments/36a1d364-1910-41bd-a3d5-a82fcfbe85ab) **Trash card, 390, light** ![trash-390-light](https://git.kayg.org/attachments/4ec12433-599c-449e-9e44-7fad32c5dd12) **Trash card, 390, dark** ![trash-390-dark](https://git.kayg.org/attachments/f726da95-1d4f-46bf-9d57-053370bf0e11) **Deleted card, 320, light** ![gone-320-light](https://git.kayg.org/attachments/d0a7baad-291d-4c05-b648-0cff340a2718) **Deleted card, 320, dark** ![gone-320-dark](https://git.kayg.org/attachments/1473f8a0-d0bc-4839-b6c7-67f8c8132d25) **Deleted card, 375, light** ![gone-375-light](https://git.kayg.org/attachments/fb052978-d702-437c-8698-90b3a52539f8) **Deleted card, 375, dark** ![gone-375-dark](https://git.kayg.org/attachments/2ca9b731-ca1c-4157-b37d-e70d22b384b9) **Deleted card, 390, light** ![gone-390-light](https://git.kayg.org/attachments/21686d3c-acd6-43cd-bf20-2db0d6ce8bce) **Deleted card, 390, dark** ![gone-390-dark](https://git.kayg.org/attachments/4a324123-2a62-43da-80a2-a3f5e7caf4d7)
Author
Owner

Starting investigation on branch issue/448-missing-flake, based on origin/dev at 74336c9b9b8322079049eaece074f2c18c722fc9. I will trace link-state reads and delete effects, stress the current behavior, then apply the smallest justified fix and run the requested gates.

Starting investigation on branch `issue/448-missing-flake`, based on `origin/dev` at `74336c9b9b8322079049eaece074f2c18c722fc9`. I will trace link-state reads and delete effects, stress the current behavior, then apply the smallest justified fix and run the requested gates.
Author
Owner

Baseline repro on #448: 200 runs of tests::missing::a_path_tells_here_trash_and_gone with --test-threads=8 alongside one CPU hog produced 195 passes and 5 failures. All 5 panicked at crates/notes/src/tests/missing.rs:51 with New. Trace: trash::move_file removes the in-memory path mapping synchronously, but home.event calls missing::remember, whose History::depart queues the departed-path write without waiting. link_states then reads departed on another SQLite connection and can fall back to New before the queued row commits. This confirms the failure is not stale Here; it is still an incorrect post-return link state. I will make deletion wait for that history write before returning.

Baseline repro on #448: 200 runs of tests::missing::a_path_tells_here_trash_and_gone with --test-threads=8 alongside one CPU hog produced 195 passes and 5 failures. All 5 panicked at crates/notes/src/tests/missing.rs:51 with New. Trace: trash::move_file removes the in-memory path mapping synchronously, but home.event calls missing::remember, whose History::depart queues the departed-path write without waiting. link_states then reads departed on another SQLite connection and can fall back to New before the queued row commits. This confirms the failure is not stale Here; it is still an incorrect post-return link state. I will make deletion wait for that history write before returning.
Author
Owner

Stress evidence after the fix on #448: the same test, 200 times with --test-threads=8 alongside one CPU hog, completed with 200 passed and 0 failed. The targeted test also passes by itself. The delete path now waits for the history writer after recording the deletion event, so link_states can read the departed path before delete returns. The immediate Trash assertion is unchanged.

Stress evidence after the fix on #448: the same test, 200 times with --test-threads=8 alongside one CPU hog, completed with 200 passed and 0 failed. The targeted test also passes by itself. The delete path now waits for the history writer after recording the deletion event, so link_states can read the departed path before delete returns. The immediate Trash assertion is unchanged.
Author
Owner

Finished #448. Head SHA: 7db5ab0533. PR #519 is open into dev: #519.

Repro before fix: BASELINE: 195 passed, 5 failed, 200 runs. All five failed assertions returned New.
Repro after fix: AFTER FIX: 200 passed, 0 failed, 200 runs.

cargo fmt --all --check exited with status 0 and empty output.

cargo clippy -j4 --workspace --all-targets -- -D warnings output:

Finished `dev` profile [unoptimized + debuginfo] target(s) in 3m 45s

cargo test -j4 --workspace output:

Finished `test` profile [unoptimized + debuginfo] target(s) in 5m 57s

Workspace total: 452 passed, 0 failed, 2 ignored across 54 test result lines.
Verbatim Rust test result lines:

test result: ok. 11 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.47s
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.68s
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 7.57s
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 4.14s
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.09s
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.15s
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.21s
test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.08s
test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.11s
test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.11s
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s
test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.24s
test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.10s
test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.10s
test result: ok. 18 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.05s
test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
test result: ok. 21 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.60s
test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.71s
test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.63s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.09s
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
test result: ok. 36 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.26s
test result: ok. 202 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 7.79s
test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.42s
test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.14s
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s
test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.16s
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s
test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.38s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
```text
Finished #448. Head SHA: 7db5ab05336760bc33b8af0ca45d8622fd4a7a86. PR #519 is open into dev: https://git.kayg.org/kayg/calternal/pulls/519. Repro before fix: BASELINE: 195 passed, 5 failed, 200 runs. All five failed assertions returned New. Repro after fix: AFTER FIX: 200 passed, 0 failed, 200 runs. cargo fmt --all --check exited with status 0 and empty output. cargo clippy -j4 --workspace --all-targets -- -D warnings output: Finished `dev` profile [unoptimized + debuginfo] target(s) in 3m 45s cargo test -j4 --workspace output: Finished `test` profile [unoptimized + debuginfo] target(s) in 5m 57s Workspace total: 452 passed, 0 failed, 2 ignored across 54 test result lines. Verbatim Rust test result lines: ```text test result: ok. 11 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.47s test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.68s test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 7.57s test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 4.14s test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.09s test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.15s test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.21s test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.08s test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.11s test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.11s test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.24s test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.10s test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.10s test result: ok. 18 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.05s test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s test result: ok. 21 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.60s test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.71s test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.63s test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.09s test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s test result: ok. 36 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.26s test result: ok. 202 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 7.79s test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.42s test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.14s test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.16s test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.38s test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s ```text
Author
Owner

Links: approved mockup vs the app, measured (PR #562, not to be merged without kayg).

Sheet (differences table with measured values, then side by side: approved mockup | app before | app after; Chromium and WebKit, 1440 and 390, light and dark; rest, hover pill, caret pill):
sheet-parity.png

Result: the shipped links already matched the approved look except two things, now fixed in #562: the gap after the kind icon (.28em, approved .3em) and the 70% of missing-note links (oklab mix, about 8 levels darker than the mockup's opacity .7). The grey "+" links kayg saw in production ("Infraternal", "Calternal") ARE the approved missing-note look: ink at 70% with a note-plus icon. So "they look meh" is about the approved look itself, not a shipping gap.

Not changed: the lit pill on a missing link (mockup has no lift and an ink icon with the caret, the app lifts it with an accent icon), the light body weight (#492) and the page ink tokens; the pill's right padding belongs to issue/469-narrow-handle.

For the grill (mockup only, not in the app): other looks for links when the caret is not in them. Live: https://preview.calternal.cloud/links.html#/note/links-dense?list=all with &linklook=now|tint|underline|chip and &blockactive=1 (every link in the block with the caret shows its lit form; click into a paragraph to see it). Branch issue/448-links-look-v (from the mockup branch). now is today's approved look; tint a soft accent wash (12% light, 16% dark, 5px radius, 2px padding) with accent icon; underline accent text, 1.5px accent line, weight 500; chip a hairline accent edge on a 5% fill, 6px radius. Missing, Trash and deleted keep the + / Trash icon and grey ink in each (grey wash, dashed grey line, grey edge). Words keep 6.0:1 or more (light and dark) in every look.
sheet-linklook.png

https://claude.ai/code/session_01WCcFhwwgMK66k9LMVqogNJ

**Links: approved mockup vs the app, measured** (PR #562, not to be merged without kayg). Sheet (differences table with measured values, then side by side: approved mockup | app before | app after; Chromium and WebKit, 1440 and 390, light and dark; rest, hover pill, caret pill): ![sheet-parity.png](https://git.kayg.org/attachments/7cfc7677-c1c6-4c76-92a7-f1c8955b3420) Result: the shipped links already matched the approved look except two things, now fixed in #562: the gap after the kind icon (.28em, approved .3em) and the 70% of missing-note links (oklab mix, about 8 levels darker than the mockup's opacity .7). The grey "+" links kayg saw in production ("Infraternal", "Calternal") ARE the approved missing-note look: ink at 70% with a note-plus icon. So "they look meh" is about the approved look itself, not a shipping gap. Not changed: the lit pill on a missing link (mockup has no lift and an ink icon with the caret, the app lifts it with an accent icon), the light body weight (#492) and the page ink tokens; the pill's right padding belongs to `issue/469-narrow-handle`. **For the grill (mockup only, not in the app): other looks for links when the caret is not in them.** Live: https://preview.calternal.cloud/links.html#/note/links-dense?list=all with `&linklook=now|tint|underline|chip` and `&blockactive=1` (every link in the block with the caret shows its lit form; click into a paragraph to see it). Branch `issue/448-links-look-v` (from the mockup branch). `now` is today's approved look; `tint` a soft accent wash (12% light, 16% dark, 5px radius, 2px padding) with accent icon; `underline` accent text, 1.5px accent line, weight 500; `chip` a hairline accent edge on a 5% fill, 6px radius. Missing, Trash and deleted keep the + / Trash icon and grey ink in each (grey wash, dashed grey line, grey edge). Words keep 6.0:1 or more (light and dark) in every look. ![sheet-linklook.png](https://git.kayg.org/attachments/bbce76dd-f641-42f2-add5-7f511ac1f7ad) https://claude.ai/code/session_01WCcFhwwgMK66k9LMVqogNJ
Author
Owner

[[ suggestions fixed in #564 (not merged).

Cause: the picker listed everything search.query returned as titles, and that search also matches body text, so days that only mention "Keshav" appeared. A link target that notes point at but nobody made is not a note, so it never appeared.

Now, in order: notes whose title matches, then never-made link targets with "linked from N notes", then Create for what was typed, then (only while fewer than 5 title matches) "Mentioned in" with the match marked. Ranking runs in 0.3-4 ms per keystroke at 10,000 notes. Tests green on chromium/webkit at 390 and 1440.

Typing [[Zorvak... (a note titled with it, a target 2 notes link to, two days mentioning it), Chromium 1440 and 390:

1440
390

**`[[` suggestions fixed** in https://git.kayg.org/kayg/calternal/pulls/564 (not merged). Cause: the picker listed everything `search.query` returned as titles, and that search also matches body text, so days that only mention "Keshav" appeared. A link target that notes point at but nobody made is not a note, so it never appeared. Now, in order: notes whose title matches, then never-made link targets with "linked from N notes", then Create for what was typed, then (only while fewer than 5 title matches) "Mentioned in" with the match marked. Ranking runs in 0.3-4 ms per keystroke at 10,000 notes. Tests green on chromium/webkit at 390 and 1440. Typing `[[Zorvak...` (a note titled with it, a target 2 notes link to, two days mentioning it), Chromium 1440 and 390: ![1440](https://git.kayg.org/attachments/152399d7-20a4-4115-aa4c-61ef0da4465f) ![390](https://git.kayg.org/attachments/4000c6e9-33c2-48f2-8e82-978dfb755817)
Author
Owner

Links round 2 (mockup, branch issue/448-links-look-v2, from issue/448-links-look-v). Live: https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all

sheet-links2.png

1. Hover corners. Every look now has ONE radius token (--lk-r) for every link kind (note, day, block, photo, file, missing, Trash, gone) at rest and lit, and the link's tooltip ("Open ⌘↵") wears it too. Pill look (now, underline) = 999px everywhere; tint and chip = 6px everywhere (tint was 5px, chip 6px, the tooltip 9px). The lit form no longer carries a radius of its own. A test checks every look x light/dark x kind x state (rest and lit) and the hovered tooltip: all equal the token (chromium and webkit); the sheet has 2x crops.

2. Blocks in the @ / [[ picker. Same search core and the same row as the palette: search/pick.ts asks the palette's providers (new hidden ones: blocks.ts, unmade.ts, create.ts), the palette's parser/matcher (match.ts, no second matcher) and draws ResultRow with Marked highlights. Sections: Notes (title matches, no heading), Blocks (the block's words with the match marked, its note as the quiet second line; heading, list, to-do, paragraph and the rest each have an icon), Not yet created (links other notes already have to a note nobody made, + icon), Actions (Create "what you typed"). Sizes to its content, caps at 380px, scrolls, keys as before; Tab flips Link | Embed (the key sits in the palette's key chip); ![[ and !@ start in Embed (which lists only notes and blocks).

Checked: icons and the two text lines centre together (icon centre vs text centre < 1px) and share one left edge (< 0.5px), asserted by the test at 1440 and 390; Playwright shots 1440 and 390, light and dark; iPhone simulator (Safari) with the glass blurring properly. Not touched: palette behaviour (it has no Blocks chip). One small addition outside the mockup folder: a paragraph and a notenew icon in packages/ui Icon.svelte.

Not yet checked on a real iPhone with the keyboard up (the simulator's keyboard stays hidden): the picker clears Safari's form bar with the same 54pt allowance as chrome.html, please test.

🤖 Generated with Claude Code

https://claude.ai/code/session_01U5oTUycqAh7DT72mdSUztk

**Links round 2 (mockup, branch `issue/448-links-look-v2`, from `issue/448-links-look-v`).** Live: https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all ![sheet-links2.png](https://git.kayg.org/attachments/6d6ae625-8bf3-4507-8885-58827364ba31) **1. Hover corners.** Every look now has ONE radius token (`--lk-r`) for every link kind (note, day, block, photo, file, missing, Trash, gone) at rest and lit, and the link's tooltip ("Open ⌘↵") wears it too. Pill look (`now`, `underline`) = 999px everywhere; `tint` and `chip` = 6px everywhere (tint was 5px, chip 6px, the tooltip 9px). The lit form no longer carries a radius of its own. A test checks every look x light/dark x kind x state (rest and lit) and the hovered tooltip: all equal the token (chromium and webkit); the sheet has 2x crops. - now: https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&linklook=now&blockactive=1 - tint: https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&linklook=tint&blockactive=1 - underline: https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&linklook=underline&blockactive=1 - chip: https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&linklook=chip&blockactive=1 (add `&theme=dark` for dark) **2. Blocks in the `@` / `[[` picker.** Same search core and the same row as the palette: `search/pick.ts` asks the palette's providers (new hidden ones: `blocks.ts`, `unmade.ts`, `create.ts`), the palette's parser/matcher (`match.ts`, no second matcher) and draws `ResultRow` with `Marked` highlights. Sections: Notes (title matches, no heading), Blocks (the block's words with the match marked, its note as the quiet second line; heading, list, to-do, paragraph and the rest each have an icon), Not yet created (links other notes already have to a note nobody made, + icon), Actions (Create "what you typed"). Sizes to its content, caps at 380px, scrolls, keys as before; Tab flips Link | Embed (the key sits in the palette's key chip); `![[` and `!@` start in Embed (which lists only notes and blocks). - Choosing a block links `[words](<Note.md#^anchor>)` (a block icon; the link opens the note on that block, flashed); in Embed mode it embeds just that block (`![words](<Note.md#^anchor>)`, the note as a quiet line below). The first link gives the block its anchor (in a file it would be ` ^k3x9a` at the end of the line). - Seed: "Encryption, ZFS and Proxmox: An unusual triangle" (many matching lines). - Picker, top: https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&pick=@encry - Picker scrolled to the end (Actions): https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&pick=@encry&pickend=1 (dark: add `&theme=dark`) - Embed mode: https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&pick=![[encry Checked: icons and the two text lines centre together (icon centre vs text centre < 1px) and share one left edge (< 0.5px), asserted by the test at 1440 and 390; Playwright shots 1440 and 390, light and dark; iPhone simulator (Safari) with the glass blurring properly. Not touched: palette behaviour (it has no Blocks chip). One small addition outside the mockup folder: a `paragraph` and a `notenew` icon in packages/ui Icon.svelte. Not yet checked on a real iPhone with the keyboard up (the simulator's keyboard stays hidden): the picker clears Safari's form bar with the same 54pt allowance as chrome.html, please test. 🤖 Generated with [Claude Code](https://claude.ai/code) https://claude.ai/code/session_01U5oTUycqAh7DT72mdSUztk
Author
Owner

Links round 3: sorry, I rebuilt two approved designs. Fixed. I merged origin/issue/469-chrome-mockup-5 (read only) into issue/448-links-look-v2 and took its picker and its note-embed card as they are.

sheet-links3.png

  • Link | Embed: the approved two-segment control (icons, the Tab chip beside the other side, the spring), InlinePicker.svelte, picker.svelte.ts and accept.ts from chrome-5 unchanged in how they work. Tab flips Link | Embed, as in chrome-5 (my own Tab handling is gone).
  • Embed card: a single block uses the approved NoteEmbed card: the note's title, the block's text in the body, Open. Note.md#^anchor is handled in blocks/target.ts like #Heading; the card, its floating pill and its menus are chrome-5's. The sheet shows it beside the approved Dal makhani note embed.
  • On top of the approved picker, only my new parts: Blocks, Not yet created and Create "..." from the palette's search core (search/pick.ts, providers/blocks.ts, unmade.ts, create.ts; links/pick-rows.ts turns results into rows), the block anchor for links and embeds (!@/![[/Tab list notes, files and blocks), and the one radius token per link look. A block row is two lines (words with the match marked, note as the quiet line) in the approved rows' 34px/22px-icon grid; note rows now use the notes icon too, so every label shares one left edge. Because the picker is the approved one, it no longer uses the palette's ResultRow (the palette and the picker still share one matcher and one set of providers).
  • New: a fade. The list's top edge is a mask that grows to 18px as the list scrolls (nothing at the very top, so the first row is whole), so rows dissolve under the switch instead of being cut off. Matches the glass whatever it is over.
  • Icons: measured on a 390 phone: bottom bar 22px at 2.1 (the toolbar token, untouched); picker Link/Embed segments 13px and rows 15px at 1.6 (the approved list glyphs; every row type, old and new, is the same size); embed floating pill 16px (approved). I did not change the approved pickers' or pill's glyph sizes to the toolbar token; say if you want them on it.
  • Checks: chromium: links, blocks and picker-mouse specs, 107 passed (includes chrome-5's own picker, mouse and embed tests). WebKit: 70 of 73 on the first run; the 3 misses were two page-load timeouts under host load and one test of mine that was too fiddly (split); all pass on a rerun. Alignment asserted by the test (icon vs two lines < 1px, shared left edge < 0.5px, same icon width as the other rows). iPhone simulator on the deployed page: picker top and end, light and dark (sheet, section 4).
  • Deployed: backup site.bak-448v2-…, last 5 kept, every other file's hash unchanged, links.html and its two assets match the build. Pushed.

States: https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&pick=@encry · https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&pick=@encry&pickend=1 · https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&pick=![[encry · https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&linklook=tint&blockactive=1 (also now, underline, chip).

🤖 Generated with Claude Code

https://claude.ai/code/session_01U5oTUycqAh7DT72mdSUztk

**Links round 3: sorry, I rebuilt two approved designs. Fixed.** I merged `origin/issue/469-chrome-mockup-5` (read only) into `issue/448-links-look-v2` and took its picker and its note-embed card as they are. ![sheet-links3.png](https://git.kayg.org/attachments/ff84bbed-d6de-4148-87f9-4d7ba7762907) - **Link | Embed:** the approved two-segment control (icons, the Tab chip beside the other side, the spring), `InlinePicker.svelte`, `picker.svelte.ts` and `accept.ts` from chrome-5 unchanged in how they work. Tab flips Link | Embed, as in chrome-5 (my own Tab handling is gone). - **Embed card:** a single block uses the approved `NoteEmbed` card: the note's title, the block's text in the body, Open. `Note.md#^anchor` is handled in `blocks/target.ts` like `#Heading`; the card, its floating pill and its menus are chrome-5's. The sheet shows it beside the approved Dal makhani note embed. - **On top of the approved picker, only my new parts:** Blocks, Not yet created and Create "..." from the palette's search core (`search/pick.ts`, `providers/blocks.ts`, `unmade.ts`, `create.ts`; `links/pick-rows.ts` turns results into rows), the block anchor for links and embeds (`!@`/`![[`/Tab list notes, files and blocks), and the one radius token per link look. A block row is two lines (words with the match marked, note as the quiet line) in the approved rows' 34px/22px-icon grid; note rows now use the notes icon too, so every label shares one left edge. Because the picker is the approved one, it no longer uses the palette's `ResultRow` (the palette and the picker still share one matcher and one set of providers). - **New: a fade.** The list's top edge is a mask that grows to 18px as the list scrolls (nothing at the very top, so the first row is whole), so rows dissolve under the switch instead of being cut off. Matches the glass whatever it is over. - **Icons:** measured on a 390 phone: bottom bar 22px at 2.1 (the toolbar token, untouched); picker Link/Embed segments 13px and rows 15px at 1.6 (the approved list glyphs; every row type, old and new, is the same size); embed floating pill 16px (approved). I did not change the approved pickers' or pill's glyph sizes to the toolbar token; say if you want them on it. - **Checks:** chromium: links, blocks and picker-mouse specs, 107 passed (includes chrome-5's own picker, mouse and embed tests). WebKit: 70 of 73 on the first run; the 3 misses were two page-load timeouts under host load and one test of mine that was too fiddly (split); all pass on a rerun. Alignment asserted by the test (icon vs two lines < 1px, shared left edge < 0.5px, same icon width as the other rows). iPhone simulator on the deployed page: picker top and end, light and dark (sheet, section 4). - Deployed: backup `site.bak-448v2-…`, last 5 kept, every other file's hash unchanged, links.html and its two assets match the build. Pushed. States: https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&pick=@encry · https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&pick=@encry&pickend=1 · https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&pick=![[encry · https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&linklook=tint&blockactive=1 (also now, underline, chip). 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01U5oTUycqAh7DT72mdSUztk
Author
Owner

Closing during the 26 Oct handover cleanup: Links to missing notes landed in dev (PRs #496, #513 and the follow-ups through #595).

Closing during the 26 Oct handover cleanup: Links to missing notes landed in dev (PRs #496, #513 and the follow-ups through #595).
kayg closed this issue 2026-10-26 08:46:28 +00:00
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#448
No description provided.