-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Programming exercises: Add feedback discussion feature to feedback an…
…alysis table (#9810)
- Loading branch information
Showing
24 changed files
with
925 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/main/java/de/tum/cit/aet/artemis/communication/dto/FeedbackChannelRequestDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package de.tum.cit.aet.artemis.communication.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
|
||
@JsonInclude(JsonInclude.Include.NON_EMPTY) | ||
public record FeedbackChannelRequestDTO(ChannelDTO channel, String feedbackDetailText) { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...ge/grading/feedback-analysis/Modal/confirm-feedback-channel-creation-modal.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<div class="modal-header"> | ||
<h4 class="modal-title" [jhiTranslate]="TRANSLATION_BASE + '.header'"></h4> | ||
<button type="button" class="btn-close" aria-label="Close" (click)="dismiss()"></button> | ||
</div> | ||
<div class="modal-body"> | ||
<p [jhiTranslate]="TRANSLATION_BASE + '.confirmationMessage'" [translateValues]="{ count: affectedStudentsCount }"></p> | ||
</div> | ||
<div class="modal-footer"> | ||
<button type="button" class="btn btn-secondary" (click)="dismiss()" [jhiTranslate]="TRANSLATION_BASE + '.cancel'"></button> | ||
<button type="button" class="btn btn-primary" (click)="confirm()" [jhiTranslate]="TRANSLATION_BASE + '.confirm'"></button> | ||
</div> |
23 changes: 23 additions & 0 deletions
23
...nage/grading/feedback-analysis/Modal/confirm-feedback-channel-creation-modal.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { Component, inject, input } from '@angular/core'; | ||
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; | ||
import { ArtemisSharedCommonModule } from 'app/shared/shared-common.module'; | ||
|
||
@Component({ | ||
selector: 'jhi-confirm-feedback-channel-creation-modal', | ||
templateUrl: './confirm-feedback-channel-creation-modal.component.html', | ||
imports: [ArtemisSharedCommonModule], | ||
standalone: true, | ||
}) | ||
export class ConfirmFeedbackChannelCreationModalComponent { | ||
protected readonly TRANSLATION_BASE = 'artemisApp.programmingExercise.configureGrading.feedbackAnalysis.feedbackDetailChannel.confirmationModal'; | ||
affectedStudentsCount = input.required<number>(); | ||
private activeModal = inject(NgbActiveModal); | ||
|
||
confirm(): void { | ||
this.activeModal.close(true); | ||
} | ||
|
||
dismiss(): void { | ||
this.activeModal.dismiss(); | ||
} | ||
} |
Oops, something went wrong.