Add URL params to control side panel state#83
Merged
CalNightingale merged 1 commit intoproductionfrom Mar 11, 2026
Merged
Conversation
Support `leftPanelClosed` and `rightPanelClosed` URL query parameters to override the mode's default panel open/closed state. This enables embedding consumers (e.g. the review service) to load the viewer with panels closed without requiring mode-level config changes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Adithyan-Dinesh-Trenser
approved these changes
Mar 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
We're building a review service prototype that embeds the Gradient viewer in an iframe. In this context, the viewer always displays a single study/series selected from the review UI — so the left study list panel is redundant, and the right Google Sheets panel is not needed (the review service itself provides the review workflow). Having both panels open by default wastes screen real estate and requires the reviewer to manually close them every time a new series loads.
Rather than changing mode-level defaults (which would affect all viewer users), this adds URL parameter support so embedding consumers can control panel state per-load.
Summary
leftPanelClosedandrightPanelClosedURL query parameters that override the mode's default panel open/closed stateUsage
Test plan
?leftPanelClosed=true— left panel (study list) should start closed?rightPanelClosed=true— right panel should start closedtrue— both panels closedfalse— panels open (overrides mode defaults if mode closes them)🤖 Generated with Claude Code