Commit 6f98d27
feat(preprod): Check for actual build data when showing mobile builds tab (#112525)
Adjust the Mobile Builds tab visibility on the Releases page to also
check
for actual build data, not just whether the project has a mobile
platform.
Previously, the tab showed purely based on `isMobileRelease()` — a
client-side
platform check. Now we also probe the existing `/builds/` endpoint with
`per_page=1` to see if any preprod builds exist for the selected
projects
and time range. The tab shows if either condition is true:
1. The builds endpoint returns at least one result
2. At least one selected project has a mobile platform (existing
fallback)
The probe query is gated behind the `preprod-frontend-routes` feature
flag
and uses a 60s stale time. Only date-related params are passed to avoid
spurious refetches from unrelated URL query changes.
Refs EME-706
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 23b99b0 commit 6f98d27
2 files changed
+36
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
103 | 107 | | |
104 | 108 | | |
105 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
232 | 234 | | |
233 | 235 | | |
234 | 236 | | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
242 | 260 | | |
243 | 261 | | |
244 | 262 | | |
| |||
247 | 265 | | |
248 | 266 | | |
249 | 267 | | |
250 | | - | |
| 268 | + | |
251 | 269 | | |
252 | 270 | | |
253 | 271 | | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
254 | 276 | | |
255 | | - | |
256 | | - | |
| 277 | + | |
| 278 | + | |
257 | 279 | | |
258 | 280 | | |
259 | 281 | | |
| |||
0 commit comments