From 8daf8b38a1bc335dec5ab8fe5ca7f8dfbaef3096 Mon Sep 17 00:00:00 2001 From: Hiroki Terashima Date: Mon, 16 Mar 2026 16:02:22 -0700 Subject: [PATCH 1/3] Inject asset paths in component content. This will make the images in the prompts appear --- .../nodeGrading/node-grading/node-grading.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/assets/wise5/classroomMonitor/classroomMonitorComponents/nodeGrading/node-grading/node-grading.component.ts b/src/assets/wise5/classroomMonitor/classroomMonitorComponents/nodeGrading/node-grading/node-grading.component.ts index 24dd967347a..5103cb34cc3 100644 --- a/src/assets/wise5/classroomMonitor/classroomMonitorComponents/nodeGrading/node-grading/node-grading.component.ts +++ b/src/assets/wise5/classroomMonitor/classroomMonitorComponents/nodeGrading/node-grading/node-grading.component.ts @@ -102,7 +102,7 @@ export class NodeGradingComponent implements OnInit, OnDestroy, OnChanges { .filter((component) => this.projectService.componentHasWork(component)) .map((component, index) => { component['displayIndex'] = index + 1; - return component; + return this.projectService.injectAssetPaths(component); }); this.visibleComponents = [this.components[0]]; this.numRubrics = this.node.getNumRubrics(); From b5d4fcab72195f4b2ca339e8d91685defc489abd Mon Sep 17 00:00:00 2001 From: Hiroki Terashima Date: Mon, 16 Mar 2026 16:16:00 -0700 Subject: [PATCH 2/3] match summary: show images in choice and buckets --- .../match-summary-display.component.html | 2 +- .../match-summary-display/match-summary-display.component.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/assets/wise5/directives/teacher-summary-display/match-summary-display/match-summary-display.component.html b/src/assets/wise5/directives/teacher-summary-display/match-summary-display/match-summary-display.component.html index 5c78a373d83..e16ea18d72a 100644 --- a/src/assets/wise5/directives/teacher-summary-display/match-summary-display/match-summary-display.component.html +++ b/src/assets/wise5/directives/teacher-summary-display/match-summary-display/match-summary-display.component.html @@ -1,7 +1,7 @@

- {{ bucket.value }} + @if (first) { (Source Bucket) } diff --git a/src/assets/wise5/directives/teacher-summary-display/match-summary-display/match-summary-display.component.ts b/src/assets/wise5/directives/teacher-summary-display/match-summary-display/match-summary-display.component.ts index a13f58d9961..fd039becfb9 100644 --- a/src/assets/wise5/directives/teacher-summary-display/match-summary-display/match-summary-display.component.ts +++ b/src/assets/wise5/directives/teacher-summary-display/match-summary-display/match-summary-display.component.ts @@ -38,7 +38,9 @@ export class MatchSummaryDisplayComponent extends TeacherSummaryDisplayComponent this.getLatestWork().subscribe((componentStates) => { this.bucketData = []; this.bucketValues.clear(); - this.matchSummaryData = new MatchSummaryData(componentStates); + this.matchSummaryData = new MatchSummaryData( + this.projectService.injectAssetPaths(componentStates) + ); this.setBucketValues(); this.setBucketData(); this.setBucketShowMore(); From 1de6e16544063b38f243a1d2338230fd9ea42d9f Mon Sep 17 00:00:00 2001 From: Hiroki Terashima Date: Mon, 16 Mar 2026 16:32:50 -0700 Subject: [PATCH 3/3] fix tests --- .../match-summary-display.component.spec.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/assets/wise5/directives/teacher-summary-display/match-summary-display/match-summary-display.component.spec.ts b/src/assets/wise5/directives/teacher-summary-display/match-summary-display/match-summary-display.component.spec.ts index 573ce885733..bad43b748b0 100644 --- a/src/assets/wise5/directives/teacher-summary-display/match-summary-display/match-summary-display.component.spec.ts +++ b/src/assets/wise5/directives/teacher-summary-display/match-summary-display/match-summary-display.component.spec.ts @@ -37,6 +37,9 @@ describe('MatchSummaryDisplayComponent', () => { spyOn(TestBed.inject(SummaryService), 'getLatestClassmateStudentWork').and.returnValue( of(getComponentStates()) ); + spyOn(TestBed.inject(ProjectService), 'injectAssetPaths').and.callFake((componentStates) => { + return componentStates; + }); fixture = TestBed.createComponent(MatchSummaryDisplayComponent); component = fixture.componentInstance; component.nodeId = 'nId';