Uh oh!
There was an error while loading. Please reload this page.
Replace OC.Notification with toastify js - #15124
Conversation
rullzer
commented
Apr 16, 2019
So the design team has to decide of course. But I'm not 100% convinced having it on the bottom is the best. All our notifications etc are on the top so that is where people look. Maybe adding it just blow the header makes more sense? |
rullzer
commented
Apr 16, 2019
Of course visually this looks a lot better than the 1990 style we had before. |
stefan-niedermann
commented
Apr 16, 2019
I think it is hard to distinguish from the other content. Maybe use a contrast color (white on dark background on normal, and dark on white background on dark theme)? |
MorrisJobke
commented
Apr 16, 2019
See the last open checkbox ;) It should be moved to the top right. |
juliusknorr
commented
Apr 16, 2019
A full colored background is a bit to much I think, but I've increased the box shadow visibility a bit (see the updated screenshot in the first post)
Done 😉 |
8ca1804 to
348e589Comparejancborchardt
commented
Apr 16, 2019
Top right is indeed much better, that’s where all the "meta / organizational" stuff is. :) And it looks really really nice! Props @juliushaertl! The only thing I can find is that the x icon is not our |
juliusknorr
commented
Apr 16, 2019
No reason, I can adjust that as well. |
348e589 to
ca97368Comparejuliusknorr
commented
Apr 16, 2019
@jancborchardt Thanks for the hint, pushed with the proper close icon |
Uh oh!
There was an error while loading. Please reload this page.
skjnldsv
left a comment
There was a problem hiding this comment.
Having the mouse over the notification should prevent it from disappearing I think. If you're reading something long and it disappear, you're confused :)
juliusknorr
commented
Apr 16, 2019
I'll see, but we probably need to fix that upstream. |
BrookeDot
commented
Apr 17, 2019
I agree, I struggle from a bit of dyslexia and often find myself highlighting text to help me read it and sometimes reading takes a bit longer than "average". Having a notification disappear while reading it can be quite frustrating. Especially if there's not an easy way to get it back.
I have opened up apvarun/toastify-js#21 upstream so we'll see if this feature can get added. If not, perhaps I can recommend not setting the timeout at all. |
skjnldsv
commented
Apr 17, 2019
@BrookeDot Thanks a lot for that! 🚀 |
skjnldsv
commented
Apr 18, 2019
Opened PR: apvarun/toastify-js#22 |
karlitschek
commented
Apr 24, 2019
I like it. Looks more modern |
juliusknorr
commented
May 22, 2019
I would also be happy with just ignoring the hide method and have a default timeout of 30s for notifications that were called without a timeout though the legacy API. |
jancborchardt
commented
May 28, 2019
Just to clarify: This issue does not happen when using this new notification API? Cause a defaut timeout for notifications has a big issue in that people don’t necessarily check the screen or tab all the time, and they might miss a notification. Also, do these notifications have a close button so you can close them before the 30s? |
66bbf67 to
f41e539Comparejuliusknorr
commented
Jun 5, 2019
The new API has a default timeout as I would consider those notifications to be more temporary than permanent.
I have now also rebuild the old OC.Notifiation.hide() method, so the behavior on the old API should be complete. The only thing that has changed is the fallback if no notification to hide was provided. In that case we do nothing now, as there was a warning logged for quite some time and just removing the first notification doesn't seem to be a good fallback to me. Let's see if the tests are happy. |
juliusknorr
commented
Jun 6, 2019
🎉 Tests are happy again. @skjnldsv@ChristophWurst Mind to have another look? |
skjnldsv
commented
Jun 6, 2019
Looks all good to me :D |
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
6d519df to
d95ef2cComparejuliusknorr
commented
Jun 7, 2019
Done 🚢 |
danxuliu
commented
Jul 11, 2019
@juliushaertl There is a mismatch in the options received by OC.Notification and OCP.Toast: OC.Notification uses isHTML, while OCP.Toast uses showHtml. Either |
LinneyS
commented
Sep 27, 2019
If you scroll down the page, the message is not visible under the header |
ChristophWurst
commented
Sep 27, 2019
Please open a new ticket. |
Should be fixed already #17110 |

This is a PoC pull request for #13423 to make error messages that are sent though OC.Notification more obvious and visually appealing.
Feedback is welcome @nextcloud/designers
Note that the current OC.Notification.show OC.Notification.showTemporary continue to work, but the toastify lib adds additional types (error,warning,success,info) to give a visual hint about the type of message.
ToDo as from #13423: