Contrast tokens and calm empty states (#345, #347) #393

Closed
kayg wants to merge 0 commits from issue/345-347-contrast-empty into dev
Owner

Fixes #345 and #347.

Contrast (#345)

  • The Filter hint no longer uses the browser's grey. New tokens --placeholder / --glass-placeholder (tokens.css), applied by one ::placeholder rule in base.css; .on-glass swaps to the glass one.
  • Light theme over a night or dusk sky: thicker, warmer tint (--glass, --glass-strong, --glass-pane) and a brightness lift (--pane-bright, new --glass-lift for the phone's full-screen glass). It reads as cream, not grey-lilac fog. The day look is unchanged.
  • contrast.spec.ts now measures the field hint as text and the phone's screens (Places, All notes, Pinned, Trash) at 320 and 390, every sky hour, both looks. The Filter hint must exist in every list, the Trash included.
  • Numbers (WCAG over the real pixels): with the browser's grey put back, the new spec fails the hint at 2.24 (light, dawn). Now the hint is 4.72 or better everywhere and the weakest of all other text is 5.12.

Empty and missing states (#347)

  • New EmptyState (icon, one kind line, at most one action) in packages/ui, used by Pinned, tags, Journal, an empty All notes, Trash, a filter with no match, and a note that is not there.
  • An unknown note id: "This note isn't here any more." with a way back ("Back to All notes" on a phone, "Open today's note" on a wide window); the bar shows its tabs, not Insert/Style/Info.
  • Trash: Filter field like every list (shared ListFilter), header lined up with the other lists, no "0" badge, and "Opening the Trash..." removed (no machinery).
  • Search and the palette: "Nothing matches “zzz”. Try fewer words."
  • Mockup data=worst: not a crash (no exception). Editor.svelte was {#if note} with no else, so a missing note drew nothing. Same state now.

Checked

  • svelte-check: 0 errors, no new warnings.
  • e2e (Chromium + WebKit, 1440 + 390): empty (new), trash, tags, day, switching, tree: 86 passed. contrast project: 3 passed. Mockup break.spec (new missing-note test at 1440/1024/390): 13 passed.
  • Screenshots on #345 and #347 (320/390/1440, light and dark, Chromium and WebKit).

🤖 Generated with Claude Code

https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T

Fixes #345 and #347. ## Contrast (#345) - The Filter hint no longer uses the browser's grey. New tokens `--placeholder` / `--glass-placeholder` (tokens.css), applied by one `::placeholder` rule in base.css; `.on-glass` swaps to the glass one. - Light theme over a night or dusk sky: thicker, warmer tint (`--glass`, `--glass-strong`, `--glass-pane`) and a brightness lift (`--pane-bright`, new `--glass-lift` for the phone's full-screen glass). It reads as cream, not grey-lilac fog. The day look is unchanged. - `contrast.spec.ts` now measures the field hint as text and the phone's screens (Places, All notes, Pinned, Trash) at 320 and 390, every sky hour, both looks. The Filter hint must exist in every list, the Trash included. - Numbers (WCAG over the real pixels): with the browser's grey put back, the new spec fails the hint at 2.24 (light, dawn). Now the hint is 4.72 or better everywhere and the weakest of all other text is 5.12. ## Empty and missing states (#347) - New `EmptyState` (icon, one kind line, at most one action) in packages/ui, used by Pinned, tags, Journal, an empty All notes, Trash, a filter with no match, and a note that is not there. - An unknown note id: "This note isn't here any more." with a way back ("Back to All notes" on a phone, "Open today's note" on a wide window); the bar shows its tabs, not Insert/Style/Info. - Trash: Filter field like every list (shared `ListFilter`), header lined up with the other lists, no "0" badge, and "Opening the Trash..." removed (no machinery). - Search and the palette: "Nothing matches “zzz”. Try fewer words." - Mockup `data=worst`: not a crash (no exception). `Editor.svelte` was `{#if note}` with no else, so a missing note drew nothing. Same state now. ## Checked - svelte-check: 0 errors, no new warnings. - e2e (Chromium + WebKit, 1440 + 390): empty (new), trash, tags, day, switching, tree: 86 passed. contrast project: 3 passed. Mockup break.spec (new missing-note test at 1440/1024/390): 13 passed. - Screenshots on #345 and #347 (320/390/1440, light and dark, Chromium and WebKit). 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Contrast tokens and calm empty states (#345, #347)
Some checks failed
CI / server (pull_request) Successful in 25s
CI / rust (pull_request) Successful in 1m43s
CI / web (pull_request) Failing after 2m33s
16871ca46b
Contrast (#345): the Filter hint takes its own --placeholder token (and
--glass-placeholder on glass) instead of the browser's grey. The light theme
over a night or dusk sky gets a thicker, warmer glass tint and a brightness
lift, so the phone's lists read as cream, not grey-lilac fog. contrast.spec
now measures the field hint too, and the phone's screens (320 and 390 wide)
at every sky hour, in both looks.

Empty and missing states (#347): one EmptyState (icon, one kind line, at
most one action) for Pinned, Trash, tags, Journal, an empty All notes, a
filter with no match and a note that is not there. An unknown note id shows
"This note isn't here any more" with a way back and no note tools in the bar.
The Trash gets a Filter field like every list, the header lines up with the
others, a zero count is not shown, and "Opening the Trash..." is gone. The
mockup's data=worst blank page was the editor drawing nothing for a missing
note (no crash); it now shows the same state. The search surface says
"Try fewer words".

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

Superseded by #401 (merged with current dev, same changes). Closing.

Superseded by #401 (merged with current dev, same changes). Closing.
kayg closed this pull request 2026-10-15 08:02:26 +00:00
Some checks failed
CI / server (pull_request) Successful in 25s
CI / rust (pull_request) Successful in 1m43s
CI / web (pull_request) Failing after 2m33s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal!393
No description provided.