Skip to content

fix: restore unauthenticated space switching - #39

Merged
alexk-dev merged 1 commit into
mainfrom
fix/unauthenticated-space-switcher
Apr 19, 2026
Merged

fix: restore unauthenticated space switching#39
alexk-dev merged 1 commit into
mainfrom
fix/unauthenticated-space-switcher

Conversation

@alexk-dev

@alexk-dev alexk-dev commented Apr 19, 2026

Copy link
Copy Markdown
Owner

What changed

  • Moves the image version marker out of the header and into the bottom of the sidebar.
  • Adds a standalone adaptive space switcher for sessions without an account menu.
  • Keeps the authenticated space switcher inside the existing user menu unchanged.
  • Reloads the visible viewer page when the active space changes, including the same / route.
  • Covers the standalone switcher and sidebar version placement with tests.

Why

When authentication is disabled or there is no current user, the only existing space switcher lived inside the account menu, so there was no reachable UI for changing spaces. The version marker also occupied header space that should remain available for navigation actions.

Playwright also caught that switching spaces while already on / refreshed the tree but not the visible root page, because the viewer only reloaded on path changes. The viewer now also watches active space changes.

Impact

Unauthenticated/public shell users can switch between spaces again. Authenticated users keep the same account-menu switching flow as before. The current page content follows the selected space even when the URL stays the same. The header stays more compact on mobile, while the version marker remains visible in the sidebar footer.

@alexk-dev
alexk-dev marked this pull request as ready for review April 19, 2026 16:22
@alexk-dev
alexk-dev force-pushed the fix/unauthenticated-space-switcher branch from dd30b69 to 5419576 Compare April 19, 2026 16:35
@alexk-dev
alexk-dev marked this pull request as draft April 19, 2026 16:36
@alexk-dev
alexk-dev marked this pull request as ready for review April 19, 2026 16:38
@alexk-dev
alexk-dev merged commit cc11cd2 into main Apr 19, 2026
16 checks passed
@alexk-dev
alexk-dev deleted the fix/unauthenticated-space-switcher branch April 19, 2026 16:41
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