Julien Gautier adb4d35274
CI / commits (pull_request) Successful in 4m57s
CI / scan (pull_request) Successful in 4m59s
CI / check (pull_request) Successful in 6m46s
CI / a11y (pull_request) Successful in 2m6s
CI / perf (pull_request) Successful in 9m5s
fix(admin): unbreak ci:check on PR2b (TS2454 + missing fr translation)
webpack-cli build --node-env=production failed on two issues that
ts-jest's --transpile-only didn't surface:

1. portal-bff TS2454 in user-scopes.service.ts:221 — TypeScript
   couldn't see the switch on `kind` as exhaustive, so `let exists:
   boolean` was flagged as "used before assigned". The narrowing on
   VALUE_BEARING_KINDS.has(kind) doesn't propagate through Set.has
   (only Array.includes / type-guards do). Initialise `exists =
   false` so it's definitely assigned regardless of switch path;
   semantically safe — a non-value-bearing kind that reaches the
   switch (shouldn't happen by construction) leaves exists=false and
   the next `if (!exists)` throws the same friendly "does not match"
   message.

2. portal-admin missing translation: route.user-scopes.title was
   declared in app.routes.ts but never added to messages.fr.xlf.
   @angular/localize build target requires every $localize id to
   have a target in the active locale. Added the trans-unit for the
   FR locale ("Périmètres utilisateur — Administration APF Portal").

Local: nx run-many -t build --projects=portal-bff,portal-admin
passes on both.
2026-05-26 16:16:15 +02:00

Documentation index

This is the entry point to all project documentation. It is maintained automatically: any addition, rename, or removal of a .md file under docs/ must be reflected here in the same change.

Conventions

  • Documentation is written in English.
  • One topic per file. Group related files into a folder when there are three or more.
  • Cross-reference with relative links so they keep working in GitHub, IDEs, and exported sites.
  • For architectural decisions, do not add them here — they belong in decisions/ as MADR 4.0.0 ADRs.

Sections

Daily development

  • development.md — repo layout, prerequisites, initial setup, daily commands, observability dev-loop (Jaeger UI, log ↔ trace correlation), dependency updates (Renovate), conventional commit cycle. Day-to-day reference for working on the project.

Architecture

  • architecture.md — cross-cutting Mermaid diagrams: C4 system context, C4 containers, Nx module boundaries, CI/CD pipeline. Single-decision diagrams (auth sequence, ERD, etc.) live inline in their ADR.

Onboarding & environment

Setup guides for new contributors:

Operations & runbooks

Empty — to be populated when we deploy.

Security, performance, accessibility

Empty — placeholders to be filled with rationale docs alongside their corresponding ADRs.

S
Description
No description provided
Readme 42 MiB
Languages
TypeScript 85.3%
JavaScript 5.4%
SCSS 4.3%
HTML 3.9%
Shell 0.8%
Other 0.3%