diff --git a/frontend/src/pages/AutoMatch.tsx b/frontend/src/pages/AutoMatch.tsx index aab1783..639b13e 100644 --- a/frontend/src/pages/AutoMatch.tsx +++ b/frontend/src/pages/AutoMatch.tsx @@ -26,6 +26,12 @@ export default function AutoMatch() { return currentPerson?.matches || [] }, [currentPerson]) + // Auto-start auto-match when component mounts or tolerance changes + useEffect(() => { + startAutoMatch() + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [tolerance]) + // Apply search filter useEffect(() => { if (!searchQuery.trim()) { @@ -268,11 +274,20 @@ export default function AutoMatch() { {/* Person face image */}
- Reference face +
{ + const photoUrl = `${apiClient.defaults.baseURL}/api/v1/photos/${currentPerson.reference_photo_id}/image` + window.open(photoUrl, '_blank') + }} + title="Click to open full photo" + > + Reference face +
{/* Save button */} @@ -326,11 +341,20 @@ export default function AutoMatch() { onChange={() => handleFaceToggle(match.id)} className="w-4 h-4" /> - Match face +
{ + const photoUrl = `${apiClient.defaults.baseURL}/api/v1/photos/${match.photo_id}/image` + window.open(photoUrl, '_blank') + }} + title="Click to open full photo" + > + Match face +