epam / epam/statgpt-admin-frontend

[Grade C] No confirmation dialog before destructive "replace" upload

Open
#253 0 comments 0 reactions 1 assignee Claimed by @likeamike View on GitHub
bug
Dominant language
TypeScript
Stars
18
Forks
0
Avg merge
15h 5m
Merged PRs (30d)
19

Description

### StatGPT Admin Frontend version

-

### What steps will reproduce the bug?

1. While working with Grade C dataset, click on Upload button
2. Select a file
3. Check 'Also delete records not in this file'
4. Click on Upload -> _there is no any confirmation_ -> **bug**

**Description of the problem:**
When an administrator checks the "Also delete records not in this file" checkbox and clicks Upload, the deletion is triggered immediately with no second confirmation step. The modal does show a warning description, but a single click on "Upload" is the only gate before all absent records are permanently removed from the channel.
**Impact:**
An administrator who accidentally checks the box or misreads the description can permanently delete production data for an entire channel with no recovery path and no undo.

### What is the expected behavior?

[update] Add confirmation pop-up. For example, like it's done for a row deleting -> not nice as there will be one more pop-up

Discussed with the designer. Waiting for an example.

### What do you see instead?

-

### Additional information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.