feat: add email tag input functionality to HITL edit panel

- Updated the HITL edit panel to support multiple email inputs using a tag input component.
- Modified the ExtraField type to include "emails" as a valid type.
- Enhanced the Gmail draft creation process to utilize the new email input format for "To", "CC", and "BCC" fields.
This commit is contained in:
Anish Sarkar 2026-03-20 22:46:49 +05:30
parent 282e913c50
commit b4309f13be
5 changed files with 105 additions and 16 deletions

View file

@ -225,9 +225,9 @@ function ApprovalCard({
onClick={() => {
setIsPanelOpen(true);
const extraFields: ExtraField[] = [
{ key: "to", label: "To", type: "email", value: pendingEdits?.to ?? args.to ?? "" },
{ key: "cc", label: "CC", type: "email", value: pendingEdits?.cc ?? args.cc ?? "" },
{ key: "bcc", label: "BCC", type: "email", value: pendingEdits?.bcc ?? args.bcc ?? "" },
{ key: "to", label: "To", type: "emails", value: pendingEdits?.to ?? args.to ?? "" },
{ key: "cc", label: "CC", type: "emails", value: pendingEdits?.cc ?? args.cc ?? "" },
{ key: "bcc", label: "BCC", type: "emails", value: pendingEdits?.bcc ?? args.bcc ?? "" },
];
openHitlEditPanel({
title: pendingEdits?.subject ?? (args.subject ?? ""),