Add confirmation dialogs and safeguards to prevent accidental destructive actions.
Key files to modify:
Various client components – Add confirmation modals before destructive actions (delete, lock, reset)
Approach:
Identify all destructive or hard-to-undo actions in the UI:
Deleting a Pizza day
Locking/unlocking Pizza day orders
Removing a lunch selection
Changing account settings
Add confirmation dialogs ("Are you sure?") before each destructive action
Consider undo functionality where feasible (e.g., "Undo" toast after removing a selection)
Prevent accidental double-clicks on submit buttons (debounce/disable after first click)
Add visual distinction for dangerous actions (red buttons, warning icons)
## Feature: User Error Protection
**FeatureRequest enum:** `SAFETY`
**Description:** Zvýšená ochrana proti chybám uživatele (potvrzovací dialogy, překliky, ...)
### Implementation Notes
Add confirmation dialogs and safeguards to prevent accidental destructive actions.
**Key files to modify:**
- Various client components – Add confirmation modals before destructive actions (delete, lock, reset)
**Approach:**
1. Identify all destructive or hard-to-undo actions in the UI:
- Deleting a Pizza day
- Locking/unlocking Pizza day orders
- Removing a lunch selection
- Changing account settings
2. Add confirmation dialogs ("Are you sure?") before each destructive action
3. Consider undo functionality where feasible (e.g., "Undo" toast after removing a selection)
4. Prevent accidental double-clicks on submit buttons (debounce/disable after first click)
5. Add visual distinction for dangerous actions (red buttons, warning icons)
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Feature: User Error Protection
FeatureRequest enum:
SAFETYDescription: Zvýšená ochrana proti chybám uživatele (potvrzovací dialogy, překliky, ...)
Implementation Notes
Add confirmation dialogs and safeguards to prevent accidental destructive actions.
Key files to modify:
Approach: