-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(react/toast): enhance inline toast transition management #940
Conversation
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## v2 #940 +/- ##
==========================================
+ Coverage 77.81% 78.34% +0.52%
==========================================
Files 403 405 +2
Lines 6636 6640 +4
==========================================
+ Hits 5164 5202 +38
+ Misses 1472 1438 -34 ☔ View full report in Codecov by Sentry. |
Tonic UI DemoOn 2024-11-08 10:12:50 +0000, PR #940 (ac26a80) was successfully deployed. You can view it at the following link: |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
ToastGroup
without ToastManager
ToastTransitionGroup
without ToastManager
ToastTransitionGroup
without ToastManager
ToastTransitionController
without ToastManager
ToastTransitionController
without ToastManager
ToastTransitionController
to allow support for inline toast transition management
/improve |
PR Code Suggestions ✨Latest suggestions up to 81debab
Previous suggestions✅ Suggestions up to commit f53549d
|
ToastTransitionController
to allow support for inline toast transition management
Demo: https://trendmicro-frontend.github.io/tonic-ui-demo/react/pr-940/components/toast#toast-on-modal-and-drawer
You can create your customized
InlineToastContainer
component for modals or drawers with the following example:Description
ToastGroup
component to manage toast notifications withoutToastManager
.drawer-toast.js
andmodal-toast.js
to utilizeToastGroup
for toast management.ToastGroup
in expected exports.ToastGroup
.PRDescriptionHeader.CHANGES_WALKTHROUGH
drawer-toast.js
Refactor drawer toast to use ToastGroup
packages/react-docs/pages/components/toast/drawer-toast.js
ToastController
andToastTransition
withToastGroup
.ToastGroup
.modal-toast.js
Refactor modal toast to use ToastGroup
packages/react-docs/pages/components/toast/modal-toast.js
ToastController
andToastTransition
withToastGroup
.ToastGroup
.ToastGroup.js
Implement new ToastGroup component for toast management
packages/react/src/toast/ToastGroup.js
ToastGroup
component.TransitionGroup
for animations.ToastManager.js
Refactor ToastManager to use ToastGroup
packages/react/src/toast/ToastManager.js
TransitionGroup
logic withToastGroup
.ToastContainerComponent
andToastContainerProps
.index.js
Export ToastGroup in toast index
packages/react/src/toast/index.js
ToastGroup
component.index.test.js
Add ToastGroup to expected exports in tests
packages/react/tests/index.test.js
ToastGroup
to the list of expected exports.index.page.mdx
Update toast documentation with ToastGroup usage
packages/react-docs/pages/components/toast/index.page.mdx
ToastGroup
.ToastGroup
.ToastController
references.