Cover images for notes, and the Plugins page hierarchy (mockup) #484

Open
opened 2026-10-16 10:09:09 +00:00 by kayg · 2 comments
Owner

kayg (2026-10-16): cover images for notes. Grill answered (CV1–CV10; see the comment). Mockup next, together with the Plugins page hierarchy (#328, P1–P17).

kayg (2026-10-16): cover images for notes. Grill answered (CV1–CV10; see the comment). Mockup next, together with the Plugins page hierarchy (#328, P1–P17).
Author
Owner

Covers mockup is live: https://preview.calternal.cloud/covers.html (PR #499, mockup, do not merge; it stacks on the chrome branch, so its diff is only covers). It is a whole copy of the mockup with covers and Settings › Plugins switched on, so chrome.html stays untouched; the components are self-contained under src/covers/ for folding in later.

URLs, one per state (all on https://preview.calternal.cloud/covers.html; add &theme=dark for dark):

  • A note with a cover: #/note/spiti?list=all (phone: edge to edge under the pills; wide: ~3:1 with round top corners)
  • The pill on the cover (Change · Reposition · Remove): hover on desktop, tap on phone: #/note/spiti?list=all&tapped=1
  • Reposition (drag; arrows from the keyboard): #/note/spiti?list=all&moving=1
  • Loading, blurred then fades in (slow link): #/note/spiti?list=all&slow=1 (or slow=6000 for 6 s)
  • No cover, with the one-tap suggestion: #/note/autumn-trip?list=all; plain "Add cover": #/note/calternal-rewrite?list=all; drop target: …&drop=1
  • The shared picker (Photos · Upload · Unsplash with Random), for the cover and for the backdrop: ?picker=cover, ?picker=backdrop
  • Style sheet with separate Page · Cover · Backdrop: #/note/spiti?list=all&sheet=style
  • Source view with the frontmatter: #/note/spiti?list=all&source=1
  • Palette actions: ?find=1&q=cover (Set/Change cover…, Reposition cover, Remove cover, Change backdrop…), ?find=1&q=remove
  • List rows, three thumbnail shapes: #/list/all?thumb=sq (default), ?thumb=wide, ?thumb=big; gallery cards: #/list/all?gallery=1
  • Cover in the search preview, the hold preview and an embedded note card: palette on a note that has one; hold a row; #/note/weekly-w41?list=all has the embeds.

Phone (390, Chromium)
cover on a phone
the pill on the cover
suggestion
picker, dark
palette actions

List thumbnails: A square 48 (recommended), B wide 72×48, C big 64
A square
B wide
C big
gallery

Desktop (1440)
cover on desktop
Style sheet, cover and backdrop
palette
picker
source view, dark

WebKit
WebKit phone

Checked. Chromium and WebKit, 320 / 360 / 375 / 390 / 900 / 1440, light and dark: note, list, palette, picker, plugins and a plugin page at every width and theme (nothing scrolls sideways; the cover is exactly the screen width on a phone and about 3:1 on a wide window; no page errors), plus behaviour tests: the real picture fades in over the blurred one while the text is already there; Remove drops cover-image and cover-position and Undo brings them back; the palette finds the actions and runs them; the suggestion; reposition saves the focal point; plugins off keeps data and offers to remove it; a sub-plugin that is on adds its options to the parent's page. The suite is tests/covers.spec.ts (158 tests pass).
iOS 27 simulator (iPhone only). Opened covers.html in Safari and put it beside Apple's Settings: the plugin tile is 29 pt with a 7 pt corner and a 17 pt glyph like Settings' tiles (28 pt measured), names 17 pt, a full-size switch; the list thumbnail is 48 pt. The simulator has no Notes app, so the thumbnail was judged against Settings' tiles and the system lists, not Notes itself.
Apple Settings (left) and Plugins (right)
cover and list thumbnails in Safari

Frontmatter (what a cover is): cover-image: [A pass above the clouds](<Photos/Unsplash/pass-4m9c.jpg>) and cover-position: 50% 62%. Remove drops both lines and keeps the file. An Unsplash pick is a real file in Photos/Unsplash/, with the credit in its .xmp (the source view says so).

Questions for kayg, each with my recommendation

  1. Row thumbnail: A square 48 pt, B wide 72×48, C big 64? Recommend A: it is as tall as the two text lines, so rows stay as compact as today; a note without a cover gets no empty tile (the text keeps the row), so only notes with a picture stand out.
  2. Gallery cards: image on top at 16:10, text under it; a note without a cover is a text card. Recommend yes.
  3. Framing: wide ~3:1 (max 300 px tall); phone about 4:3 plus the status-bar area, edge to edge under the pills. Recommend keeping it.
  4. Where Remove lives: pill on the cover (hover/tap), Style sheet Cover section, ⋯ menu and palette, always with an Undo toast. Recommend all four.
  5. Photographer credit shows small at the cover's bottom-left (hidden while the pill is up) for Unsplash covers. Recommend yes (the licence asks for it).
  6. The first-picture suggestion shows on notes with a picture and no cover, with an ✕ for "not now" per note, and a switch in Plugins › Images for notes. Recommend on by default.
  7. Backdrop storage: the real app stores calternal-backdrop: unsplash:<id>. For consistency with covers (a link to a real file in the Home) recommend moving the backdrop to the same markdown link, e.g. backdrop-image: [Title](<Photos/…>). The mockup stores the file path in calternal-backdrop meanwhile.
  8. Day covers are not in this round, as asked. Recommend studying them next, with the question of whether a day's cover should be the day's first photo.

Plugins page is on #328.

**Covers mockup is live: https://preview.calternal.cloud/covers.html** (PR #499, mockup, do not merge; it stacks on the chrome branch, so its diff is only covers). It is a whole copy of the mockup with covers and Settings › Plugins switched on, so `chrome.html` stays untouched; the components are self-contained under `src/covers/` for folding in later. **URLs, one per state** (all on `https://preview.calternal.cloud/covers.html`; add `&theme=dark` for dark): - A note with a cover: `#/note/spiti?list=all` (phone: edge to edge under the pills; wide: ~3:1 with round top corners) - The pill on the cover (Change · Reposition · Remove): hover on desktop, tap on phone: `#/note/spiti?list=all&tapped=1` - Reposition (drag; arrows from the keyboard): `#/note/spiti?list=all&moving=1` - Loading, blurred then fades in (slow link): `#/note/spiti?list=all&slow=1` (or `slow=6000` for 6 s) - No cover, with the one-tap suggestion: `#/note/autumn-trip?list=all`; plain "Add cover": `#/note/calternal-rewrite?list=all`; drop target: `…&drop=1` - The shared picker (Photos · Upload · Unsplash with Random), for the cover and for the backdrop: `?picker=cover`, `?picker=backdrop` - Style sheet with separate Page · Cover · Backdrop: `#/note/spiti?list=all&sheet=style` - Source view with the frontmatter: `#/note/spiti?list=all&source=1` - Palette actions: `?find=1&q=cover` (Set/Change cover…, Reposition cover, Remove cover, Change backdrop…), `?find=1&q=remove` - List rows, three thumbnail shapes: `#/list/all?thumb=sq` (default), `?thumb=wide`, `?thumb=big`; gallery cards: `#/list/all?gallery=1` - Cover in the search preview, the hold preview and an embedded note card: palette on a note that has one; hold a row; `#/note/weekly-w41?list=all` has the embeds. **Phone** (390, Chromium) ![cover on a phone](https://git.kayg.org/attachments/4d514d66-6f94-4e4e-96bc-8446a71d529f) ![the pill on the cover](https://git.kayg.org/attachments/f6104bcd-94ef-498e-a265-2f5a13d588bf) ![suggestion](https://git.kayg.org/attachments/1993f6a2-5928-41f7-a996-2c1db41f6f17) ![picker, dark](https://git.kayg.org/attachments/c8472872-b62f-4ad6-9ceb-efd3fdb570a3) ![palette actions](https://git.kayg.org/attachments/ac150f8c-1000-4789-8434-d5fc217a4707) **List thumbnails: A square 48 (recommended), B wide 72×48, C big 64** ![A square](https://git.kayg.org/attachments/c218ada9-873c-4131-9efc-fd1399918eca) ![B wide](https://git.kayg.org/attachments/6204c26b-4c80-431b-af54-063b0ebf7cca) ![C big](https://git.kayg.org/attachments/c29128a2-2dad-4713-b6de-51e06c6bca18) ![gallery](https://git.kayg.org/attachments/8630b7d2-b53a-4b78-acdf-61e3f47619d0) **Desktop** (1440) ![cover on desktop](https://git.kayg.org/attachments/4e902bf8-97c9-4dd5-bca9-f8993f128675) ![Style sheet, cover and backdrop](https://git.kayg.org/attachments/5a30dcd6-07d5-49dd-a2ee-c09739eddb9b) ![palette](https://git.kayg.org/attachments/cbd6c2b2-1b96-471a-a481-45fa7b0aadcf) ![picker](https://git.kayg.org/attachments/b74a15e0-b0e2-4a9d-a232-0bfba6c48b2e) ![source view, dark](https://git.kayg.org/attachments/ff915abb-286f-45ba-8e1c-c675fb3169e6) **WebKit** ![WebKit phone](https://git.kayg.org/attachments/286b9c6a-5108-47a2-b09e-a7f63d1d3345) **Checked.** Chromium and WebKit, 320 / 360 / 375 / 390 / 900 / 1440, light and dark: note, list, palette, picker, plugins and a plugin page at every width and theme (nothing scrolls sideways; the cover is exactly the screen width on a phone and about 3:1 on a wide window; no page errors), plus behaviour tests: the real picture fades in over the blurred one while the text is already there; Remove drops `cover-image` and `cover-position` and Undo brings them back; the palette finds the actions and runs them; the suggestion; reposition saves the focal point; plugins off keeps data and offers to remove it; a sub-plugin that is on adds its options to the parent's page. The suite is `tests/covers.spec.ts` (158 tests pass). **iOS 27 simulator (iPhone only).** Opened `covers.html` in Safari and put it beside Apple's Settings: the plugin tile is 29 pt with a 7 pt corner and a 17 pt glyph like Settings' tiles (28 pt measured), names 17 pt, a full-size switch; the list thumbnail is 48 pt. The simulator has no Notes app, so the thumbnail was judged against Settings' tiles and the system lists, not Notes itself. ![Apple Settings (left) and Plugins (right)](https://git.kayg.org/attachments/85bfeee2-0257-4568-b0c9-d9041ebb6269) ![cover and list thumbnails in Safari](https://git.kayg.org/attachments/45d649cb-f975-44bc-a8b9-769e9c96c9f8) **Frontmatter** (what a cover is): `cover-image: [A pass above the clouds](<Photos/Unsplash/pass-4m9c.jpg>)` and `cover-position: 50% 62%`. Remove drops both lines and keeps the file. An Unsplash pick is a real file in `Photos/Unsplash/`, with the credit in its `.xmp` (the source view says so). **Questions for kayg, each with my recommendation** 1. **Row thumbnail**: A square 48 pt, B wide 72×48, C big 64? *Recommend A*: it is as tall as the two text lines, so rows stay as compact as today; a note without a cover gets no empty tile (the text keeps the row), so only notes with a picture stand out. 2. **Gallery cards**: image on top at 16:10, text under it; a note without a cover is a text card. *Recommend yes.* 3. **Framing**: wide ~3:1 (max 300 px tall); phone about 4:3 plus the status-bar area, edge to edge under the pills. *Recommend keeping it.* 4. **Where Remove lives**: pill on the cover (hover/tap), Style sheet Cover section, ⋯ menu and palette, always with an Undo toast. *Recommend all four.* 5. **Photographer credit** shows small at the cover's bottom-left (hidden while the pill is up) for Unsplash covers. *Recommend yes (the licence asks for it).* 6. **The first-picture suggestion** shows on notes with a picture and no cover, with an ✕ for "not now" per note, and a switch in Plugins › Images for notes. *Recommend on by default.* 7. **Backdrop storage**: the real app stores `calternal-backdrop: unsplash:<id>`. For consistency with covers (a link to a real file in the Home) *recommend moving the backdrop to the same markdown link, e.g. `backdrop-image: [Title](<Photos/…>)`*. The mockup stores the file path in `calternal-backdrop` meanwhile. 8. **Day covers** are not in this round, as asked. *Recommend studying them next*, with the question of whether a day's cover should be the day's first photo. Plugins page is on #328.
Author
Owner

The Unsplash credit moved off the page in the combined round (https://preview.calternal.cloud/chrome.html, PR #509): it shows in the warm tooltip on a picker tile, as a line in Note info, and in the footer of the Share sheet; &credit=corner brings back a small quiet corner credit. I read Unsplash's API terms (section 9: attribute Unsplash and the photographer with a link to the profile, each time an image is displayed; utm_source and utm_medium=referral on the links) and judge the tooltip/Info/footer placement not clearly compliant on its own; recommend keeping the quiet corner credit. Full quotes and the question on #469.

The Unsplash credit moved off the page in the combined round (https://preview.calternal.cloud/chrome.html, PR #509): it shows in the warm tooltip on a picker tile, as a line in Note info, and in the footer of the Share sheet; `&credit=corner` brings back a small quiet corner credit. I read Unsplash's API terms (section 9: attribute Unsplash and the photographer with a link to the profile, each time an image is displayed; utm_source and utm_medium=referral on the links) and judge the tooltip/Info/footer placement not clearly compliant on its own; recommend keeping the quiet corner credit. Full quotes and the question on #469.
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#484
No description provided.