fix(FR-2622): add delete-folder option and trash notification on model card deletion#6881
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has required the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
|---|---|---|---|
| 🔴 | Statements | 8.11% (-0% 🔻) |
1859/22932 |
| 🔴 | Branches | 7.34% (-0.01% 🔻) |
1187/16168 |
| 🔴 | Functions | 4.82% (+0.01% 🔼) |
297/6161 |
| 🔴 | Lines | 7.88% (-0% 🔻) |
1750/22217 |
Test suite run success
865 tests passing in 40 suites.
Report generated by 🧪jest coverage report action from 19752e5
There was a problem hiding this comment.
Pull request overview
Adds an optional “delete associated model folder” flow when deleting an admin model card, and replaces the plain success toast with a notification that can deep-link users to the Trash view.
Changes:
- Added new
adminModelCard.*i18n strings for the new checkbox/tooltip and deletion result notifications. - Updated
AdminModelCardListPagedelete confirmation modal to include an “also delete folder” checkbox and (optionally) rundeleteVfolderV2, followed by a success notification with a “Go to Data > Trash” action.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| resources/i18n/en.json | Adds new English strings for delete-folder option and trash navigation notification. |
| react/src/pages/AdminModelCardListPage.tsx | Adds delete-folder checkbox, new vfolder delete mutation, and a post-delete trash notification with navigation. |
5a33b0a to
196618a
Compare
196618a to
2763cba
Compare
893816e to
b61a8af
Compare
ironAiken2
left a comment
There was a problem hiding this comment.
test을(를) 입력하여 확인하세요. The translated text seems a little awkward. 'Please enter <folder name> to delete.' How does that sound?
b61a8af to
cbde122
Compare
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
|---|---|---|---|
| 🟢 | Statements | 81.87% | 429/524 |
| 🟡 | Branches | 70.43% | 362/514 |
| 🟡 | Functions | 76.86% | 93/121 |
| 🟢 | Lines | 83.19% | 391/470 |
Test suite run success
319 tests passing in 13 suites.
Report generated by 🧪jest coverage report action from 19752e5
ironAiken2
left a comment
There was a problem hiding this comment.
test을(를) 입력하여 확인하세요.The translated text seems a little awkward. 'Please enter <folder name> to delete.' How does that sound?
Please check this comment
cbde122 to
4fe4032
Compare
4fe4032 to
6d6f443
Compare
19752e5 to
6f30d94
Compare
Coverage Report for backend-ai-ui-coverage (./packages/backend.ai-ui)
File Coverage
|
||||||||||||||||||||||||||||||||||||||
Coverage Report for react-coverage (./react)
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||||||||
aa20978 to
2e8fa5b
Compare
6f6bf8c to
34262a5
Compare
Merge activity
|
…l card deletion (#6881) Resolves #6841 (FR-2622) ## Summary - Added `vfolderId` field to `AdminModelCardListPageQuery` so the model card's associated vfolder ID is available in the deletion flow. - Added `AdminModelCardListPageDeleteVFolderMutation` (`deleteVfolderV2`) to soft-delete (move to trash) the associated model folder. - Added `alsoDeleteFolder` state (default `false`) that resets when the deletion dialog closes. - Added an opt-in `Checkbox` (wrapped in `Tooltip`) to the single-delete `BAIDeleteConfirmModal` via the `extraContent` prop, allowing admins to also trash the associated model folder in the same action. - Updated the `onOk` handler: when checked, `deleteVfolderV2` is called after card deletion; both paths show a `notification.success` with a "Go to Data > Trash" action button navigating to `/data?statusCategory=deleted` (with folder filter when folder is also deleted). - Added new i18n keys under `adminModelCard` in `en.json`: `AlsoDeleteModelFolder`, `AlsoDeleteModelFolderTooltip`, `ModelCardAndFolderDeleted`, `ModelCardDeletedFolderKept`, `GoToTrash`.
34262a5 to
6eaccdb
Compare
Resolves #6841 (FR-2622) Stacked on top of #6881. ## Summary Translates the 5 new `adminModelCard.*` i18n keys introduced in #6881 into all 20 target languages (de, el, es, fi, fr, id, it, ja, ko, mn, ms, pl, pt-BR, pt, ru, th, tr, vi, zh-CN, zh-TW). Keys translated: - `AlsoDeleteModelFolder` - `AlsoDeleteModelFolderTooltip` - `GoToTrash` - `ModelCardAndFolderDeleted` - `ModelCardDeletedFolderKept` Terminology kept consistent with existing translations (e.g., "trash" → 휴지통 / ゴミ箱 / Papierkorb / Poubelle, "model card" → 모델 카드 / モデルカード). Keys inserted at the alphabetically correct position within `adminModelCard`.

Resolves #6841 (FR-2622)
Summary
vfolderIdfield toAdminModelCardListPageQueryso the model card's associated vfolder ID is available in the deletion flow.AdminModelCardListPageDeleteVFolderMutation(deleteVfolderV2) to soft-delete (move to trash) the associated model folder.alsoDeleteFolderstate (defaultfalse) that resets when the deletion dialog closes.Checkbox(wrapped inTooltip) to the single-deleteBAIDeleteConfirmModalvia theextraContentprop, allowing admins to also trash the associated model folder in the same action.onOkhandler: when checked,deleteVfolderV2is called after card deletion; both paths show anotification.successwith a "Go to Data > Trash" action button navigating to/data?statusCategory=deleted(with folder filter when folder is also deleted).adminModelCardinen.json:AlsoDeleteModelFolder,AlsoDeleteModelFolderTooltip,ModelCardAndFolderDeleted,ModelCardDeletedFolderKept,GoToTrash.