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

Display Simplified Contact Names (First and Last Name Only) #1811

Open
mstolf opened this issue Oct 14, 2024 · 1 comment
Open

Display Simplified Contact Names (First and Last Name Only) #1811

mstolf opened this issue Oct 14, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@mstolf
Copy link

mstolf commented Oct 14, 2024

Is your feature request related to a problem? Please describe.
Currently, the system displays the full contact name (FN) as retrieved from the CardDAV server. This can be frustrating when the full name includes middle names, titles, or other information, making the contact list longer and more cluttered. Users may find it difficult to quickly identify contacts at a glance, especially when they only need to see the first and last names.

Describe the solution you'd like
I would like to have an option in the contact settings that allows users to display only the first and last names of contacts, instead of the full name (FN). This setting would parse the FN field and extract just the first and last name for display, simplifying the contact list view.

Describe alternatives you've considered
An alternative could be a more customizable display option where users can choose which parts of the name (e.g., first, middle, last, title) they want to see. However, a simple first and last name toggle would likely cover the needs of most users without overcomplicating the UI.

Additional context
The setting could be added to the existing contact settings menu (as shown in the attached screenshot). When enabled, the contacts list will show only the first and last name, helping users to quickly identify individuals while keeping the display clean and concise.

image

@the-djmaze
Copy link
Owner

Currently it uses

fullName: () => [this.namePrefix(), this.givenName(), this.middleName(), this.surName()].join(' ').trim(),
display: () => {
let a = this.fullName(),
b = this.email()[0]?.value(),
c = this.nickname();
return a || b || c;
}

But changing line 125 into the below might be better?

return c || a || b;

In this case the Nickname becomes first and you can put anything in there.
This also solves the issue where some people have the same first and last name (yes, i know a few)

@the-djmaze the-djmaze added the enhancement New feature or request label Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants