diff --git a/strr-examiner-web/app/components/Host/SupportingInfo.vue b/strr-examiner-web/app/components/Host/SupportingInfo.vue
index 801a3f21a..e73280ab7 100644
--- a/strr-examiner-web/app/components/Host/SupportingInfo.vue
+++ b/strr-examiner-web/app/components/Host/SupportingInfo.vue
@@ -195,12 +195,12 @@ const businessLicenseRegistrationConfig: SupportingDocumentsConfig = {
@@ -238,12 +238,12 @@ const businessLicenseRegistrationConfig: SupportingDocumentsConfig = {
data-testid="pr-req-documents"
>
diff --git a/strr-examiner-web/app/components/SnapshotVersionsTable.vue b/strr-examiner-web/app/components/SnapshotVersionsTable.vue
index 11db20119..0596b92fa 100644
--- a/strr-examiner-web/app/components/SnapshotVersionsTable.vue
+++ b/strr-examiner-web/app/components/SnapshotVersionsTable.vue
@@ -79,7 +79,3 @@ const onViewSnapshot = async (snapshotEndpoint: string) => {
-
-
diff --git a/strr-examiner-web/app/components/SupportingDocuments.vue b/strr-examiner-web/app/components/SupportingDocuments.vue
index 51a1e1729..b37927810 100644
--- a/strr-examiner-web/app/components/SupportingDocuments.vue
+++ b/strr-examiner-web/app/components/SupportingDocuments.vue
@@ -27,13 +27,27 @@ const filterDocumentsByConfig = (config: SupportingDocumentsConfig): ApiDocument
return includeType && !excludeType && includeStep && !excludeStep
})
}
-// optionally filter documents based on config, or return all documents
-const filteredDocuments = computed(() => props.config ? filterDocumentsByConfig(props.config) : documents)
+// sort documents by date (most recent first)
+const sortByDate = (docs: ApiDocument[]): ApiDocument[] => {
+ return [...docs].sort((a, b) => {
+ const dateA = new Date(a.uploadDate || a.addedOn || 0).getTime()
+ const dateB = new Date(b.uploadDate || b.addedOn || 0).getTime()
+ return dateB - dateA
+ })
+}
+
+// optionally filter documents based on config, or return all documents, sorted by date
+const filteredDocuments = computed(() => {
+ const docs = props.config ? filterDocumentsByConfig(props.config) : documents
+ return sortByDate(docs)
+})
const appRegNumber = computed((): string | number =>
isApplication.value ? applicationNumber : activeReg.value.id
)
+const displayDate = (date: string = '') => dateToString(date, 'y-MM-dd', true)
+
const shouldShowDateBadge = (document: ApiDocument): boolean => {
return (document.uploadStep && props.config?.includeDateBadge?.includes(document.uploadStep)) ||
(props.config?.showDateBadgeForAll && (document.uploadDate || document.addedOn))
@@ -42,7 +56,7 @@ const shouldShowDateBadge = (document: ApiDocument): boolean => {
- {
-
+
diff --git a/strr-examiner-web/app/pages/registration/[registrationId]/index.vue b/strr-examiner-web/app/pages/registration/[registrationId]/index.vue
index 732e846e4..a46e1497f 100644
--- a/strr-examiner-web/app/pages/registration/[registrationId]/index.vue
+++ b/strr-examiner-web/app/pages/registration/[registrationId]/index.vue
@@ -223,15 +223,15 @@ watch(
-
+
-
+
diff --git a/strr-examiner-web/app/pages/registration/[registrationId]/snapshots/[snapshotId].vue b/strr-examiner-web/app/pages/registration/[registrationId]/snapshots/[snapshotId].vue
index a6d4a6038..bced94b8b 100644
--- a/strr-examiner-web/app/pages/registration/[registrationId]/snapshots/[snapshotId].vue
+++ b/strr-examiner-web/app/pages/registration/[registrationId]/snapshots/[snapshotId].vue
@@ -24,7 +24,7 @@ const { data: snapshot, status, error } = await useLazyAsyncData<
const snapshotId = route.params.snapshotId as string
const resp = await getSnapshotById(registrationId, snapshotId)
activeRecord.value = resp.snapshotData // used for the data needed to render the details page
- snapshotInfo.value = resp // user for data needed for snapshot info widget on details page
+ snapshotInfo.value = resp // used for data needed for snapshot info widget on details page
return resp
}
)
diff --git a/strr-examiner-web/i18n/locales/en-CA.ts b/strr-examiner-web/i18n/locales/en-CA.ts
index 71cf2544d..36fb62374 100644
--- a/strr-examiner-web/i18n/locales/en-CA.ts
+++ b/strr-examiner-web/i18n/locales/en-CA.ts
@@ -669,6 +669,7 @@ export default {
UTILITY_BILL: 'Utility Bill',
GOVT_OR_CROWN_CORP_OFFICIAL_NOTICE: 'Government or Crown Corporation Official Notice',
FRACTIONAL_OWNERSHIP_AGREEMENT: 'Fractional Ownership Agreement',
+ PROPERTY_TITLE_WITH_FRACTIONAL_OWNERSHIP: 'Property Title Showing Fractional Ownership',
STRATA_HOTEL_DOCUMENTATION: 'Strata Hotel Documentation',
TENANCY_AGREEMENT: 'Tenancy Agreement',
RENT_RECEIPT_OR_BANK_STATEMENT: 'Rent Receipt or Bank Statement',
diff --git a/strr-examiner-web/package.json b/strr-examiner-web/package.json
index 7cdf3de2e..de0c6e197 100644
--- a/strr-examiner-web/package.json
+++ b/strr-examiner-web/package.json
@@ -2,7 +2,7 @@
"name": "strr-examiner-web",
"private": true,
"type": "module",
- "version": "0.2.7",
+ "version": "0.2.8",
"scripts": {
"build-check": "nuxt build",
"build": "nuxt generate",