diff --git a/tests/ui/app.spec.js b/tests/ui/app.spec.js index 6111626..2039afa 100644 --- a/tests/ui/app.spec.js +++ b/tests/ui/app.spec.js @@ -1906,6 +1906,17 @@ test('a refresh button turns from the press to the end of the scan it asked for' expect(await spin('#scanAll .i')).toBe('none'); }); +test("an open feed's page follows its row: an error a later check clears goes", async ({ page }) => { + // The header was drawn once, on opening, and kept a cleared error until reopened (#316). + await page.locator('.feed', { hasText: 'Test Show' }).click(); + const head = page.locator('.fhead .meta'); + await page.evaluate(() => patchFeed({ ...S.feeds.find(f => f.id === 'test-show'), last_error: 'connecting: timed out', failing: null })); + await expect(head.locator('.fail')).toHaveText('connecting: timed out'); + await page.evaluate(() => patchFeed({ ...S.feeds.find(f => f.id === 'test-show'), last_error: null, entries: 99 })); + await expect(head.locator('.fail')).toHaveCount(0); + await expect(head.locator('.stat')).toContainText('99 items'); +}); + test.describe('with motion reduced', () => { test.use({ reducedMotion: 'reduce' }); diff --git a/web/CHANGELOG.md b/web/CHANGELOG.md index d47e200..2c1eb6a 100644 --- a/web/CHANGELOG.md +++ b/web/CHANGELOG.md @@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Scrolling to the end of a dialog or the phone's feed list no longer scrolls the page behind it (#312). - Cover artwork has a faint edge, so a dark cover stands off a dark theme (#313). - The tab bar's corners follow the tabs inside it (#314), and the Directory's covers fan out smoothly (#315). +- A feed's page drops an error once a later check succeeds, and its item count and when it was last checked stay current, instead of keeping what they were when you opened it (#316). - Settings shows iPX's and the page's versions at its foot: the logo's tooltip was out of reach of a keyboard and of a phone (#309). ## [1.2.0] - 2026-10-19 diff --git a/web/src/feedpage.ts b/web/src/feedpage.ts index 53fa97c..42629dd 100644 --- a/web/src/feedpage.ts +++ b/web/src/feedpage.ts @@ -1,4 +1,21 @@ /* ---------------- feed page ---------------- */ +function statHTML(f: Feed){ + return `