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) => ( +
  • + +
  • + ))} +
+ )} +
+
+