Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Govern alert presentation helpers

rcourtman10277d63a7de
diff --git a/docs/release-control/v6/internal/subsystems/alerts.md b/docs/release-control/v6/internal/subsystems/alerts.md
index 40628df68e..2dc40071f7 100644
--- a/docs/release-control/v6/internal/subsystems/alerts.md
+++ b/docs/release-control/v6/internal/subsystems/alerts.md
@@ -28,6 +28,9 @@ operator-facing alert routing behavior for live runtime alerts.
6. `frontend-modern/src/components/Alerts/RecentAlertsPanel.tsx`
7. `frontend-modern/src/utils/alertOverviewPresentation.ts`
8. `frontend-modern/src/utils/alertDestinationsPresentation.ts`
+9. `frontend-modern/src/utils/alertIncidentPresentation.ts`
+10. `frontend-modern/src/utils/alertSchedulePresentation.ts`
+11. `frontend-modern/src/utils/alertWebhookPresentation.ts`
## Shared Boundaries
@@ -71,6 +74,17 @@ The alert webhook editor now mirrors that canonical Pushover field rule through
`frontend-modern/src/utils/alertWebhookPresentation.ts`, so the UI shares the
same alias, preset, and custom-field input mapping instead of carrying its own
local webhook-field normalization fork.
+That shared alert presentation boundary now also has explicit alerts ownership.
+`frontend-modern/src/utils/alertWebhookPresentation.ts` is the canonical owner
+for webhook setup copy, service labels, mention-help phrasing, custom-field
+presets, and add/test/update/delete action wording;
+`frontend-modern/src/utils/alertSchedulePresentation.ts` owns quiet-hours day
+and suppress-category card styling; and
+`frontend-modern/src/utils/alertIncidentPresentation.ts` owns incident badge,
+timeline, filter-chip, note-editor, and resource-incident panel presentation.
+Future alert presentation work must extend those helpers through the alerts
+contract instead of leaving alert-facing wording or styling inlined in page or
+feature shells while the registry treats the helpers as unowned.
The alert webhook service chooser also now derives its service set from the
backend webhook template registry, rather than keeping a second frontend-only
diff --git a/docs/release-control/v6/internal/subsystems/registry.json b/docs/release-control/v6/internal/subsystems/registry.json
index d77e6f92cb..763d09d7b8 100644
--- a/docs/release-control/v6/internal/subsystems/registry.json
+++ b/docs/release-control/v6/internal/subsystems/registry.json
@@ -912,7 +912,10 @@
"owned_files": [
"frontend-modern/src/pages/Alerts.tsx",
"frontend-modern/src/utils/alertDestinationsPresentation.ts",
- "frontend-modern/src/utils/alertOverviewPresentation.ts"
+ "frontend-modern/src/utils/alertIncidentPresentation.ts",
+ "frontend-modern/src/utils/alertOverviewPresentation.ts",
+ "frontend-modern/src/utils/alertSchedulePresentation.ts",
+ "frontend-modern/src/utils/alertWebhookPresentation.ts"
],
"verification": {
"allow_same_subsystem_tests": true,
@@ -1006,6 +1009,45 @@
"frontend-modern/src/utils/__tests__/alertDestinationsPresentation.test.ts"
]
},
+ {
+ "id": "alert-incident-presentation-helper",
+ "label": "alert incident presentation helper proof",
+ "match_prefixes": [],
+ "match_files": [
+ "frontend-modern/src/utils/alertIncidentPresentation.ts"
+ ],
+ "allow_same_subsystem_tests": false,
+ "test_prefixes": [],
+ "exact_files": [
+ "frontend-modern/src/utils/__tests__/alertIncidentPresentation.test.ts"
+ ]
+ },
+ {
+ "id": "alert-schedule-presentation-helper",
+ "label": "alert schedule presentation helper proof",
+ "match_prefixes": [],
+ "match_files": [
+ "frontend-modern/src/utils/alertSchedulePresentation.ts"
+ ],
+ "allow_same_subsystem_tests": false,
+ "test_prefixes": [],
+ "exact_files": [
+ "frontend-modern/src/utils/__tests__/alertSchedulePresentation.test.ts"
+ ]
+ },
+ {
+ "id": "alert-webhook-presentation-helper",
+ "label": "alert webhook presentation helper proof",
+ "match_prefixes": [],
+ "match_files": [
+ "frontend-modern/src/utils/alertWebhookPresentation.ts"
+ ],
+ "allow_same_subsystem_tests": false,
+ "test_prefixes": [],
+ "exact_files": [
+ "frontend-modern/src/utils/__tests__/alertWebhookPresentation.test.ts"
+ ]
+ },
{
"id": "alerts-runtime-support",
"label": "alerts runtime support proof",