Member Fee Type in overview and exports, fix column visibility from URL #442
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
high priority
invalid
L
low priority
M
medium priority
needs refinement
optional
question
S
UX research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: local-it/mitgliederverwaltung#442
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/show_memberfeetype"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description of the implemented changes
The changes were:
Member Fee Type is shown as a selectable/sortable column in the member overview and included in CSV and PDF exports. Column visibility is correctly restored from the URL on full page reload or direct link.
What has been changed?
New feature: Fee Type in member overview and exports
FieldVisibilityandFieldSelectionsupport the new pseudo field; translations (EN/DE) for the column label.MembersCSVupdated.MemberExportallowlist andinsert_fee_type_and_computed_fields_like_table,Build(load/sort/cell_value formembership_fee_type),MemberPdfExportControllerallowlist formembership_fee_typeandgroups.FieldVisibilitypseudo fields.Bugfix: Column visibility from URL on reload
?fields=first_name,emailin the URL, a full reload or opening the link again showed all columns instead of only the chosen ones.conn.paramshas no query string (Phoenix runsfetch_query_paramsafter render). In addition, when the URL hadfields, the result was merged with global settings so all other columns became visible again.fieldsparameter from the request URI inhandle_params(viamerge_fields_param_from_uri), with fallback torequest_url_from_socket(socket)when the URL argument is nil (e.g. static render).?fields=...is present, useFieldVisibility.selection_from_url_only/2so only the listed columns are visible (no merge with global settings).lib/mv_web/live/member_live/index.ex(handle_params, merge_fields_param_from_uri, request_url_from_socket, compute_final_field_selection),lib/mv_web/live/member_live/index/field_visibility.ex(selection_from_url_only).Definition of Done
Code Quality
Accessibility
Testing
Additional Notes
fieldsURL parameter (Spaltenauswahl); other query params (e.g. filters, sort) are unchanged.MemberExportandMemberExport.Build(e.g.maybe_sort,insert_fee_type_and_computed_fields_like_table) were done to keep complexity and nesting within limits.f211f45cb2tod5df2338a7WIP: Member Fee Type in overview and exports, fix column visibility from URLto Member Fee Type in overview and exports, fix column visibility from URL