From d1477eaa6a83974c1e2664c6c09e911e343bf82c Mon Sep 17 00:00:00 2001 From: qhanson55 Date: Fri, 13 Dec 2024 15:09:59 -0800 Subject: [PATCH] Made updates to permit project and tracker pages, as well as permit enquiry updates. --- ...41209000000_016-permit-complete-status.ts} | 0 frontend/src/components/common/StatusPill.vue | 35 +- .../enquiry/EnquiryIntakeConfirmation.vue | 4 +- .../housing/projects/CreateEnquiryDialog.vue | 9 +- .../components/permit/PermitEnquiryModal.vue | 11 +- frontend/src/router/index.ts | 2 + .../src/views/housing/project/ProjectView.vue | 54 ++- .../src/views/permit/PermitStatusView.vue | 440 +++++++++++------- 8 files changed, 359 insertions(+), 196 deletions(-) rename app/src/db/migrations/{20241209000000_16-permit-complete-status.ts => 20241209000000_016-permit-complete-status.ts} (100%) diff --git a/app/src/db/migrations/20241209000000_16-permit-complete-status.ts b/app/src/db/migrations/20241209000000_016-permit-complete-status.ts similarity index 100% rename from app/src/db/migrations/20241209000000_16-permit-complete-status.ts rename to app/src/db/migrations/20241209000000_016-permit-complete-status.ts diff --git a/frontend/src/components/common/StatusPill.vue b/frontend/src/components/common/StatusPill.vue index 991f11ce..a32064c0 100644 --- a/frontend/src/components/common/StatusPill.vue +++ b/frontend/src/components/common/StatusPill.vue @@ -4,11 +4,29 @@ import { computed } from 'vue'; import { PermitAuthorizationStatus, PermitAuthorizationStatusDescriptions } from '@/utils/enums/housing'; // Props -const { authStatus, toolTipDirection = 'right' } = defineProps<{ +const { + authStatus, + toolTipDirection = 'right', + enlarge = false +} = defineProps<{ authStatus?: string; toolTipDirection?: string; + enlarge?: boolean; }>(); +const defaultDimensions = { + fontSize: '0.75rem', + height: '1.5rem', + iconFontSize: '1rem', + lineHeight: '1.5rem' +}; +const enlargedDimensions = { + fontSize: '1rem', + height: '2rem', + iconFontSize: '1.5rem', + lineHeight: '2rem' +}; + const pillState = { [PermitAuthorizationStatus.ABANDONED]: { badgeClass: 'grey', @@ -60,6 +78,7 @@ const pillState = { } }; +const dimensions = computed(() => (enlarge ? enlargedDimensions : defaultDimensions)); const getState = computed(() => { return pillState[authStatus as keyof typeof pillState]; }); @@ -71,6 +90,12 @@ const getState = computed(() => { v-tooltip="{ value: getState?.toolTip, modifier: toolTipDirection }" class="flex justify-content-center align-items-center auth-indicator" :class="[getState?.badgeClass]" + :style="{ + '--font-size': dimensions.fontSize, + '--icon-font-size': dimensions.iconFontSize, + '--height': dimensions.height, + '--line-height': dimensions.lineHeight + }" > { border-radius: 2px; border-style: solid; border-width: 0.1rem; - font-size: 0.75rem; - height: 1.5rem; - line-height: 1.5rem; + font-size: var(--font-size); + height: var(--height); + line-height: var(--line-height); padding-left: 0.5rem; padding-right: 0.5rem; cursor: default; @@ -102,7 +127,7 @@ const getState = computed(() => { } .icon-detail { - font-size: 1rem; + font-size: var(--icon-font-height); margin-right: 0.5rem; } diff --git a/frontend/src/components/housing/enquiry/EnquiryIntakeConfirmation.vue b/frontend/src/components/housing/enquiry/EnquiryIntakeConfirmation.vue index 0233b070..1f2afd66 100644 --- a/frontend/src/components/housing/enquiry/EnquiryIntakeConfirmation.vue +++ b/frontend/src/components/housing/enquiry/EnquiryIntakeConfirmation.vue @@ -27,8 +27,8 @@ const {

Confirmation ID: {{ assignedActivityId }}

- A Housing Navigator will review your submission and contact you. Please check your email for the confirmation - email and keep the confirmation ID for future reference. + Your submission will be reviewed and you will be contacted by your Housing Navigator in 2 business days. Please + check your email for the confirmation email and keep the confirmation ID for future reference.
(); // Store @@ -75,11 +77,14 @@ const handleCloseDialog = () => {
+
+ To: {{ navigator?.firstName }} {{ navigator?.lastName }} +