polish: admin panel UI improvements

- Provider logos in credential rows (shared ProviderLogo component,
  extracted from model-config-dialog)
- Scroll-spy active state in the sidebar nav
- Green success state in the save bar that clears after a few seconds
- Wider content column (max-w-6xl) for less wasted space on desktop
This commit is contained in:
dayuan.jiang
2026-06-10 20:47:52 +09:00
parent e2e499e5c7
commit d748e94262
4 changed files with 129 additions and 44 deletions

View File

@@ -76,6 +76,30 @@ export const SETTING_GROUPS: SettingGroup[] = [
},
]
// Provider name for each subgroup in the providers group (for logos)
export const SUBGROUP_PROVIDERS: Record<string, string> = {
"AWS Bedrock": "bedrock",
OpenAI: "openai",
Anthropic: "anthropic",
Google: "google",
"Vertex AI": "vertexai",
"Azure OpenAI": "azure",
Ollama: "ollama",
OpenRouter: "openrouter",
DeepSeek: "deepseek",
SiliconFlow: "siliconflow",
SGLang: "sglang",
"Vercel AI Gateway": "gateway",
Doubao: "doubao",
ModelScope: "modelscope",
GLM: "glm",
Qwen: "qwen",
Kimi: "kimi",
Qiniu: "qiniu",
MiniMax: "minimax",
Novita: "novita",
}
const PROVIDER_OPTIONS = [
"bedrock",
"openai",