Skip to content

[front] feat: back button in the side panel - #32264

Open
adrsimon wants to merge 1 commit into
adrien/feat/file-preview-side-panelfrom
adrien/feat/side-panel-back-button
Open

[front] feat: back button in the side panel#32264
adrsimon wants to merge 1 commit into
adrien/feat/file-preview-side-panelfrom
adrien/feat/side-panel-back-button

Conversation

@adrsimon

Copy link
Copy Markdown
Contributor

Description

Going from the files list into a preview, or from one preview to another, left no way back. The panel now keeps an in-memory stack of what it showed and renders a back arrow in the shared header. Browser history can't serve here: panel state lives in hash params written with replaceState, so no entries are pushed. The stack is capped at 50 entries and cleared when the panel closes.

Tests

Provider tests cover the stack, walking back through several panels, no entry on reselect, and clearing on close.

Risk

Low. The arrow only shows when there is something to go back to.

Deploy Plan

Deploy front.

Navigating from one panel to another (files list to a preview, a preview to
another file) had no way back. The panel now keeps an in-memory stack of the
panels it showed and renders a back arrow in the shared header. Browser history
is not usable here: panel state lives in hash params written with replaceState.
@adrsimon
adrsimon added this pull request to stack #32266 September 10, 2026 15:11
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