diff --git a/.replit b/.replit index a6f192d..ba2f351 100644 --- a/.replit +++ b/.replit @@ -15,10 +15,6 @@ run = ["npm", "run", "start"] localPort = 5000 externalPort = 80 -[[ports]] -localPort = 32983 -externalPort = 3003 - [[ports]] localPort = 38343 externalPort = 3000 diff --git a/attached_assets/image_1758301225666.png b/attached_assets/image_1758301225666.png new file mode 100644 index 0000000..a2f183c Binary files /dev/null and b/attached_assets/image_1758301225666.png differ diff --git a/client/src/components/ReconciliationComments.tsx b/client/src/components/ReconciliationComments.tsx index cff2ca2..2423894 100644 --- a/client/src/components/ReconciliationComments.tsx +++ b/client/src/components/ReconciliationComments.tsx @@ -18,6 +18,7 @@ interface ReconciliationCommentsProps { interface ReconciliationComment { id: number; content: string; + type: "info" | "warning" | "error" | "success"; deliveryId: number; authorId: string; groupId: number; diff --git a/shared/schema.ts b/shared/schema.ts index e190202..9ee6ae8 100644 --- a/shared/schema.ts +++ b/shared/schema.ts @@ -182,6 +182,7 @@ export const reconciliationComments = pgTable("reconciliation_comments", { deliveryId: integer("delivery_id").notNull(), // Référence vers la livraison concernée groupId: integer("group_id").notNull(), // Magasin/groupe pour filtrage content: text("content").notNull(), // Contenu du commentaire + type: varchar("type").notNull().default("info"), // Type du commentaire: info, warning, error, success authorId: varchar("author_id").notNull(), // Utilisateur auteur du commentaire createdAt: timestamp("created_at").defaultNow(), updatedAt: timestamp("updated_at").defaultNow(), @@ -631,6 +632,8 @@ export const insertReconciliationCommentSchema = createInsertSchema(reconciliati id: true, createdAt: true, updatedAt: true, +}).extend({ + type: z.enum(["info", "warning", "error", "success"]).default("info"), }); export const insertNocodbConfigSchema = createInsertSchema(nocodbConfig).omit({