From add8f4cfd05d69dccd82e57ff7343080a5238707 Mon Sep 17 00:00:00 2001 From: Jen Beckett <115109120+jenbeckett@users.noreply.github.com> Date: Fri, 15 Nov 2024 11:17:27 -0800 Subject: [PATCH 01/21] wip --- .../eceweApplication/EceweEligibility.vue | 1 + frontend/src/store/app.js | 14 ++++++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/eceweApplication/EceweEligibility.vue b/frontend/src/components/eceweApplication/EceweEligibility.vue index 7774c4ec..adec1cf8 100644 --- a/frontend/src/components/eceweApplication/EceweEligibility.vue +++ b/frontend/src/components/eceweApplication/EceweEligibility.vue @@ -8,6 +8,7 @@
Early Childhood Educator Wage Enhancement (ECE-WE)
{{ userInfo.organizationName }} + {{ languageYearLabel }}
diff --git a/frontend/src/store/app.js b/frontend/src/store/app.js index 02cdca3b..8e85d841 100644 --- a/frontend/src/store/app.js +++ b/frontend/src/store/app.js @@ -127,10 +127,16 @@ export const useAppStore = defineStore('app', { const orderNumber = state?.programYearList.list.find( (el) => el.programYearId == applicationStore?.programYearId, )?.order; - if (orderNumber < 5) { - return PROGRAM_YEAR_LANGUAGE_TYPES.HISTORICAL; - } else { - return PROGRAM_YEAR_LANGUAGE_TYPES.FY2024_25; + switch (orderNumber) { + case 1: + case 2: + case 3: + case 4: + return PROGRAM_YEAR_LANGUAGE_TYPES.HISTORICAL; + case 5: + return PROGRAM_YEAR_LANGUAGE_TYPES.FY2024_25; + case 6: + return PROGRAM_YEAR_LANGUAGE_TYPES.FY2025_26; } }, getProgramYearNameById: (state) => { From 93f5329cb22a7d44d7d8d7833cb327cb40a61ee6 Mon Sep 17 00:00:00 2001 From: Jen Beckett <115109120+jenbeckett@users.noreply.github.com> Date: Mon, 18 Nov 2024 21:28:19 -0800 Subject: [PATCH 02/21] wip - moved ecewe questions to a component --- .../eceweApplication/EceweEligibility.vue | 239 +------- .../EceweEligibilityQuestions.vue | 509 ++++++++++++++++++ .../guiComponents/AppAlertBanner.vue | 104 ++++ 3 files changed, 625 insertions(+), 227 deletions(-) create mode 100644 frontend/src/components/eceweApplication/EceweEligibilityQuestions.vue create mode 100644 frontend/src/components/guiComponents/AppAlertBanner.vue diff --git a/frontend/src/components/eceweApplication/EceweEligibility.vue b/frontend/src/components/eceweApplication/EceweEligibility.vue index adec1cf8..13250f79 100644 --- a/frontend/src/components/eceweApplication/EceweEligibility.vue +++ b/frontend/src/components/eceweApplication/EceweEligibility.vue @@ -29,231 +29,15 @@ - - - - - - - - -
- - -
-
-
-
-
-
- - -
-
+ + + {{ model }} {{ isLoading }} + + + + + + + +
+ + +
+
+
+
+
+
+ + +
+ + + + diff --git a/frontend/src/components/guiComponents/AppAlertBanner.vue b/frontend/src/components/guiComponents/AppAlertBanner.vue new file mode 100644 index 00000000..cdf1d978 --- /dev/null +++ b/frontend/src/components/guiComponents/AppAlertBanner.vue @@ -0,0 +1,104 @@ + + + From 468a81cc4fcf6952f55ca0acdd8db69b8053db68 Mon Sep 17 00:00:00 2001 From: Jen Beckett <115109120+jenbeckett@users.noreply.github.com> Date: Tue, 19 Nov 2024 17:17:48 -0800 Subject: [PATCH 03/21] wip - template works for 202526 and tested with previous years to save --- backend/src/components/application.js | 2 +- backend/src/util/mapping/Mappings.js | 1 + .../eceweApplication/EceweEligibility.vue | 2 +- .../EceweEligibilityQuestions.vue | 126 ++++++++++++------ frontend/src/utils/constants.js | 7 + 5 files changed, 92 insertions(+), 46 deletions(-) diff --git a/backend/src/components/application.js b/backend/src/components/application.js index 9a3c6b85..5ab4f699 100644 --- a/backend/src/components/application.js +++ b/backend/src/components/application.js @@ -293,7 +293,7 @@ async function getECEWEApplication(req, res) { const operation = 'ccof_applications(' + req.params.applicationId + - ')?$select=ccof_ecewe_optin,ccof_ecewe_employeeunion,ccof_ecewe_selecttheapplicablefundingmodel,ccof_ecewe_selecttheapplicablesector,ccof_public_sector_employer,ccof_ecewe_confirmation&$expand=ccof_ccof_application_ccof_applicationecewe_application($select=ccof_name,_ccof_facility_value,ccof_optintoecewe,statuscode)'; + ')?$select=ccof_ecewe_optin,ccof_ecewe_employeeunion,ccof_ecewe_selecttheapplicablefundingmodel,ccof_ecewe_selecttheapplicablesector,ccof_public_sector_employer,ccof_union_local_agreement_reached,ccof_ecewe_confirmation&$expand=ccof_ccof_application_ccof_applicationecewe_application($select=ccof_name,_ccof_facility_value,ccof_optintoecewe,statuscode)'; let eceweApp = await getOperation(operation); eceweApp = new MappableObjectForFront(eceweApp, ECEWEApplicationMappings); const forFrontFacilities = []; diff --git a/backend/src/util/mapping/Mappings.js b/backend/src/util/mapping/Mappings.js index c73c74a3..e208d296 100644 --- a/backend/src/util/mapping/Mappings.js +++ b/backend/src/util/mapping/Mappings.js @@ -244,6 +244,7 @@ const ECEWEApplicationMappings = [ { back: 'ccof_ecewe_eligibility_complete', front: 'isEceweComplete' }, { back: 'ccof_ecewe_selecttheapplicablesector', front: 'applicableSector' }, { back: 'ccof_public_sector_employer', front: 'publicSector' }, //null, + { back: 'ccof_union_local_agreement_reached', front: 'isUnionAgreementReached' }, //null, ]; const ECEWEFacilityMappings = [ diff --git a/frontend/src/components/eceweApplication/EceweEligibility.vue b/frontend/src/components/eceweApplication/EceweEligibility.vue index 13250f79..2a6c4490 100644 --- a/frontend/src/components/eceweApplication/EceweEligibility.vue +++ b/frontend/src/components/eceweApplication/EceweEligibility.vue @@ -185,7 +185,7 @@ export default { }, }, enableButtons() { - return this.isValidForm; + return this.isValidForm && !this.$refs?.eligibilityQuestions?.showCSSEAWarning; }, }, async mounted() { diff --git a/frontend/src/components/eceweApplication/EceweEligibilityQuestions.vue b/frontend/src/components/eceweApplication/EceweEligibilityQuestions.vue index bcb931bc..8657068c 100644 --- a/frontend/src/components/eceweApplication/EceweEligibilityQuestions.vue +++ b/frontend/src/components/eceweApplication/EceweEligibilityQuestions.vue @@ -22,10 +22,10 @@