feat: Implement frontend for business owners' support ticket system

This commit is contained in:
poduck
2025-11-28 04:56:48 -05:00
parent aa3854a13f
commit 512d95ca2d
10 changed files with 884 additions and 5 deletions

View File

@@ -179,13 +179,40 @@ export interface Metric {
// --- Platform Types ---
export type TicketType = 'PLATFORM' | 'CUSTOMER' | 'STAFF_REQUEST';
export type TicketStatus = 'OPEN' | 'IN_PROGRESS' | 'RESOLVED' | 'CLOSED';
export type TicketPriority = 'LOW' | 'MEDIUM' | 'HIGH' | 'URGENT';
export interface TicketComment {
id: string;
ticket: string; // Ticket ID
author: string; // User ID
authorEmail: string;
authorFullName: string;
commentText: string;
createdAt: string; // Date string
isInternal: boolean;
}
export interface Ticket {
id: string;
tenant?: string; // Tenant ID, optional for platform tickets
creator: string; // User ID
creatorEmail: string;
creatorFullName: string;
assignee?: string; // User ID, optional
assigneeEmail?: string;
assigneeFullName?: string;
ticketType: TicketType;
status: TicketStatus;
priority: TicketPriority;
subject: string;
businessName: string;
priority: 'Low' | 'Medium' | 'High' | 'Critical';
status: 'Open' | 'In Progress' | 'Resolved';
createdAt: Date;
description: string;
category?: string;
createdAt: string; // Date string
updatedAt: string; // Date string
resolvedAt?: string; // Date string
comments?: TicketComment[]; // Nested comments
}
export interface PlatformMetric {