-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Optimize header #4102
Optimize header #4102
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4102 +/- ##
============================================
- Coverage 54.18% 54.03% -0.15%
Complexity 21640 21640
============================================
Files 1327 1268 -59
Lines 82791 75527 -7264
Branches 1312 0 -1312
============================================
- Hits 44859 40810 -4049
+ Misses 37932 34717 -3215
|
The notifications doesn't appear anymore when I execute: |
@michaelletzgus didn’t check yet but it’s a good initiative! cc @nextcloud/designers for review. @michaelletzgus please make sure that it also works well on mobile (narrow screens) and maybe also check out #301 (proposal for non-blocking notifications) |
c53ed5b
to
5cc0985
Compare
2659a5f
to
68c9d75
Compare
Just checked and this will definitely create issues with the apps being in the header. It’s strange to push the app list away just to show a notification. It’s basically the same issue of overlaying again, but even worse :\ |
The current version in my branch is "under construction". My current goal is to create a (modal?) overlay |
98eb433
to
3540dbf
Compare
The notification bar now collapses into a screen centered popup at width<680. Question: Should ALL notifications be shown in a popup - even with wide screen? Or should they stay in the header? |
3540dbf
to
a22fbc0
Compare
}); | ||
$row.addClass('closeable'); | ||
} | ||
// // add a close button |
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.
No need to double comment :D
core/templates/layout.user.php
Outdated
$(document.createElement( "button" )).click(function(){ OC.Notification.show('Hello - I am a notification') }).appendTo($('#header-left')).html("B1"); | ||
$(document.createElement( "button" )).click(function(){ OC.Notification.showHtml('Hello - I <b>am</b> a very very <i>loooooong</i> <u>HTML noooooooooooootification</u>....................') }).appendTo($('#header-left')).html("B2"); | ||
$(document.createElement( "button" )).click(function(){ OC.Notification.showTemporary('temp. notification',{timeout:2}) }).appendTo($('#header-left')).html("B3"); | ||
</script> |
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.
Please remove debug code and just put it in the description. Everybody can then execute it themselves in the web dev console.
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
Now the notifications are even more intrusive than before though. :\ And on the top they are not centered really. To be honest, we want to get rid of most notifications in apps because they are just used as an easy way out but are not very nicely designed. It’s better to do it with But maybe we find a nice way to display them in the header, maybe even in combination with the Notifications app https://github.com/nextcloud/notifications – where some of these notifications are maybe better put. cc @nextcloud/designers |
Of course it's not centered on screen because the free space in the header isn't. |
a22fbc0
to
8e4f783
Compare
@michaelletzgus it would be a bit nicer to have a solution where the notification appears in a place which is consistent. It’s strange when it moves depending on other circumstances. Did you consider showing it below the header bar? |
17355fc
to
2ca2e76
Compare
A consistent place would be nice - but below the header just moves the "invasive overlay problem" from the header a few pixels to the bottom.
I think everything that can NOT be safely ignored (configuration problems, security problems, major (minor?) server updates, app updates are important and might be invasive/modal... |
2ca2e76
to
fbf6a67
Compare
e589d0c
to
b5b4e0b
Compare
* Optimize header, introduce header-center, place notifications in it * Please ignore colors, will be removed in final version * Add buttons for testing * Always show the closing "x" * Center notification on small screens Signed-off-by: Michael Letzgus <[email protected]> kk
b5b4e0b
to
4f24a0a
Compare
A new version being available for example.
A bit, in the style that they are now, with a notification up top. They shouldn’t just be in the Notification app, should they @LukasReschke @nickvergessen?
Definitely not.
Anything like that should be displayed inline, not as a notification and especially not as a modal. What do you think @nextcloud/designers? |
The header notifications are e.g. failed upload attempts via the web UI. |
I would not say, that this specific case is so important. A new version is fine to have in the notifications area. I would only like stuff in this direct notification on the top for stuff that just happened. But the more I think about use cases the more it feels wrong to have this here. It's just a generic and ugly approach to handle feedback for the user, but actually it shouldn't be done like it is now. Some examples:
The more I think about this, the more I think we should get rid of OC.Notifications and either use our notification center (for state of the instance, state of a user) or inline feedback/inline actions for stuff that just happened (like error handling and undo actions). Opinions @nextcloud/designers ? |
@MorrisJobke yep, totally agree. As I said above:
And everything which doesn’t work via emptycontent or inline, is probably best in the Notifications app (like a new version being available). |
So, we should therefore collect occasions where this nasty notification is still used and step by step remove it by putting custom notifications close to the context. Closing, as it is a fix for a symptom, not for a cause. But thanks for kickstarting the discussion @michaelletzgus |
Idea: Stop notification from overlapping everything else:
Is this something worth finishing?