f08c5d59f3
StatisticsLive: load statistics only in handle_params
continuous-integration/drone/push Build was killed
continuous-integration/drone/promote/production Build is passing
2026-02-12 19:35:48 +01:00
004336fea3
Statistics test: guarantee empty members then assert is_nil for first_join_year
2026-02-12 19:35:48 +01:00
bd4dc86cca
StatisticsLiveTest: explicit auth (read_only) and redirect test for own_data
2026-02-12 19:35:48 +01:00
7828fc729f
Gettext: add DE translation for Fee types could not be loaded
2026-02-12 19:35:48 +01:00
3eead112b0
Statistics tests: strict first_join_year nil, fee_type_id in URL
2026-02-12 19:35:48 +01:00
4b61289f33
Statistics LiveView: robust URL, load_fee_types error handling, clamp percents
2026-02-12 19:35:48 +01:00
b416944321
Statistics: log Ash errors instead of returning 0/nil silently
2026-02-12 19:35:48 +01:00
490dced8c8
Statistics: member stats independent of fee type
2026-02-12 19:35:48 +01:00
98af2b77ee
Add German translations for statistics page
2026-02-12 19:35:48 +01:00
0351ad6a51
Fix create_fee_type default arg warning in StatisticsTest
2026-02-12 19:35:48 +01:00
2beceb539b
Update docs and guidelines for statistics feature
...
- CODE_GUIDELINES.md and feature-roadmap.md
- Add statistics-page-implementation-plan.md
2026-02-12 19:35:48 +01:00
6fd9d00327
Update gettext: extract and add DE/EN for statistics strings
2026-02-12 19:35:48 +01:00
a263cb4954
Pass actor through CycleGenerator so seeds can use admin
...
- get_actor(opts): use opts[:actor] or system actor
- load_member, do_generate_cycles, create_cycles pass opts
- Seeds pass admin_user_with_role for Ash.load! and cycle updates
2026-02-12 19:35:48 +01:00
6e309622a0
Add StatisticsLive: overview, bars by year, pie chart
...
- Summary cards: active/inactive members, open amount
- Joins and exits by year (horizontal bars)
- Contributions by year: table with stacked bar above amounts
- Column order: Paid, Unpaid, Suspended, Total; color dots for legend
- All years combined pie chart
- LiveView tests
2026-02-12 19:35:48 +01:00
919a8e4ebd
Add statistics route, permissions, and sidebar entry
...
- /statistics route and PagePaths.statistics
- Permission sets: viewer and admin can access /statistics
- Sidebar link with can_access_page check
- Plug and sidebar tests updated
2026-02-12 19:35:48 +01:00
fd10fe5cf6
Add Statistics module for member and cycle aggregates
...
- first_join_year, active/inactive counts, joins/exits by year
- cycle_totals_by_year, open_amount_total
- Unit tests for Statistics
2026-02-12 19:35:48 +01:00