Skip to content
SprecherEast
Issue 251

tech-debt: Explicit overrideAccess in the seed, and read the nav globals as a visitor

Back to our plan
Open
cmstech-debtpriority: low

Type

tech-debt

Summary

Two follow-ups from #135 that the site module move (#241–#243) leaves open: explicit overrideAccess on the seed's writes, and reading the header and footer as a visitor.

Problem

  • src/endpoints/seed/index.ts makes about 25 Local API writes without overrideAccess. docs/project.md asks for it on every Local API call; the default is true, so behaviour is right but implicit.
  • src/modules/site/data/globals.ts reads the header and footer with overrideAccess: true. The plan from the #192 review (comment on #135, 2026-10-21): expire global_header and global_footer from revalidatePage and revalidatePost when a linked document changes, then read with false.

Proposed fix

Set overrideAccess: true with a one-line reason on each seed write (or a small seed helper that does). Add the global tag expiry to the page and post revalidate hooks with tests, then switch the globals read to false and pin it in a test.

Acceptance criteria

  • Not done: Every Local API call in the seed sets overrideAccess explicitly.
  • Not done: Header and footer are read with overrideAccess: false; changing a linked page or post refreshes the nav (tested).
  • Not done: docs/project.md no longer names #135 for these.

Area

cms

Priority

low


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab