-
Notifications
You must be signed in to change notification settings - Fork 35
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-21162 Destination Address Street 1 OPTIONAL #13846
INT B-21162 Destination Address Street 1 OPTIONAL #13846
Conversation
…directly affect UI related to this feature branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All of the testing instructions work well, all of the AC appears to be covered. I had a couple nitpicks about comments but they seem to be resolved!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional as a customer initially submitting their move.
Required as a customer submitting their closeout.
I was able to add and remove the street address as a counselor and the summary card displayed correctly both with and without a street address.
The street address was still required for HHG and NTS-Release.
I believe this also completes the downstream B-21465.
B-21162
Summary
PPM destination address street 1 will now be OPTIONAL for onboarding on the CUSTOMER, OFFICE, PRIME SIMULATOR APPS and PRIME V3 APIs(CreateMTOShipment a d UpdateMTOShipment). PPM destination address street 1 will be REQUIRED during PRE CLOSEOUT(waiting on customer) on the CUSTOMER side during the Upload PPM Documents process.
It was decided not to make streetAddress1 NULLABLE on the addresses table per architecture's suggestion. Instead we will be using a string placeholder - "n/a" - to represent NULL on the table level. To achieve this, the payload_to_model and model_to_payload GO files were updated to convert empty/null value to "n/a and vice versa.
It will be shown as streetAddress1 = "" on the client side response side. This was done per Danny M not wanting the UI to display "n/a".
Note: This PR takes in consideration of new enchancement introduced by the ByteSize MM's MAIN PR. This enhancement will now display REQUIRED labelHints for all required input fields while removing the OPTIONAL label hints; However, this change was only done on the CUSTOMER SIDE and NOT on OFFICE/PRIME SIMULATOR UIs.
CUSTOMER/ONBOARDING:
CUSTOMER/UPLOAD PPM DOCUMENTS:
OFFICE/PRIME SIMULATOR:
this article explains more about the approach used.
Verification Steps for the Author
These are to be checked by the author.
Verification Steps for Reviewers
These are to be checked by a reviewer.
Setup to Run the Code
How to test
see screenshot above.
How to test Prime V3 API:
{ "moveTaskOrderID": "<-- PASTE HERE-->", "shipmentType": "PPM", "counselorRemarks": null, "ppmShipment": { "expectedDepartureDate": "2024-10-01", "pickupAddress": { "streetAddress1": "123 Street", "streetAddress2": "", "city": "SomeCity", "state": "CA", "postalCode": "90210" }, "secondaryPickupAddress": null, "destinationAddress": { "streetAddress1": "", "streetAddress2": "", "city": "SomeCity", "state": "CA", "postalCode": "90210" }, "secondaryDestinationAddress": null, "sitExpected": false, "hasSecondaryPickupAddress": false, "hasSecondaryDestinationAddress": false, "estimatedWeight": 100, "hasProGear": false } }
{ "ppmShipment": { "expectedDepartureDate": "2024-10-01", "pickupAddress": { "streetAddress1": "123 Street", "city": "SomeCity", "state": "AL", "postalCode": "14150" }, "secondaryPickupAddress": { "streetAddress1": "", "streetAddress2": "", "streetAddress3": "", "city": "", "state": "", "postalCode": "" }, "tertiaryPickupAddress": { "streetAddress1": "", "streetAddress2": "", "streetAddress3": "", "city": "", "state": "", "postalCode": "" }, "destinationAddress": { "streetAddress1": "", "city": "SomeCity test from swagger 2b", "state": "AL", "postalCode": "14150" }, "secondaryDestinationAddress": { "streetAddress1": "", "streetAddress2": "", "streetAddress3": "", "city": "", "state": "", "postalCode": "" }, "tertiaryDestinationAddress": { "streetAddress1": "", "streetAddress2": "", "streetAddress3": "", "city": "", "state": "", "postalCode": "" }, "sitExpected": false, "estimatedWeight": 100, "hasProGear": false, "hasSecondaryPickupAddress": false, "hasTertiaryPickupAddress": false, "hasSecondaryDestinationAddress": false, "hasTertiaryDestinationAddress": false }, "counselorRemarks": null }
Frontend
officeApp
class or custommin-width
styling is used to hide any states the would not be visible to the user.Backend