Skip to content
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

Merged
merged 16 commits into from
Aug 1, 2021

Conversation

niteshsinha17
Copy link
Member

@niteshsinha17 niteshsinha17 commented Jun 10, 2021

Changes

Expected design: https://miro.com/app/board/o9J_lMAQQZk=/

  1. Restyled notification widget.
  2. Changed unsubscribe button.
  3. Updated CI run commands because tests were failing.
  4. Updated readme.
  5. Manually tested current changes.

Tasks

  • Create a design for the widget.
  • Implement the created design.

Checklist

  • I have read the contributing guidelines.
  • I have manually tested the proposed changes.
  • I have written new test cases to avoid regressions. (if necessary)
  • I have updated the documentation. (e.g. README.rst)

close #182

@niteshsinha17 niteshsinha17 self-assigned this Jun 10, 2021
@niteshsinha17
Copy link
Member Author

@nemesisdesign and @atb00ker I have made some changes in ci because it was not installing the correct version of utils and users so tests were falling. But that was not an issue.

Problem is that menu element is getting registered twice at the same position from users during the test. Please check test's output. Do you have any idea why it's happening? I am facing the same issue with controller.

Copy link
Member

@nemesifier nemesifier left a 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.

Copy link
Member

@atb00ker atb00ker left a 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:

  1. [chores] Minnor changes -> [chores] Minor changes
  2. Do we want to merge this to master or create a branch? @nemesisdesign

@atb00ker
Copy link
Member

Hey @niteshsinha17 commit messages are not fixed as per the last review, do you need help with it?

@niteshsinha17 niteshsinha17 force-pushed the issues/182-restyle-notification-widget branch from f430a1f to 86529ce Compare June 19, 2021 14:08
@niteshsinha17
Copy link
Member Author

Hey @niteshsinha17 commit messages are not fixed as per the last review, do you need help with it?

Thanks, I have changed them. 😄 I thought you were saying about the typo that I should not repeat.

Copy link
Member

@atb00ker atb00ker left a 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. 😄

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
Copy link
Member

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.

Copy link
Member

@atb00ker atb00ker left a 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:

Design:
designed-btn

What I see:
btn-dont-match

There is a significant UI & it's feel difference, honestly, I don't mind either but am I even checking the correct thing?

  1. The buttons in the currently visible section is too large, can we make them smaller please?
  2. Can we hide these buttons when there are no new notifications in the new design?

@niteshsinha17
Copy link
Member Author

@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.

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?

It was already implemented in that way. Should we change it?

@atb00ker
Copy link
Member

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! 😄
We can create a seperate issue for it and tackle on low priority later on, sounds good? 😄

@niteshsinha17
Copy link
Member Author

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!
We can create a seperate issue for it and tackle on low priority later on, sounds good?

Yes, It's a good idea. I will open an issue for it.

Copy link
Member

@nemesifier nemesifier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please ensure z-index is correctly set, otherwise map tiles can cover the notification widget:

Screenshot from 2021-07-03 16-46-30

{% unread_notifications %}
</div>
{% csrf_token %}
{% notification_toast %}
{% notification_widget %}
{% endblock %}

{% endblock %}
Copy link
Member

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!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you 😄

Copy link
Member

@atb00ker atb00ker left a 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! 👍

Copy link
Member

@nemesifier nemesifier left a 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.

Copy link
Member

@nemesifier nemesifier left a 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?

Copy link
Member

@nemesifier nemesifier left a 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?

@niteshsinha17 niteshsinha17 force-pushed the issues/182-restyle-notification-widget branch from 2fc752d to 9129c2d Compare July 27, 2021 18:18
@niteshsinha17 niteshsinha17 force-pushed the issues/182-restyle-notification-widget branch from 9ec8359 to 587f960 Compare July 30, 2021 03:13
@nemesifier nemesifier merged commit b0b5522 into master Aug 1, 2021
@nemesifier nemesifier deleted the issues/182-restyle-notification-widget branch August 1, 2021 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ux] Restyle notification widget
3 participants