Admin page: an error toast throws, haptic is not defined #436
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
toast() in web/src/util.ts calls haptic() on an error since
cf0dad7(#430), but haptic lives in native.ts, which admin.js is not built from (web/build.mts). On the admin page every error toast throws a ReferenceError and never shows, so a refused change (such as demoting the only admin) says nothing. Found by the browser test 'the only admin cannot be demoted or removed', failing before a deploy. Not deployed.Fixed in
8f888ae: toast() calls haptic only where the page's script has it. Never reached production; deployed with the fix in ipx-web, 2026-11-09.