Skip to content

Commit eac8a5d

Browse files
committed
Upgrade Examiner app (bcgov#972)
* chore: upgrade Examiner app packages * chore: update unit tests in Examiner app, use i18n from base layer * chore(tests): enable unit tests in Host app
1 parent 59642ce commit eac8a5d

38 files changed

Lines changed: 4168 additions & 6193 deletions

strr-examiner-web/app/components/ActionButtons.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { refreshNuxtData } from 'nuxt/app'
33
import isEqual from 'lodash/isEqual'
44
5-
const { t } = useI18n()
5+
const { t } = useNuxtApp().$i18n
66
const { decisionIntent, isMainActionDisabled, isDecisionEmailValid } = useExaminerDecision()
77
const {
88
activeHeader, activeReg, isAssignedToUser,

strr-examiner-web/app/components/ApplicationInfoHeader.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
3-
const { t } = useI18n()
3+
const { t } = useNuxtApp().$i18n
44
const exStore = useExaminerStore()
55
const { activeHeader, activeReg, isFilingHistoryOpen } = storeToRefs(exStore)
66
const { toggleFilingHistory, checkAndPerformAction } = useHostExpansion()

strr-examiner-web/app/components/ApprovalConditions.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
3-
const { t } = useI18n()
3+
const { t } = useNuxtApp().$i18n
44
const { preDefinedConditions, isMainActionDisabled } = useExaminerDecision()
55
66
const selectedConditions = defineModel<string[]>('conditions', { required: true })

strr-examiner-web/app/components/AssignmentActions.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
const { t } = useI18n()
2+
const { t } = useNuxtApp().$i18n
33
const { assignApplication, unassignApplication, assignRegistration, unassignRegistration } = useExaminerStore()
44
const { activeHeader, activeReg, isAssignedToUser } = storeToRefs(useExaminerStore())
55
const { updateRouteAndButtons } = useExaminerRoute()

strr-examiner-web/app/components/ComposeNoc.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const {
88
isAssignedToUser,
99
activeHeader
1010
} = storeToRefs(useExaminerStore())
11-
const { t } = useI18n()
11+
const { t } = useNuxtApp().$i18n
1212
const formSchema = computed(
1313
() =>
1414
[

strr-examiner-web/app/components/DecisionPanel.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang="ts">
22
import { onMounted } from 'vue'
33
4-
const { t } = useI18n()
4+
const { t } = useNuxtApp().$i18n
55
const { showDecisionPanel, decisionIntent, preDefinedConditions, resetDecision } = useExaminerDecision()
66
const {
77
isApplication,

strr-examiner-web/app/components/DocumentUpload.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang="ts">
22
import DocumentUploadSelect from '~/components/document/upload/Select.vue'
33
4-
const { t } = useI18n()
4+
const { t } = useNuxtApp().$i18n
55
const exStore = useExaminerStore()
66
const docStore = useExaminerDocumentStore()
77
const { activeReg, isApplication, activeHeader } = storeToRefs(exStore)

strr-examiner-web/app/components/Host/Expansion/EditRentalUnitForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { z } from 'zod'
33
import type { Form } from '#ui/types'
44
import isEqual from 'lodash/isEqual'
55
6-
const { t } = useI18n()
6+
const { t } = useNuxtApp().$i18n
77
const emit = defineEmits<{
88
close: [void],
99
addressUpdated: [void]

strr-examiner-web/app/components/Host/Expansion/Owners.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ defineEmits<{
88
const exStore = useExaminerStore()
99
const { activeReg, isApplication } = storeToRefs(exStore)
1010
11-
const { t } = useI18n()
11+
const { t } = useNuxtApp().$i18n
1212
1313
const columns = [
1414
{ key: 'name', label: t('label.name') },

strr-examiner-web/app/components/Host/SubHeader.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const {
99
isAssignedToUser
1010
} = storeToRefs(useExaminerStore())
1111
const { openEditRentalUnitForm } = useHostExpansion()
12-
const { t } = useI18n()
12+
const { t } = useNuxtApp().$i18n
1313
const alertFlags = reactive(useFlags())
1414
const { isFeatureEnabled } = useFeatureFlags()
1515
const canEditApplicationAddress = isFeatureEnabled('enable-examiner-edit-address-application')

0 commit comments

Comments
 (0)