mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-11 17:27:31 +02:00
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:
1 parent
a41388439f
commit
5f1229c6e1
4 files changed
+4
-4
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in new issue
Block a user