mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-23 06:58:19 +02:00
Merge pull request #451 from R0m1k3/1.1
Add comment types for better task categorization and debugging
This commit is contained in:
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