inbox streamlining
This commit is contained in:
parent
c26a8a2094
commit
f969cfed44
4 changed files with 382 additions and 104 deletions
|
|
@ -698,14 +698,24 @@ export default function MailboxView({
|
|||
error={detailStatus.error}
|
||||
busy={detailStatus.busy}
|
||||
mailbox={mailbox}
|
||||
viewerEmail={account?.email}
|
||||
threadSize={1}
|
||||
onClose={() => { setSelected(null); setDetail(null); }}
|
||||
onToggleRead={toggleRead}
|
||||
onToggleStar={(starred) => detail && toggleStar(detail, starred)}
|
||||
onTrash={() => mutateSelected(trashEmail)}
|
||||
onRestore={() => mutateSelected(restoreEmail)}
|
||||
onDelete={deletePermanently}
|
||||
onArchive={() => detail && hideForSession(detail, "Archived in this view until you refresh.")}
|
||||
onSpam={() => detail && hideForSession(detail, "Marked as spam in this view until you refresh.")}
|
||||
onSnooze={() => detail && hideForSession(detail, "Snoozed in this view until you refresh.")}
|
||||
onMove={() => setAgentFocus("Move and labels — coming soon.")}
|
||||
onReply={() => { onCompose?.(); setAgentFocus(detail?.subject ? `Reply: ${detail.subject}` : "Reply"); }}
|
||||
onForward={() => { onCompose?.(); setAgentFocus(detail?.subject ? `Forward: ${detail.subject}` : "Forward"); }}
|
||||
onExtractActions={() => detail && extractActions(detail)}
|
||||
onSummarizeThread={() => detail && summarizeThread(detail)}
|
||||
onAnalyzeAttachment={() => detail && analyzeAttachment(detail)}
|
||||
onDraftReply={() => detail && extractActions(detail)}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -715,6 +725,7 @@ export default function MailboxView({
|
|||
<AgAgentPanel
|
||||
account={account}
|
||||
emails={listedEmails}
|
||||
contextEmail={detail}
|
||||
focus={agentFocus}
|
||||
insight={insight}
|
||||
loading={status.loading}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue