Refactor SendingAccordion with Contact Selection & Email Placeholder #227
Labels
Frontend
Frontend Related Issue
⚡Important
High-impact issue that needs to be resolved before the next release
New Feature
New feature to be implemented
Refactor
Code Improvement
Milestone
Improve the “SendingAccordion” so the user can realistically pick from an existing contact list (placeholder or real) and/or manually type in email addresses. Then send them the newly created link by calling a placeholder endpoint (e.g.
/api/documents/[documentId]/links/email
).Detailed Tasks
Fetch or Mock a Contact List
GET /api/contacts
orGET /api/documents/[documentId]/linkVisitors
for stored emails.Manual Email Entry
Send Action
handleSendInvites(linkUrl)
) that does:Typed Models
InviteRecipientsPayload
withlinkUrl: string
,recipients: string[]
.Integration
sendInvites: true
, we display theSendingAccordion
or integrated UI.Acceptance Criteria
Other Emails
.CreateLink.tsx
.Notes
sx
or small local components.visitorFields
keys, using typed forms & hooks, and a robust “SendingAccordion” for invites.The text was updated successfully, but these errors were encountered: