Show Fresh headlines with Unread filter #11

Closed
opened 2026-08-02 19:26:36 +00:00 by TheAnachronism · 2 comments

What to build

On the List hub, after Sign-in, the person sees real Fresh headlines from the active Account. They can toggle the global Unread filter between Unread and All; when Unread is selected but the current Selection has zero unread articles, the list auto-shows all articles without flipping the toggle. Opening the screen and pull-to-refresh reload headlines; long lists page with skip.

Acceptance criteria

  • List hub loads Fresh headlines for the active Account via the API (lean headlines, not full Reader bodies)
  • Unread / All toggle works as session UI state (not durable); Unread is the default after Sign-in
  • With Unread selected and zero unread in the Selection, the list shows all articles while the toggle stays Unread
  • Refresh on screen open and pull-to-refresh update the list
  • Headline pages beyond the first load via skip (API limit 200)

Blocked by

  • #10 Sign in to an Account (app scaffold + session)
## What to build On the **List hub**, after Sign-in, the person sees real **Fresh** headlines from the active **Account**. They can toggle the global **Unread filter** between Unread and All; when Unread is selected but the current **Selection** has zero unread articles, the list auto-shows all articles without flipping the toggle. Opening the screen and pull-to-refresh reload headlines; long lists page with `skip`. ## Acceptance criteria - [ ] List hub loads Fresh headlines for the active Account via the API (lean headlines, not full Reader bodies) - [ ] Unread / All toggle works as session UI state (not durable); Unread is the default after Sign-in - [ ] With Unread selected and zero unread in the Selection, the list shows all articles while the toggle stays Unread - [ ] Refresh on screen open and pull-to-refresh update the list - [ ] Headline pages beyond the first load via `skip` (API limit 200) ## Blocked by - #10 Sign in to an Account (app scaffold + session)
Author
Owner

Done

List hub now loads real Fresh headlines for the active Account.

Delivered

  • ApiClient.getHeadlines (lean rows, sid, skip/limit, no content body)
  • Unread filter session toggle; when Unread is on and the unread page is empty, fetch all articles without flipping the toggle
  • Refresh on open + pull-to-refresh; infinite scroll pages with skip
  • Tests: 24 passed; dart analyze clean

Review notes

  • Spec ACs met for #11; drawer Selection changes remain #12
  • HeadlinesApi lives in domain; AccountHeadlinesApi resolves per-call ApiClient from AccountRepository
## Done List hub now loads real **Fresh** headlines for the active Account. ### Delivered - `ApiClient.getHeadlines` (lean rows, `sid`, `skip`/`limit`, no content body) - **Unread filter** session toggle; when Unread is on and the unread page is empty, fetch all articles without flipping the toggle - Refresh on open + pull-to-refresh; infinite scroll pages with `skip` - Tests: 24 passed; `dart analyze` clean ### Review notes - Spec ACs met for #11; drawer Selection changes remain #12 - `HeadlinesApi` lives in domain; `AccountHeadlinesApi` resolves per-call ApiClient from AccountRepository
Author
Owner

Implemented on master: Fresh headlines + Unread filter.

Implemented on master: Fresh headlines + Unread filter.
Sign in to join this conversation.
No description provided.