Skip to content

Commit

Permalink
Feedback Report responses dialog now clarifies when feedback hasn't b…
Browse files Browse the repository at this point in the history
…een finalized
  • Loading branch information
sei-bstein committed Dec 13, 2024
1 parent 42feef1 commit bc5ae34
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class FeedbackGameReportComponent extends ReportComponentBase<FeedbackGam

return {
metaData: {
key: ReportKey.FeedbackReport,
key: ReportKey.FeedbackReportLegacy,
title: "Feedback Report (Legacy)",
description: "",
isExportable: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ export class FeedbackReportComponent extends ReportComponentBase<FeedbackReportP
};

protected handleRecordClick(record: FeedbackReportRecord) {
console.log("opening record", record);
this.modalService.openComponent({
content: PlayerFeedbackResponsesModalComponent,
context: {
record,
templateId: this.ctx.parameters.templateId
}
},
modalClasses: ["modal-xl"]
});
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
<app-modal-content *ngIf="record" title="Feedback" [subtitle]="record.user.name" [hideCancel]="true">
<alert *ngIf="!record.whenFinalized" type="warning" class="my-4">
This player hasn't finalized their submission yet - it may change if they submit it later.
</alert>
<ol>
<li *ngFor="let response of record.responses; index as i" class="my-4">
<strong>{{ i + 1 }}. {{ response.prompt }}</strong>
<div class="my-2" *ngIf="response.answer">{{ response.answer }}</div>
<div class="my-2" *ngIf="response.answer; else noResponse">{{ response.answer }}</div>
</li>
</ol>
</app-modal-content>

<ng-template #noResponse>
<em>(no response)</em>
<div>
<em>(no response)</em>
</div>
</ng-template>

0 comments on commit bc5ae34

Please sign in to comment.