Skip to content

feat(preprod): Add solo/diff toggle button to snapshot dev tools#111318

Merged
NicoHinderling merged 3 commits intomasterfrom
snapshots-option-to-view-diffs-as-solo
Mar 23, 2026
Merged

feat(preprod): Add solo/diff toggle button to snapshot dev tools#111318
NicoHinderling merged 3 commits intomasterfrom
snapshots-option-to-view-diffs-as-solo

Conversation

@NicoHinderling
Copy link
Contributor

Add a toggle button in the snapshot dev tools panel that lets developers
switch between solo and diff views on snapshots that have diff data.

The button toggles the ?type=solo URL query parameter — when viewing
a diff snapshot, clicking "View as solo" adds ?type=solo to show the
raw images without comparison overlay. Clicking "View as diff" removes
the parameter to restore the diff view. The button only renders when
the snapshot has a base artifact (i.e., diff data exists).

This is an admin/dev-only feature, scoped to the temporary dev tools
panel rather than the main header UI.

Add a toggle button in the snapshot dev tools panel that switches
between solo and diff views via the ?type=solo URL parameter. The
button only appears when diff data is available (hasBaseArtifact).

Co-Authored-By: Claude Opus 4.6 <noreply@example.com>
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 23, 2026
Co-Authored-By: Claude Opus 4.6 <noreply@example.com>
@NicoHinderling NicoHinderling marked this pull request as ready for review March 23, 2026 17:56
@NicoHinderling NicoHinderling requested a review from a team as a code owner March 23, 2026 17:56
These strings are only shown in the debug dev tools panel, so
translation is unnecessary.

Co-Authored-By: Claude Opus 4.6 <noreply@example.com>
@NicoHinderling NicoHinderling enabled auto-merge (squash) March 23, 2026 17:57
@NicoHinderling NicoHinderling merged commit 989b0d4 into master Mar 23, 2026
70 checks passed
@NicoHinderling NicoHinderling deleted the snapshots-option-to-view-diffs-as-solo branch March 23, 2026 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants