diff --git a/ppr-ui/nuxt.config.ts b/ppr-ui/nuxt.config.ts index 5d12d8c2c..2bab579cf 100644 --- a/ppr-ui/nuxt.config.ts +++ b/ppr-ui/nuxt.config.ts @@ -85,16 +85,6 @@ export default defineNuxtConfig({ icons: ['mdi'] }, ssr: false, - server: { - hmr: { - overlay: false, // Disable the error overlay - clientPort: 443, // Specify the client port if needed - }, - watch: { - usePolling: true, // Use polling for file changes - interval: 1000, // Polling interval in milliseconds - }, - }, modules: ['@pinia/nuxt', '@nuxt/eslint', 'nuxt-lodash', '@nuxt/test-utils/module', (_options, nuxt) => { nuxt.hooks.hook('vite:extendConfig', (config) => { diff --git a/ppr-ui/package.json b/ppr-ui/package.json index 86ec50638..724e727a9 100644 --- a/ppr-ui/package.json +++ b/ppr-ui/package.json @@ -1,6 +1,6 @@ { "name": "ppr-ui", - "version": "4.0.0", + "version": "4.0.1", "private": true, "appName": "Assets UI", "sbcName": "SBC Common Components", @@ -82,8 +82,8 @@ "eslint-plugin-promise": "^6.1.1", "eslint-plugin-vue": "^9.17.0", "eslint-plugin-vuetify": "^2.0.5", - "jsdom": "^22.1.0", "happy-dom": "^14.12.0", + "jsdom": "^22.1.0", "maska": "^2.1.10", "nuxt-lodash": "^2.5.3", "sass": "~1.32.13", diff --git a/ppr-ui/src/app.vue b/ppr-ui/src/app.vue index 9df2c4b02..a64efddaf 100644 --- a/ppr-ui/src/app.vue +++ b/ppr-ui/src/app.vue @@ -16,12 +16,12 @@ import { getFees, getFeatureFlag, getKeycloakRoles, - getPPRUserSettings, getSbcFromAuth, updateLdUser, axios, parsePayDetail } from '@/utils' +import { getPPRUserSettings } from '@/utils/ppr-api-helper' import { FeeCodes } from '@/composables/fees/enums' import { APIRegistrationTypes, diff --git a/ppr-ui/src/components/collateral/Collateral.vue b/ppr-ui/src/components/collateral/Collateral.vue index 27b100941..e61950697 100644 --- a/ppr-ui/src/components/collateral/Collateral.vue +++ b/ppr-ui/src/components/collateral/Collateral.vue @@ -11,7 +11,7 @@ flat > @@ -49,16 +49,16 @@ @@ -68,7 +68,7 @@ class="pa-0 noGutters" fluid > - +
    @@ -124,15 +124,15 @@ import { } from 'vue' import { useStore } from '@/store/store' import { useRouter } from 'vue-router' -import { GeneralCollateral } from './generalCollateral' -import { VehicleCollateral } from './vehicleCollateral' +import { GeneralCollateral } from './general' +import { VehicleCollateral } from './vehicle' import { ActionTypes, APIRegistrationTypes, RegistrationFlowType } from '@/enums' -import { +import type { AddCollateralIF, GeneralCollateralIF, } from '@/interfaces' -import { useGeneralCollateral } from './generalCollateral/factories' -import { useVehicle } from './vehicleCollateral/factories' +import { useGeneralCollateral } from './general/factories' +import { useVehicle } from './vehicle/factories' import { storeToRefs } from 'pinia' export default defineComponent({ diff --git a/ppr-ui/src/components/collateral/generalCollateral/GenColAmend.vue b/ppr-ui/src/components/collateral/general/GenColAmend.vue similarity index 100% rename from ppr-ui/src/components/collateral/generalCollateral/GenColAmend.vue rename to ppr-ui/src/components/collateral/general/GenColAmend.vue diff --git a/ppr-ui/src/components/collateral/generalCollateral/GenColEdit.vue b/ppr-ui/src/components/collateral/general/GenColEdit.vue similarity index 100% rename from ppr-ui/src/components/collateral/generalCollateral/GenColEdit.vue rename to ppr-ui/src/components/collateral/general/GenColEdit.vue diff --git a/ppr-ui/src/components/collateral/generalCollateral/GenColSummary.vue b/ppr-ui/src/components/collateral/general/GenColSummary.vue similarity index 100% rename from ppr-ui/src/components/collateral/generalCollateral/GenColSummary.vue rename to ppr-ui/src/components/collateral/general/GenColSummary.vue diff --git a/ppr-ui/src/components/collateral/generalCollateral/GeneralCollateral.vue b/ppr-ui/src/components/collateral/general/GeneralCollateral.vue similarity index 74% rename from ppr-ui/src/components/collateral/generalCollateral/GeneralCollateral.vue rename to ppr-ui/src/components/collateral/general/GeneralCollateral.vue index fd550921c..b2a693e6e 100644 --- a/ppr-ui/src/components/collateral/generalCollateral/GeneralCollateral.vue +++ b/ppr-ui/src/components/collateral/general/GeneralCollateral.vue @@ -1,27 +1,33 @@ @@ -34,8 +40,10 @@ import { watch, toRefs } from 'vue' -import { GenColEdit, GenColSummary, GenColAmend } from '.' -import { APIRegistrationTypes, RegistrationFlowType } from '@/enums' +import GenColSummary from './GenColSummary.vue' +import { GenColEdit, GenColAmend } from './' +import type { APIRegistrationTypes} from '@/enums'; +import { RegistrationFlowType } from '@/enums' import { useStore } from '@/store/store' import { storeToRefs } from 'pinia' diff --git a/ppr-ui/src/components/collateral/generalCollateral/factories/index.ts b/ppr-ui/src/components/collateral/general/factories/index.ts similarity index 100% rename from ppr-ui/src/components/collateral/generalCollateral/factories/index.ts rename to ppr-ui/src/components/collateral/general/factories/index.ts diff --git a/ppr-ui/src/components/collateral/generalCollateral/factories/useGeneralCollateral.ts b/ppr-ui/src/components/collateral/general/factories/useGeneralCollateral.ts similarity index 100% rename from ppr-ui/src/components/collateral/generalCollateral/factories/useGeneralCollateral.ts rename to ppr-ui/src/components/collateral/general/factories/useGeneralCollateral.ts diff --git a/ppr-ui/src/components/collateral/generalCollateral/index.ts b/ppr-ui/src/components/collateral/general/index.ts similarity index 100% rename from ppr-ui/src/components/collateral/generalCollateral/index.ts rename to ppr-ui/src/components/collateral/general/index.ts diff --git a/ppr-ui/src/components/collateral/index.ts b/ppr-ui/src/components/collateral/index.ts index 639fc23c8..166e6e45f 100644 --- a/ppr-ui/src/components/collateral/index.ts +++ b/ppr-ui/src/components/collateral/index.ts @@ -1,3 +1,3 @@ -export * from './generalCollateral' -export * from './vehicleCollateral' +export * from './general' +export * from './vehicle' export { default as Collateral } from './Collateral.vue' diff --git a/ppr-ui/src/components/collateral/vehicleCollateral/EditCollateral.vue b/ppr-ui/src/components/collateral/vehicle/EditCollateral.vue similarity index 100% rename from ppr-ui/src/components/collateral/vehicleCollateral/EditCollateral.vue rename to ppr-ui/src/components/collateral/vehicle/EditCollateral.vue diff --git a/ppr-ui/src/components/collateral/vehicleCollateral/VehicleCollateral.vue b/ppr-ui/src/components/collateral/vehicle/VehicleCollateral.vue similarity index 96% rename from ppr-ui/src/components/collateral/vehicleCollateral/VehicleCollateral.vue rename to ppr-ui/src/components/collateral/vehicle/VehicleCollateral.vue index 0a16526dc..52957fe61 100644 --- a/ppr-ui/src/components/collateral/vehicleCollateral/VehicleCollateral.vue +++ b/ppr-ui/src/components/collateral/vehicle/VehicleCollateral.vue @@ -6,7 +6,7 @@ > @@ -60,7 +60,7 @@ @@ -109,7 +109,7 @@ > @@ -128,7 +128,7 @@
    @@ -139,10 +139,10 @@ class="add-collateral-container" > @@ -151,7 +151,7 @@ @@ -187,11 +187,11 @@
    @@ -205,7 +205,7 @@
    @@ -213,7 +213,7 @@ @@ -237,7 +237,7 @@ @@ -419,7 +419,7 @@ import { import { useStore } from '@/store/store' import { EditCollateral } from '.' import { ActionTypes, APIVehicleTypes, RegistrationFlowType, APIRegistrationTypes } from '@/enums' -import { VehicleCollateralIF } from '@/interfaces' +import type { VehicleCollateralIF } from '@/interfaces' import { vehicleTableHeaders, VehicleTypes } from '@/resources' import { useVehicle } from './factories/useVehicle' import { cloneDeep } from 'lodash' @@ -555,7 +555,7 @@ export default defineComponent({ currentVehicle.action = ActionTypes.REMOVED newVCollateral.splice(index, 1, currentVehicle) } else { - // eslint-disable-line + newVCollateral.splice(index, 1) } setVehicleCollateral(newVCollateral) diff --git a/ppr-ui/src/components/collateral/vehicleCollateral/factories/collateralFormValidator.ts b/ppr-ui/src/components/collateral/vehicle/factories/collateralFormValidator.ts similarity index 100% rename from ppr-ui/src/components/collateral/vehicleCollateral/factories/collateralFormValidator.ts rename to ppr-ui/src/components/collateral/vehicle/factories/collateralFormValidator.ts diff --git a/ppr-ui/src/components/collateral/vehicleCollateral/factories/index.ts b/ppr-ui/src/components/collateral/vehicle/factories/index.ts similarity index 100% rename from ppr-ui/src/components/collateral/vehicleCollateral/factories/index.ts rename to ppr-ui/src/components/collateral/vehicle/factories/index.ts diff --git a/ppr-ui/src/components/collateral/vehicleCollateral/factories/useCollateralValidation.ts b/ppr-ui/src/components/collateral/vehicle/factories/useCollateralValidation.ts similarity index 100% rename from ppr-ui/src/components/collateral/vehicleCollateral/factories/useCollateralValidation.ts rename to ppr-ui/src/components/collateral/vehicle/factories/useCollateralValidation.ts diff --git a/ppr-ui/src/components/collateral/vehicleCollateral/factories/useVehicle.ts b/ppr-ui/src/components/collateral/vehicle/factories/useVehicle.ts similarity index 100% rename from ppr-ui/src/components/collateral/vehicleCollateral/factories/useVehicle.ts rename to ppr-ui/src/components/collateral/vehicle/factories/useVehicle.ts diff --git a/ppr-ui/src/components/collateral/vehicleCollateral/index.ts b/ppr-ui/src/components/collateral/vehicle/index.ts similarity index 100% rename from ppr-ui/src/components/collateral/vehicleCollateral/index.ts rename to ppr-ui/src/components/collateral/vehicle/index.ts diff --git a/ppr-ui/src/components/common/DocumentId.vue b/ppr-ui/src/components/common/DocumentId.vue index 49aad11cd..229b5aca9 100644 --- a/ppr-ui/src/components/common/DocumentId.vue +++ b/ppr-ui/src/components/common/DocumentId.vue @@ -19,7 +19,7 @@ :class="[{ 'border-error-left': showBorderError }, { 'pb-8': content.hintText }]" flat > - +