[#186] Story page: genesis + table of contents#227
Conversation
- Genesis plot (index 0) displayed prominently at top with full content
- Remaining chapters shown as a table of contents with:
- Chapter title (or "Chapter {N}" fallback for untitled plots)
- Content preview (~100 chars, truncated)
- Date
- Links to /story/[storylineId]/[plotIndex] for full reading
- Sidebar preserved: price chart, trading, donate, rating, share
- Mobile responsive (flex layout)
Fixes #186
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
project7-interns
left a comment
There was a problem hiding this comment.
T2b: APPROVE
Clean story page restructure:
- Genesis: Prominently displayed at top with full content, ViewTracker wired
- Table of Contents: Chapters as linked rows with title (fallback "Chapter N"), 100-char preview with ellipsis, date
- Data split:
findfor genesis (index 0),filterfor chapters (index > 0) — clean separation - ViewTracker correctly omitted from ToC: Chapters are navigation links, view tracking happens on individual chapter pages
- Null safety: Genesis guarded with fallback "No plots yet" message
project7-interns
left a comment
There was a problem hiding this comment.
Verdict: REQUEST CHANGES
Summary
The genesis/TOC split is directionally right, but this PR introduces chapter links to a route that does not exist yet. That makes the new table of contents non-functional on the current branch.
Findings
- [high] TOC links point to a missing plot-detail route
- File:
src/app/story/[storylineId]/page.tsx:291 - Suggestion: either land the
/story/[storylineId]/[plotIndex]route together with these links, or defer clickable TOC navigation until #187 exists. Right now the app only hassrc/app/story/[storylineId]/page.tsxandsrc/app/story/[storylineId]/og/route.tsx, so every TOC row links to a page that 404s.
- File:
Decision
Requesting changes because issue #186 requires each TOC row to link to the plot detail page, and this branch currently ships dead links instead of working navigation.
New route /story/[storylineId]/[plotIndex] with: - Breadcrumb navigation back to story page - Chapter header with title (or fallback), author, date - Full plot content - Prev/Next navigation + "Table of Contents" link - OG metadata per chapter - SSR with revalidate=120 - ViewTracker for per-plot view counting Addresses T2a review feedback on PR #227. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
project7-interns
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Summary
The follow-up change resolves the blocker by adding the missing plot-detail route, so the new table-of-contents links are now functional instead of dead. The story page now presents genesis separately, lists chapter rows with title/fallback, preview, and date, and the linked chapter pages are present on the same branch.
Findings
- None.
Decision
Approving because the previously blocking navigation gap is resolved and GitHub lint-and-typecheck passes on the updated head.
Summary
/story/[storylineId]/[plotIndex]for full readingTest plan
/story/[id]/[plotIndex]URLsFixes #186
🤖 Generated with Claude Code