Skip to content

Commit 52e981b

Browse files
jenbeckettweskubo-cgi
and
weskubo-cgi
authored
Release 2.3 Updates (#610)
* ecewe org questions show for all applications, expansion panel order changed * fix home page facility cards for orgs with multiple facilities * removed an empty class * ccfri-4307 ecewe status codes incorrect * Ccfri 4274 closure data lost (#606) * fixed bug where date removal was not obeying the index key. Also fixed ccfri summary dec to work better while checking errors * remove unused import * add default font family * Ccfri 4321 rfi UI fix (#609) * UI updates for RFI , fix bug where rows containing dates do not delete properly * fix next button on existing fees correct page * fixed alignment on ul * Ccfri 4247 fix closure table (#611) * when tables open, default them to have one row populated * Ccfri 4362 fix closure table validations (#612) Co-authored-by: weskubo-cgi <[email protected]>
1 parent a1dbf32 commit 52e981b

19 files changed

+695
-655
lines changed

backend/src/components/facility.js

+133-146
Large diffs are not rendered by default.

backend/src/util/constants.js

+28-36
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
//TODO: this really should be a lookup in dynamics
32
const CHILD_AGE_CATEGORY_TYPES = new Map();
43
CHILD_AGE_CATEGORY_TYPES.set('0-18', '0 to 18 months');
@@ -16,21 +15,17 @@ CHILD_AGE_CATEGORY_ORDER.set('OOSC-K', 4);
1615
CHILD_AGE_CATEGORY_ORDER.set('OOSC-G', 5);
1716
CHILD_AGE_CATEGORY_ORDER.set('PRE', 6);
1817

19-
20-
21-
2218
//Jen changed these string values ^^ for the lookup mapping to work -- now they match EXACTLY what comes back from the Dynamics API
2319

2420
const ACCOUNT_TYPE = Object.freeze({
2521
FACILITY: 100000001,
26-
ORGANIZATION: 100000000
22+
ORGANIZATION: 100000000,
2723
});
2824

29-
3025
const CCOF_APPLICATION_TYPES = Object.freeze({
3126
NEW: 100000000,
3227
FACILITY: 100000001,
33-
RENEW: 100000002
28+
RENEW: 100000002,
3429
});
3530

3631
const CHANGE_REQUEST_STATUS_CODES = Object.freeze({
@@ -40,7 +35,7 @@ const CHANGE_REQUEST_STATUS_CODES = Object.freeze({
4035
WITH_PROVIDER: 5,
4136
INELIGIBLE: 6,
4237
APPROVED: 7,
43-
CANCELLED: 8
38+
CANCELLED: 8,
4439
});
4540

4641
const APPLICATION_STATUS_CODES = Object.freeze({
@@ -50,35 +45,34 @@ const APPLICATION_STATUS_CODES = Object.freeze({
5045
WITHDRAWN: 4,
5146
// Additional status codes not from Dynamics
5247
APPROVED: 10,
53-
ACTION_REQUIRED: 11
48+
'ACTION REQUIRED': 11,
5449
});
5550

5651
const CHANGE_REQUEST_EXTERNAL_STATUS_CODES = Object.freeze({
5752
INCOMPLETE: 1,
5853
SUBMITTED: 2,
59-
ACTION_REQUIRED: 3,
54+
'ACTION REQUIRED': 3,
6055
INELIGIBLE: 4,
6156
APPROVED: 5,
62-
CANCELLED: 6
57+
CANCELLED: 6,
6358
});
6459

6560
const CCOF_STATUS_CODES = Object.freeze({
6661
SUBMITTED: 1,
67-
ACTION_REQUIRED: 2,
62+
'ACTION REQUIRED': 2,
6863
ACTIVE: 3,
6964
INACTIVE: 4,
70-
CANCELLED: 5
65+
CANCELLED: 5,
7166
});
7267

7368
const ORGANIZATION_PROVIDER_TYPES = Object.freeze({
7469
GROUP: 100000000,
7570
FAMILY: 100000001,
7671
});
7772

78-
7973
const OPTIN_STATUS_CODES = Object.freeze({
8074
OUT: 0,
81-
IN: 1,
75+
IN: 1,
8276
});
8377

8478
const CCFRI_STATUS_CODES = Object.freeze({
@@ -87,43 +81,42 @@ const CCFRI_STATUS_CODES = Object.freeze({
8781
SUBMITTED: 1,
8882
NOT_APPROVED: 4,
8983
INELIGIBLE: 5,
90-
ACTION_REQUIRED: 6,
84+
'ACTION REQUIRED': 6,
9185
'Opt-Out': 7,
92-
'New': 8,
86+
NEW: 8,
9387
'MTFI Requested': 9,
9488
'MTFI Approved': 10,
9589
'MTFI Action Required': 13,
9690
});
9791

9892
const ECEWE_STATUS_CODES = Object.freeze({
93+
SUBMITTED: 1,
9994
APPROVED: 3,
10095
DRAFT: 2,
101-
SUBMITTED: 1,
102-
NOT_APPROVED: 4,
103-
INELIGIBLE: 5,
104-
ACTION_REQUIRED: 6
96+
INELIGIBLE: 4,
97+
'ACTION REQUIRED': 5,
98+
'Opt-Out': 6,
99+
NEW: 7,
105100
});
106101

107102
const PROGRAM_YEAR_STATUS_CODES = Object.freeze({
108-
CURRENT: 1,
109-
INACTIVE: 2,
110-
FUTURE: 3,
111-
HISTORICAL: 4,
103+
CURRENT: 1,
104+
INACTIVE: 2,
105+
FUTURE: 3,
106+
HISTORICAL: 4,
112107
});
113108

114-
115-
116109
const FACILITY_AGE_GROUP_CODES = Object.freeze({
117-
'1': '0 to 18 months',
118-
'2': '18 to 36 months',
119-
'3': '3 Years to Kindergarten',
120-
'4': 'Out of School Care - Kindergarten',
121-
'5': 'Out of School Care - Grade 1+' ,
122-
'6': 'Preschool'
110+
1: '0 to 18 months',
111+
2: '18 to 36 months',
112+
3: '3 Years to Kindergarten',
113+
4: 'Out of School Care - Kindergarten',
114+
5: 'Out of School Care - Grade 1+',
115+
6: 'Preschool',
123116
});
124117

125118
const CHANGE_REQUEST_TYPES = Object.freeze({
126-
LEGAL_ORG_NAME_CHANGE: 100000000 ,
119+
LEGAL_ORG_NAME_CHANGE: 100000000,
127120
ORG_MAILING_ADDRESS: 100000001,
128121
FACILITY_ADDRESS: 100000002,
129122
FACILITY_NAME: 100000003,
@@ -155,6 +148,5 @@ module.exports = {
155148
CHILD_AGE_CATEGORY_ORDER,
156149
CHANGE_REQUEST_TYPES,
157150
CHANGE_REQUEST_EXTERNAL_STATUS_CODES,
158-
CHANGE_REQUEST_STATUS_CODES
151+
CHANGE_REQUEST_STATUS_CODES,
159152
};
160-

backend/src/util/mapping/Mappings.js

+5
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ const ServiceExpansionDetailsMappings = [
107107
{ back: 'ccof_paymentfrequencydetails', front: 'frequency' },
108108
{ back: 'ccof_dateofchange', front: 'date' },
109109
{ back: 'ccof_amountofexpense', front: 'expense' },
110+
{ back: 'ccof_rfipfiserviceexpansiondetailid', front: 'id' },
110111
];
111112

112113
const DCSWageIncreaseMappings = [
@@ -117,13 +118,15 @@ const DCSWageIncreaseMappings = [
117118
{ back: 'ccof_wageafterincrease', front: 'wageAfterIncrease' },
118119
{ back: 'ccof_averagehoursperweek', front: 'averageHours' },
119120
{ back: 'ccof_wageincreasedate', front: 'wageDate' },
121+
{ back: 'ccof_rfi_pfi_dcs_wi_detailid', front: 'id' },
120122
];
121123

122124
const ExpenseInformationMappings = [
123125
{ back: 'ccof_expensedescription', front: 'description' },
124126
{ back: 'ccof_dateofexpense', front: 'date' },
125127
{ back: 'ccof_paymentfrequencydetails', front: 'frequency' },
126128
{ back: 'ccof_expenseamountt', front: 'expense' },
129+
{ back: 'ccof_rfipfiexpenseinfoid', front: 'id' },
127130
];
128131

129132
const OtherFundingProgramMappings = [
@@ -132,13 +135,15 @@ const OtherFundingProgramMappings = [
132135
{ back: 'ccof_statusofapplication', front: 'status' },
133136
{ back: 'ccof_amountreceived', front: 'amount' },
134137
{ back: 'ccof_expense', front: 'expenses' },
138+
{ back: 'ccof_rfi_pfi_other_fundingid', front: 'id' },
135139
];
136140

137141
const IndigenousExpenseMappings = [
138142
{ back: 'ccof_expensedescription', front: 'description' },
139143
{ back: 'ccof_date', front: 'date' },
140144
{ back: 'ccof_paymentfrequency', front: 'frequency' },
141145
{ back: 'ccof_amount', front: 'expense' },
146+
{ back: 'ccof_rfipfiserviceexpansionindigenouscommunityid', front: 'id' },
142147
];
143148

144149
const NMFApplicationMappings = [

frontend/public/styles/common.css

+19-1
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,22 @@ input[type="number"] {
113113
color: #ff5252;
114114
}
115115

116-
.add-file-button {
116+
.font-large {
117+
font-size: 18px;
118+
}
119+
120+
.font-regular {
117121
font-size: 16px;
118122
}
119123

124+
.font-small {
125+
font-size: 14px;
126+
}
127+
128+
.font-xsmall {
129+
font-size: 12px;
130+
}
131+
120132
.border-right {
121133
border-right: 0.5px solid lightgray;
122134
}
@@ -132,6 +144,12 @@ input[type="number"] {
132144
background-color: #e5e4e4;
133145
}
134146

147+
.span-label {
148+
color: #636262;
149+
font-style: normal;
150+
font-family: "BCSans", Verdana, Arial, sans-serif;
151+
}
152+
135153
div.text-h4,
136154
h4.text-h4,
137155
p.text-h4,

frontend/src/components/LandingPage.vue

+6-4
Original file line numberDiff line numberDiff line change
@@ -259,13 +259,15 @@
259259
</v-row>
260260
</v-col>
261261
</v-row>
262-
<v-row no-gutters justify="space-around">
262+
<v-row no-gutters class="justify-space-around">
263263
<v-col
264264
v-for="facility in filteredFacilityListForFacilityCards"
265-
:key="facility?.facilityId"
266-
class="col-12 col-xl-6 pa-4 flex d-flex flex-column"
265+
:key="facility.facilityId"
266+
class="pa-2"
267+
cols="12"
268+
md="6"
267269
>
268-
<v-card class="elevation-4 pa-2 rounded-lg blueBorder flex d-flex flex-column" min-height="230">
270+
<v-card class="blueBorder rounded-lg elevation-4 pb-2" min-height="230">
269271
<v-card-text>
270272
<p v-if="facility?.facilityAccountNumber" class="text-h5 text--primary text-center">
271273
Facility ID: {{ facility?.facilityAccountNumber }}

frontend/src/components/RFI/RFIDocumentUpload.vue

+1-8
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,7 @@
2626
>
2727
<template #top>
2828
<v-col flex>
29-
<AppButton
30-
v-if="!isLocked"
31-
id="add-new-file"
32-
:primary="false"
33-
size="large"
34-
class="add-file-button mb-2"
35-
@click="addNew"
36-
>
29+
<AppButton v-if="!isLocked" id="add-new-file" :primary="false" size="large" class="mb-2" @click="addNew">
3730
Add File
3831
</AppButton>
3932
</v-col>

0 commit comments

Comments
 (0)