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