-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: rework notification system (#449)
**Describe the pull request** This pull request is dedicated to a comprehensive overhaul of the current notification system to leverage React's Portal system and to better handle Apollo errors. By integrating React Portal, we can benefit from its capability to render children into a DOM node that exists outside the root app and prevent rerender on show and hide notification. Additionally, the improved handling of Apollo errors will ensure more robust error detection and management within the notification system. Through this significant rework, we aim to improve the reliability, performance, and user experience of the notification system. **Checklist** - [x] I have made the modifications or added tests related to my PR - [x] I have run the tests and linters locally and they pass - [x] I have added/updated the documentation for my RP Signed-off-by: 42Atomys <[email protected]>
- Loading branch information
Showing
15 changed files
with
306 additions
and
218 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
web/ui/src/components/Notification/NotificationContext.tsx
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
web/ui/src/components/Notification/NotificationProvider.tsx
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export { useNotification as default, useNotification } from './hooks'; | ||
export { Notification } from './Notification'; | ||
export type { NotificationProps } from './types'; |
Oops, something went wrong.