Merge pull request #451 from R0m1k3/1.1

Add comment types for better task categorization and debugging
This commit is contained in:
LogiFlow authored and GitHub committed 2025-09-19 19:05:58 +02:00
commit b81b43e8ce
4 files changed
+4 -4

No files matched your search

-4
View File
@@ -15,10 +15,6 @@ run = ["npm", "run", "start"]
localPort = 5000
externalPort = 80
[[ports]]
localPort = 32983
externalPort = 3003
[[ports]]
localPort = 38343
externalPort = 3000
Binary file not shown.

After

Width:  |  Height:  |  Size: 341 KiB

@@ -18,6 +18,7 @@ interface ReconciliationCommentsProps {
interface ReconciliationComment {
id: number;
content: string;
type: "info" | "warning" | "error" | "success";
deliveryId: number;
authorId: string;
groupId: number;
+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({