Skip to content

Add component group incident counter - #421

Open
jbrooksuk wants to merge 2 commits into
mainfrom
codex/component-group-incident-counter
Open

Add component group incident counter#421
jbrooksuk wants to merge 2 commits into
mainfrom
codex/component-group-incident-counter

Conversation

@jbrooksuk

Copy link
Copy Markdown
Member

Summary

  • add a display setting to replace component group status labels with open incident counts
  • count distinct unresolved public incidents, avoiding duplicates when one incident affects multiple components
  • preserve the existing group status display by default

Why

Component groups can represent related services rather than a single service. Rolling up the worst component status can therefore imply that the whole group is unavailable.

Closes #419

Validation

  • vendor/bin/pest tests/Feature/StatusPage/StatusPageTest.php tests/Unit/Models/ComponentGroupTest.php tests/Feature/Filament/Settings/ManageCachetTest.php
  • vendor/bin/pint --test src/Models/ComponentGroup.php src/Settings/AppSettings.php src/Filament/Pages/Settings/ManageCachet.php tests/Feature/StatusPage/StatusPageTest.php tests/Unit/Models/ComponentGroupTest.php tests/Feature/Filament/Settings/ManageCachetTest.php database/migrations/2026_08_06_000001_add_component_group_status_setting.php
  • git diff --check

@jbrooksuk
jbrooksuk marked this pull request as ready for review August 6, 2026 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace group status with incident counter

1 participant