Rule form: several Mattermost channels, private messages and author #6

Merged
Gilles merged 1 commit from feat/mattermost-targets into master 2026-10-26 05:23:39 +00:00
Owner

Refs argus/backend#13. Needs argus/backend#14 (API).

What's in it

  • The rule form's Mattermost section now has:
    • channel checkboxes: several channels at once, from the bot's channels. A channel saved on the rule that the bot has since left still appears, marked "inaccessible au bot", so it can be unticked;
    • private messages: Mattermost account search (GET /api/mattermost/users/) with removable chips;
    • an "Auteur du rapport (message privé)" checkbox, with a hint on how the author is found.
  • The rule list summarises the targets, e.g. Mattermost (~Famille / CI, @lea, auteur).
  • The backend's field errors (mattermost_channels, mattermost_users) are shown inline.

Tests

vitest, 65 in total:

  • the create test now covers two channels, a private-message recipient and the author;
  • a new test checks the summary, keeping a channel the bot has left, and removing a recipient.

vue-tsc and vite build pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_014BSmBtGWeFBD9z4mYm9SjA

Refs argus/backend#13. Needs argus/backend#14 (API). ## What's in it - The rule form's Mattermost section now has: - **channel checkboxes**: several channels at once, from the bot's channels. A channel saved on the rule that the bot has since left still appears, marked "inaccessible au bot", so it can be unticked; - **private messages**: Mattermost account search (`GET /api/mattermost/users/`) with removable chips; - an **"Auteur du rapport (message privé)"** checkbox, with a hint on how the author is found. - The rule list summarises the targets, e.g. `Mattermost (~Famille / CI, @lea, auteur)`. - The backend's field errors (`mattermost_channels`, `mattermost_users`) are shown inline. ## Tests vitest, 65 in total: - the create test now covers two channels, a private-message recipient and the author; - a new test checks the summary, keeping a channel the bot has left, and removing a recipient. `vue-tsc` and `vite build` pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_014BSmBtGWeFBD9z4mYm9SjA
Rule form: several Mattermost channels, private messages, author
All checks were successful
ci / unit (pull_request) Successful in 1m14s
ci / publish (pull_request) Has been skipped
a0252d81df
UI for argus/backend#13: channel checkboxes (channels the bot has since
left stay listed so they can be unticked), Mattermost account search
for private messages, "Auteur du rapport" checkbox, and a per-rule
summary of the Mattermost targets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014BSmBtGWeFBD9z4mYm9SjA
Author
Owner
<!-- argus-link-bot:argus/frontend --> 📊 [Rapports Argus pour cette PR](https://reports.stationmyr.net/argus/frontend/pr/6)
Gilles merged commit 2697f4a732 into master 2026-10-26 05:23:39 +00:00
Gilles deleted branch feat/mattermost-targets 2026-10-26 05:23:40 +00:00
Sign in to join this conversation.
No description provided.