Missing and empty states: an unknown note is a blank page, Pinned and Trash are bare, search finds nothing in one grey line #347

Closed
opened 2026-10-14 19:16:40 +00:00 by kayg · 5 comments
Owner

1. A link to a note that does not exist (deleted elsewhere, old bookmark) is a blank page. #/note/does-not-exist-123 shows only the back link and the bar, and the bar still offers New, Insert, Style and Info as if a note were open (Insert and Style would act on nothing). On desktop the editor frame is empty. Suggest: a calm line ("That note isn't here any more" with "Back to All notes" and "Search for it"), bar tools hidden.

2. The mockup does the same in data=worst. index.html#/note/calternal-rewrite?list=all&data=worst (the fixture has no such note) renders an empty frame at 1440 and a blank screen at 320 to 430. The "worst" data set is meant for the break-the-UI pass, so this should show the real empty state.

3. Pinned and Trash when empty are just "Nothing here yet." and "The Trash is empty." in small text with no icon and no hint ("Pin a note from its menu"). The count badge reads "0". The Trash header sits 2 px lower than the Pinned header (title at y = 40 against 38), and the Trash pane has no Filter field while every other list does.

4. Search with no match (mockup, phone): one 15 px line "Nothing matches "zzzqq"." under the tabs, and nothing else. A hint ("Try fewer words, or search everything") and the filters staying visible would help.

Suggested fix: one EmptyState component (small icon, one friendly sentence, one next step) used by the list panes, the search surface and the editor frame; the router treats an unknown note id as an empty state, not a note.

Found in kayg's overnight UI/UX hunt (#174). App = apps/web at train commit 2ea759c, run locally against the real server with a development user; mockup = https://preview.calternal.cloud.

**1. A link to a note that does not exist (deleted elsewhere, old bookmark) is a blank page.** `#/note/does-not-exist-123` shows only the back link and the bar, and the bar still offers New, Insert, Style and Info as if a note were open (Insert and Style would act on nothing). On desktop the editor frame is empty. Suggest: a calm line ("That note isn't here any more" with "Back to All notes" and "Search for it"), bar tools hidden. **2. The mockup does the same in `data=worst`.** `index.html#/note/calternal-rewrite?list=all&data=worst` (the fixture has no such note) renders an empty frame at 1440 and a blank screen at 320 to 430. The "worst" data set is meant for the break-the-UI pass, so this should show the real empty state. **3. Pinned and Trash when empty** are just "Nothing here yet." and "The Trash is empty." in small text with no icon and no hint ("Pin a note from its menu"). The count badge reads "0". The Trash header sits 2 px lower than the Pinned header (title at y = 40 against 38), and the Trash pane has no Filter field while every other list does. **4. Search with no match** (mockup, phone): one 15 px line "Nothing matches "zzzqq"." under the tabs, and nothing else. A hint ("Try fewer words, or search everything") and the filters staying visible would help. **Suggested fix:** one `EmptyState` component (small icon, one friendly sentence, one next step) used by the list panes, the search surface and the editor frame; the router treats an unknown note id as an empty state, not a note. Found in kayg's overnight UI/UX hunt (#174). App = `apps/web` at train commit 2ea759c, run locally against the real server with a development user; mockup = https://preview.calternal.cloud.
Author
Owner

Screenshots (all taken tonight, Chromium unless it says WebKit):

App 390 dark: unknown note id, blank with active note tools
missing-390.png

App 1440 dark: unknown note id, empty frame
missing-1440.png

Mockup data=worst, 1440 dark: empty frame, no message
worst-1440-dark.png

Mockup data=worst, 430 dark: blank screen
worst-430-dark.png

App 1440 light: Pinned empty
pinned-1440-light.png

App 1440 dark: Trash empty, no Filter, header 2 px lower
trash-1440-dark.png

Mockup search 390 dark: nothing matches
none-390-dark.png

Screenshots (all taken tonight, Chromium unless it says WebKit): **App 390 dark: unknown note id, blank with active note tools** ![missing-390.png](https://git.kayg.org/attachments/4410087c-9ed2-46f1-85b9-6692d23f5ec1) **App 1440 dark: unknown note id, empty frame** ![missing-1440.png](https://git.kayg.org/attachments/12684877-12b2-40e0-8390-f66a246538ba) **Mockup data=worst, 1440 dark: empty frame, no message** ![worst-1440-dark.png](https://git.kayg.org/attachments/cb4d1581-7b09-4867-8342-09048c63d77f) **Mockup data=worst, 430 dark: blank screen** ![worst-430-dark.png](https://git.kayg.org/attachments/0548a516-b9ef-433e-84cb-49ac179f1e01) **App 1440 light: Pinned empty** ![pinned-1440-light.png](https://git.kayg.org/attachments/7b6a9b6b-c133-47a5-a9e2-823448ab6754) **App 1440 dark: Trash empty, no Filter, header 2 px lower** ![trash-1440-dark.png](https://git.kayg.org/attachments/0cb8e255-e802-4e71-8d4e-03282f00e340) **Mockup search 390 dark: nothing matches** ![none-390-dark.png](https://git.kayg.org/attachments/62702eb2-4c47-4e71-ad14-6fd7e850b582)
Author
Owner

After: the app's empty and missing states.

App, 1440 light (Chromium): missing note, Pinned, Trash, no match

final-chromium-1440-light-missing.png final-chromium-1440-light-pinned.png final-chromium-1440-light-trash.png final-chromium-1440-light-nomatch.png

App, 1440 dark (Chromium): missing note, Pinned, Trash, no match

final-chromium-1440-dark-missing.png final-chromium-1440-dark-pinned.png final-chromium-1440-dark-trash.png final-chromium-1440-dark-nomatch.png

App, 390 light (Chromium): missing note, Pinned, Trash, no match

final-chromium-390-light-missing.png final-chromium-390-light-pinned.png final-chromium-390-light-trash.png final-chromium-390-light-nomatch.png

App, 390 dark (Chromium): missing note, Pinned, Trash, no match

final-chromium-390-dark-missing.png final-chromium-390-dark-pinned.png final-chromium-390-dark-trash.png final-chromium-390-dark-nomatch.png

App, 320 light (Chromium): missing note, Pinned, Trash, no match

final-chromium-320-light-missing.png final-chromium-320-light-pinned.png final-chromium-320-light-trash.png final-chromium-320-light-nomatch.png

App, 320 dark (Chromium): missing note, Pinned, Trash, no match

final-chromium-320-dark-missing.png final-chromium-320-dark-pinned.png final-chromium-320-dark-trash.png final-chromium-320-dark-nomatch.png

After: the app's empty and missing states. **App, 1440 light (Chromium): missing note, Pinned, Trash, no match** ![final-chromium-1440-light-missing.png](https://git.kayg.org/attachments/ba2fbb3f-365c-4b96-8454-bc3aa05dd533) ![final-chromium-1440-light-pinned.png](https://git.kayg.org/attachments/0d663bf5-238d-4bda-b073-3d03c7662306) ![final-chromium-1440-light-trash.png](https://git.kayg.org/attachments/f98ea9e3-b136-4fdc-b65f-1ad3de67d451) ![final-chromium-1440-light-nomatch.png](https://git.kayg.org/attachments/76042529-a96a-4f8d-b34f-4b88f4c00149) **App, 1440 dark (Chromium): missing note, Pinned, Trash, no match** ![final-chromium-1440-dark-missing.png](https://git.kayg.org/attachments/825b9688-8a22-4d39-beee-1c2c8eebd058) ![final-chromium-1440-dark-pinned.png](https://git.kayg.org/attachments/b3fa458d-92e2-4a96-85ab-738081f4bf08) ![final-chromium-1440-dark-trash.png](https://git.kayg.org/attachments/11e58723-83c8-41a0-8060-6a2468a80592) ![final-chromium-1440-dark-nomatch.png](https://git.kayg.org/attachments/7771ec80-4102-4cda-b9c4-06bc22662a7e) **App, 390 light (Chromium): missing note, Pinned, Trash, no match** ![final-chromium-390-light-missing.png](https://git.kayg.org/attachments/3526920b-41bf-4c63-bf24-57e4fd85b7f9) ![final-chromium-390-light-pinned.png](https://git.kayg.org/attachments/e0215951-8a78-4caf-ad6e-7a3473b43cc2) ![final-chromium-390-light-trash.png](https://git.kayg.org/attachments/50e82549-41b1-4215-9bd9-1557135270e0) ![final-chromium-390-light-nomatch.png](https://git.kayg.org/attachments/eebf3bda-b4e7-4b49-b7b9-8a2c549e60cf) **App, 390 dark (Chromium): missing note, Pinned, Trash, no match** ![final-chromium-390-dark-missing.png](https://git.kayg.org/attachments/fc611594-03d7-44a4-81a7-39f2a4a167d8) ![final-chromium-390-dark-pinned.png](https://git.kayg.org/attachments/46941df6-982a-43bc-9fdb-9edeafbfa7ab) ![final-chromium-390-dark-trash.png](https://git.kayg.org/attachments/ea7e46c7-1c30-4d73-86be-adfb680db79d) ![final-chromium-390-dark-nomatch.png](https://git.kayg.org/attachments/bd779cd4-d505-411e-92ba-8c1419e2d158) **App, 320 light (Chromium): missing note, Pinned, Trash, no match** ![final-chromium-320-light-missing.png](https://git.kayg.org/attachments/feb53b70-8693-4700-be73-86470cd1e962) ![final-chromium-320-light-pinned.png](https://git.kayg.org/attachments/d8ad74b6-c49e-4655-84d8-cdc5e312e81a) ![final-chromium-320-light-trash.png](https://git.kayg.org/attachments/72b92518-7170-4160-ad59-3194c2018c78) ![final-chromium-320-light-nomatch.png](https://git.kayg.org/attachments/0dc0d128-5a98-4c77-8756-c9ca873ad9b0) **App, 320 dark (Chromium): missing note, Pinned, Trash, no match** ![final-chromium-320-dark-missing.png](https://git.kayg.org/attachments/c886afb1-a049-49e7-ab18-f30bee8ba945) ![final-chromium-320-dark-pinned.png](https://git.kayg.org/attachments/6d79455a-a2e1-4481-848e-c5ba3a185e17) ![final-chromium-320-dark-trash.png](https://git.kayg.org/attachments/50e25bb5-097d-4f72-b23e-fd50395e81b0) ![final-chromium-320-dark-nomatch.png](https://git.kayg.org/attachments/f0c91f82-7705-4db0-b0c0-484dea67b9f3)
Author
Owner

After: the mockup (index.html#/note/calternal-rewrite?list=all&data=worst is no longer blank).

Mockup, 1440 light: data=worst missing note, Pinned, Trash, no match

mock-1440-light-missing.png mock-1440-light-pinned.png mock-1440-light-trash.png mock-1440-light-nomatch.png

Mockup, 1440 dark: data=worst missing note, Pinned, Trash, no match

mock-1440-dark-missing.png mock-1440-dark-pinned.png mock-1440-dark-trash.png mock-1440-dark-nomatch.png

Mockup, 390 light: data=worst missing note, Pinned, Trash, no match

mock-390-light-missing.png mock-390-light-pinned.png mock-390-light-trash.png mock-390-light-nomatch.png

Mockup, 390 dark: data=worst missing note, Pinned, Trash, no match

mock-390-dark-missing.png mock-390-dark-pinned.png mock-390-dark-trash.png mock-390-dark-nomatch.png

Mockup, 320 light: data=worst missing note, Pinned, Trash, no match

mock-320-light-missing.png mock-320-light-pinned.png mock-320-light-trash.png mock-320-light-nomatch.png

Mockup, 320 dark: data=worst missing note, Pinned, Trash, no match

mock-320-dark-missing.png mock-320-dark-pinned.png mock-320-dark-trash.png mock-320-dark-nomatch.png

After: the mockup (`index.html#/note/calternal-rewrite?list=all&data=worst` is no longer blank). **Mockup, 1440 light: `data=worst` missing note, Pinned, Trash, no match** ![mock-1440-light-missing.png](https://git.kayg.org/attachments/24013bc2-ed61-4ebd-b755-9c71cc89e45d) ![mock-1440-light-pinned.png](https://git.kayg.org/attachments/1183cdd0-dfaf-4061-b469-c611e3cb8f91) ![mock-1440-light-trash.png](https://git.kayg.org/attachments/411e7b48-31f1-4f98-8d63-4875c35175e1) ![mock-1440-light-nomatch.png](https://git.kayg.org/attachments/cd80dfc3-d962-4680-8c22-8d779610b760) **Mockup, 1440 dark: `data=worst` missing note, Pinned, Trash, no match** ![mock-1440-dark-missing.png](https://git.kayg.org/attachments/a3ac775b-035f-4c9d-b9a5-5164111d02ef) ![mock-1440-dark-pinned.png](https://git.kayg.org/attachments/c8bb41e8-388d-4fca-9355-2c2ff31b5250) ![mock-1440-dark-trash.png](https://git.kayg.org/attachments/b899d019-7aef-4ce6-8c13-e9c1f35d969f) ![mock-1440-dark-nomatch.png](https://git.kayg.org/attachments/49d0d2d9-1fc3-45cd-95e4-df09e4e379a8) **Mockup, 390 light: `data=worst` missing note, Pinned, Trash, no match** ![mock-390-light-missing.png](https://git.kayg.org/attachments/804e898f-a0e6-423d-a86f-050e3a9dfc0d) ![mock-390-light-pinned.png](https://git.kayg.org/attachments/b0d2f899-77c7-42fe-af86-8145f1dd9763) ![mock-390-light-trash.png](https://git.kayg.org/attachments/a24a82b4-4bd6-4eba-9856-4b44a077556c) ![mock-390-light-nomatch.png](https://git.kayg.org/attachments/7e603b0c-4ea4-44ce-b00c-477bc12567b4) **Mockup, 390 dark: `data=worst` missing note, Pinned, Trash, no match** ![mock-390-dark-missing.png](https://git.kayg.org/attachments/b59af1ee-f5e2-4f48-b2a6-cfd0d87aa68a) ![mock-390-dark-pinned.png](https://git.kayg.org/attachments/c1f5c076-9b64-4e42-a4f0-440441b6558f) ![mock-390-dark-trash.png](https://git.kayg.org/attachments/4957ff00-2662-4199-8e2b-331081a30f22) ![mock-390-dark-nomatch.png](https://git.kayg.org/attachments/d18e6a9e-6e4d-48d0-ad8f-28219bb16d5c) **Mockup, 320 light: `data=worst` missing note, Pinned, Trash, no match** ![mock-320-light-missing.png](https://git.kayg.org/attachments/94033987-e832-46a7-b58f-89d81dcfa113) ![mock-320-light-pinned.png](https://git.kayg.org/attachments/ad3f93e5-c574-4fca-89e5-ccdc7ebc4686) ![mock-320-light-trash.png](https://git.kayg.org/attachments/f8166825-989d-456a-8c46-5e3d2f7ba4e6) ![mock-320-light-nomatch.png](https://git.kayg.org/attachments/88681f22-c2c1-42dc-82c6-1ad263e432bb) **Mockup, 320 dark: `data=worst` missing note, Pinned, Trash, no match** ![mock-320-dark-missing.png](https://git.kayg.org/attachments/a0b2a43b-21b6-4ab3-b237-aee2d5b358e1) ![mock-320-dark-pinned.png](https://git.kayg.org/attachments/d8bae83b-92da-433e-95bb-c5ef6078d160) ![mock-320-dark-trash.png](https://git.kayg.org/attachments/cfb7a85b-6495-4ad9-85b6-3c8781733206) ![mock-320-dark-nomatch.png](https://git.kayg.org/attachments/03b9b89a-1c9c-4828-9993-0fb9b3e21d0a)
Author
Owner

PR: #393

Mockup data=worst: no crash and no console error. Editor.svelte rendered {#if note} with no else, so a missing note drew an empty frame (nothing on a phone) and the bar kept its note tools. Fixed with the same EmptyState as the app (the mockup break spec has a new test at 1440, 1024 and 390).

PR: https://git.kayg.org/kayg/calternal/pulls/393 Mockup `data=worst`: no crash and no console error. `Editor.svelte` rendered `{#if note}` with no else, so a missing note drew an empty frame (nothing on a phone) and the bar kept its note tools. Fixed with the same EmptyState as the app (the mockup break spec has a new test at 1440, 1024 and 390).
Author
Owner

Closing during the 26 Oct handover cleanup: The missing and empty states landed in dev (PRs #393, #401).

Closing during the 26 Oct handover cleanup: The missing and empty states landed in dev (PRs #393, #401).
kayg closed this issue 2026-10-26 08:46:13 +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#347
No description provided.