fix(frontend): include openflare-ops tab in whitelist and make it default

- Include 'openflare-ops' in the list of validTabs so that specifying ?tab=openflare-ops correctly loads the OpenFlare settings tab.
- Set fallback tab default to 'openflare-ops' when no tab parameter is specified.
- Document changes in changelog.
This commit is contained in:
ryan
2026-06-30 20:56:34 +08:00
parent cf72420815
commit 6467b32d8e
2 changed files with 3 additions and 2 deletions
@@ -68,8 +68,8 @@ export function AdminSettingsPageClient() {
const activeTab = useMemo(() => {
const rawTab = searchParams.get("tab")
const validTabs = ["security", "operation", "system", "other", "status", "info"]
return rawTab && validTabs.includes(rawTab) ? rawTab : "security"
const validTabs = ["openflare-ops", "security", "operation", "system", "other", "status", "info"]
return rawTab && validTabs.includes(rawTab) ? rawTab : "openflare-ops"
}, [searchParams])
const handleTabChange = (value: string) => {