From 822f46f1360c51541da04446917bd9d0e0ed31f6 Mon Sep 17 00:00:00 2001 From: Jonathan Lim-Breitbart Date: Thu, 29 Feb 2024 15:12:55 -0800 Subject: [PATCH] fix(Classroom Monitor): Grade by Student sort by location (#1667) --- .../shared/testing/ClassroomMonitorTestHelper.ts | 7 ++++++- .../student-progress.component.html | 2 +- .../student-progress.component.ts | 16 ++++++---------- .../wise5/services/classroomStatusService.ts | 13 +++++-------- 4 files changed, 18 insertions(+), 20 deletions(-) diff --git a/src/assets/wise5/classroomMonitor/classroomMonitorComponents/shared/testing/ClassroomMonitorTestHelper.ts b/src/assets/wise5/classroomMonitor/classroomMonitorComponents/shared/testing/ClassroomMonitorTestHelper.ts index 9b28eb897a7..5461b028e51 100644 --- a/src/assets/wise5/classroomMonitor/classroomMonitorComponents/shared/testing/ClassroomMonitorTestHelper.ts +++ b/src/assets/wise5/classroomMonitor/classroomMonitorComponents/shared/testing/ClassroomMonitorTestHelper.ts @@ -10,6 +10,7 @@ export class ClassroomMonitorTestHelper { students: StudentProgress[] = [ new StudentProgress({ location: '1.2: Open Response', + order: 2, workgroupId: this.workgroupId1, username: 'Spongebob Squarepants', firstName: 'Spongebob', @@ -19,6 +20,7 @@ export class ClassroomMonitorTestHelper { }), new StudentProgress({ location: '1.1: Open Response', + order: 1, workgroupId: this.workgroupId5, username: 'Patrick Star', firstName: 'Patrick', @@ -28,6 +30,7 @@ export class ClassroomMonitorTestHelper { }), new StudentProgress({ location: '1.5: Open Response', + order: 5, workgroupId: this.workgroupId3, username: 'Squidward Tentacles', firstName: 'Squidward', @@ -36,7 +39,8 @@ export class ClassroomMonitorTestHelper { scorePct: 0.4 }), new StudentProgress({ - location: '1.9: Open Response', + location: '1.11: Open Response', + order: 11, workgroupId: this.workgroupId2, username: 'Sandy Cheeks', firstName: 'Sandy', @@ -46,6 +50,7 @@ export class ClassroomMonitorTestHelper { }), new StudentProgress({ location: '1.5: Open Response', + order: 5, workgroupId: this.workgroupId4, username: 'Sheldon Plankton', firstName: 'Sheldon', diff --git a/src/assets/wise5/classroomMonitor/student-progress/student-progress.component.html b/src/assets/wise5/classroomMonitor/student-progress/student-progress.component.html index fe1432293cf..6367f676dcc 100644 --- a/src/assets/wise5/classroomMonitor/student-progress/student-progress.component.html +++ b/src/assets/wise5/classroomMonitor/student-progress/student-progress.component.html @@ -74,7 +74,7 @@ - {{ student.location }} + {{ student.position }}