Fresh (−3) Unread optimistic patch #61

Closed
opened 2026-08-04 19:40:10 +00:00 by TheAnachronism · 1 comment

Parent

Implements musts from docs/1.0-beta-readiness.md (polish Blocker seed #1 from 1.0 beta release readiness).

What to build

After marking articles read or unread, the Fresh Virtual feed (−3) Unread count updates correctly with the same optimistic patching other drawer rows already get — without waiting for a full getCounters refresh. Ship a regression test at the best seam (prefer unit/controller).

Acceptance criteria

  • Marking read/unread adjusts Fresh (−3) Unread count in the Drawer tree optimistic path (not left stale until counters refresh)
  • Regression test fails before the fix and passes after
  • Existing Unread-count behaviour for non-Fresh rows stays correct
  • flutter test still green for the touched area

Blocked by

  • None — can start immediately.
## Parent Implements musts from [`docs/1.0-beta-readiness.md`](../src/branch/master/docs/1.0-beta-readiness.md) (polish Blocker seed #1 from [1.0 beta release readiness](https://git.anachronis.dev/TheAnachronism/tt-rss-viewer/issues/41)). ## What to build After marking articles read or unread, the **Fresh** Virtual feed (−3) **Unread count** updates correctly with the same optimistic patching other drawer rows already get — without waiting for a full `getCounters` refresh. Ship a regression test at the best seam (prefer unit/controller). ## Acceptance criteria - [ ] Marking read/unread adjusts Fresh (−3) Unread count in the Drawer tree optimistic path (not left stale until counters refresh) - [ ] Regression test fails before the fix and passes after - [ ] Existing Unread-count behaviour for non-Fresh rows stays correct - [ ] `flutter test` still green for the touched area ## Blocked by - None — can start immediately.
Author
Owner

Done on master (d0171e9).

DrawerController.applyUnreadDelta now bumps Fresh (feed:-3) with All (feed:-4). Regression: applyUnreadDelta also patches Fresh (−3) Unread count in test/drawer/drawer_controller_test.dart.

Done on `master` (`d0171e9`). `DrawerController.applyUnreadDelta` now bumps Fresh (`feed:-3`) with All (`feed:-4`). Regression: `applyUnreadDelta also patches Fresh (−3) Unread count` in `test/drawer/drawer_controller_test.dart`.
TheAnachronism removed their assignment 2026-08-06 14:35:36 +00:00
Sign in to join this conversation.
No description provided.