USEPA / e-manifest

API services documentation and reference material for the e-Manifest hazardous waste tracking system
https://www.epa.gov/e-manifest
Creative Commons Zero v1.0 Universal
26 stars 22 forks source link

EM-2652 Select Registered Users via Modal #1502

Closed e-manifest closed 2 years ago

e-manifest commented 2 years ago

Sites may have between 1 and 200+ users associated with them which can make the bottom of the industry correction request very long. Here is the change I would like us to implement to free up some real estate.

Change the list in the app to a modal, like the My Sites -> Select Existing Site button search results

Here is what the section would look like after this change. The other email address button would continue to work like it does currently. Once a user selects the Add Existing Users button

!image-20220818-221054.png|width=1377,height=451!

Once the modal pops up the users see the table as it is today, but in the modal, where the user can select the emails

!image-20220818-222048.png|width=1143,height=420!

Once a user has selected the users they want to send to send emails to the return to the page and see the following. {color:#ff5630}(Note: we decided to not display a Select All column and instead add an Action column with an X icon to deleted an email recipient) {color}

!image-20220818-221117.png|width=1222,height=396!

Acceptance Criteria
(x) When a user initiates a correction request, the “Email Recipients for” sections should show an Add Existing Users button under the Email Addresses label.

(x) When clicking Add Existing Users, a modal should pop up allowing the user to select users from the specified site.

(x) When a user selects email recipients and clicks Select Users, the modal should close and populate the selected users' information in the Email Addresses section.

(x) Action Column with X icon displayed to remove users from the table on the edit page (not in the modal)

(x) After users are added via the modal, the Add Existing Users button should still be available

(x) If user clicks Add Existing Users again, the modal displays with the users for the site including who was previously selected