refactor: proper implementation of services status, better styling/appearance/logic

This commit is contained in:
2025-09-13 19:34:34 -05:00
parent 99f0d0bc49
commit bfcd868337
3 changed files with 134 additions and 87 deletions
+10 -18
View File
@@ -6,26 +6,18 @@ export interface HealthResponse {
timestamp: string;
}
export type Status = "Disabled" | "Connected" | "Active" | "Healthy" | "Error";
export interface ServiceInfo {
name: string;
status: Status;
}
export interface StatusResponse {
status: string;
status: Status;
version: string;
bot: {
status: string;
uptime: string;
};
cache: {
status: string;
courses: string;
subjects: string;
};
banner_api: {
status: string;
};
git: {
commit: string;
short: string;
};
timestamp: string;
commit: string;
services: Record<string, ServiceInfo>;
}
export interface MetricsResponse {