Skip to content

fix(web): hide map links when the map feature is disabled - #1137

Open
Deeds67 wants to merge 1 commit into
mainfrom
fix/1046-map-link-hidden-when-map-disabled
Open

Deeds67 wants to merge 1 commit into
mainfrom
fix/1046-map-link-hidden-when-map-disabled

Conversation

@Deeds67

@Deeds67 Deeds67 commented Sep 24, 2026

Copy link
Copy Markdown
Collaborator

Fixes #1046.

With the map feature turned off, /map redirects to /photos. Two links didn't check the flag, so clicking them sent the user out of where they were:

  • the view in map pin on the asset viewer's location row (DetailPanelLocation.svelte), which is what the issue reports
  • the Map tab on a Space page (space-tabs.svelte), which has the same problem

Both now check featureFlagsManager.value.map, the same flag the sidebar, the command palette and the embedded map in the detail panel already use.

Tests

  • detail-panel-location.spec.ts: with map off, the pin is gone while the location filters and the edit pencil stay. With map on, the pin renders.
  • space-tabs.spec.ts: with map off, the Map tab is gone.
  • space-layout.spec.ts: adds a feature-flags stub, since it renders SpaceTabs (the app initialises the flags in the root layout).

I watched both new flag-off tests fail before the fix and pass after it. The full web unit suite passes (391 files, 6399 tests), and svelte-check, eslint and prettier are clean.

The asset viewer's location row offered a "view in map" pin, and a
Space's tab bar a Map tab, even with the map feature turned off. /map
redirects to /photos in that case, so both links bounced the user out of
where they were. Gate them on featureFlagsManager.value.map, the same
flag the sidebar, command palette and embedded detail-panel map already
check.
@Deeds67 Deeds67 added the changelog:fix Bug fix for changelog label Sep 24, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog:fix Bug fix for changelog 🖥️web

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Icon link for location on map is shown even when map is turned off

1 participant