feat(gui): Display developer responses to feedback (#302)

This commit is contained in:
Mohan 2025-04-28 13:12:43 +02:00 committed by GitHub
parent f1e5cdfbfe
commit 53a994e6dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 1216 additions and 45 deletions

View file

@ -26,3 +26,49 @@ export interface Alert {
body: string;
severity: "info" | "warning" | "error";
}
// Define the correct 9-element tuple type for PrimitiveDateTime
export type PrimitiveDateTimeString = [
number, // Year
number, // Day of Year
number, // Hour
number, // Minute
number, // Second
number, // Nanosecond
number, // Offset Hour
number, // Offset Minute
number // Offset Second
];
export interface Feedback {
id: string;
created_at: PrimitiveDateTimeString;
}
export interface Attachment {
id: number;
message_id: number;
key: string;
content: string;
created_at: PrimitiveDateTimeString;
}
export interface Message {
id: number;
feedback_id: string;
is_from_staff: boolean;
content: string;
created_at: PrimitiveDateTimeString;
attachments?: Attachment[];
}
export interface MessageWithAttachments {
message: Message;
attachments: Attachment[];
}
// Define type for Attachment data in request body
export interface AttachmentInput {
key: string;
content: string;
}