feature: threshold rule form: hysteresis and sustained breach fields #48

Merged
Gilles merged 1 commit from feat/threshold-hysteresis into master 2026-10-31 08:35:54 +00:00
Owner

Closes #46

Needs argus/backend#56 (recover / for_count params) deployed first -- without it the backend's param cleaner silently drops both fields.

  • EventRulesManager: two optional fields on metric-threshold rules, "Seuil de retour à ok" → recover, "Rapports consécutifs avant de changer de niveau" → for_count (1-100); both appear in the rule summary line when set ("retour 85", "2 rapports de suite").
  • ReportCard (custom reports): a metric carrying pending gets a "dépassement en cours (n/N)" chip in the pending level's colour.

Tests: new cases in RuleTriggers.spec.ts and ReportCard.spec.ts; vitest (132), vue-tsc and build pass locally.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AUcAVt7dKqdZsFwQdwZkxW

Closes #46 Needs argus/backend#56 (`recover` / `for_count` params) deployed first -- without it the backend's param cleaner silently drops both fields. - `EventRulesManager`: two optional fields on metric-threshold rules, "Seuil de retour à ok" → `recover`, "Rapports consécutifs avant de changer de niveau" → `for_count` (1-100); both appear in the rule summary line when set ("retour 85", "2 rapports de suite"). - `ReportCard` (custom reports): a metric carrying `pending` gets a "dépassement en cours (n/N)" chip in the pending level's colour. Tests: new cases in `RuleTriggers.spec.ts` and `ReportCard.spec.ts`; vitest (132), vue-tsc and build pass locally. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01AUcAVt7dKqdZsFwQdwZkxW
feature: threshold rule form: hysteresis and sustained breach fields
All checks were successful
ci / unit (pull_request) Successful in 2m16s
ci / publish (pull_request) Has been skipped
591b6df491
- EventRulesManager: optional "Seuil de retour à ok" (recover) and
  "Rapports consécutifs avant de changer de niveau" (for_count), shown
  in the rule summary when set.
- ReportCard: a metric whose breach isn't confirmed yet carries a
  "dépassement en cours (n/N)" chip.

Closes #46

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AUcAVt7dKqdZsFwQdwZkxW
Gilles scheduled this pull request to auto merge when all checks succeed 2026-10-31 08:25:49 +00:00
Author
Owner
<!-- argus-link-bot:argus/frontend --> 📊 [Rapports Argus pour cette PR](https://reports.stationmyr.net/argus/frontend/pr/48)
Gilles merged commit 8eff22c81e into master 2026-10-31 08:35:54 +00:00
Gilles deleted branch feat/threshold-hysteresis 2026-10-31 08:35:54 +00:00
Sign in to join this conversation.
No description provided.