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

[Feature] Show floating notification badge in small views #3921

Closed
wants to merge 3 commits into from
Closed

[Feature] Show floating notification badge in small views #3921

wants to merge 3 commits into from

Conversation

sharkykh
Copy link
Contributor

Just a small QoL thing...
Show a floating notification badge (for errors / warnings / news) on the navbar toggle button in when using small views such as mobile.

chrome_2018-03-26_20-47-10

Show a floating notification badge (for errors / warnings / news) on the navbar toggle button in when using small views such as mobile.
@codecov-io
Copy link

Codecov Report

Merging #3921 into develop will decrease coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #3921      +/-   ##
===========================================
- Coverage    29.37%   29.37%   -0.01%     
===========================================
  Files          274      274              
  Lines        35420    35421       +1     
===========================================
  Hits         10405    10405              
- Misses       25015    25016       +1
Impacted Files Coverage Δ
medusa/server/web/core/base.py 30% <0%> (-0.14%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update be28432...03ad813. Read the comment docs.

@@ -111,6 +111,7 @@ def __init__(self, rh, filename):
'newsBadge': '',
'toolsBadge': '',
'toolsBadgeClass': '',
'floatingMenuBadge': '',
Copy link
Collaborator

Choose a reason for hiding this comment

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

No new python vars please. This should be implemented client side.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you mean 'reading' the badge info from the tools badge and recreating it?

Copy link
Contributor Author

@sharkykh sharkykh Mar 27, 2018

Choose a reason for hiding this comment

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

I should be more specific - most all of the info needed to create a badge with the correct color is only server side (apart from the unread news count which is global (app.UNREAD_NEWS).

Copy link
Collaborator

Choose a reason for hiding this comment

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

I mean there should be no changes to the python code for any new ui changes. Everything should now be done client side. The badges and HTML that're currently handled server side like the ones above will all be removed very soon.

@@ -2843,6 +2843,20 @@ select,
padding: 0;
}

.floating-badge {
Copy link
Collaborator

Choose a reason for hiding this comment

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

No updating legacy please.

@sharkykh sharkykh removed their assignment Apr 22, 2018
@sharkykh sharkykh closed this Apr 22, 2018
@sharkykh sharkykh deleted the feature/mobile-floating-badge branch June 10, 2018 11:47
@sharkykh sharkykh mentioned this pull request Jul 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants