PictoPy icon indicating copy to clipboard operation
PictoPy copied to clipboard

Feat: Add Confirmation Dialog for Global Face Reclustering

Open Cubix33 opened this issue 10 months ago โ€ข 12 comments

Describe the feature

๐ŸŒŸ Feature Description

I propose adding a Confirmation Dialog (or Alert Modal) that appears when a user clicks the "Recluster Faces" button in the Settings > Application Controls section.

Currently, clicking the "Recluster Faces" button immediately triggers the triggerGlobalReclustering mutation. Since this is a resource-intensive operation that rebuilds face clusters from scratch, users should be warned about the consequences and asked to confirm their intent before the process begins.

๐Ÿ” Problem Statement

  1. No Safety Net: There is no intermediate step. A single click initiates a heavy backend process.
  2. User Frustration: An accidental click could consume system resources or alter data organization unexpectedly, with no obvious way to cancel.

๐ŸŽฏ Expected Outcome

  1. Interaction Update: Clicking "Recluster Faces" should not immediately call the API.
  2. UI Feedback: A modal/dialog should appear with a warning message:
    • Title: "Start Global Reclustering?"
    • Message: "This process will rebuild all face clusters from scratch. It may take a significant amount of time and system resources. Are you sure you want to continue?"
  3. Action:
    • Cancel: Closes the dialog; no action taken.
    • Confirm: Closes dialog and triggers reclusterMutation.mutate().

๐Ÿ›  Proposed Implementation

Modify ApplicationControlsCard.tsx to include a state for the dialog visibility and wrap the mutation trigger.

Add ScreenShots

Image

Record

  • [x] I agree to follow this project's Code of Conduct
  • [x] I want to work on this issue

Cubix33 avatar Jan 06 '26 14:01 Cubix33

๐Ÿ‘‹ 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 Jan 06 '26 14:01 github-actions[bot]

This looks like a solid UX and safety improvement, especially given how resource-intensive global face reclustering is. Nice catch, @Cubix33. Adding a confirmation step before triggering the mutation makes a lot of sense here. Once the maintainers approve, Iโ€™d be happy to help this could be approached by gating the existing reclustering trigger behind a lightweight confirmation dialog at the UI level so the action only proceeds after explicit user consent. Glad to assist or review if needed.

Soumojit-007 avatar Jan 06 '26 16:01 Soumojit-007

This is worth implementing, and it should be a relatively small change now that the codebase includes a ConfirmDialog.tsx component.

@Cubix33, if you're still interested in working on this, let me know and I'll assign it to you. Otherwise, we'll move on to the next person in the queue.

rohan-pandeyy avatar Jul 07 '26 07:07 rohan-pandeyy

@rohan-pandeyy sure i can work on this

Cubix33 avatar Jul 07 '26 07:07 Cubix33

Please go ahead ๐Ÿ˜„

rohan-pandeyy avatar Jul 07 '26 08:07 rohan-pandeyy

Hi @rohan-pandeyy

I came across issue #966 and noticed that it is currently assigned to Cubix33..but there doesn't appear to be any pull request yet, and the issue is still marked as Todo.

I'm intrested to work on it , could you please let me know if it's available ?

Vaishnavi-KN16 avatar Sep 06 '26 05:09 Vaishnavi-KN16

Hi @Cubix33, Iโ€™m interested in working on issue #966. I noticed itโ€™s currently assigned to you, but there doesnโ€™t appear to be a PR yet. Are you still working on it? If not, Iโ€™d be happy to take it up.

aryan9948 avatar Sep 16 '26 19:09 aryan9948

can you assign this issue to me?

yashchaurasia667 avatar Oct 11 '26 17:10 yashchaurasia667

Hi @rohan-pandeyy , this issue had been assigned to Cubix33 but i don't think there is a PR till now. If possible can you assign this to me?

I would solve this by adding a confirmation card component and a new bool state. When the user presses the Recluster Faces button the state will be converted to true and the new confirmation card will appear. Then action will be taken based on what user chooses in the confirmation card.

Any use of AI = None

mr-anvesh avatar Oct 15 '26 13:10 mr-anvesh

hi @rohan-pandeyy i noticed that there hasn't been a pull request by cubix33 since july 7 so if this issue isn't actively being worked on could you possibly assign it to me?

I'll fix up the dialog message and make another PR

yashchaurasia667 avatar Oct 19 '26 06:10 yashchaurasia667

Hi @Cubix33

I'd like to contribute to this issue by implementing a confirmation dialog for the "Recluster Faces" action in ApplicationControlsCard.tsx.

I'll work on adding dialog visibility state, displaying the warning message, and ensuring that the reclustering mutation is triggered only when the user confirms. Clicking "Cancel" will close the dialog without initiating the operation.

I'll also make sure the implementation follows the project's existing UI patterns and includes appropriate tests.

Could you please let me know if this issue is available to work on? I'd be happy to submit a PR following the project's contribution guidelines.

Thank you!

CSV2005 avatar Oct 20 '26 11:10 CSV2005

Hi @Cubix33 @rohan-pandeyy , is this issue still open to work??

Abfa41 avatar Nov 29 '26 13:11 Abfa41