diff --git a/apps/web/src/app/[locale]/governance/page.tsx b/apps/web/src/app/[locale]/governance/page.tsx
index a5dbe156..48958967 100644
--- a/apps/web/src/app/[locale]/governance/page.tsx
+++ b/apps/web/src/app/[locale]/governance/page.tsx
@@ -25,7 +25,13 @@ import { QueueTab } from './tabs/queue-tab'
import { AgentMarketTab } from './tabs/agent-market-tab'
import { AutomationInventoryTab } from './tabs/automation-inventory-tab'
-export default function GovernancePage({ params }: { params: { locale: string } }) {
+export default function GovernancePage({
+ params,
+ searchParams,
+}: {
+ params: { locale: string }
+ searchParams?: { tab?: string | string[] }
+}) {
const t = useTranslations('governance')
const tabs: TabConfig[] = [
@@ -35,6 +41,8 @@ export default function GovernancePage({ params }: { params: { locale: string }
{ id: 'agent-market', label: t('tabs.agentMarket'), content: },
{ id: 'automation-inventory', label: t('tabs.automationInventory'), content: },
]
+ const requestedTab = Array.isArray(searchParams?.tab) ? searchParams?.tab[0] : searchParams?.tab
+ const defaultTab = tabs.some(tab => tab.id === requestedTab) ? requestedTab : 'slo'
return (
@@ -50,7 +58,7 @@ export default function GovernancePage({ params }: { params: { locale: string }
-
+
)
}