Skip to content

M29, second part: stories for visitors - #81

Merged
SebHenn merged 3 commits into
mainfrom
m29-stories-second-part
Nov 25, 2026
Merged

SebHenn merged 3 commits into
mainfrom
m29-stories-second-part

Conversation

@SebHenn

@SebHenn SebHenn commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Second of three parts of M29 (plan: docs/plan-m29-stories.md). Stories become public; the bin, "used in N stories" and the handbook follow in part 3.

  • /stories (paged, 24 per page) and /stories/{id}: the same 404 for unknown, draft, binned and all-hidden stories. Blocks load only through VisibleStoryBlocks; a hidden item leaves no caption, id, anchor, position or count.
  • Covers from two queries per page: the first visible item with a picture; a record-only item never gives one.
  • Start page: a Stories section (first three). Sitemap: visible stories, no lastmod. Link preview: title and summary, no item text, no item picture (the archive logo as on every other page). No ETag or Last-Modified from block or item data.
  • A text block counts towards visibility only when it has non-whitespace text.
  • _ItemCard split out of _ItemCards; demo story is now published; security rows, known limits, CHANGELOG, German entries.

Privacy review

No leak found. Gaps it raised and that are closed: cover rule pinned with a hidden/record-only item first; preview tests now run with a logo set; paging totals unchanged by hidden stories; wording of "no picture"; blank text blocks.

Tested

Release build clean; main suite 617 passed, 6 skipped, 0 failed; browser suite 227 passed (before the last test-only commit); gitleaks clean; all commits signed off. Not tested here: real phones, screen readers; the visual walkthrough is planned for the end of M29.

🤖 Generated with Claude Code

SebHenn and others added 3 commits November 25, 2026 18:25
/stories and /stories/{id} start from VisibleStories and show parts only through
VisibleStoryBlocks; a draft, a binned, an all-hidden and an unknown story answer the same
404. Start page section, sitemap entries without lastmod, link preview with title and
summary only, covers from visible items in two queries, the item card split out of
_ItemCards. Tests for the visibility matrix, the 404, time, deletion, the public
accessibility runs; security.md rows, German entries, changelog. The demo story is published.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Signed-off-by: Seb H. <[email protected]>
…nly texts with words

The cover tests put a hidden, embargoed, binned or record-only item first; the preview
tests give the archive a logo and allow only it as og:image. A text of white space alone no
longer keeps a story visible or shows in it. Paging is tested with hidden stories added.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Signed-off-by: Seb H. <[email protected]>
The list pages with p, the start page shows three stories, a withdrawn item needs a
contribution, and the inline-script test reads a published story.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Signed-off-by: Seb H. <[email protected]>
@SebHenn
SebHenn merged commit 7ea3d09 into main Nov 25, 2026
17 checks passed
@SebHenn
SebHenn deleted the m29-stories-second-part branch November 25, 2026 18:11
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