Skip to main content

Module pivot

Module pivot 

Source
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§

BadgeGroup
A badge with its grouped scouts.
BadgeGroupEntry
A scout grouped under a badge they’re working on or completed.
BadgeListEntry
Summary of a badge across all youth (name, eagle-required flag, count).
RankGroup
A rank with its grouped scouts.
RankGroupEntry
A scout grouped under their highest completed/awarded rank.
RankListEntry
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.