Go to file
caoqianming 49a4afa4a4 feat(web): auto-toast on API errors with dismissible notifications
Add showToast() utility in api.js and a matching toast stylesheet.
apiFetch now automatically shows a toast for any 400+ response before
re-throwing, so callers can still .catch() for additional handling.

Toasts stack at the bottom-right, auto-dismiss after 4s, and support
error/warning/success/info levels via a left-border colour accent.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-24 13:43:57 +08:00
docs feat(control): add unit and event foundation 2026-03-24 10:20:23 +08:00
migrations feat(control): add unit and event foundation 2026-03-24 10:20:23 +08:00
src fix: point bind bug 2026-03-24 13:39:45 +08:00
web feat(web): auto-toast on API errors with dismissible notifications 2026-03-24 13:43:57 +08:00
.gitignore feat: 软件第一个版本 2026-03-03 13:32:05 +08:00
API.md feat(web): add API.md drawer preview 2026-03-20 19:00:46 +08:00
Cargo.lock feat: add page 2026-03-11 13:23:05 +08:00
Cargo.toml feat(page): add page table and CRUD handlers 2026-03-11 13:54:14 +08:00