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

feat(contactsmenu): Show user status #40852

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

ChristophWurst
Copy link
Member

@ChristophWurst ChristophWurst commented Oct 10, 2023

Summary

Show the user status for system contacts if they have a status set. Show the email address otherwise.

Before After
Bildschirmfoto vom 2023-10-17 13-18-45 Bildschirmfoto vom 2023-10-18 20-33-12

TODO

  • ...

Checklist

@ChristophWurst
Copy link
Member Author

requesting early design review based on the before/after screenshots

I think the feature is done. I only have to adjust/write tests

Copy link
Member

@nimishavijay nimishavijay left a comment

Choose a reason for hiding this comment

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

Looks good! small cosmetic changes:

  • "Show all contacts" remove ellipsis and text in bold so it looks like a button
  • size of avatar could be 44px (ignore if already the case, it looks smaller than 44px to me)
  • increase space between avatar and text by 2px
  • decrease space between main text and subline by 2px
    Basically similar to the styling of a list item in, for eg. the contacts app.
    image
  • Also, if clicking on the item opens the profile anyway, I'd say we don't need a separate profile button, it could just be a 3 dot menu

@ChristophWurst
Copy link
Member Author

ChristophWurst commented Oct 18, 2023

Also, if clicking on the item opens the profile anyway, I'd say we don't need a separate profile button, it could just be a 3 dot menu

Do you want me to remove the profile action or just move it into the actions menu? The profile is an action like the others, but it has higher priority. The first action in inline and in many cases that is the profile action.

@nimishavijay
Copy link
Member

Do you want me to remove the profile action or just move it into the actions menu?

Ah okay, I understood, so for emails that would be a mail action?

How about we make Talk the priority action and keep profile in the 3 dot menu. That way, when you open the contact search you see users whom you can Talk to and email addresses that you can send mails to, and if you click on the user you would go to their profile anyway.

My idea is that you are probably looking for a contact to do something specific like chat or email more than view the profile. What do you think?

@ChristophWurst
Copy link
Member Author

I'm fine with either. You decide.

We don't have to change this here, though. The sole goal of this PR is to add the status line :)

Copy link
Member

@jancborchardt jancborchardt left a comment

Choose a reason for hiding this comment

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

Looks nice! :) I’d agree with @nimishavijay that having "Talk" as the primary action makes more sense as it’s a more direct action.
However then clicking the name/status part of the person should do the same to not have 4 different click areas (avatar, name, action icon, action menu), and "Profile" has to be put into the action menu – so your call if this should be in here or in a separate pull request @ChristophWurst.

@ChristophWurst
Copy link
Member Author

Let's do these changes separately 👍

@solracsf solracsf added this to the Nextcloud 28 milestone Oct 27, 2023
@ChristophWurst ChristophWurst added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Oct 27, 2023
@ChristophWurst ChristophWurst marked this pull request as ready for review October 27, 2023 07:51
Copy link
Member

@nickvergessen nickvergessen left a comment

Choose a reason for hiding this comment

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

Only checked PHP

@ChristophWurst ChristophWurst removed the 3. to review Waiting for reviews label Oct 31, 2023
@ChristophWurst ChristophWurst added the 4. to release Ready to be released and/or waiting for tests to finish label Oct 31, 2023
@ChristophWurst
Copy link
Member Author

Red CI unrelated. Cypress is random and postgres timed out.

@ChristophWurst
Copy link
Member Author

I hovered the button to stop automerge and when I clicked the page jumped and my click went to the upate button. Great. Just four more hours.

@Pytal Pytal force-pushed the feat/contactsmenu/user-status branch from 5f44e85 to ac168cf Compare October 31, 2023 18:53
@skjnldsv skjnldsv mentioned this pull request Nov 1, 2023
@ChristophWurst ChristophWurst merged commit adc9f64 into master Nov 1, 2023
49 of 50 checks passed
@ChristophWurst ChristophWurst deleted the feat/contactsmenu/user-status branch November 1, 2023 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish feature: contacts menu feature: status pending documentation This pull request needs an associated documentation update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants