feat(tickets): open tickets from a panel button in any channel
CI / quality (push) Has been cancelled

Members had to know `/ticket create` and its category list to reach support,
so the entry point is now a panel: `/ticket setup` publishes it in the current
channel, the button opens a menu of the categories the member is allowed to
open, and the choice creates the ticket.

The panel channel and message are stored in `ticket_panels`, so a reinstall
replaces the previous message instead of leaving the server two entry points,
and the panel survives a restart.
This commit is contained in:
BlackAngelTV committed 2026-10-02 20:29:22 +02:00
1 parent 1310840215
commit ed14b8260c
9 files changed
+492 -29

No files matched your search

+30 -5
View File
@@ -52,11 +52,36 @@ export const MODERATION_ACTIONS = Object.freeze({
/** Ticket categories and who can see them (M0-T05 / M6-T01). */
export const TICKET_CATEGORIES = Object.freeze([
{ id: 'support', label: 'Aide et support', scope: ['staff', 'owner'] },
{ id: 'bug', label: 'Bug', scope: ['staff', 'dev', 'owner'] },
{ id: 'dev-question', label: 'Question de développement', scope: ['dev', 'owner'] },
{ id: 'report', label: 'Signalement', scope: ['staff', 'owner'] },
{ id: 'internal', label: 'Demande interne', scope: ['owner'] },
{
id: 'support',
label: 'Aide et support',
description: 'Une question, besoin d’un coup de main',
scope: ['staff', 'owner'],
},
{
id: 'bug',
label: 'Bug',
description: 'Quelque chose ne marche pas comme prévu',
scope: ['staff', 'dev', 'owner'],
},
{
id: 'dev-question',
label: 'Question de développement',
description: 'Conseil, architecture, code',
scope: ['dev', 'owner'],
},
{
id: 'report',
label: 'Signalement',
description: 'Un membre ou un message pose problème',
scope: ['staff', 'owner'],
},
{
id: 'internal',
label: 'Demande interne',
description: 'Réservé à l’équipe',
scope: ['owner'],
},
]);
/** Gitea webhook event -> notification type (M9-T03). */