From 91231f7e4c5d3f17393d2fb6da5356c516b80aba Mon Sep 17 00:00:00 2001 From: deetz99 <73151365+deetz99@users.noreply.github.com> Date: Tue, 24 Dec 2024 12:43:42 -0800 Subject: [PATCH] Strata - UI: Strata doc upload (#419) * update button style file upload * add validation function to document store and stepper * add documents to payload and update types * add documents to review step * add docs to details view * reset docs on application start * bump version --- .../app/components/form/ContactInfo.vue | 4 +- strr-base-web/app/locales/en-CA.ts | 10 ++ strr-host-pm-web/app/locales/en-CA.ts | 10 -- strr-host-pm-web/app/stores/document.ts | 12 +- strr-host-pm-web/package.json | 2 +- .../app/components/document/list/Item.vue | 49 +++++++ .../app/components/document/list/index.vue | 11 ++ .../app/components/document/upload/Button.vue | 62 ++++++++ .../app/components/document/upload/Select.vue | 70 +++++++++ .../app/components/form/BusinessDetails.vue | 7 +- .../app/components/form/ReviewConfirm.vue | 28 +++- .../app/components/form/StrataDetails.vue | 85 ++++++++++- .../app/enums/document-upload-type.ts | 3 + strr-strata-web/app/interfaces/strata-api.ts | 9 ++ strr-strata-web/app/interfaces/ui-document.ts | 8 + strr-strata-web/app/locales/en-CA.ts | 20 ++- strr-strata-web/app/pages/application.vue | 9 +- .../dashboard/[applicationId].vue | 19 +++ strr-strata-web/app/stores/document.ts | 137 ++++++++++++++++++ strr-strata-web/app/stores/strata.ts | 12 ++ .../app/stores/strataApplication.ts | 5 +- strr-strata-web/package.json | 2 +- 22 files changed, 546 insertions(+), 28 deletions(-) create mode 100644 strr-strata-web/app/components/document/list/Item.vue create mode 100644 strr-strata-web/app/components/document/list/index.vue create mode 100644 strr-strata-web/app/components/document/upload/Button.vue create mode 100644 strr-strata-web/app/components/document/upload/Select.vue create mode 100644 strr-strata-web/app/enums/document-upload-type.ts create mode 100644 strr-strata-web/app/interfaces/ui-document.ts create mode 100644 strr-strata-web/app/stores/document.ts diff --git a/strr-base-web/app/components/form/ContactInfo.vue b/strr-base-web/app/components/form/ContactInfo.vue index b029abfe..946d1eed 100644 --- a/strr-base-web/app/components/form/ContactInfo.vue +++ b/strr-base-web/app/components/form/ContactInfo.vue @@ -69,9 +69,9 @@ onMounted(async () => { id="completing-party-radio-group" v-model="isCompletingPartyRep" data-testid="completing-party-radio-group" - :class="isComplete && isCompletingPartyRep === undefined ? 'border-red-600 border-2 p-2' : 'p-2'" + :class="isComplete && isCompletingPartyRep === undefined ? 'border-red-600 border-2 p-2 pt-3' : 'p-2 pt-3'" :options="radioOptions" - :ui="{ legend: 'mb-3 text-default font-bold text-gray-700' }" + :ui="{ legend: 'text-default font-bold text-gray-700' }" :ui-radio="{ inner: 'space-y-2' }" >