Backdrop grid, opacity to 0 that really shows, credit only where the photo shows (+ paged Style mockup) (#294) #306

Closed
kayg wants to merge 0 commits from issue/294-backdrop-fixes into dev
Owner

Refs #294 (fixes 2, 3, 4 in the app; 1 as a mockup only, awaiting kayg's check).

2. Photo grid. A real grid: 2 columns on a phone, 3 from 760px; a tile's height comes from its width (padding, not aspect-ratio, which iOS Safari collapsed on buttons in a grid so tiles stacked as thin slices), a fixed 232px window with its own scroll, thumbnails loading="lazy". Test: tiles don't overlap, keep 16:10, 2 or 3 columns.

3. Opacity to 0 that really shows. MIN_OPACITY is now 0, so the slider goes to 0% (and calternal-page-opacity: 0% is honoured). Legibility is kept the way the app already did it for faint pages: the page blur (Blur slider) and the soft text halo on pages under 30% (.faint), not a floor. The "does nothing" part was real on a phone: the note screen painted a full layer of paper (plus glass blur) under the page, hiding any opacity. It now paints paper only while the page is solid Full; a see-through page or a floating card (Narrow, Wide) shows the backdrop. This also means Narrow/Wide cards on a phone now sit on the photo instead of on paper (decision for kayg if unwanted). I did not touch Width or the card height logic (#286).
Test (e2e/opacity.spec.ts): for Full, Narrow, Wide, in and out of focus mode, at 100/60/20/0% the surface's computed alpha follows the slider, is strictly decreasing, equals 0 at 0%, and a pixel read from the screenshot shows the blue stub photo through the page at 0% and paper at 100%; the slider's min is 0 and moves the surface live and writes 0% to the file. Runs on Chromium 1440 and 390 (focus variants skipped on a phone: no focus mode).

4. Credit only where the photo shows. The corner credit is gone on phones (it lives in the Style sheet's Backdrop section under the selected photo). On tablet and desktop it shows only while the photo shows: a floating card (Narrow, Wide) or a see-through page; hidden for solid Full, and still hidden under any open sheet. Test: Full 100% none; Narrow, Wide, Full 50% show it on desktop and not on a phone; links, faintness and bar clearance on desktop.

1. Mockup. apps/mockup Style sheet (Note tab) is now two swipeable pages, Page (Look, Opacity, Blur, Font) and Backdrop (Sky/Photo/Plain, search, shuffle, upload, the real grid, credit under the selected photo). Native scroll-snap does the swipe; a two-segment switch at the top follows the swipe and moves it on tap; ←/→ move between pages instantly when no field wants the arrows; the pages sit in one grid row so the sheet is the same height on both. Test paged-style.spec.ts (+ screenshots to SHOTS_DIR). Existing mockup story tests for opacity/blur still pass; 7 unrelated story tests (menu, focus glide, block drop) fail on this box, I did not look further.

Checks: web bun run check 0 errors; e2e opacity (13), backdrops, width, served, prefs on Chromium 1440/390 pass; a full Chromium run had flakes I judged unrelated (glass at-rest animation, tags, tag-rename, toast-bar, pwa-update, tabs), and the served "boots, connects live and saves" test fails on dev too. WebKit not run. Evidence on #294.

🤖 Generated with Claude Code

https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T

Refs #294 (fixes 2, 3, 4 in the app; 1 as a mockup only, awaiting kayg's check). **2. Photo grid.** A real grid: 2 columns on a phone, 3 from 760px; a tile's height comes from its width (padding, not `aspect-ratio`, which iOS Safari collapsed on buttons in a grid so tiles stacked as thin slices), a fixed 232px window with its own scroll, thumbnails `loading="lazy"`. Test: tiles don't overlap, keep 16:10, 2 or 3 columns. **3. Opacity to 0 that really shows.** `MIN_OPACITY` is now 0, so the slider goes to 0% (and `calternal-page-opacity: 0%` is honoured). Legibility is kept the way the app already did it for faint pages: the page blur (Blur slider) and the soft text halo on pages under 30% (`.faint`), not a floor. The "does nothing" part was real on a phone: the note screen painted a full layer of paper (plus glass blur) under the page, hiding any opacity. It now paints paper only while the page is solid Full; a see-through page or a floating card (Narrow, Wide) shows the backdrop. This also means Narrow/Wide cards on a phone now sit on the photo instead of on paper (decision for kayg if unwanted). I did not touch Width or the card height logic (#286). Test (`e2e/opacity.spec.ts`): for Full, Narrow, Wide, in and out of focus mode, at 100/60/20/0% the surface's computed alpha follows the slider, is strictly decreasing, equals 0 at 0%, **and** a pixel read from the screenshot shows the blue stub photo through the page at 0% and paper at 100%; the slider's `min` is 0 and moves the surface live and writes `0%` to the file. Runs on Chromium 1440 and 390 (focus variants skipped on a phone: no focus mode). **4. Credit only where the photo shows.** The corner credit is gone on phones (it lives in the Style sheet's Backdrop section under the selected photo). On tablet and desktop it shows only while the photo shows: a floating card (Narrow, Wide) or a see-through page; hidden for solid Full, and still hidden under any open sheet. Test: Full 100% none; Narrow, Wide, Full 50% show it on desktop and not on a phone; links, faintness and bar clearance on desktop. **1. Mockup.** `apps/mockup` Style sheet (Note tab) is now two swipeable pages, Page (Look, Opacity, Blur, Font) and Backdrop (Sky/Photo/Plain, search, shuffle, upload, the real grid, credit under the selected photo). Native scroll-snap does the swipe; a two-segment switch at the top follows the swipe and moves it on tap; ←/→ move between pages instantly when no field wants the arrows; the pages sit in one grid row so the sheet is the same height on both. Test `paged-style.spec.ts` (+ screenshots to SHOTS_DIR). Existing mockup story tests for opacity/blur still pass; 7 unrelated story tests (menu, focus glide, block drop) fail on this box, I did not look further. **Checks:** web `bun run check` 0 errors; e2e opacity (13), backdrops, width, served, prefs on Chromium 1440/390 pass; a full Chromium run had flakes I judged unrelated (glass at-rest animation, tags, tag-rename, toast-bar, pwa-update, tabs), and the `served` "boots, connects live and saves" test fails on dev too. WebKit not run. Evidence on #294. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Backdrop picker grid, opacity down to 0 that really shows, credit only where the photo shows; paged Style sheet mockup (#294)
Some checks failed
CI / server (pull_request) Successful in 22s
CI / web (pull_request) Failing after 22s
CI / rust (pull_request) Successful in 1m35s
f219cf65bd
- Photo grid: real 2/3-column grid, tile height from width (iOS collapsed aspect-ratio)
- Opacity slider 0-100; on a phone the note screen no longer paints a second layer of paper
- Corner credit only on tablet/desktop while the photo shows (card or see-through page)
- Mockup: Style sheet as swipeable Page and Backdrop pages
- Tests: surface alpha and pixel follow the slider (full, narrow, wide, focus on/off), grid, credit rule

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

Landed in merge train #329.

Landed in merge train #329.
kayg closed this pull request 2026-10-14 17:39:20 +00:00
Some checks failed
CI / server (pull_request) Successful in 22s
CI / web (pull_request) Failing after 22s
CI / rust (pull_request) Successful in 1m35s

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!306
No description provided.