Files
minstrel/web
bvandeusenandClaude Opus 5.5 cb7028c745 refactor(web): one ConfirmModal asks before what can't be undone; no native dialogs (DRY B2, B3)
Deleting a playlist asked in the browser's own confirm() box and
reported errors with alert(). Four other deletes each built Modal +
Cancel + a destructive button by hand, two of them in bronze rather
than the destructive oxblood. Suspect sources removed a file on a
second click while Reports asks in a dialog for the same act.

ConfirmModal is the web's twin of Android's ConfirmDestructiveDialog:
title, a body saying what goes, Cancel, and a confirm button in the
destructive action colour that can show a busy label. Reports (x2),
Needs a file, Admin > Users, the playlist page and Suspect sources use
it. The playlist page's errors go to toasts. A source guard keeps
confirm() and alert() out of the app; it flags the old playlist page.

The two web source guards share lib/testing/sourceGuard.ts.

ListenBrainz status (Settings > Connections) and the recommendation
metrics now offer Try again when they fail to load.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 14:07:43 -05:00
..