Expand description
Pivot aggregation logic shared across all interfaces.
Groups youth by their highest rank or by badges they’re working on, producing intermediate types that each interface converts for display.
Structs§
- Badge
Group - A badge with its grouped scouts.
- Badge
Group Entry - A scout grouped under a badge they’re working on or completed.
- Badge
List Entry - Summary of a badge across all youth (name, eagle-required flag, count).
- Rank
Group - A rank with its grouped scouts.
- Rank
Group Entry - A scout grouped under their highest completed/awarded rank.
- Rank
List Entry - Summary of a rank across all youth (name, count).
Functions§
- badge_
list - Build a sorted list of badges with counts.
If
sort_by_count, sorts by count desc with name tiebreaker. Otherwise sorts by name (case-insensitive). - group_
youth_ by_ badge - Group youth badges into badge-centric groups.
- group_
youth_ by_ rank - Group youth by their highest completed/awarded rank.
- rank_
list - Build a sorted list of ranks with counts.
If
sort_by_count, sorts by count desc with rank-order tiebreaker. Otherwise sorts by canonical rank order.