fix(ui): remove duplicate AI Regulation Dashboard panel (#2720)

* fix(ui): remove orphan regulation panel key (duplicate of ai-regulation)

The `regulation` key in tech.ts had no lazyPanel registration,
causing a duplicate "AI Regulation Dashboard" toggle in the panel
selector. The real panel is `ai-regulation` (wired to RegulationPanel).
Removed the orphan and updated category references.

* fix(ui): revert dealsInstitutional to regulation (Finance variant)

dealsInstitutional is a Finance variant category where `regulation`
maps to Financial Regulation, not AI Regulation Dashboard. Changing
it to `ai-regulation` orphaned Financial Regulation from the Finance
variant's Deals category selector entirely.

Only the tech variant's securityPolicy needed the regulation->ai-regulation
update (Greptile review on PR #2720).
This commit is contained in:
Elie Habib
2026-04-05 13:14:15 +04:00
committed by GitHub
parent a277b0f363
commit 4ac51c6f32
2 changed files with 1 additions and 2 deletions

View File

@@ -1051,7 +1051,7 @@ export const PANEL_CATEGORY_MAP: Record<string, { labelKey: string; panelKeys: s
},
securityPolicy: {
labelKey: 'header.panelCatSecurityPolicy',
panelKeys: ['security', 'policy', 'regulation'],
panelKeys: ['security', 'policy', 'ai-regulation'],
},
techMarkets: {
labelKey: 'header.panelCatMarkets',

View File

@@ -197,7 +197,6 @@ export const DEFAULT_PANELS: Record<string, PanelConfig> = {
accelerators: { name: 'Accelerators & Demo Days', enabled: true, priority: 1 },
security: { name: 'Cybersecurity', enabled: true, priority: 1 },
policy: { name: 'AI Policy & Regulation', enabled: true, priority: 1 },
regulation: { name: 'AI Regulation Dashboard', enabled: true, priority: 1 },
layoffs: { name: 'Layoffs Tracker', enabled: true, priority: 1 },
markets: { name: 'Tech Stocks', enabled: true, priority: 2 },
finance: { name: 'Financial News', enabled: true, priority: 2 },