mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-23 06:58:19 +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
|
localPort = 5000
|
||||||
externalPort = 80
|
externalPort = 80
|
||||||
|
|
||||||
[[ports]]
|
|
||||||
localPort = 32983
|
|
||||||
externalPort = 3003
|
|
||||||
|
|
||||||
[[ports]]
|
[[ports]]
|
||||||
localPort = 38343
|
localPort = 38343
|
||||||
externalPort = 3000
|
externalPort = 3000
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 341 KiB |
@@ -18,6 +18,7 @@ interface ReconciliationCommentsProps {
|
|||||||
interface ReconciliationComment {
|
interface ReconciliationComment {
|
||||||
id: number;
|
id: number;
|
||||||
content: string;
|
content: string;
|
||||||
|
type: "info" | "warning" | "error" | "success";
|
||||||
deliveryId: number;
|
deliveryId: number;
|
||||||
authorId: string;
|
authorId: string;
|
||||||
groupId: number;
|
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
|
deliveryId: integer("delivery_id").notNull(), // Référence vers la livraison concernée
|
||||||
groupId: integer("group_id").notNull(), // Magasin/groupe pour filtrage
|
groupId: integer("group_id").notNull(), // Magasin/groupe pour filtrage
|
||||||
content: text("content").notNull(), // Contenu du commentaire
|
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
|
authorId: varchar("author_id").notNull(), // Utilisateur auteur du commentaire
|
||||||
createdAt: timestamp("created_at").defaultNow(),
|
createdAt: timestamp("created_at").defaultNow(),
|
||||||
updatedAt: timestamp("updated_at").defaultNow(),
|
updatedAt: timestamp("updated_at").defaultNow(),
|
||||||
@@ -631,6 +632,8 @@ export const insertReconciliationCommentSchema = createInsertSchema(reconciliati
|
|||||||
id: true,
|
id: true,
|
||||||
createdAt: true,
|
createdAt: true,
|
||||||
updatedAt: true,
|
updatedAt: true,
|
||||||
|
}).extend({
|
||||||
|
type: z.enum(["info", "warning", "error", "success"]).default("info"),
|
||||||
});
|
});
|
||||||
|
|
||||||
export const insertNocodbConfigSchema = createInsertSchema(nocodbConfig).omit({
|
export const insertNocodbConfigSchema = createInsertSchema(nocodbConfig).omit({
|
||||||
|
|||||||
Reference in new issue
Block a user