Commit d5f78df
committed
Resolves #7293 ([FR-2838](https://lablup.atlassian.net/browse/FR-2838))
> Stacked on #7287 (FR-2834).
<img width="1231" height="601" alt="image" src="https://github.com/user-attachments/assets/b59e6692-6a8d-4b4e-95ff-3d3852c4db6d" />
## Summary
- Show an info `Alert` on the deployment detail page when the deployment is private (`openToPublic === false`) and not destroying. The alert names the state and offers a "Manage Access Tokens" action that smooth-scrolls to the access tokens section (`#deployment-access-tokens`).
- Lifted all deployment-level alerts (`DeploymentReady`, `NoCurrentRevisionDeployed`, `PrivateDeployment`) and the `DeploymentAddRevisionModal` from `DeploymentConfigurationCards` up to `DeploymentDetailPage` so they live where they semantically belong (page-wide notifications, not tied to the configuration cards).
- Lifted the page-level `fetchKey` / `revisionFetchKey` / refresh transition state to `DeploymentDetailPage`. `DeploymentConfigurationSection` now receives them via props and exposes `onAddRevision` for both the alert and the section's own "Add Revision" tab-bar button.
- Added new i18n keys (`deployment.PrivateDeploymentAlertTitle`, `deployment.PrivateDeploymentAlertDescription`, `deployment.ManageAccessTokens`) across all 22 supported languages.
## Test plan
- [ ] On a public deployment detail page, verify no private alert is shown.
- [ ] On a private (`openToPublic = false`) deployment, verify the info alert appears with the expected title and description.
- [ ] Click "Manage Access Tokens" and verify the page scrolls smoothly to the access tokens section.
- [ ] Verify alert ordering is: DeploymentReady → NoCurrentRevisionDeployed → PrivateDeployment.
- [ ] Verify the existing "Add Revision" tab-bar button in the configuration section still opens the AddRevision modal (now hosted by the page).
- [ ] Verify the refresh button in the configuration overview still works and propagates the loading state.
- [ ] On a destroying/stopped deployment, verify the private alert is suppressed.
- [ ] Spot-check at least Korean, Japanese, and one Latin-script locale to confirm new keys are translated.
[FR-2838]: https://lablup.atlassian.net/browse/FR-2838?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
1 parent 18d3fe9 commit d5f78df
23 files changed
Lines changed: 219 additions & 103 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | 7 | | |
10 | 8 | | |
11 | 9 | | |
| |||
33 | 31 | | |
34 | 32 | | |
35 | 33 | | |
36 | | - | |
37 | | - | |
38 | 34 | | |
39 | 35 | | |
40 | | - | |
41 | 36 | | |
42 | | - | |
| 37 | + | |
43 | 38 | | |
44 | 39 | | |
45 | 40 | | |
46 | 41 | | |
47 | 42 | | |
48 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
145 | 153 | | |
146 | 154 | | |
147 | 155 | | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | 156 | | |
152 | 157 | | |
153 | 158 | | |
| |||
162 | 167 | | |
163 | 168 | | |
164 | 169 | | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | 170 | | |
177 | 171 | | |
178 | 172 | | |
179 | 173 | | |
180 | 174 | | |
181 | | - | |
| 175 | + | |
182 | 176 | | |
183 | 177 | | |
184 | 178 | | |
| |||
218 | 212 | | |
219 | 213 | | |
220 | 214 | | |
221 | | - | |
| 215 | + | |
222 | 216 | | |
223 | | - | |
| 217 | + | |
224 | 218 | | |
225 | 219 | | |
226 | 220 | | |
| |||
252 | 246 | | |
253 | 247 | | |
254 | 248 | | |
255 | | - | |
| 249 | + | |
256 | 250 | | |
257 | 251 | | |
258 | 252 | | |
| |||
261 | 255 | | |
262 | 256 | | |
263 | 257 | | |
264 | | - | |
| 258 | + | |
265 | 259 | | |
266 | 260 | | |
267 | 261 | | |
268 | 262 | | |
269 | 263 | | |
270 | 264 | | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | 265 | | |
275 | 266 | | |
276 | 267 | | |
| |||
287 | 278 | | |
288 | 279 | | |
289 | 280 | | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | 281 | | |
295 | 282 | | |
296 | 283 | | |
| |||
339 | 326 | | |
340 | 327 | | |
341 | 328 | | |
342 | | - | |
343 | 329 | | |
344 | 330 | | |
345 | 331 | | |
346 | 332 | | |
347 | | - | |
348 | 333 | | |
349 | 334 | | |
350 | 335 | | |
| |||
354 | 339 | | |
355 | 340 | | |
356 | 341 | | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | 342 | | |
401 | 343 | | |
402 | 344 | | |
| |||
437 | 379 | | |
438 | 380 | | |
439 | 381 | | |
440 | | - | |
| 382 | + | |
441 | 383 | | |
442 | 384 | | |
443 | 385 | | |
| |||
503 | 445 | | |
504 | 446 | | |
505 | 447 | | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | 448 | | |
518 | 449 | | |
519 | 450 | | |
| |||
0 commit comments