-
Notifications
You must be signed in to change notification settings - Fork 3
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
[ENH] Implement Notification Icon with Badge for Warnings and Its Test #432
Open
Tusharjamdade
wants to merge
1
commit into
neurobagel:main
Choose a base branch
from
Tusharjamdade:warnings
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
Reviewer's Guide by SourceryThis pull request implements a notification icon with a badge in the navigation bar to display non-critical warnings to the user. It also includes a test for the new notification badge feature. Sequence diagram for the new warning notification flowsequenceDiagram
participant User
participant App
participant Navbar
participant NotificationSystem
App->>NotificationSystem: Initialize warnings state
App->>Navbar: Render with notifications prop
Note over Navbar: Display notification badge
User->>Navbar: Click notification icon
Navbar->>NotificationSystem: Open notification popover
NotificationSystem-->>User: Display warning messages
User->>NotificationSystem: View warnings
User->>NotificationSystem: Close notification popover
Class diagram for updated Navbar componentclassDiagram
class Navbar {
+boolean isLoggedIn
+function onLogin()
+string[] notifications
-HTMLElement anchorEl
-HTMLElement anchorMailEl
-boolean openAccountMenu
-boolean openMailMenu
+handleClick(event)
+handleClose()
+handleMailClick(event)
+handleMailClose()
}
note for Navbar "Added notifications support"
class Badge {
+number badgeContent
+string color
}
class NotificationsIcon {
+string color
}
Navbar --> Badge
Navbar --> NotificationsIcon
File-Level Changes
Assessment against linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
github-actions
bot
added
the
_community
[BOT ONLY] PR label for community contributions. Used for tracking
label
Jan 8, 2025
✅ Deploy Preview for neurobagel-query ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes proposed in this pull request:
Checklist
This section is for the PR reviewer
[ENH]
,[FIX]
,[REF]
,[TST]
,[CI]
,[MNT]
,[INF]
,[MODEL]
,[DOC]
) (see our Contributing Guidelines for more info)skip-release
(to be applied by maintainers only)Closes #XXXX
query-tool-results
files in the neurobagel_examples repo have been regeneratedFor new features:
For bug fixes:
Summary by Sourcery
Add a notification icon with a badge to display non-critical warnings to the user.
New Features:
Tests: