Commit 7eeecfb
feat(snapshots): Add snapshots list table to Releases page (#112819)
<img width="3862" height="3064" alt="CleanShot 2026-04-13 at 10 24
38@2x"
src="https://github.com/user-attachments/assets/83079ec4-a370-4673-baea-88a78d9cd057"
/>
Adds a new Snapshots tab to the Releases page for browsing visual
snapshot builds. The tab is gated behind the
`organizations:preprod-snapshots` feature flag, independently from the
existing Mobile Builds tab (`preprod-frontend-routes`).
**What this adds:**
- `PreprodBuildsSnapshotTable` component with a consolidated column
layout inspired by the old Emerge Tools UI:
- **Snapshot**: app name + image count subtitle
- **Changes**: shows lifecycle state tags
(Base/Pending/Processing/Failed) when comparison isn't complete, or full
diff summary text (e.g., "10 modified, 1 unchanged") when it is
- **Branch**: git ref + commit SHA
- **Approval**: only shows Approved/Needs Approval badges for successful
comparisons
- **Created**: relative timestamp
- Backend additions to `SnapshotInfo` API response:
- `comparison_error_message` field for rich Failed state tooltips
- Literal types for `comparison_state` and `approval_status` for type
safety on both sides
- Fixed N+1 query issue in `to_snapshot_info()` by adding
`select_related`/`prefetch_related` for snapshot metrics, comparisons,
and approvals in the builds endpoint queryset
- Snapshots tab visibility independently gated from Mobile Builds tab,
with proper fallback if a user navigates to a tab whose feature flag is
off
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent cbeebed commit 7eeecfb
File tree
12 files changed
+480
-42
lines changed- src/sentry/preprod/api
- endpoints
- models
- static/app
- components/preprod
- utils/analytics
- views
- preprod
- types
- utils
- releases/list
- tests/sentry/preprod/api/endpoints
12 files changed
+480
-42
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
82 | 90 | | |
83 | 91 | | |
84 | 92 | | |
| |||
Lines changed: 77 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
13 | 19 | | |
14 | 20 | | |
15 | 21 | | |
| |||
83 | 89 | | |
84 | 90 | | |
85 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
86 | 103 | | |
87 | 104 | | |
88 | 105 | | |
| |||
147 | 164 | | |
148 | 165 | | |
149 | 166 | | |
| 167 | + | |
150 | 168 | | |
151 | 169 | | |
152 | 170 | | |
| |||
262 | 280 | | |
263 | 281 | | |
264 | 282 | | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
265 | 338 | | |
266 | 339 | | |
267 | 340 | | |
| |||
315 | 388 | | |
316 | 389 | | |
317 | 390 | | |
| 391 | + | |
| 392 | + | |
318 | 393 | | |
319 | 394 | | |
320 | 395 | | |
| |||
327 | 402 | | |
328 | 403 | | |
329 | 404 | | |
| 405 | + | |
330 | 406 | | |
331 | 407 | | |
332 | 408 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
Lines changed: 21 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
38 | 42 | | |
39 | 43 | | |
40 | 44 | | |
| |||
54 | 58 | | |
55 | 59 | | |
56 | 60 | | |
| 61 | + | |
57 | 62 | | |
58 | 63 | | |
59 | 64 | | |
| |||
74 | 79 | | |
75 | 80 | | |
76 | 81 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
91 | 98 | | |
92 | 99 | | |
93 | 100 | | |
0 commit comments