Skip to content

fix(contacts): edit contact field in a compact popover - #1665

Merged
sung17 merged 1 commit into
mainfrom
fix/contact-field-edit-popover
Nov 7, 2026
Merged

sung17 merged 1 commit into
mainfrom
fix/contact-field-edit-popover

Conversation

@sung17

@sung17 sung17 commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Editing a contact field in the inbox contact panel opened an oversized dialog (lg:max-w-5xl) for a single input. It now opens a compact 400px popover anchored to the clicked field.

Changes

  • apps/builder/src/features/contacts/edit-contact-field.tsx: swap Dialog for Popover (PopoverContent with anchor, w-[400px], max-w-[calc(100vw-2rem)], max-h-[80vh] scroll). The title shows the field label. Save/delete/cancel logic is unchanged.
  • apps/builder/src/features/contacts/contact-detail.tsx: store the clicked button as the popover anchor; clear it together with the selected field on close.

Test plan

  • pnpm lint
  • pnpm --filter builder check-types
  • Inbox → contact panel: click a field → popover opens next to it, saves and closes
  • Custom field delete button still works
  • Date/time and select fields: picking a value inside the picker does not close the popover

🤖 Generated with Claude Code

Replace the oversized dialog used to edit a contact field in the inbox
contact panel with a 400px popover anchored to the clicked field.
@github-actions github-actions Bot added the bug Something isn't working as expected label Nov 7, 2026
@sung17
sung17 merged commit 8dd37ab into main Nov 7, 2026
14 checks passed
hello-jackytruong referenced this pull request in hello-jackytruong/ChatWorkAI Nov 22, 2026
Replace the oversized dialog used to edit a contact field in the inbox
contact panel with a 400px popover anchored to the clicked field.

Co-authored-by: Deathgiver <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant