-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Development
: Add client support for programming exercise feedback suggestions
#7099
Merged
krusche
merged 74 commits into
develop
from
feature/programming-exercises/feedback-suggestions
Oct 4, 2023
Merged
Changes from 60 commits
Commits
Show all changes
74 commits
Select commit
Hold shift + click to select a range
9e6a7b9
Basic programming feedback suggestion card layout
pal03377 7b37b58
Better Suggestion badge for feedback suggestion cards
pal03377 9ea12ef
Add Accept and Discard buttons
pal03377 cbd820d
Add file browser badges for suggestions
pal03377 081b104
Fixing issues with saving inline feedback
pal03377 9f2e4c6
Make the programming feedback assessment editor more solid
pal03377 86c2fa9
Merge branch 'develop' into feature/programming-exercises/feedback-su…
pal03377 afd07b2
Add suggestion badge to accepted and modified feedback suggestions
pal03377 deb5678
Use suggestion badge component for text feedback
pal03377 5c64eab
Update file badges less often
pal03377 8b09917
Add file badge tooltips
pal03377 d0ef16c
Show unreferenced feedback suggestions
pal03377 2c2899e
Change ID for unreferenced feedback
pal03377 3a49e76
Improvements from self-code-review ✨
pal03377 f81f3d3
Write client tests: part 1
pal03377 944b153
Write client tests: part 2
pal03377 c5bb462
Text fix by reordering
pal03377 c4d004b
Fix Codacy issue
pal03377 16cf83a
Dark file badge in dark mode
pal03377 2025583
More feedback suggestion examples for debugging
pal03377 eb8bc8d
Hide feedback suggestion badges to students
pal03377 0462d0c
Increase test coverage
pal03377 3dee732
Test expectation fix
pal03377 5125ea9
Improve suggestion badge texts
pal03377 299c9e4
Fix line widget update on feedbackS changes
pal03377 56a0b35
Don't show feedback suggestions that are in the same file & line as e…
pal03377 8049cd6
Treat suggestions like normal feedback from the TA in the student fee…
pal03377 423c669
Prevent double-feedback when adding suggestions where there already e…
pal03377 aeca0cd
Change feedback height on resize
pal03377 6cb50cf
Change condition for de-duplication
pal03377 a0cf5d1
Adjust accept/discard button sizes
pal03377 c55af90
Merge branch 'develop' into feature/programming-exercises/feedback-su…
pal03377 494f65c
Remove default IDs to prevent problems with testing
pal03377 9f05d12
Merge branch 'develop' into feature/programming-exercises/feedback-su…
pal03377 cac3bba
Adjust feedback suggestions background in light more slightly
pal03377 6400b6a
Merge remote-tracking branch 'origin/feature/programming-exercises/fe…
pal03377 79e4cd9
Merge branch 'develop' into feature/programming-exercises/feedback-su…
pal03377 5e98ece
Fix removeSuggestion for feedback without an ID
pal03377 ab101ef
Fix test should correctly remove feedback suggestions
pal03377 b286d9f
Merge & resolve athena.service.ts conflicts
pal03377 d029258
Small fixes
pal03377 5245472
Bugfix: Make feedback work for file names containing underscore
pal03377 800605e
Add tests for filenames including an underscore
pal03377 62e1223
Review: Replace deprecated function
pal03377 93f90d0
Merge branch 'develop' into feature/programming-exercises/feedback-su…
pal03377 deb80bd
Fix code-editor-ace.component tests by adding a mock
pal03377 14af999
Mock ResizeObserver in other place where necessary
pal03377 4d97e42
Add some more simple tests to increase the coverage
pal03377 9d0adfd
Fix Athena test mocks
pal03377 989de14
Review: Implement suggestions by Benedikt
pal03377 b4533ac
Merge branch 'develop' into feature/programming-exercises/feedback-su…
pal03377 b27c030
Merge branch 'develop' into feature/programming-exercises/feedback-su…
pal03377 2461262
Merge branch 'develop' into feature/programming-exercises/feedback-su…
pal03377 38638d1
Merge + Solve conflicts with #6925
pal03377 1709f5a
Review: Small formatting change
pal03377 bfe4f40
Merge branch 'develop' into feature/programming-exercises/feedback-su…
pal03377 3e74575
Merge branch 'develop' into feature/programming-exercises/feedback-su…
pal03377 505beb7
Merge branch 'develop' into feature/programming-exercises/feedback-su…
pal03377 c13d62f
Merge branch 'develop' into feature/programming-exercises/feedback-su…
pal03377 c3fa067
Merge branch 'develop' into feature/programming-exercises/feedback-su…
pal03377 2f09ee8
Implement review suggestions by Markus
pal03377 94f32f3
Merge branch 'develop' into feature/programming-exercises/feedback-su…
pal03377 39d185a
Merge branch 'develop' into feature/programming-exercises/feedback-su…
MarkusPaulsen c1c0def
Merge branch 'develop' into feature/programming-exercises/feedback-su…
pal03377 b4932cc
Remove mock data for merging
pal03377 8fb21bf
Implement Patrick's suggestions
pal03377 8d97684
Fix cypress test
pal03377 ff380d5
Merge branch 'develop' into feature/programming-exercises/feedback-su…
bassner d476108
Merge branch 'develop' into feature/programming-exercises/feedback-su…
pal03377 34dcaaa
Merge branch 'develop' into feature/programming-exercises/feedback-su…
pal03377 27654e1
Merge branch 'develop' into feature/programming-exercises/feedback-su…
pal03377 0e5f8bb
Merge branch 'develop' into feature/programming-exercises/feedback-su…
maximiliansoelch 09d6b39
Merge branch 'develop' into feature/programming-exercises/feedback-su…
b45e160
Merge branch 'develop' into feature/programming-exercises/feedback-su…
pal03377 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
84 changes: 0 additions & 84 deletions
84
src/main/webapp/app/assessment/assessment-detail/assessment-detail.component.html
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
src/main/webapp/app/assessment/assessment-detail/assessment-detail.component.scss
This file was deleted.
Oops, something went wrong.
56 changes: 0 additions & 56 deletions
56
src/main/webapp/app/assessment/assessment-detail/assessment-detail.component.ts
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
92 changes: 92 additions & 0 deletions
92
...p/app/assessment/unreferenced-feedback-detail/unreferenced-feedback-detail.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,92 @@ | ||
<div (drop)="updateFeedbackOnDrop($event)" (dragover)="$event.preventDefault()" class="card mb-3" [class.is-suggestion]="isSuggestion" id="unreferenced-feedback-detail"> | ||
pal03377 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<div class="card-header"> | ||
<jhi-feedback-suggestion-badge *ngIf="isSuggestion || Feedback.isFeedbackSuggestion(feedback)" [feedback]="feedback"></jhi-feedback-suggestion-badge> | ||
<jhi-grading-instruction-link-icon *ngIf="feedback.gradingInstruction" [feedback]="feedback"></jhi-grading-instruction-link-icon> | ||
<button | ||
*ngIf="!readOnly" | ||
jhiDeleteButton | ||
[buttonSize]="ButtonSize.SMALL" | ||
[translateValues]="{ text: feedback.detailText }" | ||
deleteQuestion="artemisApp.feedback.delete.question" | ||
(delete)="delete()" | ||
[dialogError]="dialogError$" | ||
[renderButtonStyle]="false" | ||
[renderButtonText]="false" | ||
class="btn float-end" | ||
> | ||
<fa-icon [icon]="faTrashAlt"></fa-icon> | ||
</button> | ||
<!-- Accept/Discard for feedback suggestions --> | ||
<div class="row float-end suggestion-action-buttons" *ngIf="isSuggestion"> | ||
<button class="btn btn-success m-1 btn-sm" (click)="onAcceptSuggestion.emit(feedback)"> | ||
<fa-icon [icon]="faCheck"></fa-icon> | ||
<span jhiTranslate="artemisApp.assessment.detail.accept">Accept</span> | ||
</button> | ||
<button class="btn btn-danger m-1 btn-sm" (click)="onDiscardSuggestion.emit(feedback)"> | ||
<fa-icon [icon]="faTrash"></fa-icon> | ||
<span jhiTranslate="artemisApp.assessment.detail.discard">Discard</span> | ||
</button> | ||
</div> | ||
</div> | ||
<div class="card-body"> | ||
<div class="form-group row"> | ||
<label for="feedback-points" class="col-4 feedback-label" jhiTranslate="artemisApp.exercise.score"></label> | ||
<input | ||
id="feedback-points" | ||
class="col form-control" | ||
type="number" | ||
step="0.5" | ||
[(ngModel)]="feedback.credits" | ||
(ngModelChange)="emitChanges()" | ||
[readOnly]="feedback.gradingInstruction || readOnly" | ||
[disabled]="readOnly" | ||
[required]="!feedback.gradingInstruction" | ||
/> | ||
</div> | ||
<div class="form-group row"> | ||
<div class="col-4 assessment-label"> | ||
<label class="pe-0" style="float: left" jhiTranslate="artemisApp.assessment.detail.feedback"></label> | ||
pal03377 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<div *ngIf="feedback.gradingInstruction"> | ||
<fa-icon [icon]="faQuestionCircle" class="text-secondary ps-1" [ngbTooltip]="'artemisApp.assessment.feedbackHint' | artemisTranslate"></fa-icon> | ||
</div> | ||
</div> | ||
<div class="col p-0"> | ||
<div *ngIf="feedback.gradingInstruction"> | ||
<span>{{ feedback.gradingInstruction!.feedback }}</span> | ||
</div> | ||
<textarea | ||
id="feedback-textarea" | ||
class="form-control" | ||
rows="2" | ||
[(ngModel)]="feedback.detailText" | ||
(ngModelChange)="emitChanges()" | ||
[readOnly]="readOnly" | ||
[disabled]="readOnly" | ||
[placeholder]=" | ||
feedback.gradingInstruction?.feedback | ||
? ('artemisApp.assessment.additionalFeedbackCommentPlaceholder' | artemisTranslate) | ||
: ('artemisApp.assessment.feedbackCommentPlaceholder' | artemisTranslate) | ||
" | ||
[required]="!feedback.gradingInstruction?.feedback" | ||
></textarea> | ||
</div> | ||
</div> | ||
<!-- Text showing whether the tutor feedback is correct or not (upon validation on the server) --> | ||
<div *ngIf="feedback.correctionStatus !== undefined"> | ||
<span *ngIf="feedback.correctionStatus === 'CORRECT'" class="text-success" | ||
>{{ 'artemisApp.exampleSubmission.feedback.' + feedback.correctionStatus! | artemisTranslate }} | ||
</span> | ||
<span *ngIf="feedback.correctionStatus !== 'CORRECT'" class="text-danger" | ||
>{{ 'artemisApp.exampleSubmission.feedback.' + feedback.correctionStatus! | artemisTranslate }} | ||
</span> | ||
|
||
<!-- :warning: emoji was rendered as a black-white glyph, hence the solution with the fa-icon --> | ||
<fa-layers *ngIf="feedback.correctionStatus !== 'CORRECT'"> | ||
<fa-icon class="text-warning" [icon]="faExclamationTriangle"></fa-icon> | ||
<fa-icon [icon]="faExclamation" size="2x" [styles]="{ width: '16px', 'margin-top': '-6px' }" [classes]="['text-dark']" transform="shrink-10"></fa-icon> | ||
pal03377 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</fa-layers> | ||
</div> | ||
|
||
<jhi-assessment-correction-round-badge [feedback]="feedback" [highlightDifferences]="highlightDifferences"></jhi-assessment-correction-round-badge> | ||
</div> | ||
</div> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note for code reviewers: This is needed to get the new
feedback-suggestion-badge
component.