Skip to content

Reading view: read a story without leaving the paper - #19

Merged
irashack-products[bot] merged 1 commit into
mainfrom
reading-view
Nov 24, 2026
Merged

irashack-products[bot] merged 1 commit into
mainfrom
reading-view

Conversation

@irashack-products

Copy link
Copy Markdown
Contributor

What and why

Products idea 8 (homelab-ops #3490): read a story without leaving the paper.

  • Reading view at /read/<date>/<item> (and /p/<paper>/read/...). It shows the gathering worker's stored snapshot in the paper's own type. A sticky "Back to the paper" bar returns to the story's page, and "Open at " goes to the source.
    • Text that looks partial (a paywall, or a page that needs script) carries a note saying so.
    • Stories without stored text keep only the link. The server never fetches a page for this view; whether it should is homelab-ops #3624.
  • Per device: text size and reading position are kept in local storage, which sign-out clears. The view's CSS and JS load only on its own page.
  • Database: no migration; the view reads the existing candidates table, scoped to the session's paper.
  • Also included:
  • The first-load budget goes up to 166 KB for the per-story links. The demo stores two invented snapshots, and the screenshots were regenerated.

Written by another product-host session (now archived), and finished here.

How tested

  • go test ./..., go vet ./..., gofmt -l ., node --test web/sw_test.js
  • New internal/reader/story_test.go. The author checked the screenshots.

Checklist

  • go test ./... passes
  • gofmt -l . is clean
  • Regenerated schemas and OpenAPI when those files were touched (none touched)

🤖 Generated with Claude Code

A story whose page the gathering worker stored text for gets "Read here"
beside its outlet link. The reading view (/read/<date>/<item>) sets that
stored text in the paper's own type, with a sticky "Back to the paper" bar
that returns to the story's page and a prominent "Open at <outlet>" link.
Text that looks shorter than the piece carries an honest note about
paywalls and script-only pages; stories without stored text keep only the
link and the view says so. The server never fetches a page for it.

Text size (A-/A+) and the place in each story are kept per device in local
storage, which sign-out clears. The view's CSS and script load only on its
page; the first-load budget rises to 166 KB for the per-story links.

Also:
- Image: OCI description label in the Containerfile (#12). The index
  annotations GHCR needs for a multi-arch description change
  .github/workflows/release.yml, which the desk's GitHub App may not push;
  that part waits on #12.
- Sepia body text is warm ink, and the List and Reader layouts name
  themselves in the page bar (#13).
- Empty states use the brand spot illustrations: moon before the first
  paper, folded paper for an empty search or a story with no copy, mug for
  no saved stories (#14).
- The demo reader stores two invented snapshots (a full story and a
  paywalled teaser); screenshots regenerated, phone-story.png added.

Refs #12. Closes #13, closes #14.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@irashack-products
irashack-products Bot merged commit 816541f into main Nov 24, 2026
2 checks passed
@irashack-products
irashack-products Bot deleted the reading-view branch November 24, 2026 14:01
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.

0 participants