Skip to content

Replace swipe deck with ordinary choices - #2157

Merged
max-sixty merged 6 commits into
mainfrom
codex/activity-reading-continuity
Oct 9, 2026
Merged

max-sixty merged 6 commits into
mainfrom
codex/activity-reading-continuity

Conversation

@max-sixty

@max-sixty max-sixty commented Oct 9, 2026 •

Copy link
Copy Markdown
Owner

The ideas example now presents ordinary multiple choices: select the ideas to build, use Done to record the shortlist, and approve. Choices survive revisions; a completed shortlist can be reopened and changed, and undo restores a changed pick. Choosing none records an empty shortlist.

Retire the swipe package, its gallery and all consumers. Remove its unused package-gallery adapter and role-complete member validation. Keep generic position tracking and cross-unit Ask completion, exercised through page-owned queue declarations. Update package references, keyboard eval fixtures and the generated corpus; refresh the public catalog image.

Validation: 1,227 integrated contract/document/layer/session tests and 275 runtime tests pass; pre-commit passes. Native phone keyboard/touch journey, title-sized option activation, revision, reopening Done, undo and approval; empty shortlist; ordinary Ask layout; standing-action replay; optional-gallery startup; queue admission/workflow and instruction selection; corpus/vocabulary gates; runtime tests and pre-commit.

This was written by Codex on behalf of max-sixty

Start history behind a stable text disclosure and hold incoming changes with shared HeldReading. Restore retained drawing through the initial renderer so live executable replacements keep reading geometry from their first frame.

Carry keyed generated focus after upgrade under the existing replacement intent, while authored input focus remains synchronous. Native tests cover arrivals, touch, undo, printing, full replacements, and continued typing while presentation waits.
A held row preserved its captured availability after its destination left, so native activation followed a dead fragment. Retain only historical words and drawing, and refresh navigation against the current document while preserving the same focused node. Resolve initial targets at parser-interactive, before module startup, rather than treating an unfinished parser prefix as the complete document. Bare anchors are content rather than presses in the shared gesture boundary.

Native regressions cover removal and restoration through patched and fresh documents, keyboard and touch, blocked-module startup, stable held geometry and labels, and active versus historical picture comment routes. Eleven focused native tests,254 runtime tests,83 browser-build tests, default quality and lint pass. Independent re-review confirms correct targets in every painted frame. User visual review remains pending; no merge.
The Ideas page now records a durable multiple-choice shortlist through existing options, Done, undo and approval. Retire the swipe package, gallery and consumers rather than retaining a presentation-specific queue.

Preserve generic position-based completion through page-owned queue declarations and their admission/workflow tests. Remove unused gallery adapters and role-complete member validation; regenerate references, corpus and catalog images. The obsolete swipe interaction tests are replaced by a phone journey covering selection, revision, reopening, undo and approval.
@max-sixty
max-sixty merged commit 1f4ab1f into main Oct 9, 2026
6 checks passed
@max-sixty
max-sixty deleted the codex/activity-reading-continuity branch October 9, 2026 10:55
max-sixty added a commit that referenced this pull request Oct 27, 2026
Adds `lf-deck`, an optional bundled package that works through a pile of
decisions one card at a time, like Slack's Catch up. An agent puts it on
the page like any widget; each element child is a card holding its own
widgets and obligations.

A card waits while it holds an obligation open on the user. Once the
user answers every obligation on the card they are on, the deck moves on
by itself to the next waiting card; **Later** (or a swipe left) leaves a
card waiting for the end of the pass and records nothing, and Back
returns to the previous card. At the end of the pass a frame says how
many still wait and offers to go through them again, or to review from
the start. Arrow keys and the deck's command row give the keyboard
route; a keyboard user lands on the next card's first question. A new
tab opens on the first waiting card. Cards move as a stack: the open
card accelerates off the side it was sent, the one behind rises into
place, and the deck's height eases between cards; under reduced motion
they just change places.

The old swipe package was retired in #2157. The deck keeps its
one-at-a-time pile but generalizes it to any card, with swipe as
navigation rather than as the answer.

### Shared changes outside the package

- `browser/runtime/obligations/tally.js`: the count of a region's open
obligations moves out of `lf-tally` so the deck and `lf-tally` share it;
exported as `tally`/`tallyWords`.
- `widget-api.js` now also exports `placeOf` and `executeCommand`.
Rolldown regrouping the kernel's chunks around `executeCommand` accounts
for most of the `dist/kernel` churn; no runtime code moved.
- `openingView` takes an optional fallback, so a views widget can open
on a card of its own choosing (`prepaint.js`, `storage.js`, documented
in `module-authoring.md`).
- `lf-draft`: a draft the user needs to act on (`[needed]`) shows its
Edit control at rest instead of on hover only.
- `heading-links.js`: Enter on a section link waits for its control to
upgrade before pressing it, which threw on a freshly drawn control.
- `AGENTS.md`: `notes/` holds research and plans for work not yet built;
a branch's design lives in its code.

Docs: `packages/deck/instructions/author.md`, the package card in
`docs/extending.html`, `examples/developer/deck.html`, the glossary, and
the module references for the new exports.

Tests: `tests/browser/widgets/test_deck.py` covers a full pass (answer,
Later, the end frame, Back, Review), opening a new tab on the first
waiting card, an answer from another window not moving the deck, an open
draft saved before moving on, and the keyboard pass.

> _This was written by Claude Code on behalf of max-sixty_

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants