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-21839 Added payment service items to audit history (Capturing rejection reason) #14590

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

Conversation

brooklyn-welsh
Copy link
Contributor

@brooklyn-welsh brooklyn-welsh commented Jan 15, 2025

Agility ticket

Summary

When reviewing a payment request, approvals/rejections and rejection reasons were not being captured in the Move History audit log. This branch adds the necessary SQL and backend code to capture these events, as well as the frontend template for payment service items.

How to test

  1. Create a move, and take it through the process until it is available to Prime, then update the weights of the shipments to contain the actual weight, and create a payment request for the shipment(s).
  2. Login as TIO, go to the Payment Request screen, and review the new payment request.
  3. For any item, reject the item and type in a reason.
  4. Click the small 'X' on the top right of the sidebar to exit the review screen, then navigate move history tab.
  5. You should now see your payment item and reason, similar to this screenshot
    Screenshot 2025-01-15 at 10 54 38 AM

Edit: Also added rejection reason to payment request as shown here:
Screenshot 2025-01-22 at 5 36 18 PM

@brooklyn-welsh brooklyn-welsh changed the base branch from main to integrationTesting January 15, 2025 18:53
Copy link

Bundle Stats

Hey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle.

As this PR is updated, I'll keep you updated on how the bundle size is impacted.

Total

Files count Total bundle size % Changed
314 12.91 MB → 12.94 MB (+29.53 kB) +0.22%
Changeset
File Δ Size
src/constants/MoveHistory/EventTemplates/UpdateMTOServiceItem/updateServiceItemPricingAndWeights.jsx 🆕 +1.27 kB 0 B → 1.27 kB
src/constants/MoveHistory/EventTemplates/UpdatePaymentServiceItem/UpdatePaymentServiceItemStatus.jsx 🆕 +881 B 0 B → 881 B
src/constants/MoveHistory/EventTemplates/UpdateAssignedOfficeUser/DeleteAssignedOfficeUser.jsx 🆕 +866 B 0 B → 866 B
src/constants/MoveHistory/EventTemplates/ReviewShipmentAddressUpdate/reviewShipmentAddressUpdate.jsx 🆕 +795 B 0 B → 795 B
src/constants/MoveHistory/EventTemplates/UpdateAssignedOfficeUser/UpdateAssignedOfficeUser.jsx 🆕 +783 B 0 B → 783 B
src/components/Office/PortTable/PortTable.jsx 🆕 +707 B 0 B → 707 B
src/constants/MoveHistory/EventTemplates/UpdatePaymentRequestStatus/UpdatePaymentRequestStatusMoves.jsx 🆕 +693 B 0 B → 693 B
src/constants/MoveHistory/EventTemplates/UpdateMoveTaskOrderStatus/updateMoveTaskOrderStatus.jsx 📈 +293 B (+58.25%) 503 B → 796 B
src/constants/MoveHistory/EventTemplates/UpdateServiceItemStatus/updateServiceItemStatusUpdateMove.jsx 📈 +286 B (+55.11%) 519 B → 805 B
src/constants/MoveHistory/EventTemplates/UpdateMTOStatusServiceCounselingCompleted/updateMTOStatusServiceCounselingCompleted.jsx 📈 +280 B (+55.01%) 509 B → 789 B
src/components/Office/AddressUpdatePreview/AddressUpdatePreview.jsx 📈 +744 B (+27.56%) 2.64 kB → 3.36 kB
src/components/Office/AddOrdersForm/AddOrdersForm.jsx 📈 +2.33 kB (+23.64%) 9.86 kB → 12.19 kB
src/scenes/SystemAdmin/shared/RolesPrivilegesCheckboxes.jsx 📈 +916 B (+18.95%) 4.72 kB → 5.62 kB
src/constants/MoveHistory/Database/Tables.js 📈 +98 B (+14.29%) 686 B → 784 B
src/pages/Office/MoveQueue/MoveQueue.jsx 📈 +1.38 kB (+13.15%) 10.49 kB → 11.87 kB
src/types/address.js 📈 +108 B (+12.68%) 852 B → 960 B
src/components/Office/ServiceItemCalculations/helpers.js 📈 +2.89 kB (+10.89%) 26.54 kB → 29.43 kB
src/utils/formatters.js 📈 +1.27 kB (+7.93%) 16.04 kB → 17.32 kB
src/components/Office/DefinitionLists/OrdersList.jsx 📈 +421 B (+7.33%) 5.61 kB → 6.02 kB
src/constants/MoveHistory/UIDisplay/Operations.js 📈 +262 B (+6.68%) 3.83 kB → 4.09 kB
src/constants/MoveHistory/EventTemplates/index.js 📈 +659 B (+6.10%) 10.55 kB → 11.19 kB
src/pages/Office/ServicesCounselingOrders/ServicesCounselingOrders.jsx 📈 +875 B (+5.69%) 15.02 kB → 15.88 kB
src/constants/serviceItems.js 📈 +366 B (+5.00%) 7.15 kB → 7.51 kB
src/components/Office/ShipmentDetails/ShipmentDetailsMain.jsx 📈 +390 B (+3.90%) 9.76 kB → 10.14 kB
src/pages/Office/PaymentRequestQueue/PaymentRequestQueue.jsx 📈 +310 B (+3.18%) 9.53 kB → 9.83 kB
src/pages/Office/ServicesCounselingQueue/ServicesCounselingQueue.jsx 📈 +647 B (+2.97%) 21.29 kB → 21.92 kB
src/services/ghcApi.js 📈 +615 B (+2.68%) 22.37 kB → 22.97 kB
src/constants/MoveHistory/Database/FieldMappings.js 📈 +126 B (+2.19%) 5.61 kB → 5.73 kB
src/hooks/queries.js 📈 +579 B (+2.15%) 26.29 kB → 26.85 kB
src/constants/routes.js 📈 +106 B (+1.14%) 9.04 kB → 9.15 kB
src/components/Office/ShipmentServiceItemsTable/ShipmentServiceItemsTable.jsx 📈 +15 B (+0.35%) 4.2 kB → 4.22 kB
src/components/Office/RequestedShipments/SubmittedRequestedShipments.jsx 📈 +26 B (+0.17%) 14.98 kB → 15.01 kB
src/components/Office/ShipmentHeading/ShipmentHeading.jsx 📈 +3 B (+0.12%) 2.36 kB → 2.36 kB
webpack/runtime/get mini-css chunk filename 📈 +1 B (+0.06%) 1.66 kB → 1.66 kB
src/components/Office/ShipmentForm/ShipmentForm.jsx 📈 +25 B (+0.05%) 50.81 kB → 50.83 kB
webpack/runtime/get javascript chunk filename 📈 +1 B (+0.04%) 2.31 kB → 2.31 kB
webpack/runtime/css loading 📈 +1 B (+0.03%) 2.96 kB → 2.96 kB
src/pages/Office/MoveDetails/MoveDetails.jsx 📉 -4 B (-0.01%) 27.56 kB → 27.55 kB
src/pages/Office/ServicesCounselingMoveDetails/ServicesCounselingMoveDetails.jsx 📉 -31 B (-0.09%) 32.54 kB → 32.51 kB
src/components/Office/RequestedShipments/ApprovedRequestedShipments.jsx 📉 -18 B (-0.22%) 7.85 kB → 7.83 kB
src/shared/constants.js 📉 -18 B (-0.30%) 5.89 kB → 5.87 kB
src/components/Office/ShipmentAddressUpdateReviewRequestModal/ShipmentAddressUpdateReviewRequestModal.jsx 📉 -17 B (-0.44%) 3.8 kB → 3.78 kB
src/content/shipments.js 📉 -9 B (-0.82%) 1.08 kB → 1.07 kB
View detailed bundle breakdown

Added

Asset File Size % Changed
static/js/main.56d2d52e.js 0 B → 790.95 kB (+790.95 kB) -
static/css/9480.6ab5c6e9.chunk.css 0 B → 689.34 kB (+689.34 kB) -
static/css/4571.9035c9ac.chunk.css 0 B → 664.61 kB (+664.61 kB) -
static/js/7159.354ea92e.chunk.js 0 B → 283.67 kB (+283.67 kB) -
static/js/3793.ff877cd1.chunk.js 0 B → 107.94 kB (+107.94 kB) -
static/js/1482.e90dabd1.chunk.js 0 B → 74.03 kB (+74.03 kB) -
static/js/4267.c53072fb.chunk.js 0 B → 59.19 kB (+59.19 kB) -
static/js/4415.44d7d3e4.chunk.js 0 B → 58.88 kB (+58.88 kB) -
static/js/6155.ee6848ad.chunk.js 0 B → 49.65 kB (+49.65 kB) -
static/css/3793.1e5ae483.chunk.css 0 B → 48.88 kB (+48.88 kB) -
static/js/992.a050101e.chunk.js 0 B → 45.68 kB (+45.68 kB) -
static/js/3786.0a34bdbb.chunk.js 0 B → 45.45 kB (+45.45 kB) -
static/js/1661.21b89aa8.chunk.js 0 B → 43.96 kB (+43.96 kB) -
static/js/5811.5fcab9fa.chunk.js 0 B → 42.52 kB (+42.52 kB) -
static/js/6351.909fa525.chunk.js 0 B → 42.16 kB (+42.16 kB) -
static/js/8501.2fcf8f05.chunk.js 0 B → 37.92 kB (+37.92 kB) -
static/js/1865.a0beb366.chunk.js 0 B → 36.57 kB (+36.57 kB) -
static/js/2863.0804daa1.chunk.js 0 B → 36.54 kB (+36.54 kB) -
static/js/349.858a40ab.chunk.js 0 B → 33.63 kB (+33.63 kB) -
static/js/6748.21057190.chunk.js 0 B → 31.79 kB (+31.79 kB) -
static/js/6074.a18b0cfc.chunk.js 0 B → 27.95 kB (+27.95 kB) -
static/css/2863.de9fbc13.chunk.css 0 B → 27.94 kB (+27.94 kB) -
static/js/1204.aef27ec3.chunk.js 0 B → 24.9 kB (+24.9 kB) -
static/js/9368.af1bd88a.chunk.js 0 B → 23.18 kB (+23.18 kB) -
static/js/7585.868b826f.chunk.js 0 B → 21.33 kB (+21.33 kB) -
static/js/8471.87cc5a3a.chunk.js 0 B → 20.42 kB (+20.42 kB) -
static/js/9875.8005670a.chunk.js 0 B → 19.73 kB (+19.73 kB) -
static/js/862.c9ad5d7a.chunk.js 0 B → 18.96 kB (+18.96 kB) -
static/js/1810.35346f0b.chunk.js 0 B → 17.32 kB (+17.32 kB) -
static/js/9480.912e46f6.chunk.js 0 B → 17.26 kB (+17.26 kB) -
static/js/8554.44d56ba6.chunk.js 0 B → 17.2 kB (+17.2 kB) -
static/js/9336.92c59190.chunk.js 0 B → 16.7 kB (+16.7 kB) -
static/js/476.295779cf.chunk.js 0 B → 15.16 kB (+15.16 kB) -
static/js/4571.801cd9f6.chunk.js 0 B → 14.87 kB (+14.87 kB) -
static/js/8778.2a59c6bd.chunk.js 0 B → 13.64 kB (+13.64 kB) -
static/js/9692.5d370632.chunk.js 0 B → 12.04 kB (+12.04 kB) -
static/js/7288.d3d6427e.chunk.js 0 B → 11.74 kB (+11.74 kB) -
static/js/871.0ef10e5b.chunk.js 0 B → 10.54 kB (+10.54 kB) -
static/js/5560.646b8099.chunk.js 0 B → 10.26 kB (+10.26 kB) -
static/js/9739.d87269da.chunk.js 0 B → 10.18 kB (+10.18 kB) -
static/js/2823.925bd906.chunk.js 0 B → 10.11 kB (+10.11 kB) -
static/js/3764.4ada99ed.chunk.js 0 B → 8.4 kB (+8.4 kB) -
static/js/2604.3ca86a71.chunk.js 0 B → 7.55 kB (+7.55 kB) -
static/js/814.63c4a279.chunk.js 0 B → 6.49 kB (+6.49 kB) -
static/css/7288.d400d2d4.chunk.css 0 B → 5.44 kB (+5.44 kB) -
static/css/9692.f188ca60.chunk.css 0 B → 4.84 kB (+4.84 kB) -
static/css/814.9e1e741d.chunk.css 0 B → 2.8 kB (+2.8 kB) -
static/css/2604.a7cbafcb.chunk.css 0 B → 2.65 kB (+2.65 kB) -

Removed

Asset File Size % Changed
static/js/main.85f4b9c8.js 790.96 kB → 0 B (-790.96 kB) -100%
static/css/2392.7a7a060b.chunk.css 689.34 kB → 0 B (-689.34 kB) -100%
static/css/885.04767869.chunk.css 664.61 kB → 0 B (-664.61 kB) -100%
static/js/7159.906f3f8b.chunk.js 283.68 kB → 0 B (-283.68 kB) -100%
static/js/6541.1b11c9b2.chunk.js 107.59 kB → 0 B (-107.59 kB) -100%
static/js/1482.bcac958e.chunk.js 73.44 kB → 0 B (-73.44 kB) -100%
static/js/4267.98bb229a.chunk.js 58.55 kB → 0 B (-58.55 kB) -100%
static/js/8929.425a1bc0.chunk.js 55.68 kB → 0 B (-55.68 kB) -100%
static/js/6155.1b692906.chunk.js 49.08 kB → 0 B (-49.08 kB) -100%
static/css/6541.6b9ea5c2.chunk.css 48.88 kB → 0 B (-48.88 kB) -100%
static/js/992.74f6fb2a.chunk.js 45.68 kB → 0 B (-45.68 kB) -100%
static/js/3786.2891a864.chunk.js 44.7 kB → 0 B (-44.7 kB) -100%
static/js/1661.dc402313.chunk.js 43.39 kB → 0 B (-43.39 kB) -100%
static/js/6351.1e810ab5.chunk.js 42.16 kB → 0 B (-42.16 kB) -100%
static/js/5811.02749639.chunk.js 42.11 kB → 0 B (-42.11 kB) -100%
static/js/8501.fa7b164c.chunk.js 37.34 kB → 0 B (-37.34 kB) -100%
static/js/1865.7d09daf9.chunk.js 36.61 kB → 0 B (-36.61 kB) -100%
static/js/3898.e8d324b8.chunk.js 34.65 kB → 0 B (-34.65 kB) -100%
static/js/349.17a419d4.chunk.js 33.63 kB → 0 B (-33.63 kB) -100%
static/js/6748.d7f143c7.chunk.js 31.22 kB → 0 B (-31.22 kB) -100%
static/css/3898.6e5b0e6e.chunk.css 27.94 kB → 0 B (-27.94 kB) -100%
static/js/6074.b202983c.chunk.js 26.7 kB → 0 B (-26.7 kB) -100%
static/js/1204.93951ad4.chunk.js 24.93 kB → 0 B (-24.93 kB) -100%
static/js/1810.cc351994.chunk.js 24.56 kB → 0 B (-24.56 kB) -100%
static/js/9368.a3280f8f.chunk.js 22.61 kB → 0 B (-22.61 kB) -100%
static/js/7585.59df9caf.chunk.js 21.06 kB → 0 B (-21.06 kB) -100%
static/js/8471.c212a06f.chunk.js 20.05 kB → 0 B (-20.05 kB) -100%
static/js/862.85621938.chunk.js 18.86 kB → 0 B (-18.86 kB) -100%
static/js/9875.ad8b2c31.chunk.js 18.61 kB → 0 B (-18.61 kB) -100%
static/js/2392.57003dd6.chunk.js 17.35 kB → 0 B (-17.35 kB) -100%
static/js/8554.b3c6b83c.chunk.js 16.63 kB → 0 B (-16.63 kB) -100%
static/js/9336.df9fcf30.chunk.js 16.13 kB → 0 B (-16.13 kB) -100%
static/js/476.86949519.chunk.js 14.19 kB → 0 B (-14.19 kB) -100%
static/js/8778.b7af15ca.chunk.js 13.07 kB → 0 B (-13.07 kB) -100%
static/js/871.49b44f02.chunk.js 10.55 kB → 0 B (-10.55 kB) -100%
static/js/8753.b02dc937.chunk.js 9.86 kB → 0 B (-9.86 kB) -100%
static/js/1517.cd629a78.chunk.js 9.72 kB → 0 B (-9.72 kB) -100%
static/js/5560.20995075.chunk.js 9.69 kB → 0 B (-9.69 kB) -100%
static/js/9739.8187bf30.chunk.js 9.6 kB → 0 B (-9.6 kB) -100%
static/js/2823.2059609a.chunk.js 9.54 kB → 0 B (-9.54 kB) -100%
static/js/396.d67e45fd.chunk.js 7.06 kB → 0 B (-7.06 kB) -100%
static/js/885.1909eecd.chunk.js 7.06 kB → 0 B (-7.06 kB) -100%
static/js/4246.333e1674.chunk.js 6.78 kB → 0 B (-6.78 kB) -100%
static/css/8753.966ce1cc.chunk.css 5.44 kB → 0 B (-5.44 kB) -100%
static/css/1617.901ba613.chunk.css 4.84 kB → 0 B (-4.84 kB) -100%
static/css/4246.af28e9df.chunk.css 2.8 kB → 0 B (-2.8 kB) -100%
static/css/396.b442cb05.chunk.css 2.65 kB → 0 B (-2.65 kB) -100%
static/js/1617.45f791dd.chunk.js 1.88 kB → 0 B (-1.88 kB) -100%

Bigger

Asset File Size % Changed
asset-manifest.json 42.3 kB → 42.31 kB (+8 B) +0.02%

Smaller

No assets were smaller

Unchanged

Asset File Size % Changed
static/js/7432.6e5d3b9c.chunk.js 890 kB 0%
static/js/4282.d860b40a.chunk.js 721.12 kB 0%
static/css/1810.f6cd0aa5.chunk.css 665.04 kB 0%
static/media/hero.bf01157b9686e90e34dd.png 609.24 kB 0%
static/css/7159.fa13a92b.chunk.css 499.62 kB 0%
static/css/8810.90d403c8.chunk.css 455.56 kB 0%
static/css/3710.4b263fe0.chunk.css 454.23 kB 0%
static/css/3786.ed106157.chunk.css 423.15 kB 0%
static/js/2548.c31aa081.chunk.js 334.66 kB 0%
static/js/2271.af4d7477.chunk.js 154.5 kB 0%
static/js/5845.ba302a06.chunk.js 113.33 kB 0%
static/media/PublicSans-Regular.af5c059f36e21e13f39f.ttf 78.03 kB 0%
static/media/PublicSans-Light.839012ec5b7d44a46954.ttf 77.91 kB 0%
static/media/PublicSans-Italic.642113a6a2f365350349.ttf 77.7 kB 0%
static/media/PublicSans-Bold.a52885b904d32280b208.ttf 77.61 kB 0%
static/media/PublicSans-LightItalic.49a5ea322c6c3762b921.ttf 77.44 kB 0%
static/media/PublicSans-BoldItalic.cbc51dd94deab4465d42.ttf 77.41 kB 0%
static/js/6085.491a4a4f.chunk.js 66.55 kB 0%
static/media/transcom-emblem.bcb580b55633c358c82d89f4798081c5.svg 65.22 kB 0%
static/js/6854.8ac4d3c6.chunk.js 63.31 kB 0%
static/js/3502.5c1d6e28.chunk.js 60.3 kB 0%
static/js/4690.1d8fce21.chunk.js 59.09 kB 0%
static/media/sourcesanspro-light-webfont.d6f73cf7210d3b5c2fa9.ttf 53.23 kB 0%
static/media/sourcesanspro-regular-webfont.5acfe0d0f69444765ba4.ttf 53.16 kB 0%
static/media/sourcesanspro-bold-webfont.9a76932911f04be25044.ttf 53.07 kB 0%
static/js/5588.cf16a060.chunk.js 52.76 kB 0%
static/js/3083.cc637eab.chunk.js 50.95 kB 0%
static/js/7525.8b7bff29.chunk.js 50.17 kB 0%
static/media/Latin-Merriweather-Regular.43dc3080728216519bf0.ttf 48.32 kB 0%
static/media/Latin-Merriweather-Light.30dd683b4fcfe95b030b.ttf 48.01 kB 0%
static/media/Latin-Merriweather-Bold.b87366633b1019e8c63c.ttf 46.12 kB 0%
static/js/5165.a739b1d0.chunk.js 40.18 kB 0%
static/js/447.e1921258.chunk.js 40.04 kB 0%
static/media/PublicSans-BoldItalic.6bb0cb126756efec5fa5.woff 39.72 kB 0%
static/media/PublicSans-Italic.333d9a80b7b3b003b3c5.woff 39.57 kB 0%
static/media/PublicSans-LightItalic.4c86a8eb158c949923dd.woff 39.53 kB 0%
static/media/Latin-Merriweather-BoldItalic.4d74f3bda45f5aba1abf.ttf 39.52 kB 0%
static/media/PublicSans-Light.8460a3397f2ffc7d22d0.woff 39.23 kB 0%
static/media/PublicSans-Regular.f32753567f64c1ddeec8.woff 39.17 kB 0%
static/media/PublicSans-Bold.8c3655e2b925bcad90cd.woff 39.11 kB 0%
static/media/Latin-Merriweather-Italic.b60043e65fa5cbcedb80.ttf 38.55 kB 0%
static/media/Latin-Merriweather-LightItalic.26ebdd3b8f1d039bc3dd.ttf 38.53 kB 0%
static/media/sourcesanspro-lightitalic-webfont.43ea3d39e6aa59fb6f1b.ttf 38.23 kB 0%
static/media/sourcesanspro-italic-webfont.3efee318468995ac04af.ttf 37.94 kB 0%
static/media/sourcesanspro-bolditalic-webfont.af3dd40e0ac8e2ca50ac.ttf 37.85 kB 0%
static/js/1450.674d183e.chunk.js 34.99 kB 0%
static/media/PublicSans-BoldItalic.effa83ee2a557ae8a57e.woff2 32.43 kB 0%
static/media/PublicSans-Italic.8be0a159b540a60fd93a.woff2 32.26 kB 0%
static/media/PublicSans-LightItalic.475db532b9392ec581c5.woff2 32.14 kB 0%
static/media/PublicSans-Light.4ba4759c3e98938156d7.woff2 31.84 kB 0%
static/media/roboto-mono-v5-latin-300italic.93511dbad22ceb584f03.ttf 31.83 kB 0%
static/media/roboto-mono-v5-latin-700italic.da78bf0b1b435f40ca19.ttf 31.8 kB 0%
static/media/PublicSans-Regular.e86d2642f412b9493b14.woff2 31.79 kB 0%
static/media/PublicSans-Bold.4045385082dfc34c22d7.woff2 31.64 kB 0%
static/media/roboto-mono-v5-latin-italic.4863add4d566a55b6a97.ttf 31.58 kB 0%
static/media/roboto-mono-v5-latin-300.ce3838471d62f8364e12.ttf 31.41 kB 0%
static/media/okta_logo.56ac9bdcdffeda24c715.png 31.3 kB 0%
static/media/roboto-mono-v5-latin-700.e57caf7ea634a258a9b2.ttf 30.36 kB 0%
static/media/roboto-mono-v5-latin-regular.215adb34128fcb20668b.ttf 30.32 kB 0%
static/js/7340.ad91933d.chunk.js 30.05 kB 0%
static/js/9706.2d980d7b.chunk.js 29.5 kB 0%
static/css/992.e40d7f04.chunk.css 29.15 kB 0%
static/css/6351.2d11624e.chunk.css 28.34 kB 0%
static/media/Latin-Merriweather-Regular.add503b41601df15b97e.woff 26.87 kB 0%
static/media/Latin-Merriweather-Light.7b2a6350fcb212efe521.woff 26.36 kB 0%
static/media/Latin-Merriweather-Bold.b6cbc321678701d773c6.woff 26.26 kB 0%
static/css/1865.b6baac32.chunk.css 25.9 kB 0%
static/media/sourcesanspro-regular-webfont.c4e25ab10baa365dfc66.woff 25.53 kB 0%
static/media/sourcesanspro-bold-webfont.e7e051e1bc64fa899317.woff 25.43 kB 0%
static/media/sourcesanspro-light-webfont.70e7d719e258c9a7e68b.woff 25.35 kB 0%
static/css/1482.e3f92bbd.chunk.css 25.31 kB 0%
static/js/2923.5ae1fb30.chunk.js 24.52 kB 0%
static/js/7979.d44075bd.chunk.js 24.43 kB 0%
static/media/Latin-Merriweather-BoldItalic.a0bcf832ed51501c237c.woff 23.89 kB 0%
static/media/Latin-Merriweather-Italic.80d8a9aff0d8bdeb966d.woff 23.59 kB 0%
static/media/Latin-Merriweather-LightItalic.8a239a410a47b6192e05.woff 23.25 kB 0%
static/css/9706.8f42dd5f.chunk.css 21.61 kB 0%
static/js/5780.0095ccd0.chunk.js 21.35 kB 0%
static/media/Latin-Merriweather-Regular.a30c1b8fcb759e9fe728.woff2 21.18 kB 0%
static/media/Latin-Merriweather-Bold.9caa42f21e4ae090b755.woff2 20.81 kB 0%
static/media/Latin-Merriweather-Light.f347d9834a5feacbcefb.woff2 20.76 kB 0%
static/media/roboto-mono-v5-latin-700italic.0a6791447401e0ebd70d.woff 20.64 kB 0%
static/media/roboto-mono-v5-latin-italic.756750acefdb77704c08.woff 20.6 kB 0%
static/js/4216.4350b0df.chunk.js 20.58 kB 0%
static/media/roboto-mono-v5-latin-300italic.1b8d46dae0a077f999ae.woff 20.56 kB 0%
static/css/2271.643cfb33.chunk.css 20.08 kB 0%
static/css/8778.c8e51c91.chunk.css 20.07 kB 0%
static/media/sourcesanspro-regular-webfont.e7bccfa631a0017f31da.woff2 20.06 kB 0%
static/media/sourcesanspro-light-webfont.e5f1a42e1c2b97e25876.woff2 19.93 kB 0%
static/media/sourcesanspro-bold-webfont.4a1efbe82eaa84ff89ed.woff2 19.89 kB 0%
static/js/6884.b9267f82.chunk.js 19.8 kB 0%
static/media/sourcesanspro-lightitalic-webfont.455d120362f79aa219d4.woff 19.78 kB 0%
static/media/sourcesanspro-italic-webfont.0aaeabbaba3845331078.woff 19.73 kB 0%
static/media/sourcesanspro-bolditalic-webfont.73021f1aabd43f50e16a.woff 19.69 kB 0%
static/media/roboto-mono-v5-latin-300.92dd8f0ccfaebc33f817.woff 19.42 kB 0%
static/css/8120.db072867.chunk.css 19.32 kB 0%
static/media/roboto-mono-v5-latin-regular.a3246d29b40a8b0da142.woff 19.12 kB 0%
static/media/Latin-Merriweather-BoldItalic.dc8b76b44a8a6e5fad1c.woff2 19.11 kB 0%
static/media/roboto-mono-v5-latin-700.d85b43c39f4620dfa5b4.woff 19.11 kB 0%
static/media/Latin-Merriweather-Italic.c63d4066b0f133fc519f.woff2 18.8 kB 0%
static/js/1775.2ce0528d.chunk.js 18.8 kB 0%
static/media/Latin-Merriweather-LightItalic.506121dad559538d44ed.woff2 18.53 kB 0%
static/js/8120.ea792570.chunk.js 18.49 kB 0%
static/media/smart-card.c810117aa96a9adbd31b.png 18.39 kB 0%
static/js/9740.2313e1fe.chunk.js 18.37 kB 0%
static/js/6917.da572d04.chunk.js 17.78 kB 0%
static/css/3083.49432158.chunk.css 17.71 kB 0%
static/media/roboto-mono-v5-latin-300italic.09cc62a8fbd32c8b2812.woff2 16.93 kB 0%
static/media/roboto-mono-v5-latin-700italic.5a8f743549cc6cef9a00.woff2 16.93 kB 0%
static/media/sad-computer.b62f031230f84d7db1b1.png 16.92 kB 0%
static/media/roboto-mono-v5-latin-italic.087069a9f454e2581ed6.woff2 16.91 kB 0%
static/js/4417.acd664e6.chunk.js 16.57 kB 0%
static/media/sourcesanspro-bolditalic-webfont.ef69f0d737406260319a.woff2 16.03 kB 0%
static/media/roboto-mono-v5-latin-300.316b1352cc4ab2054de6.woff2 16 kB 0%
static/media/sourcesanspro-italic-webfont.c6c9fd228e87eefaf1d4.woff2 15.99 kB 0%
static/js/4573.0f7bd500.chunk.js 15.98 kB 0%
static/media/sourcesanspro-lightitalic-webfont.9c5bf2190b2471c2f22b.woff2 15.93 kB 0%
static/js/8693.b4171601.chunk.js 15.91 kB 0%
static/media/roboto-mono-v5-latin-regular.f1dc10a756c2c544588b.woff2 15.65 kB 0%
static/media/roboto-mono-v5-latin-700.936869ba46988c238748.woff2 15.58 kB 0%
static/js/2680.671f7ff2.chunk.js 15.46 kB 0%
static/js/6536.62897ba9.chunk.js 14.92 kB 0%
static/js/6411.bb78f854.chunk.js 14.59 kB 0%
static/js/6696.0737c7e0.chunk.js 14.3 kB 0%
static/css/1204.68535fbe.chunk.css 14.19 kB 0%
static/css/4535.037322b7.chunk.css 14.16 kB 0%
static/css/6916.037322b7.chunk.css 14.16 kB 0%
static/js/9463.011c392e.chunk.js 14.13 kB 0%
static/js/1465.35289a0b.chunk.js 14.02 kB 0%
static/css/7340.99f19287.chunk.css 13.73 kB 0%
static/css/7979.8fdc7e53.chunk.css 13.66 kB 0%
static/js/9735.21109ea5.chunk.js 13.33 kB 0%
static/css/6884.03b59c60.chunk.css 13.21 kB 0%
static/js/7104.96ee1a6a.chunk.js 12.79 kB 0%
static/css/1661.ac503a10.chunk.css 12.74 kB 0%
static/css/6155.ac503a10.chunk.css 12.74 kB 0%
static/css/896.9b31dccf.chunk.css 12.53 kB 0%
static/css/6955.0d6f6918.chunk.css 12.49 kB 0%
static/css/9336.0d6f6918.chunk.css 12.49 kB 0%
static/css/8554.ceb7ec01.chunk.css 12.38 kB 0%
static/css/8501.9490d7a2.chunk.css 12.25 kB 0%
static/js/946.3f94defc.chunk.js 12.05 kB 0%
static/css/2512.49857b11.chunk.css 11.92 kB 0%
static/js/9414.695aa91c.chunk.js 11.81 kB 0%
static/js/9284.a7f5f949.chunk.js 11.8 kB 0%
static/js/3665.5614cae8.chunk.js 11.7 kB 0%
static/js/8797.ed6f2421.chunk.js 11.13 kB 0%
static/js/8960.7a3fb464.chunk.js 10.96 kB 0%
static/js/2195.eba228e6.chunk.js 10.88 kB 0%
static/js/5091.7c4f6ef7.chunk.js 10.42 kB 0%
static/js/5426.4fcc54c9.chunk.js 10.16 kB 0%
static/css/349.532039d0.chunk.css 10.06 kB 0%
static/js/8167.e16f5bf9.chunk.js 10.05 kB 0%
static/js/7612.47ba4519.chunk.js 9.74 kB 0%
static/js/6462.21d5c9b4.chunk.js 9.44 kB 0%
static/css/4417.2fa5e788.chunk.css 9.39 kB 0%
static/js/4098.40ebe278.chunk.js 9.27 kB 0%
static/css/4267.0701b52d.chunk.css 9.23 kB 0%
static/js/1761.906a4ef7.chunk.js 9.06 kB 0%
static/js/6955.66aa2fef.chunk.js 8.88 kB 0%
static/js/6368.c980b40a.chunk.js 8.8 kB 0%
static/css/9735.afc2ee27.chunk.css 8.72 kB 0%
static/css/4662.f471fc45.chunk.css 8.59 kB 0%
static/css/7104.4f0dc616.chunk.css 8.42 kB 0%
static/css/1775.32d3e4ad.chunk.css 8.3 kB 0%
static/css/9284.e62705b2.chunk.css 8.22 kB 0%
static/css/5811.354737e1.chunk.css 8.08 kB 0%
static/css/1761.9509256a.chunk.css 7.94 kB 0%
static/js/4723.36b0bb3a.chunk.js 7.92 kB 0%
static/css/1465.2d1e68a7.chunk.css 7.92 kB 0%
static/css/3665.7e57832d.chunk.css 7.66 kB 0%
static/css/743.cd4069af.chunk.css 7.65 kB 0%
static/css/6265.031deaa6.chunk.css 7.63 kB 0%
static/css/6293.031deaa6.chunk.css 7.63 kB 0%
static/js/4828.474d2798.chunk.js 7.62 kB 0%
static/js/896.a7cec3fb.chunk.js 7.55 kB 0%
static/css/4573.f692cd9d.chunk.css 7.42 kB 0%
static/js/8552.2d441ac2.chunk.js 6.65 kB 0%
static/css/6462.131dcdd9.chunk.css 6.53 kB 0%
static/js/5280.a7c12270.chunk.js 5.91 kB 0%
static/media/milmove-logo.c977261e059ba42b2b70ba95cfb3d3de.svg 5.4 kB 0%
static/js/6265.14399d1a.chunk.js 4.79 kB 0%
static/js/2283.cfcf4197.chunk.js 4.74 kB 0%
static/css/5560.f8caa9b0.chunk.css 4.67 kB 0%
static/js/177.ba46bdbc.chunk.js 4.57 kB 0%
static/js/4772.8e680e13.chunk.js 4.49 kB 0%
static/css/6368.bbc00861.chunk.css 4.4 kB 0%
static/js/1224.0e72db8a.chunk.js 4.11 kB 0%
static/css/7612.7f6e106e.chunk.css 3.94 kB 0%
static/css/2823.3dd5d616.chunk.css 3.8 kB 0%
static/css/9739.3dd5d616.chunk.css 3.8 kB 0%
static/js/6293.b9a8dd76.chunk.js 3.78 kB 0%
static/css/8167.d2583119.chunk.css 3.73 kB 0%
static/css/4098.d44bdc14.chunk.css 3.68 kB 0%
static/js/743.faea0655.chunk.js 3.39 kB 0%
static/js/4081.67c244f2.chunk.js 3.3 kB 0%
static/css/5426.c785fdaf.chunk.css 3.27 kB 0%
static/css/2680.26e049de.chunk.css 3.25 kB 0%
static/js/9282.3fb7e31c.chunk.js 3.2 kB 0%
static/js/1711.921429ec.chunk.js 2.93 kB 0%
static/js/8656.45d7677d.chunk.js 2.89 kB 0%
static/css/9414.1e52fa0b.chunk.css 2.77 kB 0%
static/css/5091.652fa3fa.chunk.css 2.49 kB 0%
static/js/7713.854e2e94.chunk.js 2.36 kB 0%
static/js/85.a3317e7d.chunk.js 2.34 kB 0%
static/css/4723.25becf80.chunk.css 2.17 kB 0%
static/css/2178.d45c6948.chunk.css 2.04 kB 0%
static/css/9797.35c45fc7.chunk.css 2.04 kB 0%
static/css/8797.d46112ee.chunk.css 1.99 kB 0%
static/js/4662.ddafe079.chunk.js 1.97 kB 0%
static/css/1224.6facdf3f.chunk.css 1.96 kB 0%
static/css/7713.7b9e081a.chunk.css 1.88 kB 0%
static/css/85.7b9e081a.chunk.css 1.88 kB 0%
static/js/2178.df77f988.chunk.js 1.79 kB 0%
static/js/9797.2ccadc05.chunk.js 1.78 kB 0%
static/media/loader.10d2d7c0a681e4e825da.svg 1.67 kB 0%
static/css/main.5749796c.css 1.27 kB 0%
static/js/2512.6c103be9.chunk.js 1.16 kB 0%
static/media/accept-inversed.91ff05235fdd54954706eab64123a3d5.svg 1.14 kB 0%
static/css/177.b6d7c517.chunk.css 1.03 kB 0%
static/css/9282.ab6699ac.chunk.css 960 B 0%
static/media/file-pdf.51bdb15e1e5b831bcf29.svg 904 B 0%
static/js/4124.f6d79fda.chunk.js 876 B 0%
static/js/2092.9e37e313.chunk.js 874 B 0%
static/js/2967.2acff7e1.chunk.js 874 B 0%
static/css/2283.f5d3a96b.chunk.css 852 B 0%
static/css/8471.9468bdf4.chunk.css 769 B 0%
static/media/file-word.277ffb94e7a09f8a2d1a.svg 760 B 0%
static/css/9875.99507a05.chunk.css 662 B 0%
static/media/file-excel.d002b7e57fe318badf49.svg 658 B 0%
static/media/correct8-alt.30d16a7a68f9063d3141.svg 607 B 0%
static/css/5280.0d997fb0.chunk.css 601 B 0%
static/media/correct8.eac85396da602db01ea3.svg 600 B 0%
index.html 595 B 0%
static/media/twitter.a8c1622d4e18b18caa167dbe0e31135b.svg 588 B 0%
static/media/file-video.15490fa6d64ebfb4f314.svg 574 B 0%
static/css/8960.8fb0844e.chunk.css 531 B 0%
static/css/4124.0b21f13e.chunk.css 462 B 0%
static/media/navigate_far_before.8c7765f1f2719ccdf3e5.svg 403 B 0%
static/media/navigate_far_next.602e9c473cc76474ac50.svg 402 B 0%
static/media/search.bc2178ae2f929aec5f09.svg 372 B 0%
static/media/facebook.9d8980817d35c2617cf1ebb5a833369a.svg 346 B 0%
static/css/6536.5a85f720.chunk.css 345 B 0%
static/media/file.7e80f971a49227f49f7e.svg 283 B 0%
static/media/launch--white.4e75d17dfe08a3d7de03.svg 283 B 0%
static/media/launch.65e057b210ca1e5d086e.svg 268 B 0%
static/media/unfold_more.c42abd3e70207a863184.svg 257 B 0%
static/media/check_circle.afe00fa2d228d8e9212e.svg 255 B 0%
static/media/calendar_today.26e6a18c4fb766a6307e.svg 248 B 0%
static/media/error--white.7f8e755b649a0ca72ce5.svg 246 B 0%
static/media/close.53c9f4b6ba9fca553d1e.svg 239 B 0%
static/media/error.57f310a26aa85a42d2a6.svg 234 B 0%
static/media/info.b15cdce316c440127b62.svg 234 B 0%
static/media/check--blue-60v.c60440495de32668463f.svg 202 B 0%
static/media/arrow_back.037e7aeb3dbe35a36ea6.svg 198 B 0%
static/css/6074.33410131.chunk.css 197 B 0%
static/media/warning.9fcdc101f630d1fd1e97.svg 188 B 0%
static/media/expand_less.018f82c5d61abf0ebfce.svg 184 B 0%
static/media/navigate_before.f280e5b722fcf18e18a9.svg 184 B 0%
static/media/navigate_next.00940e89d53796e4fc95.svg 184 B 0%
static/media/expand_more.7bdcd63935a4c23e5b72.svg 182 B 0%
static/media/add.0ddb797a0b4996c9f281.svg 173 B 0%
static/media/remove.fb2b121df150d251453a.svg 155 B 0%
static/css/1711.9fa21f2c.chunk.css 133 B 0%
static/css/4828.241dfdc5.chunk.css 133 B 0%

@brooklyn-welsh brooklyn-welsh added ByteSize M&Ms Team ByteSized M&Ms INTEGRATION Slated for Integration Testing labels Jan 15, 2025
@brooklyn-welsh brooklyn-welsh marked this pull request as ready for review January 15, 2025 20:25
@brooklyn-welsh brooklyn-welsh requested review from a team as code owners January 15, 2025 20:25
eventName: o.updatePaymentServiceItemStatus,
tableName: t.payment_service_items,
getEventNameDisplay: () => {
return <div>Updated Payment Service Item</div>;
Copy link
Contributor

Choose a reason for hiding this comment

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

Could conditionally render if the service item was rejected/approved?
Rejected Payment Service Item
or
Approved Payment Service Item

You can look at the changedValues variable to determine which name to show

Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed. And if you change this, I'd recommend changing the associated tests to check for that text being displayed instead of just the status being different.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea, will update the template and tests to replace "updated" with the appropriate verb

begrohmann
begrohmann previously approved these changes Jan 15, 2025
Copy link
Contributor

@WeatherfordAaron WeatherfordAaron left a comment

Choose a reason for hiding this comment

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

https://github.com/transcom/mymove/pull/14590/files#r1917293731

as well as the associated test change (to look for the text to display on the component).
reason: the ask of the PO isn't protected unless the information is displayed

@brooklyn-welsh brooklyn-welsh changed the title INT-B-21838 Added payment service items to audit history (Capturing rejection reason) INT-B-21839 Added payment service items to audit history (Capturing rejection reason) Jan 21, 2025
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.

Could we omit the empty values showing up here?

Screenshot 2025-01-22 at 10 18 28 AM

So when a TIO rejects a service item, we don't need the Approved at, Denied at (it's already showing the timestamp in the Date & Time column of the move history, and I would even say we don't need the DENIED showing because we have the Rejected Payment Service Item

And for approved payment service items, we don't need Denied at, Reason or Approved at

Just trying to think of ways to condense it down to show only the important information and reduce a little redundancy. Any thoughts on that?

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.

Also want to bring this up cause I just pushed the BL into PR, but B-21519 is addressing an issue when the TIO "clears selection", which changes the status back toREQUESTED. I put the code change in your branch and this is what displays:

Screenshot 2025-01-22 at 10 24 18 AM

So ensure that we aren't showing the Approved at for payment service items that are switched back into REQUESTED status

@brooklyn-welsh
Copy link
Contributor Author

Could we omit the empty values showing up here?

And for approved payment service items, we don't need Denied at, Reason or Approved at

Just trying to think of ways to condense it down to show only the important information and reduce a little redundancy. Any thoughts on that?

No I agree, wasn't sure how much data they expect from the audit page, so left in the empty values (denoting a deleted value in the db), for time stamps I left them in since they seem to be using a different timezone, I assume one is UTC and the other is local, and wasn't sure if that mattered. And yeah the "DENIED" and "APPROVED" fields are also just extra noise with the prefix added.

I agree that they aren't worth keeping. I can edit the sql/mappings to get rid of those then request review again

@brooklyn-welsh
Copy link
Contributor Author

Also want to bring this up cause I just pushed the BL into PR, but B-21519 is addressing an issue when the TIO "clears selection", which changes the status back toREQUESTED. I put the code change in your branch and this is what displays:
So ensure that we aren't showing the Approved at for payment service items that are switched back into REQUESTED status

Cool thanks for the heads up, this should be fixed when I stop tracking deleted values in the db, but will double check to make sure before pushing up more changes.

@danieljordan-caci
Copy link
Contributor

Also want to bring this up cause I just pushed the BL into PR, but B-21519 is addressing an issue when the TIO "clears selection", which changes the status back toREQUESTED. I put the code change in your branch and this is what displays:
So ensure that we aren't showing the Approved at for payment service items that are switched back into REQUESTED status

Cool thanks for the heads up, this should be fixed when I stop tracking deleted values in the db, but will double check to make sure before pushing up more changes.

Sounds good! Thank you!

brooklyn-welsh and others added 5 commits January 22, 2025 17:38
…g, removed a bunch of unnecessary change tracking for payment items (approved_at, denied_at)
… title text. Fixed a potential bad if check in the actionPrefix section.
@brooklyn-welsh
Copy link
Contributor Author

Also want to bring this up cause I just pushed the BL into PR, but B-21519 is addressing an issue when the TIO "clears selection", which changes the status back toREQUESTED. I put the code change in your branch and this is what displays:
So ensure that we aren't showing the Approved at for payment service items that are switched back into REQUESTED status

Sounds good! Thank you!

Okay, I should have removed all of the extra info now, should only show reason for rejected items, and the other fields you mentioned were completely removed.

I also added rejection reasons to completed payment service requests andedited the PR description with a new screenshot at the bottom. I thought this more closely matches the AC for the story, but think that keeping the individual items for each service item in the log would also be helpful. Let me know what you 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.

Screenshot 2025-01-23 at 1 05 08 PM

Still seeing Approved at: when the TIO clicks the "clear selection" button.

In payment_service_item_status_updater.go put this:

	switch desiredStatus {
	// when the user hits "clear selection" we want to clear all the fields
	case models.PaymentServiceItemStatusRequested:
		paymentServiceItem.RejectionReason = nil
		paymentServiceItem.DeniedAt = nil
		paymentServiceItem.ApprovedAt = nil
	// if being denied, we want to nil out approvedAt and populate deniedAt
	case models.PaymentServiceItemStatusDenied:
		paymentServiceItem.RejectionReason = rejectionReason
		paymentServiceItem.DeniedAt = models.TimePointer(time.Now())
		paymentServiceItem.ApprovedAt = nil
	// if being approved, populate approvedAt
	case models.PaymentServiceItemStatusApproved:
		paymentServiceItem.RejectionReason = nil
		paymentServiceItem.DeniedAt = nil
		paymentServiceItem.ApprovedAt = models.TimePointer(time.Now())
	}
	paymentServiceItem.Status = desiredStatus

and the clear selection button should work as expected

Screenshot 2025-01-23 at 1 14 28 PM

Also seeing Approved at: for approved service items - can shed that since we already see it on the far left with the audit history timestamp

@brooklyn-welsh
Copy link
Contributor Author

Screenshot 2025-01-23 at 1 05 08 PM

Still seeing Approved at: when the TIO clicks the "clear selection" button.

Also seeing Approved at: for approved service items - can shed that since we already see it on the far left with the audit history timestamp

Good catch, glossed over the clear selection button. Thanks for the code snippet, works great!

I'll need to make one more edit as I'm still seeing "Reason: -" if I clear selection when the item is in a rejected state, but I think I already know what I need to do to fix that.

…cked "cleared selection" on a service item it would show as rejected. Added unit test for this case.
@brooklyn-welsh
Copy link
Contributor Author

Still seeing Approved at: when the TIO clicks the "clear selection" button.

Also seeing Approved at: for approved service items - can shed that since we already see it on the far left with the audit history timestamp

Okay newest push should fix that issue and the other one I referenced, also added a unit test to catch these as well.

@danieljordan-caci
Copy link
Contributor

Still seeing Approved at: when the TIO clicks the "clear selection" button.
Also seeing Approved at: for approved service items - can shed that since we already see it on the far left with the audit history timestamp

Okay newest push should fix that issue and the other one I referenced, also added a unit test to catch these as well.

Oh nice! Pulling this now.

Comment on lines 74 to 90
if desiredStatus == models.PaymentServiceItemStatusDenied {
switch desiredStatus {
// when the user hits "clear selection" we want to clear all the fields
case models.PaymentServiceItemStatusRequested:
paymentServiceItem.RejectionReason = nil
paymentServiceItem.DeniedAt = nil
paymentServiceItem.ApprovedAt = nil
// if being denied, we want to nil out approvedAt and populate deniedAt
case models.PaymentServiceItemStatusDenied:
paymentServiceItem.RejectionReason = rejectionReason
paymentServiceItem.DeniedAt = models.TimePointer(time.Now())
paymentServiceItem.ApprovedAt = nil
paymentServiceItem.Status = desiredStatus
}
// If we're approving this thing then we don't want there to be a rejection reason
// We also will want to update the ApprovedAt field and nil out the DeniedAt field.
if desiredStatus == models.PaymentServiceItemStatusApproved {
// if being approved, populate approvedAt
case models.PaymentServiceItemStatusApproved:
paymentServiceItem.RejectionReason = nil
paymentServiceItem.DeniedAt = nil
paymentServiceItem.ApprovedAt = models.TimePointer(time.Now())
paymentServiceItem.Status = desiredStatus
}
paymentServiceItem.Status = desiredStatus
Copy link
Contributor

Choose a reason for hiding this comment

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

oh don't add this, this is going in with B-21519

I was just saying to put that there to test haha

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ohh lol got it, will take that out and push back up then

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 swear I pulled your latest branch.

Still seeing Approved at: with the timestamp in the audit history

Also still seeing Approved at: - that is displaying when the TIO clicks the "clear selection" button

Screenshot 2025-01-23 at 3 19 10 PM

@@ -24,6 +24,13 @@ const filterContextStatus = (context, statusToFilter) => {
<div className={styles.serviceItemRow} key={`${value.name}`}>
<div>{value.name}</div>
<div>{price.toFixed(2)}</div>
<div className={styles.break} />
{value.status === 'DENIED' ? (
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you use the PAYMENT_SERVICE_ITEM_STATUS variable in constants.js?

Comment on lines +39 to +42
historyRecord.changedValues.rejection_reason !== null &&
historyRecord.changedValues.status !== 'APPROVED' &&
historyRecord.changedValues.status !== 'REQUESTED') ||
historyRecord.changedValues.status === 'REJECTED'
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you use variables instead? PAYMENT_SERVICE_ITEM_STATUS in constants.js - sorry, just now thought of that

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No good point, I'll add that as well. I wasn't seeing the approved at anymore earlier but I must've missed something, I'll keep testing

Copy link
Contributor

Choose a reason for hiding this comment

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

I double pulled just to be sure haha

Copy link
Contributor Author

@brooklyn-welsh brooklyn-welsh Jan 23, 2025

Choose a reason for hiding this comment

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

Could you let me know if you have any specific steps to reproduce the clear selection bug? Without the go code I added earlier it doesn't even seem to have any effect (i.e. doesn't save as cleared, is still approved/rejected after you leave).

Screenshot 2025-01-23 at 4 47 34 PM

Tried clearing selection on a few different items in different states and can't get it to show up. Also not seeing approved at either, might try making a whole new payment request just to make sure nothing weird is going on with the one I'm testing with.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, sorry, it's a known issue (thus, the BL to fix it). Hoping to have it merged in soon so you have it. I was just testing it with it so we don't have to do any revisions later.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah okay, no worries. I'm still not sure why the Approved at: would be showing in your timestamps though. But, ping me whenever it gets merged in, then I'll update this one and see if it's working like it should

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ByteSize M&Ms Team ByteSized M&Ms INTEGRATION Slated for Integration Testing
Development

Successfully merging this pull request may close these issues.

4 participants