Add comment types for better task categorization and debugging

Update `ReconciliationCommentsProps` interface and `reconciliationComments` schema to include a 'type' field for comments, supporting 'info', 'warning', 'error', and 'success' values.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 1e4433b5-47ab-464c-b663-fea2e53367dd
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/1e4433b5-47ab-464c-b663-fea2e53367dd/ASZpR5Z
This commit is contained in:
michaelschal committed 2025-09-19 17:02:48 +00:00
1 parent a41388439f
commit 5f1229c6e1
4 files changed
+4 -4

No files matched your search

+3
View File
@@ -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({