Skip to content

Commit 03f6ac5

Browse files
authored
Merge pull request #2348 from bcgov/feature/screenAdjust
UI trim up for assessments registrations pages
2 parents 79601c1 + e6fe300 commit 03f6ac5

File tree

3 files changed

+34
-29
lines changed

3 files changed

+34
-29
lines changed

frontend/src/components/assessments/AssessmentSessionDetail.vue

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
:value="1"
2222
prepend-icon="mdi-account-multiple-outline"
2323
>
24-
Registrations and Results
24+
Registrations
2525
</v-tab>
2626
<v-tab
2727
:value="2"
2828
prepend-icon="mdi-finance"
2929
>
30-
Reports
30+
Reports & Results
3131
</v-tab>
3232
</v-tabs>
3333
<v-window v-model="tab">
@@ -37,11 +37,22 @@
3737
reverse-transition="false"
3838
>
3939
<StudentRegistrations
40-
v-if="schoolYearSessions.length > 0"
40+
v-if="schoolYearSessions.length > 5"
4141
:school-year="schoolYear"
4242
:school-year-sessions="schoolYearSessions"
4343
:session-i-d="sessionID"
4444
/>
45+
<v-row v-else>
46+
<v-col class="mt-5">
47+
<v-alert
48+
density="compact"
49+
type="info"
50+
variant="tonal"
51+
>
52+
<span>Assessment registrations are unavailable until new sessions open in the fall.</span>
53+
</v-alert>
54+
</v-col>
55+
</v-row>
4556
</v-window-item>
4657
<v-window-item
4758
:value="2"
@@ -96,10 +107,14 @@ export default {
96107
},
97108
async created() {
98109
this.loading = true;
99-
easStore().getActiveSchoolYear(this.userInfo.activeInstituteType).then(() => this.getAllSessionsforYear());
110+
easStore().getActiveSchoolYear(this.userInfo.activeInstituteType).then(() => {
111+
if(this.schoolYear.length > 0) {
112+
this.getAllSessionsforYear();
113+
}
114+
});
100115
},
101116
methods: {
102-
async getAllSessionsforYear() {
117+
async getAllSessionsforYear() {
103118
this.loading = true;
104119
ApiService.apiAxios
105120
.get(

frontend/src/components/assessments/registrations/StudentRegistrations.vue

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
id="enrollmentTab"
44
fluid
55
>
6-
<v-row v-if="activeSession.assessmentRegistrationsExportDate !== null">
7-
<v-col>
8-
<v-alert
9-
density="compact"
10-
type="info"
11-
variant="tonal"
12-
>
13-
<span>Registrations for the {{ activeSession?.courseYear }}/{{ activeSession?.courseMonth }} session were transferred to e-Assessments System on
14-
{{activeSession?.assessmentRegistrationsExportDate.substring(0,19).replaceAll('-', '/').replaceAll('T', ' ') }}. Any changes made here or through XAM file submissions after that date will not appear in e-Assessments System unless schools enter them directly.</span>
15-
</v-alert>
16-
</v-col>
17-
</v-row>
6+
<v-row v-if="activeSession.assessmentRegistrationsExportDate !== null">
7+
<v-col>
8+
<v-alert
9+
density="compact"
10+
type="info"
11+
variant="tonal"
12+
>
13+
<span>Registrations for the {{ activeSession?.courseYear }}/{{ activeSession?.courseMonth }} session were transferred to e-Assessments System on
14+
{{ activeSession?.assessmentRegistrationsExportDate.substring(0,19).replaceAll('-', '/').replaceAll('T', ' ') }}. Any changes made here or through XAM file submissions after that date will not appear in e-Assessments System unless schools enter them directly.</span>
15+
</v-alert>
16+
</v-col>
17+
</v-row>
1818
<v-row>
1919
<v-col cols="12">
2020
<v-row justify="space-between">

frontend/src/utils/eas/StudentRegistrationTableConfiguration.js

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -125,16 +125,11 @@ export const SCHOOL_YEAR_REGISTRATIONS_VIEW_DISTRICT = Object.freeze(
125125
{ title: 'PEN', key: 'pen' },
126126
{ title: 'Local ID', key: 'localID' },
127127
{ title: 'Surname, Given Name', key: 'name' },
128-
{ title: 'Assessment Center', key: 'assessmentCenterName_desc' },
129-
{ title: 'Score', key: 'proficiencyScore' },
130-
{ title: 'Special Case', key: 'provincialSpecialCaseName_desc' },
131-
{ title: 'ISR', key: 'isr' },
128+
{ title: 'Assessment Center', key: 'assessmentCenterName_desc' }
132129
],
133130
allowedFilters: {
134131
session: SESSION_CODE_FILTER,
135132
assessmentTypeCode: ASSESSMENT_TYPE_CODE_FILTER,
136-
proficiencyScoreValue: PROFICIENCY_SCORE_RANGE_FILTER,
137-
provincialSpecialCaseCode: SPECIAL_CASE_FILTER,
138133
transfer: REGISTRATIONS_TRANSFER_FILTER
139134
}
140135
});
@@ -149,16 +144,11 @@ export const SCHOOL_YEAR_REGISTRATIONS_VIEW_SCHOOL = Object.freeze(
149144
{ title: 'PEN', key: 'pen' },
150145
{ title: 'Local ID', key: 'localID' },
151146
{ title: 'Surname, Given Name', key: 'name' },
152-
{ title: 'Assessment Center', key: 'assessmentCenterName_desc' },
153-
{ title: 'Score', key: 'proficiencyScore' },
154-
{ title: 'Special Case', key: 'provincialSpecialCaseName_desc' },
155-
{ title: 'ISR', key: 'isr' },
147+
{ title: 'Assessment Center', key: 'assessmentCenterName_desc' }
156148
],
157149
allowedFilters: {
158150
session: SESSION_CODE_FILTER,
159151
assessmentTypeCode: ASSESSMENT_TYPE_CODE_FILTER,
160-
proficiencyScoreValue: PROFICIENCY_SCORE_RANGE_FILTER,
161-
provincialSpecialCaseCode: SPECIAL_CASE_FILTER,
162152
transfer: REGISTRATIONS_TRANSFER_FILTER
163153
}
164154
});

0 commit comments

Comments
 (0)