UI enhancement

This commit is contained in:
debu-2 2026-10-03 22:45:46 +05:30
parent 53922952c6
commit 1a15409b2d
6 changed files with 295 additions and 214 deletions

View file

@ -173,6 +173,7 @@ export default function MailboxView({
starred: emails.filter((email) => email.is_starred).length,
important: intel.important,
drafts: 0,
actionItems: intel.actionItems,
labels: labelCounts(emails),
});
}, [emails, onStats]);
@ -586,10 +587,8 @@ export default function MailboxView({
>
<Icon size={16} strokeWidth={1.75} />
<span className="mailbox-category-label">{name}</span>
{name !== "All Mail" && (
<span className={`mailbox-category-count${counts[name] > 0 ? "" : " muted"}`}>
{counts[name] || 0}
</span>
{name !== "All Mail" && counts[name] > 0 && (
<span className="mailbox-category-count">{counts[name]}</span>
)}
</button>
))}
@ -696,6 +695,15 @@ export default function MailboxView({
const email = listedEmails.find((item) => item.id === emailId);
if (email) openEmail(email);
}}
onAgentAsk={(query) => {
setAgentFocus("");
runInsight({
title: "Your question",
summary: query,
details: ["Scanning loaded messages for relevant context"],
actions: ["Summarize matching threads", "Draft a reply", "Find related emails"],
});
}}
/>
<StickyNotesPanel compact contextEmail={detail} />
</aside>