diff --git a/src/components/search/AdvancedSearch.tsx b/src/components/search/AdvancedSearch.tsx index 25ce801e5..f635df757 100644 --- a/src/components/search/AdvancedSearch.tsx +++ b/src/components/search/AdvancedSearch.tsx @@ -11,6 +11,7 @@ import { useSearch, type SearchResult } from "@/hooks/common"; import type { VoiceAgentAction } from "@/hooks/voice/types"; import { useToast } from "@/hooks/ui"; import { useProductAnalytics } from "@/hooks/products"; +import { useSpeechRecognition } from "@/hooks/intelligence"; const LazyVoiceOverlay = lazy(() => import("./VoiceSearchOverlayConnected")); @@ -50,6 +51,9 @@ export function AdvancedSearch({ onSearch, onVisualSearchResults, className }: A const inputRef = useRef(null); const dropdownRef = useRef(null); + // Voice support detection + live listening state (overlay drives the actual agent) + const { isListening, transcript, isSupported: isVoiceSupported } = useSpeechRecognition(); + // Voice agent (ElevenLabs + AI) const handleVoiceAction = useCallback((action: VoiceAgentAction) => { switch (action.action) { diff --git a/src/pages/collections/CollectionsPage.tsx b/src/pages/collections/CollectionsPage.tsx index 723f2b709..94470da1d 100644 --- a/src/pages/collections/CollectionsPage.tsx +++ b/src/pages/collections/CollectionsPage.tsx @@ -56,7 +56,7 @@ export default function CollectionsPage() { selectedCollectionIds, hintDismissed, setHintDismissed, formData, setFormData, isSelectionMode, toggleSelectCollection, selectAllLocal, clearSelection, - handleCreate, handleUpdate, handleDelete, handleClone, openEdit, + createCollection, handleCreate, handleUpdate, handleDelete, handleClone, openEdit, handleSendSelectedToQuote, resetForm, updateCollection, selectedSummary, totalProducts, totalCollections, gridClasses, filteredExternal, filteredLocal, navigate, diff --git a/src/pages/collections/useCollectionsPageState.ts b/src/pages/collections/useCollectionsPageState.ts index acf7e3320..e3156a90c 100644 --- a/src/pages/collections/useCollectionsPageState.ts +++ b/src/pages/collections/useCollectionsPageState.ts @@ -239,6 +239,7 @@ export function useCollectionsPageState() { toggleSelectCollection, selectAllLocal, clearSelection, + createCollection, handleCreate, handleUpdate, handleDelete,