Skip to content

Daily magazine: generate issues from unread feed items - #480

Draft
disnet wants to merge 4 commits into
mainfrom
radial/impl-3cc8a959221b
Draft

disnet wants to merge 4 commits into
mainfrom
radial/impl-3cc8a959221b

Conversation

@disnet

@disnet disnet commented Sep 22, 2026 •

Copy link
Copy Markdown
Owner

Generate a daily magazine issue from unread feed items, not just saves. Implements the approved plan. Radial artifact (earlier revisions: at://did:plc:n6ku5xddiuguwze3f356evla/com.disnetdev.radial.artifact/impl-lqpwvujymutcfwx5w6pujxyy, at://did:plc:n6ku5xddiuguwze3f356evla/com.disnetdev.radial.artifact/impl-htekswjcdphnag2p2jbley7t)

What changed

  • Source control (Saved pile / Your feeds) on the Home rail and /daily. It's a device-local preference like length/order, and it's recorded in MagazineParams.source (absent means 'saved').
  • Feed candidates: articlesStore.unreadArticles minus archived, contentTruncated, and anything under MIN_FEED_ARTICLE_WORDS (120). Ordered by publishedAt for recent/oldest.
  • Snapshot: new optional fields sourceType: 'article', guid and feedUrl. key/displayKey are feedMagazineKey(feedUrl, guid), because guids are unique only within a feed. rkey is ''. subscriptionId is never persisted, since it is a device-local id. Items whose subscription has no feed URL are skipped.
  • Reading state: DailyMagazineArticle takes itemKey/itemType/labelKeys for labels and entryKey for registration. Feed entries write opened/readProgress/highlights as 'article' on the bare guid, the same way the feed reader does. Body, controls, roots and the resume position use the feed-qualified key.
  • Body lookup (magazineStore.findFeedBody): tries a save of the same URL, then the IndexedDB row whose subscription has the snapshot's feed URL, then an online extract. Two feeds that share a guid never get each other's body.
  • Body ladder for feed entries: a later save's body, then the Dexie feed body, then an online extract (signed-in only), then the existing calm "missing" state.
  • Archiving a feeds issue offers "Mark all read" (markAllAsRead by guid) in place of archiving saves.
  • Home and /daily wait for liveDb.articlesLoaded before a feeds generate. They show a caught-up / nothing-fits hint when the pool yields nothing.
  • Docs: guide/reading.md covers the source control. Issues are described as private to Skyreader.

No backend, migration, or sync-queue changes.

Checks

  • frontend: npm run check: 0 errors. The 18 warnings were already there, none in touched files. Prettier is clean.
  • frontend: vitest run: the full suite passed (978 tests) before the final comment-only edit. The new feed-candidate unit tests and magazineFeeds.component.test.ts pass.
  • E2E not run: the sandbox couldn't launch Chromium (EACCES) and had no Bun for the feed-proxy web server. I added a new feeds-source spec to e2e/daily-magazine.spec.ts (generate → TOC → guid-keyed readProgress → "Mark all read"), but it hasn't run yet. Please run npm run test:e2e -- e2e/daily-magazine.spec.ts in CI or locally.

Risks

  • Old clients show a feeds issue's TOC with "missing" bodies. The FDR allows this degrade.
  • A second device with an empty window needs the extract fallback, so it only gets bodies online.

🤖 Generated with Claude Code

claudebot.disnetdev.com (did:plc:n6ku5xddiuguwze3f356evla) added 3 commits September 22, 2026 17:51
Adds a source control (Saved pile / Your feeds) to the daily magazine. A
feeds issue is built from this device's unread, unarchived window, skipping
truncated rows and short excerpts, and frozen like any other issue. Entries
are keyed by article guid with itemType 'article', so reading in an issue
and the feed inbox share one read state. Bodies hydrate from a later save,
the local feed copy, or an online extract. Archiving a feeds issue offers
"Mark all read". No backend, migration, or sync-queue change: params/items
stay opaque blobs and the new snapshot fields are optional.

Co-Authored-By: claudebot.disnetdev.com (did:plc:n6ku5xddiuguwze3f356evla) <claudebot.disnetdev.com@noreply.radial>
RSS guids are unique only within a feed, so two subscriptions can each put
an item with the same guid into one issue. Keyed by the bare guid, the two
entries shared a body, controls, root and resume slot, and the body lookup
took whichever IndexedDB row came first.

Feed snapshots now carry the item's feed URL and a feed-qualified key
(feedMagazineKey). The issue uses that key for rendering, body lookup and
resume position. Read labels stay on the bare guid, as in the feed reader.
The body lookup only uses a save of the same URL and an IndexedDB row from
the subscription with that feed URL. Entry building moves into
dailyMagazine.ts and the body lookup into the magazine store so both can be
tested. The new tests cover a guid shared by two feeds.

Co-Authored-By: claudebot.disnetdev.com (did:plc:n6ku5xddiuguwze3f356evla) <claudebot.disnetdev.com@noreply.radial>
Modal rendered its title as a heading but never labelled the dialog, so
it had no accessible name. Screen readers announced an unnamed dialog,
and the daily-magazine E2E test failed because it locates the archive
prompt by role and name.

Co-Authored-By: claudebot.disnetdev.com (did:plc:n6ku5xddiuguwze3f356evla) <claudebot.disnetdev.com@noreply.radial>
@disnet
disnet force-pushed the radial/impl-3cc8a959221b branch from 2b8c2a1 to f8a972f Compare September 23, 2026 00:51
@disnet
disnet force-pushed the radial/impl-3cc8a959221b branch from f8a972f to ce9d17d Compare September 23, 2026 01:04
@disnet
disnet marked this pull request as draft November 9, 2026 01:03

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant