Skip to content

ref(snapshots): Share focused snapshot card frames#114498

Merged
mtopo27 merged 8 commits intomasterfrom
mtopo27/ref/snapshot-focused-view
May 1, 2026
Merged

ref(snapshots): Share focused snapshot card frames#114498
mtopo27 merged 8 commits intomasterfrom
mtopo27/ref/snapshot-focused-view

Conversation

@mtopo27
Copy link
Copy Markdown
Contributor

@mtopo27 mtopo27 commented Apr 30, 2026

Make the focus view look like list view.

prod
CleanShot 2026-05-01 at 00 23 55@2x

pr
CleanShot 2026-05-01 at 00 24 06@2x


Share the snapshot card and variant frames between list and focused snapshot views so focused diffs inherit the same grouping and fill-height behavior. This also fixes the focused diff branch label and renders renamed snapshots as a single image with the existing card metadata.

Focused Snapshot Frames

The focused view now composes SnapshotCardFrame and SnapshotVariantFrame instead of maintaining a separate card/group wrapper, keeping the layout behavior aligned with the list view.

Focused View Coverage

Adds React tests for changed and renamed focused snapshot states, including diff controls, navigation state, and metadata copying.

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 30, 2026
Base automatically changed from mtopo27/ref/snapshot-list-frame to master May 1, 2026 00:41
@mtopo27 mtopo27 force-pushed the mtopo27/ref/snapshot-focused-view branch from 432d4e8 to 8b65e2d Compare May 1, 2026 02:47
@mtopo27 mtopo27 marked this pull request as ready for review May 1, 2026 04:18
@mtopo27 mtopo27 requested a review from a team as a code owner May 1, 2026 04:18
mtopo27 and others added 8 commits May 1, 2026 15:29
Move the focused snapshot shell onto the shared card and variant frame primitives while preserving its toolbar, dark preview handling, scroll body, and navigation controls.

Co-Authored-By: Codex <noreply@openai.com>
Thread the focused head branch label into split, wipe, and onion diff views so the head side no longer uses a hardcoded branch name.

Co-Authored-By: Codex <noreply@openai.com>
Move renamed snapshot list variants onto the single-image card path while keeping the full rename pair available to metadata copy.

Co-Authored-By: Codex <noreply@openai.com>
Add focused main-content coverage for changed diff controls, navigation state, and renamed single-image metadata behavior.

Co-Authored-By: Codex <noreply@openai.com>
@mtopo27 mtopo27 merged commit 0155663 into master May 1, 2026
71 checks passed
@mtopo27 mtopo27 deleted the mtopo27/ref/snapshot-focused-view branch May 1, 2026 19:46
cleptric pushed a commit that referenced this pull request May 5, 2026
Make the focus view look like list view. 

prod
<img width="2022" height="1400" alt="CleanShot 2026-05-01 at 00 23
55@2x"
src="https://github.com/user-attachments/assets/2bfecff0-1f0a-4200-afad-2b8e9c3d1967"
/>


pr
<img width="2040" height="1398" alt="CleanShot 2026-05-01 at 00 24
06@2x"
src="https://github.com/user-attachments/assets/3037d178-b040-4891-9fe8-ff0e5361672c"
/>

---

Share the snapshot card and variant frames between list and focused
snapshot views so focused diffs inherit the same grouping and
fill-height behavior. This also fixes the focused diff branch label and
renders renamed snapshots as a single image with the existing card
metadata.

**Focused Snapshot Frames**

The focused view now composes `SnapshotCardFrame` and
`SnapshotVariantFrame` instead of maintaining a separate card/group
wrapper, keeping the layout behavior aligned with the list view.

**Focused View Coverage**

Adds React tests for changed and renamed focused snapshot states,
including diff controls, navigation state, and metadata copying.

---------

Co-authored-by: Codex <noreply@openai.com>
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