towerops/lib/towerops_web
Graham McIntire 0cd2ed3567
feat: add on-call schedules and escalation policies
Built-in PagerDuty-equivalent system for on-call scheduling and alert
escalation. Users can now manage schedules, rotation layers, overrides,
and escalation policies directly in the app alongside PagerDuty.

- On-call schedules with rotation layers (daily/weekly/custom), member
  management, and temporary overrides
- Escalation policies with ordered rules, timeout-based escalation,
  and user/schedule targets
- Automatic escalation via Oban worker with configurable repeat count
- Email notifications via Swoosh for on-call alerts
- Resolver computes who's on-call from layer stacking and overrides
- AlertNotificationWorker integration: starts escalation alongside
  PagerDuty, acknowledges/resolves incidents on alert state changes
- Device and organization schemas support escalation_policy_id
- Escalation policy picker on device form
- Schedules nav item with tabbed index (schedules + escalation policies)
- Full CRUD UI for schedules, layers, members, overrides, rules, targets
- 62 LiveView tests, 56 context/schema/resolver/escalation tests
- 26 E2E Playwright tests for smoke and critical path coverage
2026-03-11 12:32:54 -05:00
..
channels perf: disable Req retry for faster error tests 2026-03-10 16:19:31 -05:00
components feat: add on-call schedules and escalation policies 2026-03-11 12:32:54 -05:00
controllers Refactor duplicate site API logic 2026-03-10 16:27:35 -05:00
graphql perf: disable Req retry for faster error tests 2026-03-10 16:19:31 -05:00
helpers feat: add status emoji to page titles 2026-03-06 14:45:02 -06:00
live feat: add on-call schedules and escalation policies 2026-03-11 12:32:54 -05:00
plugs perf: disable Req retry for faster error tests 2026-03-10 16:19:31 -05:00
changelog_parser.ex fix: resolve 500 errors on /activity and /changelog 2026-02-13 19:49:12 -06:00
endpoint.ex fix(logs): add Plug.Telemetry metadata filter to suppress health check logs 2026-03-05 19:23:23 -06:00
gettext.ex init 2025-12-21 11:10:43 -06:00
gettext_helpers.ex feat: migrate email templates to gettext (Phase 2 - Emails) 2026-02-02 09:48:30 -06:00
permissions.ex i18n: add Spanish locale with full translations, language selector, and locale hook 2026-02-14 17:44:01 -06:00
plug_exceptions.ex handle exceptions gracefully on api endpoints 2026-02-04 12:18:14 -06:00
remote_ip.ex perf: disable Req retry for faster error tests 2026-03-10 16:19:31 -05:00
router.ex feat: add on-call schedules and escalation policies 2026-03-11 12:32:54 -05:00
scoped_resource.ex perf: disable Req retry for faster error tests 2026-03-10 16:19:31 -05:00
telemetry.ex fix: add Oban config to dev.exs and replace Exq telemetry with Oban 2026-01-24 16:39:45 -06:00
telemetry_filter.ex fix: suppress health check logs and downgrade CI artifacts to v3 2026-03-05 15:54:47 -06:00
user_auth.ex logging fix and some other codex fixes 2026-03-10 15:04:28 -05:00