PictoPy icon indicating copy to clipboard operation
PictoPy copied to clipboard

BUG: Face search does not reset after a failed search; results UI should match SearchResults

Open JIturiDashami opened this issue 1 month ago • 8 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

What happened?

Bug: when a face search fails, the "Search Failed" popup appears, but Home stays in search mode: the title still says "Face Search Results (N found)" and the query-image chip stays in the navbar. It only resets if the user clicks the small ✕ on the chip.

Steps: make the search fail -> Face Search icon -> Upload Photo -> pick an image -> close the popup.

Cause: in FaceSearchDialog.tsx, onError doesn't call clearSearch(), while the "no match" path does.

UI: as discussed with @rohan-pandeyy , face search results should use the same UI as the text search results page (SearchResults.tsx): Back button, heading, results grid, and inline error/empty states instead of popups.

Plan: reset the search state on failure, show face search results in a SearchResults-style view, and add tests. I'd like to work on this.

  • [x] I agree to follow this project's Code of Conduct

JIturiDashami avatar Oct 11 '26 13:10 JIturiDashami

👋 Thanks for opening this issue! The maintainers will review it shortly. Till then, do not open any PR. This is a strict rule we like to follow around here :)

github-actions[bot] avatar Oct 11 '26 13:10 github-actions[bot]

⚠️ Potential Duplicate Issue (Semantic Match)

This issue appears semantically similar to the following issues in AOSSIE-Org/PictoPy:

  1. BUG: Image Search Bar Not Returning Results or Responding to User Input (#1077, closed) https://github.com/AOSSIE-Org/PictoPy/issues/1077 Similarity: 68.3%

  2. BUG:Text Search Bar is Non-Functional (#1048, open) https://github.com/AOSSIE-Org/PictoPy/issues/1048 Similarity: 57.4%

  3. Feat: Implement text-based image search functionality (#661, closed) https://github.com/AOSSIE-Org/PictoPy/issues/661 Similarity: 56%

Please review before proceeding.

github-actions[bot] avatar Oct 11 '26 13:10 github-actions[bot]

Link your account with Gitcord

Thanks for opening this issue, @JIturiDashami!

To receive Discord notifications and contributor tracking for this organization:

  1. Join Discord: https://discord.gg/hjUhu33uAn
  2. In Discord, run /link JIturiDashami
  3. Paste the verification code into your GitHub bio (or a public gist)
  4. Click Verify in Discord (or run /verify-link JIturiDashami)

Once linked, Gitcord can notify you about assignments, mentions, and more.

— Posted by Gitcord

gitcordapp[bot] avatar Oct 11 '26 13:10 gitcordapp[bot]

Hi! I'd like to contribute to issue #1611. I'll investigate the face-search state management, ensure clearSearch() is called when a search fails, and work on making the face-search results UI consistent with SearchResults.tsx, including inline error and empty states.I'll also add regression tests for failed searches and verify that the existing text-search behavior remains unaffected

Samuel-Suraganaa avatar Oct 11 '26 14:10 Samuel-Suraganaa

Heyy @Samuel-Suraganaa , thanks for your interest! I opened this issue after discussing it with @rohan-pandeyy on the community Discord, and I'll be working on it. Could you please check out some of the other open issues? Thanks for understanding!

JIturiDashami avatar Oct 11 '26 15:10 JIturiDashami

@JIturiDashami Its Okay, I'll check out other issues. Thank you

Samuel-Suraganaa avatar Oct 11 '26 15:10 Samuel-Suraganaa

Hi! I'd like to work on this issue. Is it still available? If so, I'll start on a fix and open a PR once you confirm. Thanks!

ag6393163475-lab avatar Oct 12 '26 13:10 ag6393163475-lab

Please go ahead @JIturiDashami

rohan-pandeyy avatar Oct 12 '26 16:10 rohan-pandeyy