feat(ce): Sprint G — data model + admin validation #81
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/ce-sprint-g"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Sprint G — Data model + admin validation
Première brique du plan CE (Comités d'Entreprise) défini dans
~/.claude/plans/logical-pondering-hummingbird.md.Schéma
Organizationgagneapproved/approvedAt/approvedBy/contactEmail. Migration backfille toutes les orgs existantes (CMCK) → approved=true pour ne casser personne.OrganizationCarbetMembership(manyToMany Org↔Carbet) — la table de jointure qui supporte la co-gestion CE. Invariant : un Carbet a unownerId(créateur initial) + 0..n memberships. Un hôte individuel = aucun membership ; un carbet CE = au moins 1 membership.RentalProvider.organizationId(nullable, SetNull on delete) — un CE peut posséder son provider rental dédié.Migration appliquée à la DB prod, CMCK confirmé
approved=true.Plugin
ce-managementajouté au registry (catégorie business, off par défaut). Quand off : signup CE caché + dashboard/espace-ce404. Permet de shipper la feature sans la rendre visible tant que System D n'est pas prêt à embarquer des CE.Admin
/admin/organizations(Toutes / À valider [count] / Validées) avec compteur des pending dans l'en-tête.approveOrganizationAction(flip approved=true + auditorganization.approve). Idempotent.carbetMemberships._countetrentalProviders._count.Test plan
npm test→ 53/53 ✓npm run typecheck✓npm run lint✓npm run build✓/admin/organizations: voir les 3 tabs, CMCK en « Validée »+ Nouvelle organisation→ arrive dans tab « À valider »approved=trueaprès migration (déjà confirmé en SQL)🤖 Generated with Claude Code