finshing architecture for project now we have all layers to build profitionl project app,components ,hooks ,lib,services,styel ,types

This commit is contained in:
m7amedez5511
2026-06-08 23:05:19 +03:00
parent 70853958f5
commit 53c03e9867
45 changed files with 1408 additions and 78 deletions

41
types/dashboard.ts Normal file
View File

@@ -0,0 +1,41 @@
export interface DashboardStats {
clients: number;
orders: number;
trips: number;
cars: number;
drivers: number;
}
export interface AlertItem {
message: string;
[key: string]: unknown;
}
export interface ActiveTrip {
id: string;
tripNumber: string;
title: string;
progress: number;
}
export interface AccountSecurity {
lastLogin: string | null;
requestMeta: Record<string, unknown> | null;
}
export interface DashboardSummary {
stats: DashboardStats;
alerts: {
expiringCars: AlertItem[];
expiringDrivers: AlertItem[];
upcomingMaint: AlertItem[];
};
activeTrips: ActiveTrip[];
accountSecurity: AccountSecurity;
}
export interface DashboardSummaryResponse {
success: boolean;
message: string;
data: DashboardSummary;
}