UI for adding and removing members on the group show page #401
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#401
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/ui-for-adding-members-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:
UI for adding and removing members on the group show page. Members can be added via an inline search (combobox) and removed via a per-row action; authorization and accessibility are covered.
What has been changed?
Group show page (
lib/mv_web/live/group_live/show.ex)search_members,select_member,add_selected_membersand related state.remove_memberevent and server-side authorization.available_members,selected_member_ids/selected_members,member_search_query,show_member_dropdown,focused_member_indexfor combobox behaviour.load_available_members(withavailable_members_base_queryandgroup_member_ids_sethelpers to keep complexity andlength/1usage in check),perform_add_members, group reload after add/remove.Documentation
Internationalisation
Tests
#member-dropdownwhere relevant.Memberalias and fixed unused variable warnings in several test files;user_live/index_test.exsandshow_authorization_test.exsunused variable fixes.Definition of Done
Code Quality
Accessibility
Testing
Additional Notes
:searchaction; results are filtered client-side so current group members do not appear in the dropdown.length(@available_members) == 0).View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.