C12.9: three-pane mailbox view, filters, virtualized list; ids never reused

This commit is contained in:
雷电芽衣 committed 2026-10-20 00:25:57 -04:00
1 parent 7f70ab6df7
commit ba358c7de6
29 files changed
+1274 -75

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
FAIL
- apps/ely-mail/src/boxes.rs:69 — [P1] `Listing::pick` scans the entire message list for each selected key, undoing the component's selection optimization. Selecting all 100,000 messages requires about 5 billion comparisons on the UI thread; the isolated Windows probe invoking the unchanged `Mail::select` took 107.545 seconds. Refreshing that selection repeats the same work, freezing interaction and scrolling. Use a keyed membership set to retain selections in linear time, and cover the application's actual selection callback with a large-list regression test. Evidence: `.work/c12.9-r1/probes.log`.
- apps/ely-mail/src/side.rs:67 — [P2] The complete mailbox list has no height-bounded vertical scroll container, so overflowing account sections are clipped by the shell. With 40 folders in the first account and a second account in an 1100×800 window, the second account's settings row stays at y=1592–1624 after 20 downward wheel events; later folders and accounts cannot be reached by scrolling. Put the complete sidebar list in a bounded vertical `ScrollArea` and test reaching later account sections with many folders. The existing scrolling test covers the account settings body, not this sidebar. Evidence: `.work/c12.9-r1/sidebar.log`.
+3
View File
@@ -0,0 +1,3 @@
FAIL
- apps/ely-mail/src/boxes.rs:182 — [P2] List keys use recyclable SQLite message row IDs, so refresh can transfer a selection to a different message. With one selected message (row id 1, UIDVALIDITY 1), rebuild its mailbox with UIDVALIDITY 2 and insert a different message: SQLite reuses id 1, and `Listing::pick` retains `["1"]` and fills the reader with the replacement instead of clearing the vanished selection. This breaks C12.9 selection retention and PRD §12.3 message identity. Use identifiers that cannot be reused, or key selections by complete message identity, and add a rebuild/replacement regression. Reproduced twice using the actual `Store::open_mailbox`, `Store::put`, and `Mail::read_mail`; evidence: `.work/c12.9-r2/identity.log`.
+1
View File
@@ -0,0 +1 @@
PASS