BUG: PROD: Face search shows "No Matches Found" for every empty result, even when AI tagging is off

Open Beginner friendly
#1,770 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 4 days

@dhruvbit is already working on this.

Since Nov 24, 2026.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python, react, typescript
Domain
frontend

Research direction

Start in FaceSearchDialog.tsx, where the empty-result state renders the fixed "No Matches Found" text; trace the face-search request it makes to the backend perform_face_search(), which already returns three distinct messages (no face detected, no embeddings available, no match). Decide whether to key off those messages or add a reason field to the response, then render distinct wording per case. Add tests around the dialog's empty states; done means each of the three cases shows its own explanation.

Written by the indexing model from the issue text.

Description

bug enhancement
Is there an existing issue for this?
  • I have searched the existing issues
What happened?

Related to #1646 (v1.3.x-beta production bug tracker)

Describe the bug

When face search returns no results, the dialog always says "No Matches Found – We couldn't find any matching faces in your gallery for this photo." It shows this in three different situations that the backend already distinguishes in perform_face_search():

  1. The uploaded photo has no detectable face → backend message: "No faces detected in the image."
  2. The library has no face data yet (e.g. AI tagging is off for all folders) → "No face embeddings available for comparison."
  3. Faces were compared but nobody matched.

FaceSearchDialog.tsx ignores the response message and shows the same text for all three, so the user can't tell what to do.

Steps to reproduce

  1. Install v1.3.0-beta on Windows 11 and add a folder, leaving AI tagging off (the default).
  2. Use face search with a photo that is already in that folder.
  3. The dialog says no matching faces were found, although it's the same photo. Nothing indicates that AI tagging needs to be enabled.

Expected behavior

The dialog should explain the actual reason, e.g. "Face data isn't available yet — turn on AI tagging for your folders" for case 2, and "No face was detected in this photo" for case 1.

Environment

  • PictoPy v1.3.0-beta (Windows x64 installer)
  • Windows 11

Proposed fix

Return a machine-readable reason from the face-search endpoint (or use the existing message) and show a specific message for each case in FaceSearchDialog.tsx, with tests. I'd like to work on this once it's reviewed.

Record
  • I agree to follow this project's Code of Conduct
Dominant language
Python
Stars
322
Forks
793
Avg merge
6d 9h
Merged PRs (30d)
20

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AOSSIE-Org/PictoPy

All issues in AOSSIE-Org/PictoPy

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.