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

#663 notifications - layout only #934

Closed
wants to merge 12 commits into from

Conversation

sandrina-p
Copy link
Contributor

@sandrina-p sandrina-p commented May 30, 2020

Starting #663

83329066-1a0fa280-a27f-11ea-9882-056ca1c59245

What's done:

  • All the layout with dummy data. Focus only on its visual aspect. Don't expect any info to be correct (e.g. names, avatars, dates, etc...) That's for another PR.

Notes:

  • For now, the dummy data is based on the number of members in a group:
    • 1 member: No notifications.
    • 2 members: 1 notification.
    • +2 members: 7 notifications.
  • @mmbotelho I left some questions in Figma about the layout. Once answered, I'll update this PR.
  • @mmbotelho, if you use the keyboard to open/navigate through the notification card, eventually the close button will show up (similar to the profile card). But its placement is not the best one. What do you suggest?
  • Ignore all the code related to logic. That's for another PR.
  • I think we should do two video calls about this topic:
    • Review each notification message in detail (copy, type, icons, etc...) and analyze possible technical restrictions for the prototype.
    • Discuss the notification system architecture (logic, backend, etc...)

Bugs found (to be fixed in other PR):

  • Open the notifications card/modal, click "Settings". The User Settings modal won't open at the "Notifications" section.

@sandrina-p sandrina-p force-pushed the task/663-notifications_layout branch 2 times, most recently from d517868 to 3d8db02 Compare May 31, 2020 09:48
Copy link
Collaborator

@mmbotelho mmbotelho left a comment

Choose a reason for hiding this comment

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

Here's what I found @sandrina-p :

Captura de ecrã 2020-06-10, às 17 40 24

Captura de ecrã 2020-06-10, às 17 42 04

Captura de ecrã 2020-06-10, às 17 55 17

Captura de ecrã 2020-06-10, às 18 20 57

@mmbotelho
Copy link
Collaborator

@mmbotelho I left some questions in Figma about the layout. Once answered, I'll update this PR.

I looked at Figma and I believe I answered everything. Let me know if I missed something!

@mmbotelho, if you use the keyboard to open/navigate through the notification card, eventually the close button will show up (similar to the profile card). But its placement is not the best one. What do you suggest?

I suggest leaving it as it is (as a fallback) but having the ESC key closing the popup as well.

Review each notification message in detail (copy, type, icons, etc...) and analyze possible technical restrictions for the prototype.
I'm not sure if you saw this, but I made a table with all the messages I could think of. Let me know what's missing! We can also schedule a call, whatever works best for you!

@sandrina-p
Copy link
Contributor Author

@mmbotelho

  • Extra gray spaces fixed. This was a tricky one to understand. It's the scrollbar, visible by default (I forget that this is the default setting on windows). Now, all scrollbars should be hidden when not needed.
  • Alignments fixed.
  • Yes, I saw that list and I still think it's incomplete or it should have a new review. For example "Pending payment confirmations" does not make sense anymore. And maybe some of these notifications should be similar to the emails list... Anyway, that's not for this PR. This is just dummy layout for now. Later, when @taoeffect has more time, we can talk about this.

@@ -110,7 +110,8 @@ export default {
this.content = null
this.contentProps = {}
// Refocus on button that open the modal
this.lastFocus.focus()
// TODO/BUG It might not exist... (e.g. profile card was closed). What's the best approach then?
Copy link
Collaborator

Choose a reason for hiding this comment

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

The focus should be on the button that open the modal. In case of modal opening a modal, meaning that the last focus element is not present, the best approach I guess is to focus on the button that open the first modal. We can do that by recording the previous focused element if the last one doesn't exist. Or a simpler solution is to go back to the first focusable element in the page

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here the trick is the profile|notifications cards. For example, clicking "Remove Member" in the profile card, it opens the modal and closes the card. This means that this.lastFocus does not exist anymore. When we close the modal, it will go back to the top of the page because of that. But it should go back to the respective user in the members' list.
I didn't find any clean way to fix this... but I'll keep in the back of my head

@mmbotelho
Copy link
Collaborator

Yes, I saw that list and I still think it's incomplete or it should have a new review. For example "Pending payment confirmations" does not make sense anymore.

@sandrina-p you're right! My bad, I forgot a lot of things changed since I wrote that list! Definitely needs to be reviewed

@sandrina-p
Copy link
Contributor Author

Okay, @mmbotelho. Later in the road, maybe after #916 and #918 are merged, we can discuss this again. ATM we are already stretching our "multi-tasking work" with too many tasks at the same time.

@sandrina-p sandrina-p force-pushed the task/663-notifications_layout branch 2 times, most recently from 01b3318 to 10bd9ee Compare June 16, 2020 08:11
@mmbotelho
Copy link
Collaborator

I agree @sandrina-p !

@mmbotelho mmbotelho self-requested a review July 20, 2020 14:44
Copy link
Collaborator

@mmbotelho mmbotelho left a comment

Choose a reason for hiding this comment

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

Only 2 things missing:

Captura de ecrã 2020-07-20, às 14 49 46

Copy link
Contributor

@thesoftwarephilosopher thesoftwarephilosopher left a comment

Choose a reason for hiding this comment

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

Found the fix to the alignment issue above. Otherwise, looks good!

@taoeffect
Copy link
Member

taoeffect commented Sep 22, 2020

Closing in favor of squashed version #995. Review continues there and the PR will be picked up by @F1LT3R.

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.

5 participants