Skip to content

Conversation

AllanOXDi
Copy link
Member

Summary

This PR fixes the issue where selected users in the Users table were being cleared whenever a side panel (Assign Coach, Enroll in Class, Remove from Class) was opened and then closed.
fixes #13691

References

#13691

Reviewer guidance

  • Go to Facility > Users and select several users
  • Open any of the available options such as "Assign coach", "Enroll in class", "Remove from class" and then close the side panel

@AllanOXDi AllanOXDi requested review from LianaHarris360 and ozer550 and removed request for LianaHarris360 September 3, 2025 13:52
@github-actions github-actions bot added APP: Facility Re: Facility App (user/class management, facility settings, csv import/export, etc.) DEV: frontend labels Sep 3, 2025
Copy link
Contributor

github-actions bot commented Sep 3, 2025

Copy link
Member

@AlexVelezLl AlexVelezLl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @AllanOXDi! Code changes look good. Just found a minor regression, and an oversight in the AssignCoachesSidePanel.

<component
:is="canAssignCoaches ? 'router-link' : 'span'"
:to="overrideRoute($route, { name: PageNames.ASSIGN_COACHES_SIDE_PANEL })"
:to="overrideRoute($route, { name: PageNames.SSAIGN_COACHES_SIDE_PANEL })"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like an unnoticed change here is breaking the open assign coaches side panel

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Thanks

});
function closeSidePanel() {
emit('clearSelection');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This closeSidePanel is the general method we use to close the side panel, adding the clearSelection here is incorrect because it will always clear the selection when closing the side panel even if the operation was not completed. This should be moved to the _handleAssign method after closing the side panel.

Copy link
Member

@pcenov pcenov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @AllanOXDi - I confirm that this is working fine for the Users table, but it's not fixed at all for the New users table:

newusers.mp4

@AllanOXDi
Copy link
Member Author

Thanks for pointing that out @pcenov . Let me push the fix momentarily

@AllanOXDi
Copy link
Member Author

Hi @pcenov It should be fixed now.

@AllanOXDi AllanOXDi requested a review from pcenov September 18, 2025 13:50
@pcenov
Copy link
Member

pcenov commented Sep 19, 2025

Thanks @AllanOXDi - I have just one additional question: In the "New users" table after I complete an action such as enrolling a user in a class or removing them, then the selected user(s) remain selected in the table, while in this case the users should no longer be selected. Is this something that can be addressed as part of this PR or I should report it separately?

completed.action.mp4

@nucleogenesis
Copy link
Member

@pcenov @AllanOXDi let's keep the experience consistent across the two pages where the user's selection is cleared after they've taken an action on their selection

Copy link
Member

@nucleogenesis nucleogenesis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes lgtm - good to merge once @pcenov 's last bit of feedback has been addressed.

Copy link
Member

@nucleogenesis nucleogenesis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AllanOXDi on the New Users page when the selection is cleared, if I'd selected all (and thus the "Select all" checkbox is checked) - then I complete a bulk action.

In this case, all selected users are deselected, but for some reason the "Select all" is still checked.

Copy link
Member

@pcenov pcenov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @AllanOXDi - LGTM!

@AlexVelezLl AlexVelezLl dismissed their stale review September 23, 2025 17:04

Changes addressed.

@AllanOXDi AllanOXDi dismissed nucleogenesis’s stale review September 23, 2025 17:05

Seems like there is nothing left . I will proceed with the merge here

@AllanOXDi AllanOXDi merged commit 469a850 into learningequality:develop Sep 23, 2025
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
APP: Facility Re: Facility App (user/class management, facility settings, csv import/export, etc.) DEV: frontend SIZE: small SIZE: very small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Facility > Users - The selected users should remain selected until an action is completed
4 participants