fix(panels): address Greptile P2 review on #3364 (icons + category map) (#3365)

Two P2 findings on the now-merged #3364:

1. Icon encoding inconsistency. The two new pipeline/storage entries
   mixed '\u{1F6E2}' + raw VS16 (U+FE0F) while every other panel in
   the file uses '\u{1F6E2}️'. Same runtime glyph, but mixed
   encoding is lint-noisy. Normalize to the escaped form.

2. PANEL_CATEGORY_MAP gap. pipeline-status, storage-facility-map and
   fuel-shortages were registered in FULL_PANELS + CMD+K but absent
   from PANEL_CATEGORY_MAP, so users browsing the settings category
   picker didn't see them. Add to marketsFinance alongside
   energy-complex. While here, close the same pre-existing gap for
   hormuz-tracker and energy-crisis — reviewer explicitly called
   these out as worth addressing together.

The third P2 (spr keyword collision with oil-inventories) was fixed
in commit 83de09fe1 before the review finalised.
This commit is contained in:
Elie Habib
2026-04-24 09:42:40 +04:00
committed by GitHub
parent d521924253
commit 959086fd45
2 changed files with 3 additions and 3 deletions

View File

@@ -104,8 +104,8 @@ export const COMMANDS: Command[] = [
{ id: 'panel:energy-complex', keywords: ['energy complex', 'oil markets', 'gas markets', 'energy prices'], label: 'Panel: Energy Complex', icon: '\u{1F6E2}\uFE0F', category: 'panels' },
{ id: 'panel:oil-inventories', keywords: ['oil inventories', 'crude stocks', 'strategic petroleum', 'eia inventories', 'iea stocks', 'days of cover', 'oil reserves', 'gas storage'], label: 'Panel: Oil Inventories', icon: '\u{1F6E2}\uFE0F', category: 'panels' },
{ id: 'panel:energy-crisis', keywords: ['energy crisis', 'iea policy', 'crisis response', 'hormuz policy', 'fuel rationing', 'conservation measures'], label: 'Panel: Energy Crisis Policies', icon: '\u{26A1}', category: 'panels' },
{ id: 'panel:pipeline-status', keywords: ['pipelines', 'pipeline status', 'oil pipelines', 'gas pipelines', 'nord stream', 'druzhba', 'sabotage', 'pipeline registry'], label: 'Panel: Oil & Gas Pipeline Status', icon: '\u{1F6E2}', category: 'panels' },
{ id: 'panel:storage-facility-map', keywords: ['storage', 'storage facilities', 'strategic storage', 'spr', 'lng', 'lng terminals', 'ugs', 'tank farms', 'storage atlas'], label: 'Panel: Strategic Storage Atlas', icon: '\u{1F6E2}', category: 'panels' },
{ id: 'panel:pipeline-status', keywords: ['pipelines', 'pipeline status', 'oil pipelines', 'gas pipelines', 'nord stream', 'druzhba', 'sabotage', 'pipeline registry'], label: 'Panel: Oil & Gas Pipeline Status', icon: '\u{1F6E2}\uFE0F', category: 'panels' },
{ id: 'panel:storage-facility-map', keywords: ['storage', 'storage facilities', 'strategic storage', 'spr', 'lng', 'lng terminals', 'ugs', 'tank farms', 'storage atlas'], label: 'Panel: Strategic Storage Atlas', icon: '\u{1F6E2}\uFE0F', category: 'panels' },
{ id: 'panel:fuel-shortages', keywords: ['fuel shortages', 'shortage', 'petrol shortage', 'diesel shortage', 'jet fuel shortage', 'rationing', 'stations closed'], label: 'Panel: Global Fuel Shortage Registry', icon: '⛽', category: 'panels' },
{ id: 'panel:gov', keywords: ['government', 'gov'], label: 'Panel: Government', icon: '\u{1F3DB}\uFE0F', category: 'panels' },
{ id: 'panel:policy', keywords: ['policy', 'ai policy', 'regulation', 'tech policy'], label: 'Panel: AI Policy & Regulation', icon: '\u{1F4DC}', category: 'panels' },

View File

@@ -1222,7 +1222,7 @@ export const PANEL_CATEGORY_MAP: Record<string, { labelKey: string; panelKeys: s
},
marketsFinance: {
labelKey: 'header.panelCatMarketsFinance',
panelKeys: ['commodities', 'energy-complex', 'markets', 'economic', 'trade-policy', 'sanctions-pressure', 'supply-chain', 'finance', 'polymarket', 'macro-signals', 'gulf-economies', 'etf-flows', 'stablecoins', 'crypto', 'heatmap'],
panelKeys: ['commodities', 'energy-complex', 'pipeline-status', 'storage-facility-map', 'fuel-shortages', 'hormuz-tracker', 'energy-crisis', 'markets', 'economic', 'trade-policy', 'sanctions-pressure', 'supply-chain', 'finance', 'polymarket', 'macro-signals', 'gulf-economies', 'etf-flows', 'stablecoins', 'crypto', 'heatmap'],
},
topical: {
labelKey: 'header.panelCatTopical',