-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Show status instead of email in contacts/people menu #40559
Comments
@jancborchardt @marcoambrosini @nimishavijay could you create a mockup for this? Should the menu also show the user online status (green dot etc)? |
Medium-size technical barrier for this feature: https://github.com/nextcloud/server/blob/master/core/src/views/ContactsMenu.vue smells like a Vue components but the internals are still jquery and backbone server/core/src/views/ContactsMenu.vue Lines 57 to 59 in 5ddffcb
To not increase technical debt further I should probably rewrite the menu in Vue first. |
@jancborchardt I have looked into this problem already with my work on #40749. Unfortunately the height of the contact entries is not static. E.g. some entries have an email address, others have none. We'll have to see how that changes when we show the status. In the future we also want to show the latest message so there is another optional element :/ |
This can be handled just like in Contacts – the entries are the same height no matter whether there is a subline or not. The only difference is that if there is no subline, the main text is vertically centered. |
Alright, I'll add a minimum height. |
Just dumping my thoughts here. Adding status to contacts menu entries is doable with a small backwards-compatible API change. What's tricky is the change of sorting. Right now we read contacts from the contacts manager, which searches on the DB and knows a way to limit the number of results. We can't take that data, enhance it with status messages and sort again. We have to factor in status update time in the initial search. But that is not easy because of the identification mismatch between contacts (based on UUIDs, UID may be in the serialized vcf data) and statuses (based on Nextcloud user IDs). The two sources can't be joined on a database level. Maybe we can first ask user status to give us the x latest user ids. Then we use this UID array to make a contacts search on UID ( |
@jancborchardt do you have any requirements for the handling of contacts with statuses (aka system contacts) and other contacts? say on a small instance there are only three other family members and users. Should the contacts menu only show these three or should the rest of the contacts menu be filled with people from your personal address book? |
@jancborchardt would you say that emails should always be hidden or only if the contact is a user (system contact) and has a status? |
@ChristophWurst it would be nice if there is always a relevant subline, also to distinguish possible different people with the same name. And yes the email seems good for that for people from Contacts. :) |
Not sure if this is resolved already but we talked about this when we defined it, no? The contacts menu should show both, but prioritize system accounts. |
How to use GitHub
Is your feature request related to a problem? Please describe.
As a Nextcloud user I want to see what other people are doing. If I click the people menu (formerly known as contacts menu) in the top right I see the first x contacts sorted by their name. For each contact I see the email address.
Describe the solution you'd like
Remove the email address subline and show the user status instead. Sort the contacts by their last status update.
Work packages
Additional context
N/a
The text was updated successfully, but these errors were encountered: