Skip to content

plays surface: real content wins over mock fallback#466

Merged
ChBrain merged 2 commits into
mainfrom
surface/plays/mock-fallback-cleanup
Jul 4, 2026
Merged

plays surface: real content wins over mock fallback#466
ChBrain merged 2 commits into
mainfrom
surface/plays/mock-fallback-cleanup

Conversation

@ChBrain

@ChBrain ChBrain commented Jul 4, 2026

Copy link
Copy Markdown
Owner

Four bugs from _mock.ts outliving the empty-registry era it was written for:

  • House shelf: the mock lookup ran before the real-play branch, so an installed play whose id collides with a mock (woyzeck) showed the hand-written mock blurb instead of its real description.
  • Downloads shelf: read a blurb field real plays don't have — nearly every card shipped an empty note. Now uses description, stripped and clipped like the house shelf.
  • Orphan fabricated pages: /plays/ibsen/… pages were built and published (crawlable, linked from nowhere). Mock paths are now gated on "registry completely empty", matching the bill's own fallback rule.
  • The not-installed house note said "Grimm is still in progress." for every house, whatever its name.

Also: real play pages now emit a real <meta name="description"> (the English shelf logline, meta-only — the visible cover stays in the declared language per the synopsis rule documented in the file).

Verification: build + unit + plays a11y group green; dist/plays/ confirmed free of ibsen pages.

🤖 Generated with Claude Code

https://claude.ai/code/session_0176ZYTwoV8V4So9SBTizc5X


Generated by Claude Code

@ChBrain
ChBrain merged commit 4a91b59 into main Jul 4, 2026
35 checks passed
@ChBrain
ChBrain deleted the surface/plays/mock-fallback-cleanup branch July 4, 2026 19:07
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