feat(metadata): add provider connection testing and token validation

Add UI and backend support for testing metadata provider credentials
before saving. Include parsing and validation for Bearer tokens,
display test results in the settings panel, and execute a test
connection specifically against the Hardcover provider.

Closes #127
This commit is contained in:
neon
2026-05-28 17:12:42 +00:00
parent 75ee8d495c
commit 54814201b8
14 changed files with 955 additions and 102 deletions
@@ -127,3 +127,12 @@ export interface ProviderStatus {
enabled: boolean;
hint?: string;
}
export type ProviderConnectionTestStatus = "success" | "warning" | "fail";
export interface ProviderConnectionTestResult {
key: MetadataProviderKey;
ok: boolean;
status: ProviderConnectionTestStatus;
message: string;
}