Skip to content

feat(game): related guides links between the four guide pages - #268

Merged
arrzdev merged 1 commit into
mainfrom
feat/related-guides
Nov 2, 2026
Merged

arrzdev merged 1 commit into
mainfrom
feat/related-guides

Conversation

@arrzdev

@arrzdev arrzdev commented Nov 2, 2026

Copy link
Copy Markdown
Owner

Each guide page (/rules, /strategy, /opening-moves, /starting-positions) now ends with a "Related guides" block that links to the other three.

  • components/manual/related-guides.tsx: a <nav> with plain router links, so the server HTML has them and they keep the page's language prefix (/de/rules links to /de/strategy). Each link uses the target page's existing heading as its label.
  • The block heading is the one new string, game:related_guides, added to all 13 locales.
  • The block sits after the last chapter and is a <nav>, not a <section>, so the chapter last-of-type sizing and the play block above it stay the same.
  • Sitemap lastmod for the four pages is now 2026-11-02 (seo-pages.ts, plus its unit test and seo.spec.ts).

Verification

  • pnpm typecheck, pnpm biome:check, turbo run build --filter=@repo/game...: pass
  • vitest run (apps/game): 908 passed
  • New e2e/related-guides.spec.ts: on / and /de for each guide, the served HTML has exactly 3 guide links and each one returns 200. At 375×667, the play button is on the first screen and the block is below it.
  • seo, play-block, locale-urls, manual-layout, accessibility, hit-areas, rules-page, strategy-page, text-contrast, play-this-layout, skip-link and structured-data specs: green. strategy-page.spec now lists the extra h2.

A Related guides block closes /rules, /strategy, /opening-moves and
/starting-positions. Labels reuse each page's heading; the block heading
is one new key in every locale. Plain links in the server HTML, under the
page's language prefix, below the play block.
@arrzdev
arrzdev merged commit 42962e9 into main Nov 2, 2026
5 checks passed
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.

1 participant