fix(webapp): confirmation dialog + undo button visibility

- Add _showDestructiveConfirm() helper: shows modal with 5-second
  auto-confirm countdown bar; user can confirm early or cancel
- throwAll(): now shows confirmation before discarding all stock
- submitUseAll(): same confirmation before marking all as used
- undoTransactionEntry(): replace native confirm() with modal
- Rename core logic to _doSubmitUseAll() / _doUndoTransaction()
- btn-log-undo: more visible (red tint + larger font) so user can
  easily undo accidental operations from the history log
- Bump app.js version to v=20260505a
This commit is contained in:
dadaloop82
2026-05-04 18:30:30 +00:00
parent e4869c4308
commit 2e46090adc
3 changed files with 130 additions and 29 deletions
+7 -7
View File
@@ -4248,19 +4248,19 @@ body.cooking-mode-active .app-header {
.btn-log-undo {
flex-shrink: 0;
background: none;
border: 1px solid var(--border);
color: var(--text-muted);
background: rgba(248, 113, 113, 0.12);
border: 1px solid rgba(248, 113, 113, 0.4);
color: #f87171;
border-radius: 6px;
padding: 3px 8px;
font-size: 0.85rem;
padding: 5px 10px;
font-size: 1rem;
cursor: pointer;
line-height: 1.4;
transition: background 0.15s, color 0.15s;
}
.btn-log-undo:hover {
background: rgba(255,255,255,0.08);
color: var(--text);
background: rgba(248, 113, 113, 0.25);
color: #fca5a5;
}