bug fixes

This commit is contained in:
2025-10-10 18:51:23 -04:00
parent 8236c1e0e7
commit 61ab1e1d9e
15 changed files with 4463 additions and 7 deletions

View File

@@ -103,6 +103,18 @@
- [x] Offline reconciliation: bot detects and removes invites deleted while offline on startup
- [x] Automatic cleanup of stale invites from database and frontend when bot comes back online
- [x] Reaction Roles: configurable reaction-role messages with buttons
- [x] Backend table `reaction_roles` and CRUD endpoints
- [x] Frontend accordion UI to create/edit/delete reaction role configurations (channel, named buttons, role picker, embed)
- [x] Live SSE updates when reaction roles are created/updated/deleted
- [x] Bot posts embedded message with buttons and toggles roles on button press
- [x] Replacement of confirm() with app `ConfirmDialog` and role picker dropdown in UI
- [x] Initial and periodic reconciliation: bot removes DB entries when the message or channel is missing
- [x] Backend: tolerate JSON string payloads for `embed` and `buttons` when creating/updating reaction roles (auto-parse before inserting JSONB)
- [x] Slash command `/post-reaction-role <id>` for admins to post a reaction role message from Discord
- [x] Frontend edit functionality for existing reaction roles
- [x] Button ID stability: customId uses roleId instead of array index for robustness
## Database
- [x] Postgres support via `DATABASE_URL` (backend auto-creates `servers`, `invites`, `users`)
- [x] Legacy encrypted `backend/db.json` retained (migration planned)