Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

B-21350-INT Bulk assignment modal equal assignment button #14840

Open
wants to merge 34 commits into
base: integrationTesting
Choose a base branch
from

Conversation

paulstonebraker
Copy link
Contributor

@paulstonebraker paulstonebraker commented Feb 19, 2025

Agility ticket

Summary

This work adds checkboxes to the bulk assignment modal for the purposes of equal assignment. I am very open to suggestions on this PR if anyone has suggestions on managing the state of selected/checked users, or the math for equal assignment :)

Changes in primeapiv2 are from main
Changes in adminapi and rejected_office_user_service_test.go are from linter

How to test

  1. Login as a supervisor
  2. Click bulk assignment button
  3. Confirm all checkboxes begin selected
  4. Check and uncheck boxes, use the column header to select/deselect all, click equal assign, make sure everything is working as intended
  5. Save and make sure thats working
  6. Try and break while also testing existing functionality to make sure i didn't screw up a merge somewhere or anything please!

@paulstonebraker paulstonebraker marked this pull request as ready for review February 24, 2025 14:42
@paulstonebraker paulstonebraker requested review from a team as code owners February 24, 2025 14:42
@paulstonebraker paulstonebraker self-assigned this Feb 24, 2025
@paulstonebraker paulstonebraker added G-Unit Scrum Team G INTEGRATION Slated for Integration Testing labels Feb 24, 2025
@paulstonebraker paulstonebraker changed the title B 21350 int B-21350-INT Bulk assignment modal equal assignment button Feb 24, 2025
@loganwc
Copy link
Contributor

loganwc commented Feb 24, 2025

#14867 should go first

@paulstonebraker paulstonebraker requested a review from a team as a code owner February 26, 2025 02:24
@pambecker
Copy link
Contributor

Can we fix this placement, have the button on the outside still when this message displays?
image

@paulstonebraker
Copy link
Contributor Author

Can we fix this placement, have the button on the outside still when this message displays? image

Good find, will do

Copy link
Contributor

@danieljordan-caci danieljordan-caci left a comment

Choose a reason for hiding this comment

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

I'd like to request some changes to the error message that displays by changing it to this:

          {isError && (
            <Alert type="error" headingLevel="h4" slim>
              {errorMessage}
            </Alert>
          )}

I'm cool with it being at the top or the bottom, here's a screenshot for both:
Screenshot 2025-02-26 at 9 00 30 AM
Screenshot 2025-02-26 at 9 04 04 AM

Looks a lot cleaner to me and uses functionality we use throughout the app

@danieljordan-caci
Copy link
Contributor

Also want to make sure that you're clearing that error when the user clicks the cancel button, etc

@paulstonebraker
Copy link
Contributor Author

When I first come into the Bulk Assign modal, I don't think we should be selecting the checkboxes right away. I think by default they should be unchecked. And then the Equal Assign button disable to start also.

Updated AC to include them being preselected at request of PO

@paulstonebraker
Copy link
Contributor Author

I'd like to request some changes to the error message that displays by changing it to this:

          {isError && (
            <Alert type="error" headingLevel="h4" slim>
              {errorMessage}
            </Alert>
          )}

I'm cool with it being at the top or the bottom, here's a screenshot for both: Screenshot 2025-02-26 at 9 00 30 AM Screenshot 2025-02-26 at 9 04 04 AM

Looks a lot cleaner to me and uses functionality we use throughout the app

Sweet, appreciate the code snippet and looks good

@paulstonebraker
Copy link
Contributor Author

Also want to make sure that you're clearing that error when the user clicks the cancel button, etc

What do you mean by this? I think if they click cancel, and are viewing the confirmation modal, error should still be there like so

image

but open to discussion.

@danieljordan-caci
Copy link
Contributor

Also want to make sure that you're clearing that error when the user clicks the cancel button, etc

What do you mean by this? I think if they click cancel, and are viewing the confirmation modal, error should still be there like so

image

but open to discussion.

I think at that point it seems irrelevant imo - because we've showed it to them and then they took another action so we can assume they've seen it and feels right to clear it

@paulstonebraker
Copy link
Contributor Author

Also want to make sure that you're clearing that error when the user clicks the cancel button, etc

What do you mean by this? I think if they click cancel, and are viewing the confirmation modal, error should still be there like so
image
but open to discussion.

I think at that point it seems irrelevant imo - because we've showed it to them and then they took another action so we can assume they've seen it and feels right to clear it

I disagree but I am also mostly indifferent so I'll defer to you!

@pambecker
Copy link
Contributor

Also want to make sure that you're clearing that error when the user clicks the cancel button, etc

What do you mean by this? I think if they click cancel, and are viewing the confirmation modal, error should still be there like so
image
but open to discussion.

I think at that point it seems irrelevant imo - because we've showed it to them and then they took another action so we can assume they've seen it and feels right to clear it

I do agree, we should clear the message after the user takes an action.

@paulstonebraker paulstonebraker mentioned this pull request Feb 28, 2025
@paulstonebraker
Copy link
Contributor Author

@danieljordan-caci @pambecker updated error message placement, using for the error, clearing the error, disabling the save if form is unchanged, and no prompting user with the cancel confirmation if the form is unchanged. I think.

Copy link
Contributor

@danieljordan-caci danieljordan-caci left a comment

Choose a reason for hiding this comment

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

Might need to look at the storybook for the modal - ghostin' ya

Screenshot 2025-02-28 at 1 48 15 PM

@paulstonebraker
Copy link
Contributor Author

Might need to look at the storybook for the modal - ghostin' ya

Screenshot 2025-02-28 at 1 48 15 PM

🤬

@paulstonebraker
Copy link
Contributor Author

paulstonebraker commented Mar 3, 2025

@danieljordan-caci Updated, sorry about not checking Happo
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do not merge G-Unit Scrum Team G INTEGRATION Slated for Integration Testing
Development

Successfully merging this pull request may close these issues.

4 participants