finalize groups #437
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#437
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/finalize-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:
Refactoring of the Group Show LiveView (add-member flow and tests) plus small feature: dev seeds for groups.
What has been changed?
Group Show LiveView (
lib/mv_web/live/group_live/show.ex)filter_candidates_in_memory/2(by name/email usingMemberHelpers.display_name/1). New assign:add_member_candidates.can?/3now uses the loaded@groupinstead ofMv.Membership.Groupfor update/destroy (e.g.can?(@current_user, :update, @group)), so policies run on the actual resource.data-testidon: edit button, delete button, member count paragraph, member search input, add-selected-members button, “no members” text, members table wrapper, remove-member buttons.Seeds (
priv/repo/seeds.exs)create_member_groupcalls are skipped.Code guidelines (
CODE_GUIDELINES.md)Gettext
Tests
data-testidselectors where relevant (show_add_member_test, show_authorization_test, show_member_search_test, show_remove_member_test, show_test, show_accessibility_test, show_add_remove_members_test, show_integration_test).Definition of Done
Code Quality
Accessibility
Testing
Additional Notes