nextcloud / nextcloud/contacts

Show name even if FN vCard field is missing

Open
#2,693 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop enhancement
Dominant language
JavaScript
Stars
642
Forks
220
Avg merge
14h 39m
Merged PRs (30d)
51

Description

Is your feature request related to a problem? Please describe.

After exporting my contacts from some other service (I think Outlook or Thunderbird), for half of my contacts the vCard FN field (which is mandatory according to the RFC https://datatracker.ietf.org/doc/html/rfc6350#section-6.2.1) was missing while importing (not Nextclouds fault). I never noticed that issue in other programs, since they substituded a missing FN vCard fields with the N field. In Nextcloud's case they get shown as the space character.

Describe the solution you'd like

Show a concatenation of the N field as contact name, even if FN is missing.

Describe alternatives you've considered

Automatically create a FN field out of N fields, this could however introduce unwanted display of names.

Additional context

After the import my contact list looks like this:

image

(Yes those are all contacts and they show the first/last name fields upon opening)

I could probably try to implement this if this is a feature that would be requested.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by tracing the contact list rendering and vCard import handling, then reproduce the case where FN is absent but N is present. Done means such contacts display a concatenated N value instead of a blank or space character, without requiring creation of a new FN field.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.