fix(panels): wire DiseaseOutbreaksPanel and SocialVelocityPanel into layout (#2389)

Both panels were added as components in #2383 but never registered:
- panels.ts: missing 'disease-outbreaks' and 'social-velocity' entries in
  FULL_PANELS so they never appeared in the panel grid
- panel-layout.ts: missing createPanel() calls and imports so the components
  were never instantiated (data-loader's this.ctx.panels lookups returned undefined)
This commit is contained in:
Elie Habib
2026-03-28 01:08:26 +04:00
committed by GitHub
parent af3d2ce45f
commit e6f0ee4355
2 changed files with 7 additions and 0 deletions

View File

@@ -65,6 +65,8 @@ import {
EarningsCalendarPanel,
EconomicCalendarPanel,
CotPositioningPanel,
DiseaseOutbreaksPanel,
SocialVelocityPanel,
} from '@/components';
import { SatelliteFiresPanel } from '@/components/SatelliteFiresPanel';
import { focusInvestmentOnMap } from '@/services/investments-focus';
@@ -802,6 +804,9 @@ export class PanelLayoutManager implements AppModule {
this.ctx.panels['ucdp-events'] = ucdpEventsPanel;
}
this.createPanel('disease-outbreaks', () => new DiseaseOutbreaksPanel());
this.createPanel('social-velocity', () => new SocialVelocityPanel());
this.lazyPanel('displacement', () =>
import('@/components/DisplacementPanel').then(m => {
const p = new m.DisplacementPanel();

View File

@@ -74,6 +74,8 @@ const FULL_PANELS: Record<string, PanelConfig> = {
'etf-flows': { name: 'BTC ETF Tracker', enabled: true, priority: 2 },
stablecoins: { name: 'Stablecoins', enabled: true, priority: 2 },
'ucdp-events': { name: 'UCDP Conflict Events', enabled: true, priority: 2 },
'disease-outbreaks': { name: 'Disease Outbreaks', enabled: true, priority: 2 },
'social-velocity': { name: 'Social Velocity', enabled: true, priority: 2 },
giving: { name: 'Global Giving', enabled: false, priority: 2 },
displacement: { name: 'UNHCR Displacement', enabled: true, priority: 2 },
climate: { name: 'Climate Anomalies', enabled: true, priority: 2 },