Skip to content

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

Merged
koala73 merged 1 commit into
mainfrom
fix/atlas-panels-review-followups
Apr 24, 2026
Merged

fix(panels): Greptile P2 followups on #3364 (icons + category map)#3365
koala73 merged 1 commit into
mainfrom
fix/atlas-panels-review-followups

Conversation

@koala73

@koala73 koala73 commented Apr 24, 2026

Copy link
Copy Markdown
Owner

Summary

Follow-up to the now-merged #3364 addressing 2 of Greptile's 3 P2 findings (the third was already fixed in commit 83de09f before the review finalised).

Fixes

1. Icon encoding inconsistency

The 3 new panel entries in src/config/commands.ts used `'\u{1F6E2}'` + raw U+FE0F variation selector while every other panel icon in the file uses the fully-escaped `'\u{1F6E2}\uFE0F'`. Same glyph at runtime, but mixed encoding is lint-noisy. Normalised.

2. PANEL_CATEGORY_MAP gap

`pipeline-status`, `storage-facility-map`, `fuel-shortages` were in `FULL_PANELS` + CMD+K but absent from `PANEL_CATEGORY_MAP`, so users browsing the settings category picker couldn't find them. Added to `marketsFinance` alongside `energy-complex`.

Also closed the same pre-existing gap for `hormuz-tracker` and `energy-crisis` — reviewer explicitly flagged these as "worth addressing together."

Test plan

  • `npm run typecheck` — clean
  • `npm run test:data` — 6692/6692 pass
  • Manual: settings → category picker → "Markets & Finance" shows the 5 energy panels (pipeline-status, storage-facility-map, fuel-shortages, hormuz-tracker, energy-crisis)

Context

See review thread on #3364. Part of the `docs/internal/energy-atlas-registry-expansion.md` follow-up.

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 83de09f before the review finalised.
@vercel

vercel Bot commented Apr 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
worldmonitor Ignored Ignored Apr 24, 2026 5:36am

Request Review

@greptile-apps

greptile-apps Bot commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR is a focused follow-up to #3364 with two targeted fixes: normalising icon encoding for pipeline-status and storage-facility-map in commands.ts (replacing raw U+FE0F with \uFE0F escape to match the rest of the file), and adding five missing energy panels (pipeline-status, storage-facility-map, fuel-shortages, hormuz-tracker, energy-crisis) to the marketsFinance bucket in PANEL_CATEGORY_MAP. All added panel keys are confirmed valid in panels.ts; no logic issues found.

Confidence Score: 5/5

Safe to merge — both changes are correct, minimal, and well-scoped.

All five panel keys added to PANEL_CATEGORY_MAP are confirmed valid in panels.ts. The icon encoding normalisation is functionally equivalent but lint-clean. No P0/P1 findings.

No files require special attention.

Important Files Changed

Filename Overview
src/config/commands.ts Icon encoding for pipeline-status and storage-facility-map normalised from raw U+FE0F to \uFE0F escape, matching every other oil-pump icon entry in the file.
src/config/panels.ts Five energy panels added to marketsFinance in PANEL_CATEGORY_MAP; all keys are valid registered panels confirmed in the same file.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[User opens Settings category picker] --> B{Browse marketsFinance category}
    B --> C[Previously visible panels]
    C --> C1[commodities]
    C --> C2[energy-complex]
    C --> C3[markets / economic / ...]
    B --> D[Newly added panels - this PR]
    D --> D1[pipeline-status]
    D --> D2[storage-facility-map]
    D --> D3[fuel-shortages]
    D --> D4[hormuz-tracker]
    D --> D5[energy-crisis]
Loading

Reviews (1): Last reviewed commit: "fix(panels): address Greptile P2 review ..." | Re-trigger Greptile

@koala73
koala73 merged commit 959086f into main Apr 24, 2026
11 checks passed
@koala73
koala73 deleted the fix/atlas-panels-review-followups branch April 24, 2026 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant