mirror of
https://github.com/koala73/worldmonitor.git
synced 2026-04-25 17:14:57 +02:00
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:
@@ -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',
|
||||
|
||||
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user