AOSSIE-Org / AOSSIE-Org/PictoPy

Feat: Add Confirmation Dialog for Global Face Reclustering

未關閉
#966 6 則留言 0 個 reaction 已指派 1 人 已被 @Cubix33 認領 在 GitHub 檢視
frontend good first issue
主要語言
Python
星號
283
分支
679
平均合併
7 天 2 小時
30 天內合併 PR
3

描述

### 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

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。