CreateTicketView.php uses raw browser confirm() instead of the project's showConfirmModal() convention #53

Open
opened 2026-08-31 21:36:20 -04:00 by jared · 0 comments
Owner

Severity: Low (consistency / documented-convention violation)

views/CreateTicketView.php (~line 347) uses the native browser confirm() dialog to warn before a template overwrites in-progress title/description text. This directly violates README.md Developer Notes #21: "Never use browser confirm(). Use showConfirmModal(title, message, type, onConfirm)." Every other confirm-before-destructive-action flow in the app (delete field, delete transition, delete template, revoke key, etc.) correctly uses the styled showConfirmModal() — this is the one inconsistent spot, and also the one place where a template swap could silently blow away typed content if the browser's native dialog styling confuses a user into missing/dismissing it incorrectly.

Fix: Replace the confirm() call with showConfirmModal(...), matching every other destructive-action confirmation in the app.

**Severity:** Low (consistency / documented-convention violation) `views/CreateTicketView.php` (~line 347) uses the native browser `confirm()` dialog to warn before a template overwrites in-progress title/description text. This directly violates README.md Developer Notes #21: "Never use browser `confirm()`. Use `showConfirmModal(title, message, type, onConfirm)`." Every other confirm-before-destructive-action flow in the app (delete field, delete transition, delete template, revoke key, etc.) correctly uses the styled `showConfirmModal()` — this is the one inconsistent spot, and also the one place where a template swap could silently blow away typed content if the browser's native dialog styling confuses a user into missing/dismissing it incorrectly. **Fix:** Replace the `confirm()` call with `showConfirmModal(...)`, matching every other destructive-action confirmation in the app.
jared added the priority/lowux labels 2026-09-08 10:15:45 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: LotusGuild/tinker_tickets#53