Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/components/search/AdvancedSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"));

Expand Down Expand Up @@ -50,6 +51,9 @@ export function AdvancedSearch({ onSearch, onVisualSearchResults, className }: A
const inputRef = useRef<HTMLInputElement>(null);
const dropdownRef = useRef<HTMLDivElement>(null);

// Voice support detection + live listening state (overlay drives the actual agent)
const { isListening, transcript, isSupported: isVoiceSupported } = useSpeechRecognition();
Comment on lines +54 to +55

// Voice agent (ElevenLabs + AI)
const handleVoiceAction = useCallback((action: VoiceAgentAction) => {
switch (action.action) {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/collections/CollectionsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions src/pages/collections/useCollectionsPageState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ export function useCollectionsPageState() {
toggleSelectCollection,
selectAllLocal,
clearSelection,
createCollection,
handleCreate,
handleUpdate,
handleDelete,
Expand Down
Loading