Skip to content

feat(preprod): Snapshots frontend v1#108278

Merged
rbro112 merged 3 commits intomasterfrom
ryan/snapshots_frontend_v1
Feb 20, 2026
Merged

feat(preprod): Snapshots frontend v1#108278
rbro112 merged 3 commits intomasterfrom
ryan/snapshots_frontend_v1

Conversation

@rbro112
Copy link
Copy Markdown
Member

@rbro112 rbro112 commented Feb 13, 2026

Adds the first version of the snapshots frontend.

Screenshot 2026-02-13 at 4 59 32 PM Screenshot 2026-02-13 at 3 20 06 PM

@rbro112 rbro112 requested a review from a team as a code owner February 13, 2026 23:33
Copy link
Copy Markdown
Member Author

rbro112 commented Feb 13, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Feb 13, 2026
@rbro112 rbro112 force-pushed the ryan/wireup_snapshot_get_api branch from f0bf87f to af96c5b Compare February 14, 2026 00:16
@rbro112 rbro112 force-pushed the ryan/snapshots_frontend_v1 branch from dd5a3f9 to 7c60e7c Compare February 14, 2026 00:16
@rbro112 rbro112 changed the title Snapshots frontend v1 feat(preprod): Snapshots frontend v1 Feb 14, 2026
@rbro112 rbro112 force-pushed the ryan/wireup_snapshot_get_api branch from af96c5b to 43725f8 Compare February 20, 2026 19:39
@rbro112 rbro112 force-pushed the ryan/snapshots_frontend_v1 branch from 7c60e7c to 48e0ef0 Compare February 20, 2026 19:39
@rbro112 rbro112 force-pushed the ryan/snapshots_frontend_v1 branch from 48e0ef0 to 6c19cb3 Compare February 20, 2026 20:25
@rbro112 rbro112 force-pushed the ryan/snapshots_frontend_v1 branch from 6c19cb3 to 30c0f23 Compare February 20, 2026 20:44
@rbro112 rbro112 force-pushed the ryan/wireup_snapshot_get_api branch from 3089e94 to 2961584 Compare February 20, 2026 20:47
@rbro112 rbro112 force-pushed the ryan/snapshots_frontend_v1 branch from 30c0f23 to 719f641 Compare February 20, 2026 20:47
rbro112 added a commit that referenced this pull request Feb 20, 2026
Wires up the snapshots GET api that we'll use for both snapshots and
snapshot diffs. Frontend implemented in #108278
Base automatically changed from ryan/wireup_snapshot_get_api to master February 20, 2026 21:15
@rbro112 rbro112 force-pushed the ryan/snapshots_frontend_v1 branch from 719f641 to ebbae43 Compare February 20, 2026 21:15
if (!data?.pages) {
return new Map<string, SnapshotImage[]>();
}
const allImages = data.pages.flatMap(page => page[0].images);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Potential null reference when accessing page[0].images in flatMap

The groupedImages memo accesses page[0].images without checking if page[0] is defined. If useInfiniteApiQuery returns a page with an empty or undefined response body (e.g., API returns 200 with no body), this will throw TypeError: Cannot read properties of undefined (reading 'images'). Similar to JAVASCRIPT-2NQW where accessing properties on potentially null API response data caused 39K events.

Suggested fix: Add defensive check to filter out pages with undefined data before accessing images

Suggested change
const allImages = data.pages.flatMap(page => page[0].images);
const allImages = data.pages.flatMap(page => {
const pageData = page[0];
return pageData?.images ?? [];
});

Identified by Warden [sentry-javascript-bugs] · JSR-BFH

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bit too defensive, gonna skip as I do wanna catch these while we're testing

@rbro112 rbro112 merged commit cee6869 into master Feb 20, 2026
65 of 66 checks passed
@rbro112 rbro112 deleted the ryan/snapshots_frontend_v1 branch February 20, 2026 21:25
wedamija pushed a commit that referenced this pull request Feb 20, 2026
Wires up the snapshots GET api that we'll use for both snapshots and
snapshot diffs. Frontend implemented in #108278
priscilawebdev pushed a commit that referenced this pull request Feb 24, 2026
Wires up the snapshots GET api that we'll use for both snapshots and
snapshot diffs. Frontend implemented in #108278
priscilawebdev pushed a commit that referenced this pull request Feb 24, 2026
mchen-sentry pushed a commit that referenced this pull request Feb 24, 2026
Wires up the snapshots GET api that we'll use for both snapshots and
snapshot diffs. Frontend implemented in #108278
mchen-sentry pushed a commit that referenced this pull request Feb 24, 2026
@github-actions github-actions bot locked and limited conversation to collaborators Mar 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

claude-code-assisted 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