Skip to content

Commit ab4652e

Browse files
feat(CRater): Ping endpoint when component is rendered (#2236)
1 parent c80a130 commit ab4652e

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

src/assets/wise5/components/dialogGuidance/dialog-guidance-student/dialog-guidance-student.component.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
/>
1515
@if (studentCanRespond) {
1616
<chat-input
17-
(focusEvent)="startPinging()"
1817
[submitDisabled]="isWaitingForComputerResponse"
1918
(submitEvent)="submitStudentResponse($event)"
2019
/>

src/assets/wise5/components/dialogGuidance/dialog-guidance-student/dialog-guidance-student.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,10 @@ export class DialogGuidanceStudentComponent extends ComponentStudent {
108108
this.constraintService
109109
);
110110
this.initializeComputerAvatar();
111+
this.pingCRaterEndpoint();
111112
}
112113

113-
protected startPinging(): void {
114+
private pingCRaterEndpoint(): void {
114115
this.cRaterPingService.startPinging(this.getItemId());
115116
}
116117

src/assets/wise5/components/openResponse/open-response-student/open-response-student.component.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
(ngModelChange)="studentDataChanged()"
3535
[disabled]="isDisabled"
3636
cdkTextareaAutosize
37-
(focus)="onFocus()"
3837
>
3938
</textarea>
4039
</mat-form-field>

src/assets/wise5/components/openResponse/open-response-student/open-response-student.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,11 @@ export class OpenResponseStudent extends ComponentStudent {
107107
});
108108
}
109109
this.updateAudioAttachments();
110+
this.pingCRaterEndpoint();
110111
this.broadcastDoneRenderingComponent();
111112
}
112113

113-
protected onFocus() {
114+
private pingCRaterEndpoint(): void {
114115
if (this.isCRaterEnabled()) {
115116
this.cRaterPingService.startPinging(this.getItemId());
116117
}

src/messages.xlf

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16542,7 +16542,7 @@ Are you sure you want to proceed?</source>
1654216542
</context-group>
1654316543
<context-group purpose="location">
1654416544
<context context-type="sourcefile">src/assets/wise5/components/openResponse/open-response-student/open-response-student.component.html</context>
16545-
<context context-type="linenumber">58,60</context>
16545+
<context context-type="linenumber">57,59</context>
1654616546
</context-group>
1654716547
</trans-unit>
1654816548
<trans-unit id="7589669206989444799" datatype="html">
@@ -16553,11 +16553,11 @@ Are you sure you want to proceed?</source>
1655316553
</context-group>
1655416554
<context-group purpose="location">
1655516555
<context context-type="sourcefile">src/assets/wise5/components/openResponse/open-response-student/open-response-student.component.ts</context>
16556-
<context context-type="linenumber">179</context>
16556+
<context context-type="linenumber">180</context>
1655716557
</context-group>
1655816558
<context-group purpose="location">
1655916559
<context context-type="sourcefile">src/assets/wise5/components/openResponse/open-response-student/open-response-student.component.ts</context>
16560-
<context context-type="linenumber">195</context>
16560+
<context context-type="linenumber">196</context>
1656116561
</context-group>
1656216562
</trans-unit>
1656316563
<trans-unit id="4965414112249568013" datatype="html">
@@ -17494,7 +17494,7 @@ Are you ready to receive feedback on this answer?</source>
1749417494
</context-group>
1749517495
<context-group purpose="location">
1749617496
<context context-type="sourcefile">src/assets/wise5/components/openResponse/open-response-student/open-response-student.component.ts</context>
17497-
<context context-type="linenumber">182</context>
17497+
<context context-type="linenumber">183</context>
1749817498
</context-group>
1749917499
</trans-unit>
1750017500
<trans-unit id="2353574516166744013" datatype="html">
@@ -20491,7 +20491,7 @@ Current Score: <x id="PH_1" equiv-text="currentScore"/></source>
2049120491
Are you ready to receive feedback on this answer?</source>
2049220492
<context-group purpose="location">
2049320493
<context context-type="sourcefile">src/assets/wise5/components/openResponse/open-response-student/open-response-student.component.ts</context>
20494-
<context context-type="linenumber">186</context>
20494+
<context context-type="linenumber">187</context>
2049520495
</context-group>
2049620496
</trans-unit>
2049720497
<trans-unit id="7482125205220618294" datatype="html">
@@ -20500,7 +20500,7 @@ Are you ready to receive feedback on this answer?</source>
2050020500
Are you ready to receive feedback on this answer?</source>
2050120501
<context-group purpose="location">
2050220502
<context context-type="sourcefile">src/assets/wise5/components/openResponse/open-response-student/open-response-student.component.ts</context>
20503-
<context context-type="linenumber">198</context>
20503+
<context context-type="linenumber">199</context>
2050420504
</context-group>
2050520505
</trans-unit>
2050620506
<trans-unit id="6316287012266891697" datatype="html">
@@ -20509,29 +20509,29 @@ Are you ready to receive feedback on this answer?</source>
2050920509
Are you ready to submit this answer?</source>
2051020510
<context-group purpose="location">
2051120511
<context context-type="sourcefile">src/assets/wise5/components/openResponse/open-response-student/open-response-student.component.ts</context>
20512-
<context context-type="linenumber">202</context>
20512+
<context context-type="linenumber">203</context>
2051320513
</context-group>
2051420514
</trans-unit>
2051520515
<trans-unit id="8936495196157450285" datatype="html">
2051620516
<source>We are scoring your work...</source>
2051720517
<context-group purpose="location">
2051820518
<context context-type="sourcefile">src/assets/wise5/components/openResponse/open-response-student/open-response-student.component.ts</context>
20519-
<context context-type="linenumber">321</context>
20519+
<context context-type="linenumber">322</context>
2052020520
</context-group>
2052120521
</trans-unit>
2052220522
<trans-unit id="2283191014272031538" datatype="html">
2052320523
<source>Please Wait</source>
2052420524
<context-group purpose="location">
2052520525
<context context-type="sourcefile">src/assets/wise5/components/openResponse/open-response-student/open-response-student.component.ts</context>
20526-
<context context-type="linenumber">322</context>
20526+
<context context-type="linenumber">323</context>
2052720527
</context-group>
2052820528
</trans-unit>
2052920529
<trans-unit id="8785209093929133444" datatype="html">
2053020530
<source>There was an issue scoring your work. Please try again.
2053120531
If this problem continues, let your teacher know and move on to the next activity. Your work will still be saved.</source>
2053220532
<context-group purpose="location">
2053320533
<context context-type="sourcefile">src/assets/wise5/components/openResponse/open-response-student/open-response-student.component.ts</context>
20534-
<context context-type="linenumber">344</context>
20534+
<context context-type="linenumber">345</context>
2053520535
</context-group>
2053620536
</trans-unit>
2053720537
<trans-unit id="1703970408358128709" datatype="html">

0 commit comments

Comments
 (0)