Mockup Mail: thread vs message actions + 3-card variant #930

Open
opened 2026-11-04 13:00:10 +00:00 by kayg · 1 comment
Author
Owner

Kayg's 11-04 asks on the Mail thread, built in apps/mockup on review/calendar-2. Preview: https://preview.calternal.cloud (the queued review/calendar-2 deploys on dev-02 publish it).

Decisions made (all small, reversible)

  • Reply / Reply all / Forward stay in the bottom bar and act on the selected message. Archive and Trash moved to their own pill at the top right, next to Share ⋯ ("Archive conversation", "Move conversation to Trash").
  • Each message has its own ⋯ (Reply, Forward, Delete this message, Show original). Deleting the last remaining message moves the whole conversation to Trash.
  • Selected message: S1 only (kayg's pick): no fill, a thin 1.5 px accent ring inside the card's own radius and a soft lift. S2 (scale) was built, compared and dropped.
  • Variants in the Mockup panel (mailcards): A one card per message (default), B mailternal-style three cards (header / body / attachments). Attachments keep the compact equal-size pills. How mailternal does it (App/Sources/Viewer/MessageViewer.swift, dev): the reader is two floating "islands" in one scroll, subject+envelope+attachments, and the body. B goes one step further, as asked, and gives attachments a card of their own.
  • "to me ›": the details grow in place (grid-rows 0→1fr + opacity, 260 ms ease-out), chevron turns, collapse reverses.
  • Remote pictures: 450 ms fade with blur crossfade, 70 ms stagger (first five).
  • Settings › Mail account row: opens in place, 280 ms height + opacity; nothing else in Settings › Mail changed.

1440 and 402 (iPhone width), selected message S1 (Chromium, dev-01)

1440 402
Action placement, Olive selected d actions p actions
Message ⋯ open d menu p menu
Variant A d A p A
Variant B d B p B
Header closed d closed p closed
Header open d open p open

Settings › Mail row (WebKit, Mac VM) closed / 160 ms / open, and phone open

closed mid open phone open

Remote pictures (WebKit) hidden / 450 ms in / loaded

hidden mid loaded

Frame deltas (rAF, real-GPU WebKit on the Mac VM, macos-01, 8 runs each unless noted; Linux VM numbers are not reported as performance)

Animation frames p50 ms p95 ms max ms over 25 ms
Header open, 1440 216 17 20 25 0
Header close, 1440 216 17 19 22 0
Header open, phone 216 17 20 27 1
Header close, phone 216 17 19 22 0
Settings account open, 1440 211 17 20 89 1
Settings account close, 1440 210 17 20 22 0
Settings account open, phone (re-run, 8 runs) ~240 ~17 ~20 27 1
Remote-picture fade, 1440 450 17 20 29 1
Remote-picture fade, phone, 10 runs 952 17 21 33 10

The phone picture fade is the one soft spot: 10 of 952 frames (about 1 %) came later than 25 ms, max 33 ms, in 8 of the 10 runs (blur + opacity on up to 5 pictures at 3× DPR). It is not a clean 0, so I'd call it "close, not perfect"; a cheaper fade (opacity only on a phone) is the fallback if kayg sees it.

S2 crispness (dropped, for the record): WebKit re-rasterised the scaled card text crisp at 1× and 2× DPR once the transition settled (by eye; no image library on the host to compute a number).

Tests (apps/mockup/tests/mail-actions.spec.ts, new, 7 tests, Chromium + WebKit, dev-01, through slot): all 14 passed. no-handmade-pills passes on both. pills-glass passed on Chromium; on WebKit it failed once ("the pill appeared while scrolling") and then passed 5 of 5 with --repeat-each=5 on both the base (origin/review/calendar-2) and my head, so by the flaky rule it does not block (a stability issue is for whoever owns that spec). review-switches fails on every test in 6–30 ms with browser.newContext: "deviceScaleFactor" option is not supported with null "viewport", a spec-config error in a file I did not touch (I did not get a slot to run it on the base for comparison).

Kayg's 11-04 asks on the Mail thread, built in `apps/mockup` on `review/calendar-2`. Preview: https://preview.calternal.cloud (the queued `review/calendar-2` deploys on dev-02 publish it). **Decisions made (all small, reversible)** - Reply / Reply all / Forward stay in the bottom bar and act on the selected message. Archive and Trash moved to their own pill at the top right, next to Share ⋯ ("Archive conversation", "Move conversation to Trash"). - Each message has its own ⋯ (Reply, Forward, Delete this message, Show original). Deleting the last remaining message moves the whole conversation to Trash. - Selected message: S1 only (kayg's pick): no fill, a thin 1.5 px accent ring inside the card's own radius and a soft lift. S2 (scale) was built, compared and dropped. - Variants in the Mockup panel (`mailcards`): A one card per message (default), B mailternal-style three cards (header / body / attachments). Attachments keep the compact equal-size pills. How mailternal does it (`App/Sources/Viewer/MessageViewer.swift`, `dev`): the reader is two floating "islands" in one scroll, subject+envelope+attachments, and the body. B goes one step further, as asked, and gives attachments a card of their own. - "to me ›": the details grow in place (grid-rows 0→1fr + opacity, 260 ms ease-out), chevron turns, collapse reverses. - Remote pictures: 450 ms fade with blur crossfade, 70 ms stagger (first five). - Settings › Mail account row: opens in place, 280 ms height + opacity; nothing else in Settings › Mail changed. **1440 and 402 (iPhone width), selected message S1** (Chromium, dev-01) | | 1440 | 402 | |---|---|---| | Action placement, Olive selected | ![d actions](https://git.kayg.org/attachments/9d43b5fe-56b1-4eca-a673-8cbcce0d7c19) | ![p actions](https://git.kayg.org/attachments/3cf636bb-8909-4abb-8eab-7b261ed31402) | | Message ⋯ open | ![d menu](https://git.kayg.org/attachments/b5553bc4-7eea-4779-b83d-d2df8502e977) | ![p menu](https://git.kayg.org/attachments/1e64a509-8d29-4b48-8e96-01d4f61c0db7) | | Variant A | ![d A](https://git.kayg.org/attachments/dbe0de03-065f-473b-b336-d69536db9d3a) | ![p A](https://git.kayg.org/attachments/afa6e715-2fec-42a9-80c0-24c9216b50a2) | | Variant B | ![d B](https://git.kayg.org/attachments/57d8e54a-fd9d-4585-a3bb-ebcbd4c4aa44) | ![p B](https://git.kayg.org/attachments/2cb74252-727f-4fad-b402-3e38eca818f5) | | Header closed | ![d closed](https://git.kayg.org/attachments/22bb1051-8e0e-4283-8283-7c3de1425b09) | ![p closed](https://git.kayg.org/attachments/22d3f142-7692-4f63-8971-6f50ca4edcde) | | Header open | ![d open](https://git.kayg.org/attachments/bd900d8d-bc1e-4d7a-a95b-7d5f35fd4161) | ![p open](https://git.kayg.org/attachments/fb3f5421-0fa2-491a-9a37-f5033c013f16) | **Settings › Mail row (WebKit, Mac VM)** closed / 160 ms / open, and phone open ![closed](https://git.kayg.org/attachments/34e2a95d-3182-49ce-9330-65926d0077ea) ![mid](https://git.kayg.org/attachments/72f5ac25-0e1f-472c-8abf-7d40d4ead80c) ![open](https://git.kayg.org/attachments/e850dd3b-1d76-41ae-af61-d891ddcdcd1b) ![phone open](https://git.kayg.org/attachments/68dc01d1-a6fc-4e1b-8a45-b519cbded30f) **Remote pictures (WebKit)** hidden / 450 ms in / loaded ![hidden](https://git.kayg.org/attachments/2a9400e2-ab9b-4b38-8b44-87da7f44cc9d) ![mid](https://git.kayg.org/attachments/85020eed-4ec9-48ee-9460-d96222c81432) ![loaded](https://git.kayg.org/attachments/7a69a8ba-d1a9-47c7-aa8b-bea183a46c88) **Frame deltas** (rAF, real-GPU WebKit on the Mac VM, `macos-01`, 8 runs each unless noted; Linux VM numbers are not reported as performance) | Animation | frames | p50 ms | p95 ms | max ms | over 25 ms | |---|---|---|---|---|---| | Header open, 1440 | 216 | 17 | 20 | 25 | 0 | | Header close, 1440 | 216 | 17 | 19 | 22 | 0 | | Header open, phone | 216 | 17 | 20 | 27 | 1 | | Header close, phone | 216 | 17 | 19 | 22 | 0 | | Settings account open, 1440 | 211 | 17 | 20 | 89 | 1 | | Settings account close, 1440 | 210 | 17 | 20 | 22 | 0 | | Settings account open, phone (re-run, 8 runs) | ~240 | ~17 | ~20 | 27 | 1 | | Remote-picture fade, 1440 | 450 | 17 | 20 | 29 | 1 | | Remote-picture fade, phone, 10 runs | 952 | 17 | 21 | 33 | 10 | The phone picture fade is the one soft spot: 10 of 952 frames (about 1 %) came later than 25 ms, max 33 ms, in 8 of the 10 runs (blur + opacity on up to 5 pictures at 3× DPR). It is not a clean 0, so I'd call it "close, not perfect"; a cheaper fade (opacity only on a phone) is the fallback if kayg sees it. **S2 crispness (dropped, for the record):** WebKit re-rasterised the scaled card text crisp at 1× and 2× DPR once the transition settled (by eye; no image library on the host to compute a number). **Tests** (`apps/mockup/tests/mail-actions.spec.ts`, new, 7 tests, Chromium + WebKit, dev-01, through `slot`): all 14 passed. `no-handmade-pills` passes on both. `pills-glass` passed on Chromium; on WebKit it failed once ("the pill appeared while scrolling") and then passed 5 of 5 with `--repeat-each=5` on both the base (`origin/review/calendar-2`) and my head, so by the flaky rule it does not block (a stability issue is for whoever owns that spec). `review-switches` fails on every test in 6–30 ms with `browser.newContext: "deviceScaleFactor" option is not supported with null "viewport"`, a spec-config error in a file I did not touch (I did not get a slot to run it on the base for comparison).
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#930
No description provided.