You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(energy): wire energy variant atlas panels and renewable coverage (koala73#3445)
* fix(energy): wire energy variant atlas panels and renewable coverage
* fix(settings): scope happy-only categories so energy variant doesn't render "Happy Planet" pill
Two follow-ups from review of koala73#3445:
- panels.ts: tag `happyNews` and `happyPlanet` with `variants: ['happy']`.
ENERGY_PANELS now enables `renewable`, so without this the
`categoryMatchesVariant` filter passed `happyPlanet` through (its
`panelKeys` includes `renewable`) and energy users saw a "Happy Planet"
category pill containing only the Renewable Energy toggle.
- panel-layout.ts: drop the `&& !this.ctx.panels['renewable']` clause on
the shared lazyPanel guard. `lazyPanel` writes `this.ctx.panels[key]`
only after the dynamic-import promise resolves, so the check never
protects against a synchronous double-call — and `lazyPanel` already
calls `shouldCreatePanel(key)` internally.
---------
Co-authored-by: Elie Habib <elie.habib@gmail.com>
0 commit comments