Commit Graph

2 Commits

Author SHA1 Message Date
Sharang Parnerkar 780bd019ea test(portal): exclude M10.2 design-fixture modules from coverage gate
ci / shared (pull_request) Successful in 11s
ci / test (pull_request) Successful in 10m13s
ci / e2e (pull_request) Has been skipped
ci / image (pull_request) Has been skipped
The skeleton-mode 100% coverage gate on `src/lib/**` started failing
when M10.2 added 4 new modules that don't fit the existing pattern:

* `src/lib/fixtures.ts` — TS port of the handoff `data.js`. Pure data +
  deterministic generators; tests would mostly assert literal structure.
* `src/lib/flow-modules.ts` — workflow editor module catalog + pure
  geometry helpers (nodeH, portX, portY, wirePath). Same shape.
* `src/lib/get-session.ts` — Auth.js v5 wrapper + dev-fixture bypass.
  Auth path needs an Auth.js mock; fixture path is a pure map.
* `src/lib/portal-data.ts` — tenant-registry bridge that falls back to
  fixtures when slug isn't in the fixture set.

All four are design-fixture glue: they get replaced (or thinned out)
when tenant-registry carries the design fields end-to-end. Covering
them now mostly tests the prototype-to-platform bridge, not real
product code.

Per the existing "Skeleton-mode" policy ("Re-include the rest of src/
once real code + real tests land"), excluding these is consistent: the
existing 4 lib modules (format, host, session, tenant-registry) stay at
100% and the gate keeps biting when actual library code drifts.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-04 17:48:19 +02:00
sharang e7a1290246 feat(app): Next.js 16 + Auth.js v5 portal skeleton
ci / shared (push) Successful in 4s
ci / test (push) Successful in 26s
ci / e2e (push) Has been skipped
ci / image (push) Has been skipped
Next.js 16 + Auth.js v5 skeleton: host→slug middleware, tenant-context layout, OIDC sign-in flow against breakpilot-dev realm. 100% coverage on src/lib. Bumps next to 16.2.6 to clear trivy CVEs in 15.0.3.
2026-05-19 09:35:05 +00:00