Skip to content
This repository has been archived by the owner on Jan 3, 2025. It is now read-only.

Refactor Registration Admin selected-rows reducer #378

Merged

Conversation

kr-matthews
Copy link
Contributor

Avoids storing redundant information in state about which table the selected attendee is in. This technically wasn't causing issues, but future code changes had the possibility of introducing bugs.

Also changed the checkboxes on the header rows to match the state of the rows below (ie is checked if and only if all the rows are checked), and omitted them when their respective table is empty.

Plus I started adding the functionality to hide the changing-status buttons when the user doesn't have that ability - @FinnIckler if you could finish that off that would be great, since you're familiar with who should have what permissions. Or it can be saved for a later ticket.

@kr-matthews kr-matthews self-assigned this Dec 6, 2023
@FinnIckler
Copy link
Member

I finished it by adding a isOrganizerOrDelegate to the PermissionsContext

@FinnIckler FinnIckler merged commit df15fd4 into thewca:main Dec 6, 2023
1 check passed
@kr-matthews kr-matthews deleted the registration-admin-selected-rows-reducer branch December 6, 2023 15:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants