ENG-177: Replace useAlert with Ant Design useMessage#7697
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Migrate all consumers to use Ant Design's useMessage hook from fidesui. Delete the old Chakra-based alert hooks and add a Cypress shouldShowMessage helper for Ant Design message assertions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
b20bf92 to
2420aba
Compare
Greptile SummaryThis PR migrates ~30 admin UI components from the Chakra-based
Confidence Score: 3/5
Important Files Changed
|
clients/admin-ui/src/features/privacy-requests/drawers/ConfigureAlerts.tsx
Show resolved
Hide resolved
kruulik
left a comment
There was a problem hiding this comment.
All very straightforward, looks good!
Ticket ENG-177
Description Of Changes
Replaces the Chakra-based
useAlerthook with Ant Design'suseMessageacross the admin UI.useAPIHelperis preserved but updated to useuseMessageinternally instead ofuseAlert. This is PR 2 of 4 for the toast-to-Ant migration (ENG-177)Code Changes
useAlert.tsxanduseQueryResultToast.tsuseAPIHelperto useuseMessagefrom fidesui instead ofuseAlertuseAlertconsumers (~30 files) touseMessagefor success/error/info toastscy.shouldShowMessage(type, text?)Cypress command inant-support.tsfor asserting Ant Design message toastsassets-results.cy.tsto use the new helperSteps to Confirm
useAPIHelperPre-Merge Checklist
CHANGELOG.mdupdatedmaindowngrade()migration is correct and works