fix: replace raw Modal with GenericModal in Omnichannel hold/close mo…#41440
fix: replace raw Modal with GenericModal in Omnichannel hold/close mo…#41440Aryan107rn wants to merge 5 commits into
Conversation
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
🦋 Changeset detectedLatest commit: 8ed02fb The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📜 Recent review details⏰ Context from checks skipped due to timeout. (1)
🧰 Additional context used📓 Path-based instructions (1)**/*.{ts,tsx,js}📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)
Files:
🧠 Learnings (3)📚 Learning: 2026-03-16T21:50:37.589ZApplied to files:
📚 Learning: 2026-03-27T14:52:56.865ZApplied to files:
📚 Learning: 2026-05-06T12:21:44.083ZApplied to files:
🔇 Additional comments (3)
WalkthroughBoth omnichannel modal components now use ChangesOmnichannel modal migration
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
All reported issues were addressed
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
What does this PR do?
Resolves long-standing
TODOcomments in two Omnichannel modal components by replacingthe manual
Modal+ sub-component assembly with theGenericModalabstraction from@rocket.chat/ui-client— which is the established pattern throughout the codebase.Files changed
apps/meteor/app/livechat-enterprise/client/components/modals/PlaceChatOnHoldModal.tsxModalsub-component imports + manual JSX with a single<GenericModal variant='warning'>callTODO: Replace Modal with GenericModalcommentapps/meteor/client/views/omnichannel/modals/CloseChatModal.tsx<Modal>branch with<GenericModal wrapperFunction={...}>Modal,Button, allModal*sub-components)TODO: Replace Modal with GenericModalcommentType of change
Checklist
.changeset/omnichannel-modal-to-generic-modal.mdSummary by CodeRabbit