Richer 8-section guides + simpler 8-pill filters (famous books first)#3
Merged
Conversation
Filter pills: collapse ~22 granular genres and ~50 themes into 8 clean canonical buckets each (genre + theme), matched via membership mapping in filters.ts. Cards/guides keep their detailed tags. Deep-dive content model: add optional BookDeepDive (what makes it famous, chapter-by-chapter plot, character analysis, theme deep-dives, symbols & motifs, style/devices, study questions, about-the-author). The guide page renders the full 8-section layout with a sticky quick-nav when present, and falls back to the legacy layout otherwise. Rewrite the most famous titles first in the new format: 1984, Crime and Punishment, The Great Gatsby, To Kill a Mockingbird. Remaining books to be rolled out in batches. https://claude.ai/code/session_01Egnnw9v4T3ppsAQveFnijo
The committed guide page references book.deepDive and the canonical filter buckets; this adds the matching type definitions (BookDeepDive + optional field on Book) and the 8-bucket genre/theme mapping so the branch compiles.
Adds a CI job that runs `npm ci && npm run build` on every PR so the static export is verified before merge.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two improvements
1. Fewer filter pills (8 + 8)
The browse bar had ~22 genre pills and ~50 theme pills (one per granular tag). This collapses them into 8 clean canonical categories each:
A book belongs to a bucket if it has any member tag (mapping in
src/lib/filters.ts). Cards and guide pages keep their detailed tags — only the filter bar is simplified.2. In-depth 8-section guide format
New optional
BookDeepDivemodel (src/data/types.ts) renders a much richer guide with a sticky quick-nav:Books without a deep dive fall back to the existing layout, so the build stays green during rollout.
Rewritten in the new format (famous first)
✅ 1984 · Crime and Punishment · The Great Gatsby · To Kill a Mockingbird
The remaining 30 books will be rewritten in subsequent batches.
Verify
npm run buildsucceeds (39 routes export toout/)https://claude.ai/code/session_01Egnnw9v4T3ppsAQveFnijo
Generated by Claude Code