Repository navigation
feat(native): list-owned action groups, covered cards, merged undo and shared skeleton - #37
Merged
Merged
Conversation
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
force-pushed
the
feat/native-list-actions
branch
from
November 16, 2026 17:24
9b9b97f to
3c6a718
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Reworks how episode lists act on a card, following the approved list-actions design.
text.page/text.bubbleglyphs (ports 0cfa592 and 7221419).CardExpandCoordinator,CardExpandAnimator,PendingRemovalandSkeletonText.No database schema or stored-value change (Inbox Add undo writes the captured feed rows back with their ids).
Notes for review
native(a48c34d);git merge-treeagainstmainreports no conflicts.PendingRemovalTestswas replaced byPendingBatchTests. Tests asserting the old Inbox swipes / plate / tap→Detail were rewritten to the new behaviour.Testing
AnycastAppTests720/721 — the one failure isOPMLWriterTests, whose fixturetest/fixtures/opml/app_export.opmlis tracked onmainbut missing on this branch's base. CI'sAnycastTestsselection:PlaybackStateMachineTestsand the other self-contained suites pass; the DB-fixture suites fail locally only becausetest/fixtures/dbis missing here (tracked onmain).AnycastUITests: 33 run, 21 skipped (demo/QA drivers), 1 failure locally:ShellNavigationUITestswith seeded subscriptions. The staleshows-sheet-titleidentifier (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.ScreenBaselineCaptureTestsare stale;specimen-darkanddetail-transcript-states-axsnapshot 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