Chapter health card on the admin chapter page - #2844
Open
mroderick wants to merge 5 commits into
Open
Conversation
Events linked to exactly one chapter are a per-chapter signal, unlike multi-chapter events which list dozens of chapters. The scope filters for them so chapter views can use events as a health signal.
Admin::Dashboard::ChapterHealth.row returns one health row for a chapter: status bucket (active/dormant/inactive, mirroring the Chapter Status page classification), workshop recency and countdown, median workshop cadence over the past 180 days, eligible member counts, and organiser count.
SVG timeline for one chapter: 180 days past, 90 days future, today marked at the 2/3 point. Workshops render as blue circles (hollow when planned), single-chapter events as amber squares, same-day workshops stack with an xN count (capped at three markers so they stay in bounds), tooltips show ISO8601 dates. The legend is drawn inside the SVG so it scales with the markers. No JavaScript.
Adds a Chapter Health section to /admin/chapters/:id, visible to admins and the chapter's organisers. Admin::Dashboard::HealthCardComponent renders the stat tiles (status badge, previous/next workshop, median cadence, eligible members, organiser count) from a ChapterHealth::Row and yields the workshop and events timeline into the card body. The card sits above Upcoming Workshops in the right column.
mroderick
force-pushed
the
feature/chapter-health-card
branch
from
September 5, 2026 14:22
51bddc1 to
7463696
Compare
mroderick
marked this pull request as ready for review
September 5, 2026 14:33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I'm trying to think of ways to make it easier for admins and organisers alike to have better insights into the health of chapters. I think that workshop frequency and number of active organisers are some good indicators, so I've tried to capture this in a health card that is displayed at the top of the chapter admin page.
Adds a Chapter Health card to the admin chapter page so admins and chapter organisers can see a chapter's health at a glance, without visiting the separate Chapter Status page.
Design and review notes
Event.single_chapterscope.Admin::ChaptersController#statusinline rules; the two implementations coexist by design (status page stays unchanged).