251211:1622 Frontend: refactor Dashboard (not finish)
Some checks failed
Spec Validation / validate-markdown (push) Has been cancelled
Spec Validation / validate-diagrams (push) Has been cancelled
Spec Validation / check-todos (push) Has been cancelled

This commit is contained in:
admin
2025-12-11 16:22:50 +07:00
parent 3fa28bd14f
commit 2473c4c474
32 changed files with 1115 additions and 260 deletions

View File

@@ -8,17 +8,28 @@ export interface RFAItem {
}
export interface RFA {
rfaId: number;
rfaNumber: string;
subject: string;
description?: string;
contractId: number;
disciplineId: number;
status: "DRAFT" | "PENDING" | "IN_REVIEW" | "APPROVED" | "REJECTED" | "CLOSED";
createdAt: string;
updatedAt: string;
items: RFAItem[];
// Mock fields for display
id: number;
rfaTypeId: number;
createdBy: number;
disciplineId?: number;
revisions: {
items?: {
shopDrawingRevision?: {
attachments?: { id: number; url: string; name: string }[]
}
}[];
}[];
discipline?: {
id: number;
name: string;
code: string;
};
// Deprecated/Mapped fields (keep optional if frontend uses them elsewhere)
rfaId?: number;
rfaNumber?: string;
subject?: string;
status?: string;
createdAt?: string;
contractName?: string;
disciplineName?: string;
}