Add groups to member detail view closes #374 #423
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#423
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/374-member-detail-groups"
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 Detail – Groups display (Issue #374)
Show a member’s groups in the member detail view as button-style links in the Personal Data section (below “Linked User”). Each group links to its detail page (
/groups/:slug). Empty state shows “No groups”. Implements Issue 4 from the Groups architecture.What has been changed?
lib/mv_web/live/member_live/show.ex)groups: [:id, :name, :slug]with the member inhandle_params(single query, no N+1).data_fieldpattern.<.link navigate=...>) styled asbtn btn-xs btn-outline btn-primary, withrole="status"andaria-label={gettext("Member of group %{name}", name: group.name)}.test/mv_web/member_live/show_groups_display_test.exs(10 tests): visibility with/without groups, multiple groups, empty state, links and navigation, slug in URL, read-only user, accessibility (role + aria-label), and that groups are loaded with the member in one request.docs/groups-architecture.md: Issue 4 marked as implemented (Groups in Personal Data, button-style links).show.exin the .pot/.po files.Definition of Done
Code Quality
Accessibility
btn-outline btn-primary)aria-labelwith “Member of group %{name}” per link;role="status")Testing
/members/:idwith groups)Additional Notes
/groups/:slug.mix test test/mv_web/member_live/show_groups_display_test.exs(async: false to avoid DB deadlocks).show.exwas added.