Admin page: an error toast throws, haptic is not defined #436

Closed
opened 2026-11-08 15:59:52 -08:00 by rays · 1 comment
Owner

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.

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.
rays added the bug label 2026-11-08 15:59:52 -08:00
Author
Owner

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.

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.
rays closed this issue 2026-11-08 16:08:52 -08:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rays/ipx#436