From a343824667585d919db99dcb1bcab661bd1d5d80 Mon Sep 17 00:00:00 2001 From: Dima K Date: Thu, 8 Aug 2024 02:36:49 -0700 Subject: [PATCH 1/5] Update styling for buttons --- strr-web/app.config.ts | 4 +++- strr-web/components/bcros/status-card/StatusCard.vue | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/strr-web/app.config.ts b/strr-web/app.config.ts index cb425010..a51d7e53 100644 --- a/strr-web/app.config.ts +++ b/strr-web/app.config.ts @@ -1,3 +1,4 @@ +/* eslint-disable max-len */ export default defineAppConfig({ ui: { primary: 'blue', @@ -7,7 +8,8 @@ export default defineAppConfig({ variant: { solid: 'hover:bg-opacity-[.92] hover:bg-{color}-500', editButton: 'text-primary border-0 border-r-2 border-gray focus-visible:ring-2 focus-visible:ring-primary', - removeButton: 'text-primary border-0 focus-visible:ring-2 focus-visible:ring-primary' + removeButton: 'text-primary border-0 focus-visible:ring-2 focus-visible:ring-primary', + ghost: 'focus-visible:ring-0 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary' } }, formGroup: { diff --git a/strr-web/components/bcros/status-card/StatusCard.vue b/strr-web/components/bcros/status-card/StatusCard.vue index c7cb8d1f..5a1b36b8 100644 --- a/strr-web/components/bcros/status-card/StatusCard.vue +++ b/strr-web/components/bcros/status-card/StatusCard.vue @@ -20,7 +20,7 @@ @@ -28,7 +28,7 @@ v-if="isCertificateIssued" :action="() => downloadCertificate(applicationId.toString())" :label="tRegistrationStatus('download')" - class-name="px-4 py-1" + class-name="px-4 py-1 mobile:grow-0" variant="ghost" /> From 0acf039ae786a516cfa0dec46cfd702ee932eb8d Mon Sep 17 00:00:00 2001 From: Dima K Date: Thu, 8 Aug 2024 14:00:39 -0700 Subject: [PATCH 2/5] Add Applications Count to Dashboard --- strr-web/enums/application-status-e.ts | 8 ++++---- strr-web/enums/registration-status-e.ts | 10 +++++----- strr-web/lang/en.json | 2 +- strr-web/layouts/wideGutters.vue | 13 ------------- strr-web/package.json | 2 +- strr-web/pages/application-status.vue | 15 +++++++++------ 6 files changed, 20 insertions(+), 30 deletions(-) delete mode 100644 strr-web/layouts/wideGutters.vue diff --git a/strr-web/enums/application-status-e.ts b/strr-web/enums/application-status-e.ts index 4d28a6fb..a3da60cf 100644 --- a/strr-web/enums/application-status-e.ts +++ b/strr-web/enums/application-status-e.ts @@ -2,9 +2,9 @@ export enum ApplicationStatusE { DRAFT = 'DRAFT', SUBMITTED = 'SUBMITTED', PAID = 'PAID', - APPROVED = 'APPROVED', - ADDITIONAL_INFO_REQUESTED = 'ADDITIONAL_INFO_REQUESTED', UNDER_REVIEW = 'UNDER_REVIEW', - REJECTED = 'REJECTED', - PROVISIONAL = 'PROVISIONAL' + ADDITIONAL_INFO_REQUESTED = 'ADDITIONAL_INFO_REQUESTED', + APPROVED = 'APPROVED', + PROVISIONAL = 'PROVISIONAL', + REJECTED = 'REJECTED' } diff --git a/strr-web/enums/registration-status-e.ts b/strr-web/enums/registration-status-e.ts index a401f47d..cb501f1d 100644 --- a/strr-web/enums/registration-status-e.ts +++ b/strr-web/enums/registration-status-e.ts @@ -1,10 +1,10 @@ export enum RegistrationStatusE { - DENIED = 'DENIED', - APPROVED = 'APPROVED', - ISSUED = 'ISSUED', - REJECTED = 'REJECTED', + SUBMITTED = 'SUBMITTED', PENDING = 'PENDING', UNDER_REVIEW = 'UNDER_REVIEW', MORE_INFO_NEEDED = 'MORE_INFO_NEEDED', - SUBMITTED = 'SUBMITTED' + APPROVED = 'APPROVED', + ISSUED = 'ISSUED', + REJECTED = 'REJECTED', + DENIED = 'DENIED' } diff --git a/strr-web/lang/en.json b/strr-web/lang/en.json index 0afcd091..0a123650 100644 --- a/strr-web/lang/en.json +++ b/strr-web/lang/en.json @@ -131,7 +131,7 @@ "applied": "APPLIED", "provisional": "PROVISIONAL", "create": "Create New Registration", - "myRegApplication": "My Registration Application", + "myRegApplication": "My Registration Applications", "title": "My STR Registry Dashboard", "view": "View", "download": "Download Certificate", diff --git a/strr-web/layouts/wideGutters.vue b/strr-web/layouts/wideGutters.vue deleted file mode 100644 index d8a27c51..00000000 --- a/strr-web/layouts/wideGutters.vue +++ /dev/null @@ -1,13 +0,0 @@ - diff --git a/strr-web/package.json b/strr-web/package.json index c20cd66f..6f675011 100644 --- a/strr-web/package.json +++ b/strr-web/package.json @@ -14,7 +14,7 @@ "lint:fix": "eslint --cache --ext '.ts,.vue' . --max-warnings 0 --fix", "preview": "nuxt preview", "postinstall": "nuxt prepare", - "test": "vitest run --coverage && cp ./coverage/cobertura-coverage.xml ./coverage.xml", + "test": "vitest run", "test:cov": "vitest run --coverage && cp ./coverage/cobertura-coverage.xml ./coverage.xml", "test:e2e": "cypress open", "test:e2e:firefox": "cypress run firefox", diff --git a/strr-web/pages/application-status.vue b/strr-web/pages/application-status.vue index 79a0e887..14afc645 100644 --- a/strr-web/pages/application-status.vue +++ b/strr-web/pages/application-status.vue @@ -3,11 +3,14 @@
-
- +
+
-
+
useTranslation().t(`registrationStatus.${translationKey}`) @@ -93,5 +96,5 @@ const { getApplications } = useApplications() const { getChipFlavour } = useChipFlavour() const applications = ref<(ApplicationI | undefined)[]>() applications.value = await getApplications() - +const applicationsCount = applications.value?.length || 0 From e77f984953d62208b742751d4627cef6a4f05db0 Mon Sep 17 00:00:00 2001 From: Dima K Date: Thu, 8 Aug 2024 14:11:49 -0700 Subject: [PATCH 3/5] Use new composables for Translations --- strr-web/components/bcros/banner/banner.vue | 2 +- .../bcros/existing-accounts-list/ExistingAccountsList.vue | 2 +- strr-web/components/bcros/fee-widget/FeeWidget.vue | 2 +- strr-web/components/bcros/footer/Footer.vue | 2 +- strr-web/components/bcros/form-section/FormSection.vue | 2 +- .../bcros/form-section/contact-information/ContactDetails.vue | 2 +- .../bcros/form-section/contact-information/ContactInfo.vue | 2 +- .../bcros/form-section/contact-information/CraInfo.vue | 2 +- .../bcros/form-section/contact-information/Form.vue | 2 +- .../bcros/form-section/contact-information/MailingAddress.vue | 2 +- .../bcros/form-section/principal-residence/Form.vue | 2 +- strr-web/components/bcros/form-section/property/Address.vue | 2 +- strr-web/components/bcros/form-section/property/Details.vue | 2 +- strr-web/components/bcros/form-section/property/Form.vue | 2 +- .../components/bcros/form-section/property/ListingDetails.vue | 2 +- strr-web/components/bcros/form-section/review/Declaration.vue | 2 +- strr-web/components/bcros/form-section/review/Form.vue | 2 +- strr-web/components/bcros/form-section/review/Subsection.vue | 2 +- strr-web/components/bcros/header/Header.vue | 2 +- strr-web/components/bcros/status-card/StatusCard.vue | 2 +- strr-web/components/bcros/stepper/Stepper.vue | 2 +- strr-web/components/bcros/stepper/StepperFooter.vue | 2 +- strr-web/composables/useChipFlavour.ts | 2 +- strr-web/package.json | 2 +- strr-web/pages/account-select.vue | 2 +- .../[applicationId]/auto-approval/index.vue | 2 +- strr-web/pages/application-details/[applicationId]/index.vue | 2 +- .../pages/application-details/[applicationId]/ltsa/index.vue | 2 +- strr-web/pages/create-account-pre/[id].vue | 2 +- strr-web/pages/create-account.vue | 2 +- strr-web/pages/finalization.vue | 2 +- strr-web/pages/listing-details/[listingId].vue | 2 +- strr-web/pages/registry-dashboard.vue | 2 +- strr-web/pages/success/[id].vue | 2 +- .../pages/success/[registrationId]/invoice/[paymentId].vue | 2 +- strr-web/pages/terms-of-service.vue | 2 +- strr-web/tests/unit/components/chip/Chip.spec.ts | 2 +- .../form-section/contact-information/ContactInfo.spec.ts | 4 ++-- .../form-section/contact-information/CraInfo.spec.ts | 4 ++-- strr-web/tests/unit/composables/useChipFlavour.spec.ts | 2 +- 40 files changed, 42 insertions(+), 42 deletions(-) diff --git a/strr-web/components/bcros/banner/banner.vue b/strr-web/components/bcros/banner/banner.vue index 7906f55d..a82b93ee 100644 --- a/strr-web/components/bcros/banner/banner.vue +++ b/strr-web/components/bcros/banner/banner.vue @@ -61,7 +61,7 @@ diff --git a/strr-web/components/bcros/form-section/contact-information/ContactDetails.vue b/strr-web/components/bcros/form-section/contact-information/ContactDetails.vue index 7db98b92..41647a66 100644 --- a/strr-web/components/bcros/form-section/contact-information/ContactDetails.vue +++ b/strr-web/components/bcros/form-section/contact-information/ContactDetails.vue @@ -76,7 +76,7 @@ diff --git a/strr-web/components/bcros/form-section/review/Declaration.vue b/strr-web/components/bcros/form-section/review/Declaration.vue index 983f5b59..8fafa36f 100644 --- a/strr-web/components/bcros/form-section/review/Declaration.vue +++ b/strr-web/components/bcros/form-section/review/Declaration.vue @@ -16,7 +16,7 @@ diff --git a/strr-web/components/bcros/stepper/StepperFooter.vue b/strr-web/components/bcros/stepper/StepperFooter.vue index 25430a95..4e4d9322 100644 --- a/strr-web/components/bcros/stepper/StepperFooter.vue +++ b/strr-web/components/bcros/stepper/StepperFooter.vue @@ -28,7 +28,7 @@