Theme Risk Index
"/home/yossef/notes/git/projects/maplibra/risks/Theme Risk Index.md"
path: maplibra/risks/Theme Risk Index.md
- **fileName**: Theme Risk Index
- **Created on**: 2026-06-16 00:48:42
Theme Risk Index
Migrated from: obs_vault
Parent: ../flows/Theme Change.md
This folder is the deep theme-risk audit. Use it when a theme, basemap, indoor-layer color, or style-switching bug appears.
Risk Notes
- ./Theme Controller Listener Cleanup.md: high risk lifecycle leak and duplicate event handling.
- ./Broad Map Layer ID Matching.md: high risk because basemap theme code can hide app-owned layers.
- ./Host Mode Style Resolution.md: high risk for offline Android and app-assets deployments.
- ./Offline Basemap Theme Drift.md: medium-high risk because static offline JSON can drift from dynamic generated style.
- ./LayerManager Theme Reapply State.md: medium-high risk because indoor layers do not all repaint the same way.
- ./Theme Tests and Fix Plan.md: consolidated test gaps and improvement plan.
Main Source Files
theme.jssrc/ui/ThemeController.jssrc/layer-manager.jssrc/layers/base/style-layer.jssrc/layers/visibility-manager.jssrc/app/basemap-style.jssrc/app/offline-config.jssrc/app/offline-basemap.jssrc/app/map-setup.js
Main Tests
tests/theme-host-mode.test.jstests/basemap-style.test.jstests/navigation-icon-theme.test.jstests/style-layer.test.jstests/visibility-manager.test.js
Highest Value Fix Order
- Fix ./Theme Controller Listener Cleanup.md because stale controllers can keep old maps alive.
- Fix ./Broad Map Layer ID Matching.md because it can hide
building-shelland app layers. - Fix ./Host Mode Style Resolution.md because offline app-assets behavior can become network-dependent.
- Fix ./LayerManager Theme Reapply State.md because doors and fast wall lines can keep old colors.
- Use ./Theme Tests and Fix Plan.md to lock the behavior with targeted tests.