Skip to content

feat(playbook): click through from the enriched-by card into the Enginebook#170

Merged
ChBrain merged 1 commit into
mainfrom
claude/playbook-enginebook-link
Jun 3, 2026
Merged

feat(playbook): click through from the enriched-by card into the Enginebook#170
ChBrain merged 1 commit into
mainfrom
claude/playbook-enginebook-link

Conversation

@ChBrain

@ChBrain ChBrain commented Jun 2, 2026

Copy link
Copy Markdown
Owner

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 — optional deepLink on 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.tsdeepLink?: { href, label } on BookSpread.
  • Playbook page — engine spreads get 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 enginebooks back 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-verify only (sandbox can't run the hooks' packages); the one .ts change is prettier-clean, the two .astro edits are additive/indent-matched — run npm run format if format:check flags the .astro files.
  • Source-only (src/**). A contract test (the enriched-by card links into the book) can follow as a separate test PR.
  • Patch-bump + lockfile on merge per convention.

Next on the enginebook: the reference spreads (pages-by-chapter) — the khai keystone.

https://claude.ai/code/session_01LwCVbSERbgE8XpULEe5YTk


Generated by Claude Code

…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
@ChBrain
ChBrain merged commit e72b597 into main Jun 3, 2026
4 checks passed
@ChBrain
ChBrain deleted the claude/playbook-enginebook-link branch June 3, 2026 05:23
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.

2 participants