Repository navigation
Monorepo Phase 1: import site under apps/site with workspaces - #337
Merged
Merged
Conversation
- App Router: home, start, books catalog, WoLTY microsite, podcast, patterns library, collaborators, about; MDX, textures, open-graph image - APIs: Beehiiv newsletter subscribe; feed.xml redirect to podcast RSS - RSS ingestion with fallback JSON; Vitest unit/integration tests and feed.xml smoke test - Expanded sitemap (books, patterns, WoLTY routes); robots.txt - GitHub Actions: npm ci, lint, test, build on PR and push to main - Tooling: ESLint, Prettier, Vitest + Testing Library Co-authored-by: Cursor <cursoragent@cursor.com>
…er (#1) Load the generated books-manifest from GitHub releases (ISR + React cache) with BOOKS_MANIFEST_URL / BOOKS_MANIFEST_REVALIDATE_SECONDS / BOOKS_MANIFEST_OFFLINE and JSON fallback. Normalize generator output (epub/docx/pdf, repo URL, slug aliases, companion metadata, derived featuredSlug). Async catalog accessors, alias-aware getBookBySlug, WoLTY v1 + public-alias redirect to the microsite, and catalog-sync that overlays microsite copy for v1/legacy while keeping manifest download URLs when present. WoLTY /book and /resources use merged-catalog URLs (primary + companion blocks on BookLanding). Generic /books/[slug] shows optional EPUB/DOCX/PDF via BookCatalogDownloadLinks and getBookDownloadLinkItems. Move microsite footer social icons into SiteFooter (resolveSiteSocialLinks + optional NEXT_PUBLIC_SOCIAL_* env), remove duplicate WoLTY footer, and allow raw.githubusercontent.com in next/image. Async sitemap and related call sites. Tests: manifest parse/fetch, site-config, generated-manifest slug helpers, catalog-downloads with mocked getBooks, book-download-links, catalog-sync RTL, SiteFooter and BookCatalogDownloadLinks RTL; Vitest defaults BOOKS_MANIFEST_OFFLINE. Co-authored-by: Cursor <cursoragent@cursor.com>
Library cards and featured block used 3:4 containers with object-cover, which cropped 1024×1536 (2:3) covers at the top and bottom. Use aspect-[2/3] so covers display in full without changing image assets or display scale. Co-authored-by: Cursor <cursoragent@cursor.com>
Fix book cover cropping on /books (2:3 aspect)
Introduces /explore with manifest-backed graph (Zod validation, caching, typed queries), book/pattern/concept/source index and detail routes, catalog cover resolution, and prev/next navigation aligned to index ordering. Retires standalone /patterns in favor of redirects to /explore/patterns, updates nav and sitemap, and tightens empty-state layout so sparse graph slices do not leave large dead zones or redundant copy. Co-authored-by: Cursor <cursoragent@cursor.com>
* Add explore semantic observatory and reorganize browse routes. Introduce a React Flow-based /explore hub that loads the semantic manifest plus catalog books, supports focus deep links, filters, path tracing, and insight readouts. Move listing/detail entity routes under a (browse) group with a shared layout so URLs stay stable. Add graph viz helpers (ego subgraph, predicates, paths, insights), observatory layout utilities, merged book metadata, and broad unit test coverage. Co-authored-by: Cursor <cursoragent@cursor.com> * Fix ESLint set-state-in-effect when changing observatory selection. Route selection updates through setSelectedNodeId so panel edge highlights clear without a synchronous setState in useEffect (react-hooks/set-state-in-effect). Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com>
Compact breakpoints get a category hub and view=observatory URL sync, tiered progressive expansion, and clickable node titles; adjacent nav stays horizontal on small screens. Co-authored-by: Cursor <cursoragent@cursor.com>
Meta and other link-preview bots need explicit user-agent rules even when a wildcard allow exists. Co-authored-by: Cursor <cursoragent@cursor.com>
Facebook fetches opengraph-image with Range, which can break dynamic images while page metadata still scrapes. Co-authored-by: Cursor <cursoragent@cursor.com>
Fix Facebook OG image by stripping Range for social crawlers
Meta sends Range on the HTML document too; limiting middleware to /opengraph-image left Sharing Debugger with hostname fallbacks and 403s. Co-authored-by: Cursor <cursoragent@cursor.com>
Replace dynamic opengraph-image with a 1200×630 crop of the hero backdrop so Facebook fetches a stable static asset. Co-authored-by: Cursor <cursoragent@cursor.com>
Add headline and CTA overlay on hero art, compress og.png under 600 KB, and use a ~59-character share title for Open Graph and Twitter. Co-authored-by: Cursor <cursoragent@cursor.com>
Parse book and pattern media from the published semantic manifest, refresh the bundled fallback JSON, and render YouTube embeds, infographics, Medium links, and pattern playlists on /explore routes plus WoLTY book pages. Co-authored-by: Cursor <cursoragent@cursor.com>
Read commerce metadata from the semantic manifest and render featured-style buttons above the intro video, replacing the catalog download fallback link. Co-authored-by: Cursor <cursoragent@cursor.com>
…links Add purchase and download actions to explore book pages
Remove legacy /books routes, WoLTY port, and orphan patterns library; add permanent redirects to /explore/books and /explore/patterns, point sitemap and internal links at explore URLs, and unify entity detail actions so Focus in observatory is the primary CTA beside purchase links. Co-authored-by: Cursor <cursoragent@cursor.com>
Introduce zustand-driven layout with relationship interpretation, collapsible side panes, manual focus zoom, spread/prune flows, tiered progressive expansion, and canvas refit on deep links so the graph stays centered when panes open. Co-authored-by: Cursor <cursoragent@cursor.com>
… on demand. Co-authored-by: Cursor <cursoragent@cursor.com>
Add on-demand cache revalidate API (podcast, semantic, books)
Defense in depth for release JSON that still includes both books and upcoming entries for the same slug. Co-authored-by: Cursor <cursoragent@cursor.com>
Prefer rows with live export URLs so promoted volumes are not overwritten by legacy upcoming duplicates sharing the same book id. Co-authored-by: Cursor <cursoragent@cursor.com>
# Vercel Web Analytics Implementation Successfully installed and configured Vercel Web Analytics for this Next.js project. ## Changes Made ### 1. Installed @vercel/analytics Package - Added `@vercel/analytics` version 2.0.1 to project dependencies - Used npm (the project's package manager) to install the package - Updated package-lock.json to reflect the new dependency ### 2. Updated Root Layout (app/layout.tsx) - Imported the `Analytics` component from `@vercel/analytics/next` - Added the `<Analytics />` component at the end of the `<body>` tag - Followed Next.js App Router best practices as specified in the official Vercel documentation ### Implementation Details The Analytics component was placed inside the body tag, after the ThemeProvider and SiteShell components. This ensures: - Analytics tracking is initialized after the main app structure - The component doesn't interfere with the existing layout structure - Follows the official Next.js App Router integration pattern ### Files Modified - `app/layout.tsx` - Added Analytics import and component - `package.json` - Added @vercel/analytics dependency - `package-lock.json` - Updated with new dependency tree ### Verification Completed ✅ Linter passed with no errors ✅ All 184 tests passed (44 test files) ✅ Production build completed successfully ✅ TypeScript compilation successful The implementation follows the latest official Vercel Analytics documentation retrieved from https://vercel.com/docs/analytics/quickstart and is ready for deployment. Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
…rati-9n0nfh Add Vercel Web Analytics integration
Successfully installed and configured Vercel Speed Insights for the Next.js project.
## Changes Made:
### 1. Package Installation
- Installed `@vercel/speed-insights` package using npm
- Updated package.json to include the new dependency
- Updated package-lock.json with the new package and its dependencies
### 2. Configuration
Modified: `app/layout.tsx`
- Added import statement: `import { SpeedInsights } from "@vercel/speed-insights/next";`
- Added `<SpeedInsights />` component to the body section, placed alongside the existing `<Analytics />` component
## Implementation Details:
The implementation follows the official Vercel Speed Insights documentation for Next.js App Router (v13.5+):
- Retrieved latest installation instructions from https://vercel.com/docs/speed-insights/quickstart
- Used the Next.js App Router specific integration pattern
- Placed the SpeedInsights component in the root layout file (app/layout.tsx)
- Component is placed in the body section alongside existing Analytics component
## Verification:
✅ Build completed successfully - no errors
✅ Linter passed - no linting errors introduced
✅ All tests passed (184 tests across 44 test files)
✅ No breaking changes to existing functionality
## Next Steps:
To enable Speed Insights metrics collection:
1. Deploy the application to Vercel using `vercel deploy`
2. Enable Speed Insights in the Vercel dashboard for this project
3. Metrics will start appearing after users visit the deployed site
## Files Modified:
- app/layout.tsx (added SpeedInsights import and component)
- package.json (added @vercel/speed-insights dependency)
- package-lock.json (updated with new dependency tree)
Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
…hts-07tfm6 Install Vercel Speed Insights package
Load Google Analytics via @next/third-parties with Consent Mode v2, a first-party opt-in banner, and typed outbound/content events across major site CTAs. Co-authored-by: Cursor <cursoragent@cursor.com>
Combine GA4 consent wiring with Vercel Analytics and Speed Insights in the root layout. Co-authored-by: Cursor <cursoragent@cursor.com>
Empty commit to retry deployment after transient GitHub ref race. Co-authored-by: Cursor <cursoragent@cursor.com>
…nt-minor-patch-d0712697a7
Bumps [eslint](https://github.com/eslint/eslint) from 9.39.4 to 10.7.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Commits](eslint/eslint@v9.39.4...v10.7.0) --- updated-dependencies: - dependency-name: eslint dependency-version: 10.7.0 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
ESLint 10 removed context.getFilename(), which eslint-plugin-react (via eslint-config-next) still uses for React version auto-detection. Setting settings.react.version bypasses that path so lint can run until upstream ships compatible plugins (vercel/next.js#89764).
TypeScript 7 is not usable with the current stack: typescript-eslint only peers typescript <6.1.0 (no TS 7 programmatic API yet), and next build crashes under TS 7. Ignore semver-major typescript bumps so Dependabot does not keep opening broken preview PRs.
* Add Global Search technical and product plan Document a repository-grounded plan for client-side MiniSearch over an ISR-generated search index, covering content inventory, UX, ranking, aliases, a11y, performance, analytics, testing, and phased delivery. Co-authored-by: ksteffe <ksteffe@users.noreply.github.com> * Implement Global Search Phase A document normalization Add SearchDocument types, authored alias config, boost helpers, and buildSearchDocuments from the explore graph, books catalog, and podcast episodes so status, editions, and aliases are not lost to Zod stripping. * Implement Global Search Phase B index and MiniSearch Add minisearch, a cached GET /api/search/index payload, query preparation, relevance explanations, gzip budget checks, and ranking fixtures over the bundled explore corpus. * Implement Global Search Phase C results page Add /search with shareable URL state, type filters, MiniSearch results, relevance explanations, loading/error/empty states, consent-safe analytics, footer and Explore entry points, sitemap coverage, and e2e coverage. * Implement Global Search Phase D quick search palette Add header and mobile search entry points, Cmd/Ctrl+K and slash shortcuts, a focus-managed quick search dialog with recent localStorage queries, and navigation into the full /search results page. * Fix mobile menu Search entry discoverability Open the quick-search palette before closing the drawer to avoid a race, style Search like other mobile nav rows, show a Search label in the header on small screens, and cover the menu entry with unit and e2e tests. --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: ksteffe <ksteffe@users.noreply.github.com>
Grow curated related bridges for thematic queries, add capped enrichment and query-aware snippets, promote soft ranking fixtures where the corpus supports them, and document a privacy-safe unresolved-query workflow. Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Promote situations through Zod, the explore graph, browse/detail UI, and search documents; bridge temporary-fix phrasing to the new situation; document embeddings evaluation and defer chapters/transcripts upstream. Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Introduce editorial question paths as a newcomer-oriented entrance alongside Start Here. Includes a validated questions manifest with 12 corpus-grounded paths, /questions index and detail routes, homepage and Start Here sections, Global Search curated-question bridges, analytics events, JSON-LD, sitemap entries, and E2E coverage. Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Implement editorial reading trails as a first-class discovery mode: - Shared path-stop layer extracted from questions pipeline - Versioned trails manifest with Zod validation and build-time enrichment - /trails index and /trails/[slug] detail pages with accessible ordered paths - Five launch trails across judgment, leadership, meaning, systems, and practice - Navigation, sitemap, Start Here, analytics, tests, and contributor docs Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Surface curated reading trails above search results when queries match authored searchBridges terms, mirroring the questions search bridge pattern. Co-authored-by: Cursor Agent <cursoragent@cursor.com>
* Expand trail discovery on homepage and entity pages Add homepage featured trails section, related trails on book/concept/pattern detail pages, and Trails to primary navigation. Fix book stop canonical resolution when slug collides with a concept. * Document automatic related trails on entity detail pages --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Match published trails to questions by shared canonical path stops, excluding trails above the 60% overlap editorial threshold. Adds QuestionRelatedTrailsSection on question pages with tests and docs. Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Introduce a Coming soon section on /trails, Upcoming badges on cards, and noindex preview detail pages for status:upcoming trails. Adds the Where Institutions Look sample trail and updates docs and tests. Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Extract shared PathStopList/PathStopCard for questions and trails with localStorage resume tracking. Map enriched paths to Observatory Pathway objects, add pathway deep links and playback dock highlighting, and link from question/trail detail pages. Co-authored-by: Cursor Agent <cursoragent@cursor.com>
* Update semantic manifest from upstream release (28 → 31 books) Source: ksteffe/after-certainty@latest (2026-07-20) * Add filterable book shelves and migrate to semantic-only catalog - Refresh semantic manifest (31 books) and extend Book schema with status, authors, exports, slug aliases, and companion edition fields - Remove books-manifest.json ISR loader, merge layer, and dual-manifest joins - Add catalog view model, editorial shelves, filters/sort/URL state, validation - Redesign /explore/books with shelf sections, filter controls, and analytics - Update search, trails, questions, JSON-LD, and cache revalidation for semantic-only books - Add unit/component/E2E tests and contributing-books-catalog.md * Fix books-catalog E2E selectors for CI strict mode Scope result-count and card link queries to #main so navigation matches book cards instead of the site lockup, and use a specific '4 books' assertion instead of ambiguous /book/i text matching. --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
* Add roadmap for canonical status, What's New, and book overviews Document an implementation-ready plan grounded in the current semantic-manifest architecture: lightweight work/edition resolution, public status vocabulary, hybrid change events, and incremental book overview redesign—without implementing the features yet. Co-authored-by: ksteffe <ksteffe@users.noreply.github.com> * Fix CI npm audit failure by overriding nested sharp Next 16 nests sharp@0.34.5, which fails npm audit --audit-level=high. Force all sharp installs to the direct ^0.35.3 dependency via overrides. * Add Phase A publication registry for work and edition metadata Introduce a site-authored registry covering all semantic books with stable workIds, explicit canonical flags, and WoLTY companion (not superseded) rules. Schema and health checks land without changing catalog resolution yet — that wiring is Phase B. * Wire Phase B publication registry into canonical resolution Prefer publication-registry work/edition metadata for catalog, search edition groups, and health checks. Keep -vN heuristics as fallback for unregistered books. Label WoLTY v2 as companion (not superseded) and exclude draft books from the sitemap. * Add Phase C status and edition labels on catalog and detail Introduce shared StatusLabel and EditionNotice components backed by public-status helpers. Catalog cards show one exceptional chip; book detail pages surface companion, superseded, and upcoming notices with accessible text links. Align path-stop and search labels to Upcoming. * Add Phase D What’s New change-event model and curated seed Introduce authored whats-new.json with Zod schema, health validation, podcast candidate generation (gated unpublished), and public feed assembly helpers. Seed major 2026 publications, the How Meaning Moves podcast episode, and site features—excluding technical-only changes. * Add Phase E What’s New page, RSS feed, and homepage preview Ship /whats-new with month-grouped chronology, URL-driven type filters (canonicalized to /whats-new), RSS at /whats-new/feed.xml, sitemap entry, footer and Start Here links, and a homepage preview replacing the thin recent-work episode block. * Remove unused Container import from What’s New home preview * Add Phase F book overview content model and validation Introduce authored overview overlays for Start Here and core books, with schema, graph cross-checks, and a thin view-model for Phase G. * Add Phase G redesigned book overview pages for overlay books Books with authored overlays get orientation-first IA (question, why, curated ideas, reading order, progressive inventory). Others keep the legacy layout with shared status/edition notices. * Fix thinkers e2e for Phase G progressive inventory disclosure after-certainty uses the redesigned overview, so Major thinkers only appear after expanding Full related inventory. * Add Phase H book ↔ What’s New links and consistency polish Surface related What’s New events on book pages, fire edition notice impressions, warn trails on superseded editions (not companions), and demote superseded books further in search boost. * Use consistent book_page location for What’s New feed analytics --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: ksteffe <ksteffe@users.noreply.github.com>
* Make after-certainty the discovery source of truth Refresh bundled semantic-manifest (schemaVersion 2.1) and extend the graph schema to retain works, editions, questions, trails, shelves, changeEvents, searchAliases, and additive book fields. Switch site loaders to read discovery data from the manifest; keep presentation overlays (maxPreview, front-shelf copy, recommended rank, primaryActionPreference, fictionDoorway, question/trail search bridges, podcast/site What’s New) in this repo. Remove ported JSON mirrors. * Remove unused SemanticGraph import in catalog-query test * Fix client bundle importing next/cache via search aliases getSearchAliasConfig pulled validateSemanticGraph from lib/graph/manifest, which imports revalidateTag. Search client components import aliases via query.ts, so the build failed. Read bundled searchAliases without that module, and move pure Zod validation to lib/graph/validate.ts for sync loaders. * Fix fiction shelf e2e count for corrected content types Upstream labels only The Relay and Velorum as fiction; the catalog no longer counts the two formerly mislabeled nonfiction volumes. --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
* Accept poetry as a book contentType Upstream observer-patterns ships contentType "poetry", which the site schema rejected. That forced the bundled semantic-manifest fallback and kept How Trust Forms on the legacy detail layout despite a valid remote overview. Allow poetry in Zod schema, graph types, and catalog filters/labels. Co-authored-by: ksteffe <ksteffe@users.noreply.github.com> * Bump Next.js to 16.2.11 for npm audit CI CI fails on npm audit --audit-level=high against next@16.2.10. Upgrade next and eslint-config-next to the patched 16.2.11 release. --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: ksteffe <ksteffe@users.noreply.github.com>
…93) * Stabilize semantic-manifest consumption for content types and fallbacks Sync the bundled fallback to schema 2.2 (fiction/poetry corrections), centralize public content-type normalization with literaryForm support, make remote/fallback provenance observable with staleness checks, and add public-corpus integrity plus sync/validate npm scripts. * Fix CI timeout in public corpus integrity tests Reuse registry catalog/search artifacts, replace per-book related-trail scans with a single trail-stop pass, and raise the integrity test timeout so slower CI runners do not flake at the default 5s limit. --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Restore hard errors for overview selections not linked on the book row, add an intentional exception allowlist for current orientation overlays, cover empty-book pattern selections, and document how to except or clear mismatches after upstream backfill. Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Promote non-canonical curated shelf members from soft companion warnings to hard errors, with an intentional exception allowlist for known upstream drift (WoLTY v2 on leadership-and-authority). Document that shelves stay canonical-only even with editions=all. Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Stop stripping parts[]/chapters[] in Zod, expose selectors and edition indexes, register chapters as unlisted metadata (no search or sitemap yet), and validate structure in public corpus integrity. Co-authored-by: Cursor Agent <cursoragent@cursor.com>
* Align site with semantic-manifest schema 2.3 enrichment Consume the released schema-2.3 contract: sync the bundled fallback and intended release pin, extend Zod/types for roles, grounding, and chapter kinds, unify loader cache identity with a build lock, and present chapter maps, work-specific concept/pattern roles, and restrained pattern grounding on book and entity pages without adding a native reader. * Fix book overview health CI timeout on schema 2.3 Derive overviews from the graph under validation instead of re-parsing the bundled manifest (and avoid double-running the health check). The extra Zod pass on the larger 2.3 fallback was exceeding Vitest’s 5s default on CI. * Avoid re-parsing bundled manifest in overview health tests Reuse bookOverviewsFromGraph(graph) fixtures so CI does not Zod-parse the 2.9MB schema-2.3 fallback on every overview health case. * Pass graph publication registry into overview health checks resolveWorkEdition was defaulting to getPublicationRegistry(), which Zod-parsed the full bundled manifest for every related-book lookup and pushed CI past the 5s test timeout on schema 2.3. --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Preserve site commit history via git filter-repo subdirectory rewrite. Production behavior unchanged: site still consumes the remote semantic manifest. Workspace/Turbo wiring follows in subsequent commits on this branch. Co-authored-by: ksteffe <ksteffe@users.noreply.github.com>
Wire the imported site as a workspace package, hoist the lockfile to the repo root, and document dual-toolchain commands. Production still uses the standalone site repo and remote semantic manifest. Co-authored-by: ksteffe <ksteffe@users.noreply.github.com>
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.
Summary
Implements Phase 1 of the monorepo migration plan:
ksteffe/after-certainty-sitehistory underapps/site/viagit filter-repo --to-subdirectory-filter apps/site+ unrelated-history mergeCorpus paths (
books/,semantic/,Makefile, etc.) stay at the repository root.Also
npm run site:*/corpus:*overridesmoved to root (npm workspaces requirement)prepareis a no-op for now (hooks remain underapps/site/.husky)docs/migrations/monorepo-phase-1/Explicitly not in this PR
.github/workflows(Phase 2)Test plan
make check(221 passed, 3 skipped)npm ci/npm run site:lint(0 errors; existing warnings)SEMANTIC_MANIFEST_OFFLINE=1 npm run site:test(523 passed)SEMANTIC_MANIFEST_OFFLINE=1 npm run site:validate:fallbacknpx turbo run lint --filter=after-certainty-sitegit log -- apps/site/package.jsonshows preserved site history