-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add mobile notifications and adapt its design #1890
Conversation
Your Render PR Server URL is https://storage-ui-stage-pr-1890.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-c7q0b3vh8vl8rd7idq2g. |
Your Render PR Server URL is https://chainsafe-components-stage-pr-1890.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-c7q0b4fh8vl8rd7idqf0. |
Your Render PR Server URL is https://files-ui-stage-pr-1890.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-c7q0b57h8vl8rd7idqjg. |
I also realized that there aren't currently any options to cancel a plan change once you start the crypto payment process. I know the 60 minute timer eventually times out, but there's currently no way for the user to know that their plan status reverts to normal if they just wait (they might try to contact us). Is it possible to cancel it once we come back to Settings like below? If not, it may be worth it to put a message somewhere saying that the "Awaiting payment" status will go away. *Side note, this might sound like an edge case but I imagine some users might be curious to see what the crypto payment process looks like and not realize it triggers something |
I noticed something minor - when tapping to invoke the notification panel the icon turns blue but if you tap on the icon to dismiss the panel the icon remains blue until you tap the screen again elsewhere. I think the colour should update on the tap that hides the panel rather than on the proceeding screen tap after that action. screen-20220128-151516.mp4I also noticed the persisting notification count number but I'm guessing that's because the actual notification persists too, is this behavior is expected until / if we have a clear-all button on the panel? |
…-notif-mobile-1881
…-monorepo into mnt/tbaut-notif-mobile-1881
Thanks for the review, there's a lot to unpack here, I'll start with what I addressed:
We were using a button so far, and this was somehow the standard behavior for buttons, linked to our "focus" styling.
I've a hard time reproducing, but I think I fixed it by removing the transition, can you check?
That should be fixed now
This is not something I've set here, since I only took a particular care about mobile notifications. As Andrew mentioned, this is indeed something that we want, since this notification is very important. Unless you pay or let the 60min go by, you won't be able to dismiss it!
You can login with another user to have no notification again
So the second "go back" is to close the "add card" section. We should find a better wording, but they are different.
This is also a conversation that should be had outside of this PR, since it's not related 😄 |
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.
Code looks spotless 💯
I would suggest a few style changes regarding the notification dropdown itself.
- remove the left side padding, the notification text should align with
This week
heading. - Allow enough space for the space for the "time" text
- Time text should also be right aligned.
One functionality update on my mind. I expect the notification dropdown to close when I click on a notification for example to go to the billing page.
We can add a closeOnClick: boolean
key to the notification object.
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.
great stuff @Tbaut 🎉
I'm still seeing a difference in behavior between this notification icon and the buttons to the left of it. If you see the way to "start a team" button works - it stays blue whilst the dialog is in view but the blue background disappears when the modal is dismissed, this is what I had in mind for the notification icon and panel (sorry, I know this sounds nitpicky but thought consistency is best). Screen.Recording.2022-01-31.at.10.13.07.AM.mov |
Sure, because now it's not a button any more. A button remains in focus when you click it, until you click away. This is exactly what you do in the video above. And this was also the original issue you mentioned, that made me change the behavior.
All in all, I'm not sure what's better, the current (non button) or if I should revert. I'd be willing to forget about the confusion it creates, as small as it can be. In any case what we see is the normal behavior of a button.. and a confusion created by the fact that we have a focus looking the same as a hover. I believe we did this for the login originally, but that's another story. |
agreed with your comments @tanmoyAtb I changed the padding to stick to the design (so I added a padding to the time header), aligned the time right, and leveraged the |
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 good to go to me
Co-authored-by: Tanmoy Basak Anjan <tanmoy3399@gmail.com>
@Tbaut 👍 Ok, sorry to cause any confusion over something so minor. Happy to go with whatever you deem best either the current way or revert back to a button. |
I achieved what is IMHO good UX, at the cost of a somewhat more complex dropdown component though. I'd need an ack from @tanmoyAtb or @FSM1 before merging just for sanity and making sure we agree on the approach. active-notif.mp4 |
The hack looks sane to me. Keeping a state to know the dropdown is open or not looks like the straight forward approach. 👍 |
closes #1881
Did my best to stick to it the mock. there might be slight differences like shadows on the notification button (the mock has some, not mine), or on the notification panel (the mock doesn't have any, mine has some). But those are deliberate to keep consistency for the buttons, and to show that the notification panel is above the rest, otherwise it wasn't clear IMHO. Also I did not expand the notification panel all the way so that it's easier to click out. lmk your thoughts.
ping @serenaho if you want to play with it as well and tell me what I forgot/missed.
How to get a notification:
Submission checklist:
Layout
Theme