Fix ticket category saving and synchronization error handling
- Updated the ticket category saving logic to handle empty description and emoji fields, ensuring they are set to null if trimmed. - Enhanced error handling in the `maybeSyncTicketPanel` function to prevent UI errors when synchronization fails, allowing category CRUD operations to succeed. - Updated the response handling to include support role IDs in the UI after saving, improving data consistency. - Added validation for support role IDs in the dashboard schemas to ensure correct data types are used.
This commit is contained in:
@@ -533,6 +533,21 @@
|
||||
- [ ] Close aus Dashboard → Ticket verschwindet aus der Liste, Kanal/Thread wird geschlossen
|
||||
- [ ] Refresh-Button aktualisiert die Liste
|
||||
|
||||
## Post-Phase – Ticket Support-Rollen Speichern (Bugfix)
|
||||
|
||||
### Abgeschlossen (Code)
|
||||
|
||||
- Root cause: Kategorie-Save warf Fehler wenn Panel-Sync scheiterte → UI „Speichern fehlgeschlagen“, obwohl `supportRoleIds` schon in Postgres lagen
|
||||
- `maybeSyncTicketPanel` fängt Sync-Fehler ab; Kategorie-CRUD bleibt erfolgreich
|
||||
- Nach Speichern: Response inkl. `supportRoleIds` in die UI übernommen
|
||||
- Zod: `supportRoleIds` jetzt `SnowflakeSchema[]`
|
||||
|
||||
### Manuell testen
|
||||
|
||||
- [ ] Kategorie: Support-Rolle wählen → Speichern → Erfolgstoast
|
||||
- [ ] Seite neu laden → Rolle ist noch ausgewählt
|
||||
- [ ] Neues Ticket → Support-Rolle wird gepingt / in Thread aufgenommen
|
||||
|
||||
## Post-Phase – Ban/Kick-Reason Logging + Verification Fail Event (Status: implementiert)
|
||||
|
||||
### Abgeschlossen (Code)
|
||||
|
||||
Reference in New Issue
Block a user