Skip to content

feat(native): list-owned action groups, covered cards, merged undo and shared skeleton - #37

Merged
musepy merged 6 commits into
mainfrom
feat/native-list-actions
Nov 18, 2026
Merged

musepy merged 6 commits into
mainfrom
feat/native-list-actions

Conversation

@musepy

@musepy musepy commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Reworks how episode lists act on a card, following the approved list-actions design.

  • One action group per list. Tapping a card body opens a row of circle buttons below the card; the cover opens Detail. Rapid actions hand the group to the next card while it stays under the finger (an unanimated apply followed by FLIP layer animations; selection is tracked by episode identity, not IndexPath). Safe lines keep the whole group clear of the header, tab bar, mini player and the undo capsule.
  • Playlist: 96 pt card with a 72 pt cover, time-first meta row with a now-playing marker, a queue-summary footer ("X h Y m left · done around …") and a pull-up gesture that opens History. Play / Transcript / Remove / Details.
  • Inbox: standalone cards again (shared three-line title + description budget), diffable data source, swipes and the history tail removed. Play / Add / Remove / Details; Play closes the group.
  • Show page, Search episodes, in-show search: covered cards; Play / Add / Details; Add switches to an in-playlist state in place (card height unchanged, no toast).
  • Undo: same-kind actions merge into one batch ("Removed 3 episodes", count updated in place), a different kind commits the previous batch, Undo restores the whole batch in reverse order. Inbox Add is now undoable. The playing and next rows leave at tap time like any other row.
  • Playback: removing the playing episode stops it and loads the next one paused (play only on user confirm); Undo restores it at its position and progress, still paused.
  • Loading: one shared skeleton drawn from the real cell geometry with a synchronized sweep (static under Reduce Motion); the 300 ms LoadingDelay rule gates every network list; Playlist and History show no loading state.
  • Icons: ink / sand / gold / error roles only, text.page / text.bubble glyphs (ports 0cfa592 and 7221419).
  • Retires the per-card strip, CardExpandCoordinator, CardExpandAnimator, PendingRemoval and SkeletonText.

No database schema or stored-value change (Inbox Add undo writes the captured feed rows back with their ids).

Notes for review

  • The branch also carries d0c2d7c (Remove with Undo for Inbox and Playlist), which was never pushed on its own.
  • Branched from native (a48c34d); git merge-tree against main reports no conflicts.
  • Tests removed with the retired features: "expand then collapse leaves the strip hidden…", "a collapse fade interrupted by a new toggle…", "Strip target: forced settle deforms…"; PendingRemovalTests was replaced by PendingBatchTests. Tests asserting the old Inbox swipes / plate / tap→Detail were rewritten to the new behaviour.
  • Decisions awaiting product confirmation: Play on a non-head Playlist card closes the group and moves the card to the top; a selected row that leaves for external reasons (finished, removed elsewhere) closes the group; when the user pressed Play during the Undo window, the restored episode returns at position 2 instead of taking over playback; the Playlist download mark sits at the end of the meta row; on the Show sheet the group's bottom safe line is its Latest/Follow/Share row; the Show page's full-page spinner (no title yet) is kept.

Testing

  • iOS 27 simulator: AnycastAppTests 720/721 — the one failure is OPMLWriterTests, whose fixture test/fixtures/opml/app_export.opml is tracked on main but missing on this branch's base. CI's AnycastTests selection: PlaybackStateMachineTests and the other self-contained suites pass; the DB-fixture suites fail locally only because test/fixtures/db is missing here (tracked on main).
  • AnycastUITests: 33 run, 21 skipped (demo/QA drivers), 1 failure locally: ShellNavigationUITests with seeded subscriptions. The stale shows-sheet-title identifier (predates this branch) is fixed and the Library sheet now opens, but the next step (swipe the sheet away, select the Playlist chip) still fails locally. CI's simulator has no subscriptions, so that path does not run there; not checked against the base.
  • Release simulator build compiles.
  • Simulator walkthroughs on iOS 27: open/close/switch, rapid removes (group screen position unchanged), fill from above, merged undo capsule and Undo of mid-list removes (group stays put; restored cards above it), removing the playing episode then Undo, Show page group with Add. Inbox on screen: group opens; its Remove/Add are covered by hosted tests only.
  • iOS 18: Playlist open at the bottom and rapid removes with the merged capsule only.
  • Not run: screen baseline re-recording (ScreenBaselineCaptureTests are stale; specimen-dark and detail-transcript-states-ax snapshot mismatches also occur with the card stroke restored, not checked on the base), device check of the skeleton shimmer, the skeleton sweep and Search pages on screen, title-under-header / list-at-top / remove-to-empty / drag-while-open / largest Dynamic Type / Reduce Motion walkthroughs.

Known issue: when the Show page scrolls to make room for an opening group, its header fold snaps while the cards animate.

🤖 Generated with Claude Code

musepy and others added 6 commits November 17, 2026 00:27
Removing an episode from the Inbox or a playlist deleted it at once with
no way back. Remove now shows a 5 s "Removed from Inbox/Playlist · Undo"
capsule above the tab bar and mini player.

- PendingRemoval holds one deferred removal and commits it when the
  window ends, on backgrounding or termination, when the list disappears,
  on a second remove, or when another toast replaces the capsule.
- Inbox: the row stays stored and is filtered out of the displayed list
  until the commit; refreshes and the trim timer never resurrect or count
  it. Play and Add to playlist still remove immediately.
- Playlist: ordinary rows are deferred the same way. The playing row and
  the next row in the loaded queue are deleted at once (the player could
  advance into them) and Undo re-inserts the captured row at its index
  with its progress, without resuming playback. Cached audio is removed
  only when the window ends.

No schema change and no new persisted state.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One circle action group per list replaces the per-card strip: tapping a
card body opens it below the card, the cover opens Detail, and rapid
actions hand the group to the next card while it stays under the finger
(FLIP over an unanimated apply; selection is tracked by episode identity).

- Playlist: 96 pt card with a 72 pt cover, time-first meta row, a queue
  summary footer and a pull-up gesture that opens History.
- Inbox: standalone cards with a shared three-line title/description
  budget; swipes and the history tail are gone; Play/Add/Remove/Details.
- Show page, Search episodes, in-show search: covered cards with
  Play/Add/Details; Add switches to an in-playlist state in place.
- Icons: ink/sand/gold/error roles only, text.page / text.bubble glyphs
  (ports 0cfa592 and 7221419).
- Retires the old strip, CardExpandCoordinator and CardExpandAnimator.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the playing episode

- PendingBatch replaces the single-item PendingRemoval: same-kind actions
  merge into one batch (window restarts, the capsule count updates in
  place), a different kind commits the previous batch, and Undo restores
  the whole batch in reverse removal order.
- Playlist: rows hidden as a set; the playing and next rows now leave at
  tap time like any other row, with the database and playback work after.
- Removing the playing episode stops audio and loads the next episode
  paused; Undo restores it at its position and progress, still paused.
- Inbox: Remove batches; Add is undoable and restores the feed rows field
  for field. Play never enters a batch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- SkeletonBlocks draws rounded blocks from the real cell's geometry
  (cover, title and meta lines), so skeleton and loaded cards have the
  same height; one shared clock keeps every sweep on a page in phase;
  Reduce Motion shows static blocks.
- LoadingDelay's 300 ms rule now gates every network list (Show page,
  Discover, both search pages, the pasted-address row).
- Local lists (Playlist, History) show no loading state.
- Removes SkeletonText.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sheet id in UI tests

- Undo of a removed head card re-inserted it above the open action
  group, whose screen anchor scrolled the card out of view; the list now
  reloads and reveals the topmost restored row.
- ShellNavigation and QA crawl UI tests still waited for the retired
  shows-sheet-title identifier; the sheet reports library-sheet-title.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Data and undo correctness:
- Undoing an Inbox Add re-inserts its feed rows through the new
  FeedRepository.reinsertIgnoringConflicts: the original row ids are
  dropped (a deleted id can be recycled by a row that arrived inside the
  undo window; REPLACE on it would delete that row) and a same-URL
  conflict keeps the existing row (a refresh in the window wins).
  Regression tests cover both windows.
- undoAdd writes the inbox rows back FIRST and only deletes the created
  playlist rows once that write succeeded; it now throws, and the Undo
  capsule announces "Restored" only on success and toasts on failure.
- PlaylistRemovalLogic.reinsert propagates write errors: a failed
  restore no longer announces "Restored" nor clears the hidden rows;
  restored rows are marked and the failure surfaces as a toast.
- Every restored playlist row, not only the former current, lands after
  the queue head while playback moved elsewhere (eager removals store
  index 0 too; any row re-inserted at 0 pushed the playing episode out
  of the head and stalled completion advance). Covered by a two-heads
  undo test.
- The batch commit clears cached audio only for rows whose delete
  actually landed; a failed delete keeps the row and its cache.

Duplicate-URL identity and list behavior:
- Channel, in-show search and episode search disambiguate repeated
  enclosure URLs (new ListActionIdentity): only a URL's first row owns
  the action group and its gap — a shared id opened the group at the
  wrong row and left two 68 pt gaps.
- The Channel page refreshes its rows and visible cards when a refetch
  changes only titles, durations or artwork (the URL signature was
  unchanged and the cells went stale).
- The playlist's card entrance plays outside the action controller's
  performWithoutAnimation block, which applied it instantly and burned
  its one shot.
- InboxEpisodeCardCell.prepareForReuse drops the FLIP translation that
  rides on the cell's own layer, like EpisodeCardCell.

Performance and cleanup:
- The Inbox description cache is keyed by enclosure URL and reuses the
  previous parse for unchanged rows instead of round-tripping every
  description through the HTML actor on each reload.
- MainTabBarController.bottomChromeTopY no longer forces a full shell
  layout on every call (it runs several times per group transition).
- Dead code removed: ListActionPlanner.DirectionRule (single case, never
  passed) and PlaylistEpisodeDataSource.index(of:)/rowCount (no
  callers). The retired SearchPageAddButton enum and the stale
  "unguarded tap" comments are gone with it; the gating test now covers
  the shared ChannelPlaylistGate rule.

UI tests:
- The Playlist's pull-up-to-History opens over the seeded smoke run's
  drag band; the smoke test closes the sheet so the next chip tap
  reaches the bar.
- ShellNavigation waits out the Shows sheet dismissal and retries a
  chip tap that a dismissal tail can eat, instead of asserting a
  one-shot selection.
@sljeff
sljeff force-pushed the feat/native-list-actions branch from 9b9b97f to 3c6a718 Compare November 16, 2026 17:24
@musepy
musepy merged commit db77244 into main Nov 18, 2026
1 check passed
@musepy
musepy deleted the feat/native-list-actions branch November 18, 2026 02:54
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