polish: admin panel section toggles and reorder

- Move Quota & Rate Limits to the end of the settings page
- Add enable switches to Observability and Quota sections; default off
  with fields grayed out, auto-on when any field is already configured
This commit is contained in:
dayuan.jiang
2026-06-10 20:54:25 +09:00
parent d748e94262
commit 9d958ae9c9
2 changed files with 62 additions and 14 deletions

View File

@@ -34,6 +34,9 @@ export interface SettingGroup {
id: string
title: string
description: string
// Optional sections gated by an on/off switch in the panel; fields are
// grayed out until enabled. Starts on when any field is already set.
toggleable?: boolean
}
export const SETTING_GROUPS: SettingGroup[] = [
@@ -58,12 +61,6 @@ export const SETTING_GROUPS: SettingGroup[] = [
title: "Access Control",
description: "Restrict who can use this deployment.",
},
{
id: "quota",
title: "Quota & Rate Limits",
description:
"Per-IP usage limits. Enforcement requires a DynamoDB table.",
},
{
id: "features",
title: "Features",
@@ -73,6 +70,14 @@ export const SETTING_GROUPS: SettingGroup[] = [
id: "observability",
title: "Observability",
description: "Langfuse tracing for LLM calls.",
toggleable: true,
},
{
id: "quota",
title: "Quota & Rate Limits",
description:
"Per-IP usage limits. Enforcement requires a DynamoDB table.",
toggleable: true,
},
]