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

Int b 21373 validation submit move details task order with files #14303

Conversation

samaysofo
Copy link
Contributor

B-21373

Summary

This pr is to add disabling of the "Submit move details" and "Approve selected" buttons on the Move details page. It also adds and alert message /disabling for "Manage orders" /"Done buttons if there's no uploaded documents. A scroll to view is also added to focus on required fields when data is not entered into a required field.
Is there anything you would like reviewers to give additional scrutiny?

this article explains more about the approach used.

Verification Steps for the Author

These are to be checked by the author.

  • Tested in the Experimental environment (for changes to containers, app startup, or connection to data stores)
  • Have the Agility acceptance criteria been met for this change?

Verification Steps for Reviewers

These are to be checked by a reviewer.

  • Has the branch been pulled in and checked out?
  • Have the BL acceptance criteria been met for this change?
  • Was the CircleCI build successful?
  • Has the code been reviewed from a standards and best practices point of view?

Setup to Run the Code

How to test

  1. Access the application
  2. Login as a SC
  3. Search for a Move (could be new or already created), navigate to the Move details page.
  4. Scroll down to "Orders" section and click the "View and edit orders" button.
  5. "Manage orders" and "Done" buttons should be disabled with a message "File upload is required" if there's no document uploaded.
  6. Click on the "Save" button, should stay on the same page and receive "Please select one or more files"
  7. Upload a document and click the Save button.
  8. Should be navigated to the "Move details" page with "Submit move details" button enabled (if all required orders fields are entered).
  9. Verify disabling of the Submit move details button by repeating step 4 and then deleting the uploaded document and click the "Cancel" button. When navigated back to the Move details page the Submit move details button should be disabled.
  10. Login as a TOO
  11. Repeat step 3 - 7
  12. Should be navigated to the "Move details" page, select a shipment(Move management seems to be selected by default) and the "Approve selected" button should be enabled.
  13. Verify disabling of the Approve selected button by repeating step 4 and then deleting the uploaded document and click the "Cancel" button.
  14. Repeat step 12 and the "Approve selected button should be disabled.
  15. Login as SC/TOO
  16. Repeat step 3 and 4
  17. Make sure some of the required fields are not filled out(e.g Date issued, Report by date, Department indicator, Orders number) and scroll out of focus any of the fields not entered.
  18. Click on the "Save" button, should scroll to focus the first required field not entered.

Frontend

  • There are no aXe warnings for UI.
  • This works in Supported Browsers and their phone views (Chrome, Firefox, Edge).
  • There are no new console errors in the browser devtools.
  • There are no new console errors in the test output.
  • If this PR adds a new component to Storybook, it ensures the component is fully responsive, OR if it is intentionally not, a wrapping div using the officeApp class or custom min-width styling is used to hide any states the would not be visible to the user.
  • This change meets the standards for Section 508 compliance.

Backend

Database

Any new migrations/schema changes:

  • Follows our guidelines for Zero-Downtime Deploys.
  • Have been communicated to #g-database.
  • Secure migrations have been tested following the instructions in our docs.

Screenshots

B-21373-SC_File_Upload.mov
B-21373-TOO-File-Upload.mov
B-21669-ScrollToView-Error.mov

…ove-details-task-order-with-files' into INT-B-21373_validation_submit_move_details_task_order_with_files
@samaysofo samaysofo requested a review from a team as a code owner December 3, 2024 16:57
…with-files' into INT-B-21373_validation_submit_move_details_task_order_with_files
@ryan-mchugh ryan-mchugh self-requested a review December 3, 2024 19:22
Copy link
Contributor

@ryan-mchugh ryan-mchugh left a comment

Choose a reason for hiding this comment

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

Tested locally and looks good!

@antgmann
Copy link
Contributor

antgmann commented Dec 3, 2024

So far, everything is looking great. I have noticed some ANDI flags on this page that I may need to open an issue for, but it's unrelated to this PR's changes:
Pasted Graphic 1
Pasted Graphic
Pasted Graphic 2

@antgmann
Copy link
Contributor

antgmann commented Dec 3, 2024

image Another issue unrelated to this PR's changes, these console errors are going to become annoying. Andi doesn't like it either. Separate issue inbound

Copy link
Contributor

@antgmann antgmann left a comment

Choose a reason for hiding this comment

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

Everything looks good and functions as expected, this page has a lot of unrelated messiness that would be nice to clean up in separate issues.

@danieljordan-caci
Copy link
Contributor

So far, everything is looking great. I have noticed some ANDI flags on this page that I may need to open an issue for, but it's unrelated to this PR's changes: Pasted Graphic 1 Pasted Graphic Pasted Graphic 2

We do have a handy feature that I have been throwing UI changes into. I think it would be appropriate to throw in a blurb in there about fixing these 508/ANDI errors and hopefully get them fixed in the near future.

@antgmann
Copy link
Contributor

antgmann commented Dec 3, 2024

We do have a handy feature that I have been throwing UI changes into. I think it would be appropriate to throw in a blurb in there about fixing these 508/ANDI errors and hopefully get them fixed in the near future.

Thanks for the tip! I've added it.
Edit:
Moved from E-06194 to E-05774 per Dre's suggestion

Copy link
Contributor

@msaki-caci msaki-caci left a comment

Choose a reason for hiding this comment

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

LGTM

@samaysofo samaysofo merged commit 1e15b0d into integrationTesting Dec 4, 2024
31 checks passed
@samaysofo samaysofo deleted the INT-B-21373_validation_submit_move_details_task_order_with_files branch December 4, 2024 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Go-Rillaz Go-Rillaz INTEGRATION Slated for Integration Testing
Development

Successfully merging this pull request may close these issues.

5 participants