Implement the 032-inline-confirm-buttons feature that replaces single-click destructive actions with a reusable ConfirmButton component providing inline two-step confirmation (click to arm, click to execute), applied to the remove combatant and clear encounter buttons, with CSS scale pulse animation, 5-second auto-revert, click-outside/Escape/blur dismissal, full keyboard accessibility, and 13 unit tests via @testing-library/react
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -226,10 +226,6 @@ export function useEncounter() {
|
||||
);
|
||||
|
||||
const clearEncounter = useCallback(() => {
|
||||
if (!window.confirm("Clear the entire encounter? This cannot be undone.")) {
|
||||
return;
|
||||
}
|
||||
|
||||
const result = clearEncounterUseCase(makeStore());
|
||||
|
||||
if (isDomainError(result)) {
|
||||
|
||||
Reference in New Issue
Block a user