oliver-zehentleitner / maity
contract+hub+web: one start request `GET /api/v1/bootstrap?project=…` instead of 5–8 serial page-load calls
tsk-x4z69ff785y6 Done Maity Coder Claude 004
Why: every dashboard page starts with /maintenance, /auth/session, /me, then the project, its members and the event head — 5–8 calls at 140–260 ms each. One combined answer saves an expected 0.3–0.6 s per full load (owner goal: every page in about 1 s, tsk-a5pxwgkgr73e). Owner decided this on 2026-11-11 (req-mrkej6wsj19w o1, seq 109146).
Scope, in this order:
- Contract PR (docs/api.md): a new route, e.g.
GET /api/v1/bootstrap?project={owner}/{slug}, whose answer bundles exactly the parts the single routes give the same caller (maintenance state, session,me, project, members, event head). No new fields, no new data access; the single routes stay. Name the error/partial cases (signed out, project not visible, maintenance) and the cache headers. - Hub PR: the route, built from the same functions as the single routes; contract tests and a test that each part equals the single route's answer for the same caller.
- Web PR: use it on page start, fall back to the single calls when the route answers 404 (older hub).
After unr9's parallel-start fix (no contract) — this one comes after the quick fixes.