Skip to content

Deepen SAMS match loading and harden SSR cache-peek paths - #375

Merged
terijaki merged 8 commits into
mainfrom
terijaki/9f098c2e
Jul 23, 2026
Merged

Deepen SAMS match loading and harden SSR cache-peek paths#375
terijaki merged 8 commits into
mainfrom
terijaki/9f098c2e

Conversation

@terijaki

Copy link
Copy Markdown
Owner

Summary

  • Deepen SAMS modules: extract match loading into sams-match-loader.server.ts, move teams sync into lib/sams, and remove undeployed read Lambdas.
  • Harden SSR: cache-peek loaders with season fallback, resilient Promise.allSettled on public routes, and effective-input fallback when DynamoDB/cache peek fails.
  • Align client staleTime with the 5‑minute match cache TTL; clarify season disagreement (majority / most-recent) in ADR + CONTEXT.md.
  • Add unit coverage for SSR/effective-input paths and empty-tolerant Playwright smokes (DynamoDB-dependent cases skip without AWS_REGION).

Test plan

  • vp check and vp test pass
  • bun run test:e2e e2e/sams-smoke.spec.ts — homepage + /termine pass without AWS; DynamoDB cases skip unless AWS_REGION / WEBAPP_URL against vpr server
  • Manually: /termine, /tabelle, /teams/$slug load without calling getSamsMatchesFn in loaders; empty SAMS sync still renders page shells
  • With synced clubs/teams: season-scoped cache/API path includes for-season on cache miss

@terijaki
terijaki merged commit c92407a into main Jul 23, 2026
6 checks passed
@terijaki
terijaki deleted the terijaki/9f098c2e branch July 23, 2026 06:20
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