Materialize the trash — faces, menus, and grammar
Phase 3 finishes the pivot at the surface. One card face serves two containers: CardFaceView extracted with a role — board or trash — so stripe, tint, chip, selection stroke, cut dim, marquee registration, and drag are shared by construction, the trash side differing only in its absences: no Open, no rename, no Style, no file-hover highlight, and a Delete that goes through the confirmation host. The column rewrote around the lanes' own single-column masonry so drag reflow reads as positional slides; chrome stays the hatched header, symbol, and count — 11 gives Empty Trash to the File menu alone. Two real grammar bugs die here: plain Backspace on a trash selection purged without the confirmation the menu raises, and the context menu's Delete resolved against the standing selection, so right-clicking a trash card under a board selection silently did nothing — it now stages the clicked set explicitly. Open, Rename, Style, and Empty Trash validation became testable store seams; the column is one named accessibility container of ordinary card elements. The tombstone era is swept: deleteItem, restoreItem, stripTombstonedChildren — dead since lane copies stopped nesting trash — the restore verb, the unreachable put-back banner row, and every quasi-lane doc comment. Claude-Session: https://claude.ai/code/session_01SR4XGjmBE16ZUYWpfFHXwY
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
/// > a multi-selection anchors at its last member in flatten order (lane `order`, then card
|
||||
/// > `order`, the multi-drag order; the same anchor serves paste): creation follows the last
|
||||
/// > selected card, or appends to the last selected lane; … with nothing selected — or a
|
||||
/// > **tombstoned** selection, which never anchors creation — the **last-active lane** — the lane
|
||||
/// > **trash** selection, which never anchors creation — the **last-active lane** — the lane
|
||||
/// > that most recently held selection or a creation in this window session — falling back to the
|
||||
/// > first lane. … **Zero-lane board**: card creation … disable[s] via menu validation until a
|
||||
/// > lane exists.
|
||||
@@ -59,7 +59,7 @@ enum NewCardTarget {
|
||||
if let anchor = flattenAnchor(selection: selection, snapshot: snapshot) {
|
||||
return anchor
|
||||
}
|
||||
// Nothing selected, a tombstoned selection, or a stale one — the ids name nothing the board
|
||||
// Nothing selected, a trash selection, or a stale one — the ids name nothing the board
|
||||
// renders, a selection the next reload will drop. Falls through rather than refusing: the
|
||||
// user pressed ⌘N and the board has lanes. The target is then the lane that most recently
|
||||
// held selection or a creation, and the first lane when there is no such lane (or it has
|
||||
@@ -81,7 +81,7 @@ enum NewCardTarget {
|
||||
/// rule 04 says they share.
|
||||
///
|
||||
/// `nil` covers the three cases that anchor nothing, which the callers then answer their own way:
|
||||
/// an empty selection, a **tombstoned** one ("a tombstoned selection never anchors paste",
|
||||
/// an empty selection, a **trash** one ("a trash selection never anchors paste",
|
||||
/// settled — and "a trashed card's live disk-lane never leaks in as 'the selected card's lane'",
|
||||
/// which falls out of never looking at the trashed side at all), and a stale one whose ids name
|
||||
/// nothing the board renders.
|
||||
|
||||
Reference in New Issue
Block a user