From 8d5451829f920002e9cfbd0787a20ec4dfce635e Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sun, 19 Apr 2026 20:12:05 +0000 Subject: [PATCH] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- .../quick-add/quick-add-call-log.tsx | 97 ++++++++++++++----- 1 file changed, 75 insertions(+), 22 deletions(-) diff --git a/src/components/quick-add/quick-add-call-log.tsx b/src/components/quick-add/quick-add-call-log.tsx index 709e414..7a9df58 100644 --- a/src/components/quick-add/quick-add-call-log.tsx +++ b/src/components/quick-add/quick-add-call-log.tsx @@ -249,28 +249,81 @@ export function QuickAddCallLog() {
- { - setContactId(id); - const c = contacts.find((x) => x.id === id); - if (c) { - if (!callerName) setCallerName(c.name); - if (!callerPhone && c.phone) setCallerPhone(c.phone); - } - }} - placeholder="Select contact or enter manually below" - searchPlaceholder="Search contacts…" - emptyText="No contacts found." - options={[ - { value: "", label: "— None —", keywords: "none" }, - ...contacts.map((c) => ({ - value: c.id, - label: c.phone ? `${c.name} (${c.phone})` : c.name, - keywords: `${c.name} ${c.phone ?? ""}`, - })), - ]} - /> + + + + + +
+ setContactQuery(e.target.value)} + placeholder="Type to search all contacts…" + className="h-8 text-sm" + /> +
+
+ {selectedContact && ( + + )} + {contactSearching ? ( +

Searching…

+ ) : contactResults.length === 0 ? ( +

+ {contactQuery.trim() ? "No matching contacts." : "Start typing to search."} +

+ ) : ( +
    + {contactResults.map((c) => ( +
  • + +
  • + ))} +
+ )} +
+
+