BUG: Face search does not reset after a failed search; results UI should match SearchResults
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
👋 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 :)
⚠️ Potential Duplicate Issue (Semantic Match)
This issue appears semantically similar to the following issues in AOSSIE-Org/PictoPy:
-
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%
-
BUG:Text Search Bar is Non-Functional (#1048, open) https://github.com/AOSSIE-Org/PictoPy/issues/1048 Similarity: 57.4%
-
Feat: Implement text-based image search functionality (#661, closed) https://github.com/AOSSIE-Org/PictoPy/issues/661 Similarity: 56%
Please review before proceeding.
Link your account with Gitcord
Thanks for opening this issue, @JIturiDashami!
To receive Discord notifications and contributor tracking for this organization:
- Join Discord: https://discord.gg/hjUhu33uAn
- In Discord, run
/link JIturiDashami - Paste the verification code into your GitHub bio (or a public gist)
- Click Verify in Discord (or run
/verify-link JIturiDashami)
Once linked, Gitcord can notify you about assignments, mentions, and more.
— Posted by Gitcord
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
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 Its Okay, I'll check out other issues. Thank you
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!
Please go ahead @JIturiDashami