• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

codebar / planner / 28187970692

25 Jun 2026 05:14PM UTC coverage: 95.237%. First build
28187970692

Pull #2671

github

mroderick
feat: add chapter status admin page

Admin page at /admin/chapters/status showing which chapters are
active, dormant, or inactive over a configurable 6 or 12 month
window. Each chapter shows workshop count and eligible member
counts (not banned, accepted terms, subscribed) per role.

Active chapters running no workshops in the last n-1 months are
flagged At Risk. The window includes future workshops (3 months
ahead) so chapters with upcoming events stay classified as active.

Uses ERB + ViewComponent.

Also seeds demo chapters for the three status categories:
Bournemouth (inactive), South London (dormant),
Edinburgh (at-risk).
Pull Request #2671: feat: add chapter status admin page

25 of 30 new or added lines in 3 files covered. (83.33%)

3579 of 3758 relevant lines covered (95.24%)

37.29 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

50.0
/app/components/admin/chapter_status/table_component.rb
1
# frozen_string_literal: true
2

3
class Admin::ChapterStatus::TableComponent < ViewComponent::Base
6✔
4
  def initialize(label:, rows:, months:, at_risk_ids: nil) # rubocop:disable Lint/MissingSuper
6✔
NEW
5
    @label = label
×
NEW
6
    @rows = rows
×
NEW
7
    @months = months
×
NEW
8
    @at_risk_ids = at_risk_ids
×
9
  end
10

11
  private
6✔
12

13
  attr_reader :label, :rows, :months, :at_risk_ids
6✔
14
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc