-
Notifications
You must be signed in to change notification settings - Fork 41
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
[ux] Restyle notification widget #182 #184
Conversation
@nemesisdesign and @atb00ker I have made some changes in ci because it was not installing the correct version of Problem is that menu element is getting registered twice at the same position from |
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.
@niteshsinha17 that's a special test which messes with the installed apps, please read the code of the test to understand what it does so you should figure out a solution.
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.
I have not tested, but some comments:
[chores] Minnor changes
->[chores] Minor changes
- Do we want to merge this to master or create a branch? @nemesisdesign
openwisp_notifications/static/openwisp-notifications/images/icons/icon-bell.svg
Outdated
Show resolved
Hide resolved
openwisp_notifications/static/openwisp-notifications/js/notifications.js
Outdated
Show resolved
Hide resolved
Hey @niteshsinha17 commit messages are not fixed as per the last review, do you need help with it? |
f430a1f
to
86529ce
Compare
Thanks, I have changed them. 😄 I thought you were saying about the typo that I should not repeat. |
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.
Too many unrelated changes, I think some of them could have been seperately taken care. 😄
openwisp_notifications/static/openwisp-notifications/js/object-notifications.js
Outdated
Show resolved
Hide resolved
requirements.txt
Outdated
openwisp-utils[rest] | ||
openwisp-users @ https://github.com/openwisp/openwisp-users/tarball/issues/253-register-menu-groups | ||
# TODO set the next point release of openwisp-utils when ready | ||
openwisp-utils[rest] @ https://github.com/niteshsinha17/openwisp-utils/tarball/gsoc/new-navigation-menu-design |
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.
Before merge, please make it point to openwisp/openwisp-utils
from niteshsinha17/openwisp-utils
.
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.
I am confused about what should I test here:
There is a significant UI & it's feel difference, honestly, I don't mind either but am I even checking the correct thing?
- The buttons in the currently visible section is too large, can we make them smaller please?
- Can we hide these buttons when there are no new notifications in the new design?
@atb00ker Please don't judge it by comparing it with design because in miro we have some limitations. We can improve it during the implemetation.
👍
It was already implemented in that way. Should we change it? |
I think it wasn't implemented before, but I think it makes sense in the new UI! 😄 |
Yes, It's a good idea. I will open an issue for it. |
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.
{% unread_notifications %} | ||
</div> | ||
{% csrf_token %} | ||
{% notification_toast %} | ||
{% notification_widget %} | ||
{% endblock %} | ||
|
||
{% endblock %} |
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.
Change not required.
P.S If you haven't already, install linters and if you use vscode, add:
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,
to ensure file ends with a new line and trailing whitespaces are removed!
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.
Thank you 😄
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.
The "mark all as read" and "Show unread only" options look like they are borrowed from the UI. Is there any reason why entire UI isn't like other buttons? (they are more round and turn a different shade of grey when in focus).
But it's going in the correct direction! 👍
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.
Looks like it's on the right track. I've added some minor improvements in 68df533.
Will be doing more review and testing in the coming days.
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.
Something odd I noticed when testing on openwisp-monitoring, I see 2 "send command" buttons in the device detail page, it doesn't happen on master, can you please double check?
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.
Notification icon
Could you change the notification widget icon to use the same technique of masking so we can change its color on hover/focus please?
2fc752d
to
9129c2d
Compare
9ec8359
to
587f960
Compare
Changes
Expected design: https://miro.com/app/board/o9J_lMAQQZk=/
Tasks
Checklist
close #182