From d014fe0651bbf22c1fbfb0505ee542f1ef246425 Mon Sep 17 00:00:00 2001 From: Dima K Date: Mon, 13 May 2024 07:57:30 -0700 Subject: [PATCH] Cancel Transport Permit framework (#1868) * Cancel Transport Permit framework, component updates, store updates * Add Cancel Transport Permit feature flag * Update Fee Summary for Cancel Transport Permit * Add IDs to PPR Reg dropdown to help with cypress tests * Add unit tests for Cancel Transport Permit --- ppr-ui/src/assets/styles/base.scss | 4 + ppr-ui/src/assets/svgs/icon_cancel_permit.svg | 13 + .../ReviewConfirm/HomeLocationReview.vue | 68 ++++- .../RegistrationBarTypeAheadList.vue | 1 + ppr-ui/src/composables/fees/FeeSummary.vue | 3 + .../composables/fees/enums/feeSummaryTypes.ts | 1 + .../fees/factories/useFeeSummary.ts | 3 + .../mhrInformation/useMhrInformation.ts | 24 +- .../mhrInformation/useTransportPermits.ts | 19 +- ppr-ui/src/enums/transportPermits.ts | 1 + .../MhrTransportPermitIF.ts | 1 + .../registration-interfaces.ts | 1 + ppr-ui/src/store/store.ts | 21 ++ ppr-ui/src/utils/feature-flags.ts | 1 + .../views/mhrInformation/MhrInformation.vue | 50 +++- .../mhrInformation/MhrTransportPermit.vue | 264 +++++++++++------- ppr-ui/tests/unit/MhrTransportPermit.spec.ts | 39 ++- .../unit/test-data/mock-transport-permit.ts | 18 +- ppr-ui/tests/unit/utils/helper-functions.ts | 3 +- 19 files changed, 403 insertions(+), 132 deletions(-) create mode 100644 ppr-ui/src/assets/svgs/icon_cancel_permit.svg diff --git a/ppr-ui/src/assets/styles/base.scss b/ppr-ui/src/assets/styles/base.scss index 1cfd52aec..b4c32ae22 100644 --- a/ppr-ui/src/assets/styles/base.scss +++ b/ppr-ui/src/assets/styles/base.scss @@ -156,6 +156,10 @@ a { font-size: 1.0625rem; } +.fs-18 { + font-size: 18px; +} + .fs-21 { font-size: 1.3125rem; } diff --git a/ppr-ui/src/assets/svgs/icon_cancel_permit.svg b/ppr-ui/src/assets/svgs/icon_cancel_permit.svg new file mode 100644 index 000000000..a3b997152 --- /dev/null +++ b/ppr-ui/src/assets/svgs/icon_cancel_permit.svg @@ -0,0 +1,13 @@ + + + + + + + diff --git a/ppr-ui/src/components/mhrRegistration/ReviewConfirm/HomeLocationReview.vue b/ppr-ui/src/components/mhrRegistration/ReviewConfirm/HomeLocationReview.vue index 1c9f9bb1a..8da302894 100644 --- a/ppr-ui/src/components/mhrRegistration/ReviewConfirm/HomeLocationReview.vue +++ b/ppr-ui/src/components/mhrRegistration/ReviewConfirm/HomeLocationReview.vue @@ -15,11 +15,32 @@ > +
+
+ + +
+ +
Return to this step to complete it.
-
+ + +

+ This is the location of the home prior to the transport permit being issued and will be the + registered location of the home. +

+
+
+ @@ -235,7 +271,7 @@