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

Improvements to collaboration UI #1510

Merged
merged 18 commits into from
Sep 29, 2021
Merged

Conversation

danilo04
Copy link
Contributor

@danilo04 danilo04 commented Sep 27, 2021

Fixes #1508

Fix

This PR adds a series of improvements asked in #1508. Those improvements include:

  1. Update the Collaborator UI to use a FAB to add new collaborators. This is more consistent with other parts of the UI (e.g. tags)
Empty List Collaborators List
image image
  1. Validate whether the user is trying to add their own email as a collaborator

image

Test

  1. Go to a note
  2. Tap on the menu on the top right corner (dot ...)
  3. Tap on collaborators
  4. Tap on Add Collaborator and type anything that is not a valid email. A message invalid collaborator should be shown.
  5. Write a valid email address and tap on Accept. Should update the layout to list of collaborators
  6. Tap on the cross icon to remove the collaborator. Should update the layout to show the initial message
  7. Tap on Add Collaborator and enter an email address from another valid Simplenote account
  8. The note should be shared with the other account
  9. Tap on Add Collaborator and enter your account's email. It should show the error message: You cannot add yourself as a collaborator

Review

Only one developer and one designer are required to review these changes, but anyone can perform the review.

Release

These changes do not require release notes.

@danilo04 danilo04 self-assigned this Sep 27, 2021
@danilo04 danilo04 added [Type] UX UX Improvement task This issue is some sort of task or a spike of time not directly related to a feature. [status] needs code review [status] needs design review labels Sep 27, 2021
@peril-automattic
Copy link

peril-automattic bot commented Sep 27, 2021

You can test the changes on this Pull Request by downloading the APK here.

@ParaskP7 ParaskP7 self-assigned this Sep 28, 2021
Copy link
Contributor

@ParaskP7 ParaskP7 left a comment

Choose a reason for hiding this comment

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

👋 @danilo04 !

I have reviewed and tested this PR as per the instructions, everything works as expected, good job! 🌟

I have left a test related question (❓), a suggestion (💡) and a few minor (🔍) comments for you to consider. I am going to approve this PR anyway, since none is blocking. I am NOT going to merge this PR yet to give you some time to apply any of my suggestions. However, feel free to ignore them and merge the PR yourself.

PS: I was seeing a lot of issues that could have been fixed prior creating a commit if maybe Reformat code, Rearrange code and Optimize imports were enabled. I am also not sure if your AS settings differ from mine. Can we sync on that so I can understand why that is indeed happening and maybe help you out avoiding those in the future?

@danilo04
Copy link
Contributor Author

Howdy 👋 @ParaskP7. Thanks for the review. Let me address your comments

PS: I was seeing a lot of issues that could have been fixed prior creating a commit if maybe Reformat code, Rearrange code and Optimize imports were enabled.

Definitely, I will enable these options because without it is it a lot of work to check that in every commit.

@SylvesterWilmott
Copy link

Looks good!

Just a couple of things:

  1. In the collaborators list, I think we can align the text in the rows to the left side of the screen instead of using the 72dp inset. This gives more space for the email addresses.
  2. For markdown enabled notes, the collaborators menu item should be available while in "preview" mode. Currently, it's only shown in the menu while in "Edit" mode.

@danilo04
Copy link
Contributor Author

danilo04 commented Sep 28, 2021

Hi @SylvesterWilmott, thanks for the review.

In the collaborators list, I think we can align the text in the rows to the left side of the screen instead of using the 72dp inset. This gives more space for the email addresses.

Fixed in 98189e5.

For markdown enabled notes, the collaborators menu item should be available while in "preview" mode. Currently, it's only shown in the menu while in "Edit" mode.

Fixed in 251e7e1.

@SylvesterWilmott
Copy link

Looks good! Thanks @danilo04

@danilo04 danilo04 added this to the 2.23 milestone Sep 28, 2021
Copy link
Contributor

@ParaskP7 ParaskP7 left a comment

Choose a reason for hiding this comment

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

👋 @danilo04 !

All LGTM, thanks for applying mine and Sylvester's suggestions, still approved on my part! 🥇

@danilo04 danilo04 merged commit d12ea32 into develop Sep 29, 2021
@danilo04 danilo04 deleted the issue/1508-improvements-collab-ui branch September 29, 2021 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[status] needs code review task This issue is some sort of task or a spike of time not directly related to a feature. [Type] UX UX Improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improvements to Collaboration UI
3 participants