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 | 9.01% (-0.02% 🔻) |
1858/20614 |
| 🔴 | Branches | 8.18% (-0.02% 🔻) |
1187/14514 |
| 🔴 | Functions | 5.3% (-0.01% 🔻) |
296/5585 |
| 🔴 | Lines | 8.75% (-0.02% 🔻) |
1750/20000 |
Show files with reduced coverage 🔻
St.❔ |
File | Statements | Branches | Functions | Lines |
|---|---|---|---|---|---|
| 🔴 | hooks/index.tsx | 51.72% (-3.35% 🔻) |
36.59% (-2.89% 🔻) |
35% (-3.46% 🔻) |
51.41% (-3.07% 🔻) |
| 🔴 | ... / WebUINavigate.tsx |
0% | 0% (-100% 🔻) |
0% | 0% |
Test suite run success
865 tests passing in 40 suites.
Report generated by 🧪jest coverage report action from 4fe4032
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 4fe4032
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

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.