Skip to content

Bug: Contact edit dialog silently refuses to save when Name is empty — no error message; import happily creates name-less contacts #2640

Closed

Description

@yannickmonney

Problem

Two halves of the same inconsistency:

  1. Manual import accepts contacts without a name (email alone is a valid line), but the Edit dialog marks Name as required — so a name-less imported contact can't be edited (e.g. just to add a phone) without inventing a name.
  2. When Save is clicked with the empty required Name, the dialog shows no error whatsoever — it stays open and moves focus to the Name field. No inline message, no toast. Users are left guessing why nothing happened.

Current behaviour

Repro (2026-07-11, main @ 94ef84e):

  1. Contacts → Import contacts → Manual entry → paste [email protected] → Import. Row created with empty Name.
  2. Row ⋮ → Edit → add Phone +1 555 0100 → Save enables (dirty-check) → click Save.
  3. Dialog stays open, focus jumps to Name, zero visible feedback. (Screenshot on file: contacts-edit-silent-validation.png.)
  4. Type any name → Save succeeds.

Code pointers

  • app/features/contacts/components/contact-edit-dialog.tsx — required-Name validation with no rendered error state
  • app/features/contacts/components/contacts-import-dialog.tsx + app/hooks/use-file-import.ts — import path that allows empty names

Proposed change

Render field-level validation errors in the edit dialog (localized), and make create/edit agree on whether Name is required — either require it at import too, or allow empty names in edit.

Acceptance criteria

  • Saving with an empty required field shows a visible, localized inline error
  • Import and edit enforce the same Name rule
  • Component test covers the empty-name save path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority: mediumservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions