Skip to content

✨ Add documents operateur#1198

Open
Alezco wants to merge 2 commits intodevfrom
operateur-documents
Open

✨ Add documents operateur#1198
Alezco wants to merge 2 commits intodevfrom
operateur-documents

Conversation

@Alezco
Copy link
Copy Markdown
Collaborator

@Alezco Alezco commented Apr 24, 2026

No description provided.

@Alezco Alezco force-pushed the operateur-documents branch from 0c5778b to 6458882 Compare April 27, 2026 08:18
@Alezco Alezco force-pushed the operateur-documents branch from 6458882 to 19b4d5d Compare April 27, 2026 15:47
@Alezco Alezco marked this pull request as ready for review April 27, 2026 15:47
@Alezco Alezco changed the title Operateur documents ✨ Add documents operateur Apr 27, 2026
{filteredCategories.map(([category, rules], index) => {
return (
<div key={category}>
<FieldSetDocumentOperateur
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Est-ce qu'il ne faudrait pas utiliser les mêmes composants que pour structure ? Ici FieldSetActeAdministratif

vulnerabilites,
documents: operateur.documents.map((document) => ({
...document,
date: document.date ? new Date(document.date).toISOString() : undefined,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

À quoi sert le new Date(document.date).toISOString() ? Soit c'est déjà un Date, soit c'est déjà un iso non ?

date: document.date ? new Date(document.date).toISOString() : undefined,
fileUploads: document.fileUploads?.map((file) => ({
...file,
acteAdministratifId: file.acteAdministratifId ?? undefined,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Le passage null => undefined devrait plutôt avoir lieu dans getDocumentsOperateurDefaultValues pour être cohérent avec les autres entités

<ModificationTitle
step="Documents"
handleCancel={() => setShouldOpenModal(true)}
/>{" "}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Espace en trop

};

type OperateurWithStructures = Prisma.OperateurGetPayload<{
type OperateurWithStructuresAndDocuments = Prisma.OperateurGetPayload<{
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tu pourrais le renommer OperateurDbDetail et le bouger dans operateur.db.type.ts pour être iso avec structure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants