Skip to content

[Expert Finder] Multi-channel outreach completion - #980

Open
nicktytarenko wants to merge 1 commit into
mainfrom
expert-finder-multi-channel-outreach
Open

[Expert Finder] Multi-channel outreach completion#980
nicktytarenko wants to merge 1 commit into
mainfrom
expert-finder-multi-channel-outreach

Conversation

@nicktytarenko

Copy link
Copy Markdown
Member

What?

  • Automatically open the mark-as-sent modal when users click Send via Email, LinkedIn, or X
  • Allow marking outreach as sent across multiple channels
  • Remove notes and the Other channel option from the completion UI
image

@nicktytarenko
nicktytarenko requested a review from a team as a code owner July 31, 2026 20:24
@vercel

vercel Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
web Ready Ready Preview Jul 31, 2026 8:26pm

@sonarqubecloud

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 47a24231ec

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines 502 to +505
emailSubject={displaySubject}
emailBody={editBody}
emailBody={isDraftLike ? editBody : (email.emailBody ?? '')}
sources={email.sources}
onChannelOpened={openMarkSentConfirm}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Persist draft edits before marking sent

When a user edits a draft and clicks a Send button, this new callback opens the mark-as-sent modal after sending displaySubject/editBody, but confirming the modal only PATCHes status and channels in handleMarkSentSubmit. In that unsaved-edit path, the outreach is sent with the edited content but the refetch converts the page to read-only using the old stored subject/body, so the recorded sent outreach no longer matches what was actually sent; save or include pending edits before completing the send flow.

Useful? React with 👍 / 👎.

Comment thread types/expertFinder.ts
status: raw.status ?? 'draft',
notes: raw.notes ?? '',
channel: parseOutreachChannel(raw.channel),
channels: parseOutreachChannels(raw.channels),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve legacy channel values while reading responses

For existing sent outreach that still comes back with the pre-change singular channel field, this now parses only raw.channels, so the transformed email has no channels: the list/detail via badge disappears and updating channels from a sent record seeds an empty selection, letting a user overwrite the original channel with only the newly selected one. Please fall back to the legacy raw.channel value (and any historical values you still need to display) while keeping it out of the selectable completion options.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant