A playlist row's X marks the episode played (#497)

renderPlaylist set an onclick of its own over listenRow's, to play on
through the playlist, and returned early for a click on the X instead of
calling its remove, so Mark played never ran. listenRow now takes what a
play click does, and the playlist passes playFrom instead of replacing the
handler.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVBuJRne2JAhFpaDV2U
This commit is contained in:
2026-11-22 18:30:01 -05:00
parent 5786a0cb1c
commit 9ef9359fe6
4 changed files with 15 additions and 10 deletions

View File

@@ -544,6 +544,13 @@ test('a smart playlist puts its first podcasts ahead and plays on through itself
await expect(page.locator('#ptitle')).toHaveText('First Episode');
await page.locator('#pclose').click();
// Its X marks it played (#497): an onclick of the playlist's own once skipped it.
const twoFiles = async () => (await page.evaluate(() => api('/api/feeds/multi-show/entries')) as ListPage).entries
.find(e => e.title === 'Two Files')!;
await page.locator('#listening .childrow', { hasText: 'Two Files' }).locator('[data-a="remove"]').click();
await expect.poll(async () => (await twoFiles()).read).toBe(true);
await page.evaluate(e => setRead(e, false), await twoFiles());
await page.locator('#content .acts [data-a="rm"]').click();
await answer(page);
await expect(page.locator('#feedlist .feed.child', { hasText: 'Commute' })).toHaveCount(0);