feat(admin): wire instance health panel + settings instance (A9/A10)

AdminInstance shows backing-service health (db/redis/ml), read-only source
status (env-configured), and a library reindex with graceful handling when no
indexable source exists. InstanceSettings shows the active instance and offers
switch/sign-out to /connect. Adds getServices/getSources/reindex endpoints.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Цвылев Александр Вадимович
2026-07-28 20:43:27 +03:00
parent 3eba3701d0
commit 87fac7a5a1
6 changed files with 327 additions and 8 deletions
+10
View File
@@ -140,6 +140,16 @@ export interface UploadResponse {
already_exists: boolean;
}
/** One backing-dependency probe result (GET /admin/services). `skipped` = the
* dependency is optional and not configured (e.g. ML with no ML_SERVICE_URL). */
export type ServiceStatus = 'ok' | 'down' | 'skipped';
export interface ServicesStatus {
database: ServiceStatus;
redis: ServiceStatus;
ml: ServiceStatus;
}
export interface StorageFormatBreakdown {
fileFormat: string;
trackCount: number;