CRUD Carbet (propriétaire) + pages connexion/espace-hote #7

Merged
tarzzan merged 2 commits from feat/owner-carbet-crud into main 2026-05-29 22:14:59 +00:00
Owner

3e étape MVP séquentiel (après schéma + auth).

  • Interface propriétaire : CRUD Carbet
  • Migration Prisma init schema
  • Pages connexion, espace-hote, admin
  • src/lib (prisma, password, authorization)
3e étape MVP séquentiel (après schéma + auth). - Interface propriétaire : CRUD Carbet - Migration Prisma init schema - Pages connexion, espace-hote, admin - src/lib (prisma, password, authorization)
tarzzan added 2 commits 2026-05-29 22:04:57 +00:00
Interface propriétaire sous /espace-hote/carbets :
- Liste, création, édition et suppression de carbets (formulaire complet :
  présentation, localisation, accès pirogue, commodités).
- Upload photos/vidéos vers S3/MinIO (route handler multipart), réordonnancement
  et suppression des médias, photo de couverture.
- Statut de publication (brouillon / publié / archivé) avec garde
  « au moins un média avant publication ».

Réutilise le schéma Prisma (SYS-2) et l'authentification NextAuth (SYS-3) :
gating via requireRole([OWNER, ADMIN]) et contrôle de propriété sur chaque
mutation. Stockage objet configurable par variables S3_* (compatible MinIO).

Co-Authored-By: Paperclip <noreply@paperclip.ing>
main now contains the Prisma schema (SYS-2) and NextAuth (SYS-3) that the
owner carbet CRUD depends on. Integrating them so the branch compiles and
the PR is cleanly mergeable.

- package.json: union of S3 SDK (@aws-sdk/client-s3) + auth deps.
- No source conflicts; espace-hote "Gérer mes carbets" link already in main.
- Verified: tsc --noEmit OK, next build OK (all carbet + auth routes compile).

Co-Authored-By: Paperclip <noreply@paperclip.ing>
tarzzan merged commit 3567eb975b into main 2026-05-29 22:14:59 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: tarzzan/karbe#7
No description provided.