feat: admin provider UI (types, hooks, guard, settings panel, conditional admin nav)

This commit is contained in:
2026-03-16 03:38:37 +01:00
parent 87f94fcc51
commit 89036ba62d
8 changed files with 367 additions and 26 deletions

View File

@@ -131,6 +131,18 @@ export interface ConfigResponse {
providers: ProviderInfo[];
/** Primary provider capabilities — kept for backward compat. */
provider_capabilities: ProviderCapabilities;
available_provider_types: string[];
}
export interface ProviderConfig {
provider_type: string;
config_json: Record<string, string>;
enabled: boolean;
}
export interface ProviderTestResult {
ok: boolean;
message: string;
}
// Auth
@@ -145,6 +157,7 @@ export interface UserResponse {
id: string;
email: string;
created_at: string;
is_admin: boolean;
}
// Channels