fix(FR-1784): Replace popconfirm with Modal for image deletion#4809
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 | 4.37% | 517/11820 |
| 🔴 | Branches | 3.58% | 298/8316 |
| 🔴 | Functions | 2.63% | 95/3618 |
| 🔴 | Lines | 4.35% | 503/11560 |
Test suite run success
145 tests passing in 14 suites.
Report generated by 🧪jest coverage report action from 4f95d60
There was a problem hiding this comment.
Pull request overview
This PR fixes a logic error in the delete button's disabled state for customized images in the MyEnvironment page. The button was incorrectly enabled for the row being deleted and disabled for all other rows, when it should have been the opposite.
Key Changes:
- Corrected the disabled condition from
!==to===to properly disable the button for the row currently being deleted
1266cfb to
c8568ac
Compare
ironAiken2
left a comment
There was a problem hiding this comment.
I left some comments :)
c8568ac to
c90286f
Compare
Merge activity
|
resolves #4807 ([FR-1784](https://lablup.atlassian.net/browse/FR-1784)) This PR replaces the Popconfirm component with a BAIModal for deleting customized images in the CustomizedImageList component. The change improves the user experience by: 1. Using a proper modal dialog with an Alert component to warn users about the irreversible action 2. Improving the deletion flow by centralizing the deletion logic in the modal 3. Removing the `inFlightImageId` state in favor of tracking the image to delete with a dedicated state variable 4. Properly handling loading states during the deletion process **Checklist:** - [ ] Documentation - [ ] Minium required manager version - [ ] Specific setting for review (eg., KB link, endpoint or how to setup) - [ ] Minimum requirements to check during review - [ ] Test case(s) to demonstrate the difference of before/after [FR-1784]: https://lablup.atlassian.net/browse/FR-1784?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
c90286f to
4f95d60
Compare

resolves #4807 (FR-1784)
This PR replaces the Popconfirm component with a BAIModal for deleting customized images in the CustomizedImageList component. The change improves the user experience by:
inFlightImageIdstate in favor of tracking the image to delete with a dedicated state variableChecklist: