Refactor self-role management to use a role builder interface
- Replaced the text area for role input with a structured role builder, enhancing user experience and reducing input errors. - Updated the self-role management logic to handle roles as structured objects instead of plain text, improving data integrity. - Introduced new functions for parsing and validating roles, ensuring compliance with the new builder format. - Enhanced error handling for role creation and updates, providing clearer feedback for missing or invalid data. - Updated localization files to reflect changes in role management terminology and instructions.
This commit is contained in:
@@ -102,7 +102,7 @@
|
||||
|
||||
- `DiscordRoleSelect` / `DiscordRoleMultiSelect` + `useGuildRoles`
|
||||
- Modul-Forms/Manager: Rollen-ID-Texteingaben durch durchsuchbare Role-Auswahl ersetzt (Welcome, Verification, Leveling, Logging, Birthdays, Giveaways, Tags, Tickets, Access Rules, Feeds, Scheduler, Commands)
|
||||
- Selfroles-Textarea (`roleId | label | emoji`) bewusst unverändert
|
||||
- Selfroles: Role-Builder statt Textarea (`roleId | label | emoji`)
|
||||
|
||||
### Manuell testen
|
||||
|
||||
@@ -444,6 +444,22 @@
|
||||
- [ ] Panel löschen → Discord-Nachricht entfernt
|
||||
- [ ] Alt-Panel ohne Message speichern → Nachricht wird nachgezogen
|
||||
|
||||
## Post-Phase – Selfroles Role-Builder (Status: implementiert)
|
||||
|
||||
### Abgeschlossen (Code)
|
||||
|
||||
- Textarea `roleId | label | emoji` durch zeilenbasierten Builder ersetzt
|
||||
- `DiscordRoleSelect` + Label/Beschreibung-Felder + `DiscordEmojiSelect` (Server-CDN + Unicode)
|
||||
- API `GET /api/guilds/[guildId]/emojis` inkl. Redis-Cache; Shared `DiscordEmojiOption`
|
||||
- Reaktions-Modus: Emoji je Rolle vor Save Pflicht
|
||||
|
||||
### Manuell testen
|
||||
|
||||
- [ ] Panel mit Role-Picker, Label, Server-Emoji und Unicode speichern → Discord-Nachricht korrekt
|
||||
- [ ] Dropdown: optionale Beschreibung erscheint in den Select-Optionen
|
||||
- [ ] REACTIONS ohne Emoji → Toast, kein Save
|
||||
- [ ] Bestehende Panels mit Custom-Emoji-Strings laden und editieren
|
||||
|
||||
## Nächster geplanter Schritt
|
||||
|
||||
- Deploy auf Traefik-Server manuell verifizieren; danach ggf. `deploy` → `main` mergen (nur auf Freigabe).
|
||||
|
||||
Reference in New Issue
Block a user