Skip to content

Bug: contact "New email" lands on the Inbox empty state when no mailbox is connected — compose intent silently dropped #2641

Closed

Description

@yannickmonney

Problem

The contact row action New email navigates to /conversations/open?compose=new&composeContact=<id>. When the org has no email automation installed, that page renders only the "Set up your Inbox" empty state — the compose parameters are silently ignored. The user's action produces no acknowledgement, no compose dialog, no "connect a mailbox to email Ada" guidance, and the intent (which contact to email) is lost even if they then set up a mailbox via the offered "Browse automations" link.

Current behaviour

Repro (2026-07-11, main @ 94ef84e, org without a mailbox):

  1. Contacts → row ⋮ → New email.
  2. URL becomes /conversations/open?compose=new&composeContact=ns7…; the page shows only "Set up your Inbox — Install an email automation (Gmail, Outlook, or IMAP)…". Nothing references the contact or the attempted compose.

Code pointers

  • app/features/contacts/components/contact-row-actions.tsx:55 — sets search: { compose: 'new', composeContact: contact._id }
  • app/features/conversations/components/conversations.tsx:69-70,120,545 — composeContact prop consumed only when the inbox is set up (initialContactId)
  • app/routes/dashboard/$id/conversations.tsx:134

Proposed change

When compose params arrive and no mailbox exists, say so: keep the setup empty state but add a contextual notice ("To email {contact}, first install an email automation") and preserve the compose intent through setup — or disable "New email" on contacts with a tooltip while no mailbox is connected.

Acceptance criteria

  • Clicking New email without a mailbox produces visible, contact-specific guidance (no silent param drop)
  • The compose intent survives mailbox setup (or the action is disabled with an explanatory tooltip)
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