-
Notifications
You must be signed in to change notification settings - Fork 167
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) Notification bell doesn't show notifications #993
base: master
Are you sure you want to change the base?
Conversation
@coderatomy Thanks for this. The current design does not match exactly the suggested UX in #992 (notification circle should be half outside the main bell circle). I also think we should experiment with increasing the font size of the notification count. In addition, have you tested the behavior when all notifications are read already? Does the icon work as expected (it should not show 0, but should just disappear). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments
Everything works as expected. For the design @mehreeee updated it to this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test the functionality and it works @tuxology. Just a few comments and we can merge this @coderatomy . Nice work!
return ( | ||
<ClickAwayListener onClickAway={() => setDropdownOpen(false)}> | ||
<div> | ||
<div | ||
onClick={() => setDropdownOpen(!dropdownOpen)} | ||
ref={buttonRef} | ||
className={clsx(classes.notification, commonClasses.iconBox)} | ||
style={{ cursor: 'pointer' }} | ||
style={{ position: 'relative', cursor: 'pointer' }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you help move this to notificationButtonStyles.js?
</span> | ||
) | ||
} | ||
<Notifications style={{ color: colors.primary, fontSize: 24 }} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this too. move to notification style file
Something we should probably do in the future is to implement push notification. Right now users don't get notified unless they perform some kind of action that results in the frontend hitting the notification endpoint |
@coderatomy Ok, I see that there was an update to the design 🤔 Its fine, we go with this design then. Note that the icon+notification bubble together is centered and has consistent padding along the sides so it looks balanced. In your implementation we see the notification bubble touching the outer circle edge. In addition, lets do changes requested by @NdibeRaymond as well Thanks @NdibeRaymond for testing. We'll merge this soon. |
Summary
Implements notifiers in case of numbers.
Closes #992
Changes
Screenshots