feat(playbook): click through from the enriched-by card into the Enginebook#170
Merged
Conversation
…book The Playbook already shows each installed engine as a WIRES card in the "enriched by" group, but it was a dead end. Add an optional deepLink to the shared Book chassis (renders a foot-of-spread CTA, mirroring the cover CTA) and set it on the Playbook's engine spreads -> ../enginebooks/<id>/. Card = teaser, Enginebook = deep dive; the navigation is now whole. Additive: deepLink only renders when set, so no other spread (or the Enginebook) is affected. https://claude.ai/code/session_01LwCVbSERbgE8XpULEe5YTk
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.
Closes the navigation gap: the Playbook's "enriched by" WIRES card was a dead end — now it links into the engine's full Enginebook.
What changed (additive)
Book.astro— optionaldeepLinkon a spread renders a foot-of-spread CTA (pb-spread-cta, mirroring the cover CTA). Only renders when set, so no other spread or the Enginebook is touched.book.ts—deepLink?: { href, label }onBookSpread.deepLink → ../enginebooks/<id>/("Open the Gender enginebook →").So: Playbook (canon) → enriched-by card (teaser) → Enginebook (deep dive), plus the shelf as before, and the Enginebook cover's
← all enginebooksback to the shelf. Navigation is now whole.Verify on staging
On
…/architecture/playbook/, scroll to the "enriched by" Gender card → there's an "Open the Gender enginebook →" link → lands on…/architecture/enginebooks/gender/.Notes
--no-verifyonly (sandbox can't run the hooks' packages); the one.tschange is prettier-clean, the two.astroedits are additive/indent-matched — runnpm run formatifformat:checkflags the.astrofiles.src/**). A contract test (the enriched-by card links into the book) can follow as a separate test PR.Next on the enginebook: the reference spreads (pages-by-chapter) — the khai keystone.
https://claude.ai/code/session_01LwCVbSERbgE8XpULEe5YTk
Generated by Claude Code