fix(rules): show the rules field with a save button and edit the message

The rules lived in a card of their own that never showed up next to the
settings, so the section read as an empty toggle nobody could fill in. The
markdown now renders as a real field with an "Enregistrer" button, and
saving edits the message already pinned instead of deleting it and
posting a new one: same link, same place, pin kept.
This commit is contained in:
BlackAngelTV committed 2026-09-25 21:14:00 +02:00
1 parent 22e9723700
commit e6ce594b34
7 files changed
+156 -168

No files matched your search

+2 -1
View File
@@ -126,7 +126,8 @@ Full template: [`.env.example`](.env.example). Default values in brackets.
| Variable | Usage |
| -------------------------------- | --------------------------------------------------------------------------- |
| `CHANNEL_WELCOME_ID` | Welcome messages |
| `CHANNEL_RULES_ID` | Rules: link sent to newcomers, and where the dashboard pins the message |
| `CHANNEL_RULES_ID` | Rules: link sent to newcomers, and where the dashboard pins the message. |
| | Later saves edit that same message |
| `CHANNEL_ANNOUNCEMENTS_ID` | FWS announcements |
| `CHANNEL_LOGS_ID` | Functional logs |
| `CHANNEL_MOD_LOGS_ID` | Moderation logs |