-
Notifications
You must be signed in to change notification settings - Fork 387
Development: Uniform Feedback Assessment UI for Programming, Modeling, Text and File Upload Exercises
#13053
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
Open
musaberkay
wants to merge
99
commits into
develop
Choose a base branch
from
feature/assessment/uniform-feedback-editing
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,927
−1,395
Open
Changes from all commits
Commits
Show all changes
99 commits
Select commit
Hold shift + click to select a range
84fa224
Assessment: add editable-mode signals to UnifiedFeedbackComponent
musaberkay 0c6466c
Assessment: render editable feedback form in UnifiedFeedbackComponent
musaberkay 3e782a2
Assessment: migrate unreferenced feedback card to UnifiedFeedbackComp…
musaberkay f3d22f9
Assessment: migrate text block feedback editor to UnifiedFeedbackComp…
musaberkay d057d20
Merge branch 'develop' into feature/assessment/uniform-feedback-editing
musaberkay 5da95c0
Assessment: address PR review feedback on unified feedback editing
musaberkay 1946d7f
Merge branch 'feature/assessment/uniform-feedback-editing' of https:/…
musaberkay e5e0e2a
Merge branch 'develop' into feature/assessment/uniform-feedback-editing
musaberkay e296c79
Merge branch 'develop' into feature/assessment/uniform-feedback-editing
musaberkay 1720e2a
Merge branch 'develop' into feature/assessment/uniform-feedback-editing
musaberkay f96dd60
Merge branch 'develop' into feature/assessment/uniform-feedback-editing
musaberkay 06e764d
Assessment: add missing branch coverage for didChange unchanged-text …
musaberkay 7e571b6
Text exercise: cover ngOnDestroy false-branch for client coverage gate
musaberkay 11b47ce
Merge branch 'develop' into feature/assessment/uniform-feedback-editing
musaberkay 670dd95
Fix: Update ngModel binding for feedback credits input to handle null…
musaberkay e9f6b3b
Fix: Add showReference binding to jhi-unified-feedback component
musaberkay ef87d09
Fix: Prevent click events from bubbling in unified feedback toolbar a…
musaberkay dc262ab
Merge branch 'develop' into feature/assessment/uniform-feedback-editing
musaberkay d4fb8ba
Merge branch 'develop' into feature/assessment/uniform-feedback-editing
musaberkay d5c8565
Merge branch 'develop' into feature/assessment/uniform-feedback-editing
musaberkay f046c8e
Merge branch 'develop' into feature/assessment/uniform-feedback-editing
musaberkay 7cfb046
Style: Adjust spacing and padding in unified feedback component for i…
musaberkay a85cfff
Development: Use a minus icon for not_attempted feedback in the unifi…
musaberkay c6bc3b8
Style: Add circular icon badge and pill-shaped points badge to unifie…
musaberkay 94544cc
Development: Add a footer display variant to FeedbackSuggestionBadgeC…
musaberkay f55a8bb
Style: Move the AI feedback suggestion badge to a footer strip in uni…
musaberkay 3b12bf2
Development: Update AI feedback suggestion badge wording
musaberkay 1cdd078
Test: Cover the isFeedbackSuggestion-only branch of the unified feedb…
musaberkay 4b82115
Merge branch 'develop' into feature/assessment/uniform-feedback-editing
musaberkay 756c487
Merge branch 'develop' into feature/assessment/uniform-feedback-editing
musaberkay 8512093
Merge branch 'develop' into feature/assessment/uniform-feedback-editing
musaberkay 86d57f2
Merge branch 'feature/assessment/uniform-feedback-editing' of https:/…
musaberkay c555274
Merge branch 'develop' into feature/assessment/uniform-feedback-editing
musaberkay 474eb6c
Merge branch 'develop' into feature/assessment/uniform-feedback-editing
musaberkay 901aafc
Refactor unified feedback component: enhance input layout and update …
musaberkay c1c1179
refactor: remove feedback suggestion handling from code editor compon…
musaberkay 293a6eb
Merge branch 'develop' into feature/assessment/uniform-feedback-editing
musaberkay cf0022c
Merge branch 'feature/assessment/uniform-feedback-editing' of https:/…
musaberkay 4c91ab9
Merge branch 'develop' into feature/assessment/uniform-feedback-editing
musaberkay 5e58162
Development: Replace NgbTooltip with TumUiTooltip in feedback components
musaberkay dfd95ba
Merge branch 'develop' into feature/assessment/uniform-feedback-editing
musaberkay afcad8f
Merge branch 'feature/assessment/uniform-feedback-editing' of https:/…
musaberkay dfbded6
Merge branch 'develop' into feature/assessment/uniform-feedback-editing
musaberkay f1921d9
Merge branch 'develop' into feature/assessment/uniform-feedback-editing
musaberkay d36717e
Merge remote-tracking branch 'origin/develop' into feature/assessment…
musaberkay 26b569b
Merge branch 'develop' into feature/assessment/uniform-feedback-editing
musaberkay 99d304f
Merge remote-tracking branch 'origin/develop' into feature/assessment…
musaberkay a1d5aa0
Merge branch 'develop' into feature/assessment/uniform-feedback-editing
musaberkay e53ebd7
Programming assessment: Fix stale Athena feedback suggestions on subm…
musaberkay 1b0ece0
Merge branch 'feature/assessment/uniform-feedback-editing' of https:/…
musaberkay 0d1f8bf
Merge branch 'develop' into feature/assessment/uniform-feedback-editing
musaberkay 1e36872
Merge branch 'develop' into feature/assessment/uniform-feedback-editing
musaberkay f2f57a2
Merge branch 'develop' into feature/assessment/uniform-feedback-editing
musaberkay 8bf074b
Development: Update imports for TumUiTooltipDirective to use the new …
musaberkay a81b0a1
Assessment: Fix review feedback on unified feedback editing
musaberkay 2d26feb
Assessment: Add missing detail input indication in unified feedback c…
musaberkay ca0ec91
Assessment: Remove useDefaultFeedbackSuggestionBadgeText from feedbac…
musaberkay 56728cb
Assessment: Hide AI feedback suggestion badge from student-facing views
musaberkay 1f0ed22
Assessment: Restore full-card drag target for structured grading inst…
musaberkay 6a8738e
Assessment: Refactor feedback suggestion handling by removing 'ADAPTE…
musaberkay b6e4143
Assessment: Restore ADAPTED feedback suggestion type and string-based…
musaberkay 0e7539c
Assessment: Fix feedback suggestion badge staleness by keying it on p…
musaberkay 7fc7552
Assessment: Mark accepted feedback suggestions as adapted on edit, ce…
musaberkay f716e0e
Assessment: Strip adapted-suggestion prefix from published programmin…
musaberkay 5a30dcd
Assessment: Restore adapted-suggestion text-prefix marking for modeli…
musaberkay 73f3664
Assessment: Migrate programming inline feedback editing to UnifiedFee…
musaberkay c1a2507
Assessment: Wire the unified feedback dismiss control to cancel the o…
musaberkay c089da3
Assessment: Fix stale Playwright selectors in AbstractExerciseAssessm…
musaberkay 0862ded
Assessment: Restore E2E selector hooks for unreferenced feedback add …
musaberkay a86ac0f
Assessment: Fix programming inline feedback title and cancel affordances
musaberkay 1c062c6
Merge remote-tracking branch 'origin/develop' into feature/assessment…
musaberkay 627810b
Merge remote-tracking branch 'origin/develop' into feature/assessment…
musaberkay 47704e1
Merge branch 'develop' into feature/assessment/uniform-feedback-editing
musaberkay 37130f7
Merge branch 'feature/assessment/uniform-feedback-editing' of https:/…
musaberkay 0cfb467
Refactor feedback handling in UnreferencedFeedbackDetailComponent and…
musaberkay c864871
Update unified-feedback-detail-input-missing style to use left border…
musaberkay 3c0f12e
Implement editable title as a textarea with auto-resizing and update …
musaberkay a19d654
Merge branch 'develop' into feature/assessment/uniform-feedback-editing
musaberkay e6cb80e
Exam mode: Fix TextExerciseAssessmentPage selectors after unified fee…
musaberkay 26171ba
Exam mode: Fix duplicate unreferenced feedback card on long-feedback …
musaberkay 2cf92f8
Exam mode: Fix stale automatic-feedback banner and missing unsaved-ch…
musaberkay e2133b1
Exam mode: Centralize accepted-to-adapted transition in text feedback…
musaberkay 74cf5fd
Uniform feedback editing: Fix failing client tests and focus regression
musaberkay 663f58b
Merge branch 'develop' into feature/assessment/uniform-feedback-editing
musaberkay fc030ea
Uniform feedback editing: Clear hasLongFeedbackText on hydrated clone
musaberkay f27e054
Uniform feedback editing: Require confirmation to dismiss grading-ins…
musaberkay 8720994
Exam mode: Reset loadingFeedbackSuggestions on submission navigation
musaberkay a7b0c60
Merge branch 'develop' into feature/assessment/uniform-feedback-editing
musaberkay 9b47f35
Merge branch 'develop' into feature/assessment/uniform-feedback-editing
musaberkay 1ec53c8
Enhancement: Add stepper buttons for adjusting feedback points and up…
musaberkay a7ee400
Enhancement: Show read-only feedback points as a color-tinted pill by…
musaberkay 8da49a6
Fix: Use local constant instead of protected CREDITS_STEP in spec
musaberkay 047fb70
Fix: Drive feedback points via stepper in E2E page objects
musaberkay b8d8bed
Merge branch 'develop' into feature/assessment/uniform-feedback-editing
musaberkay b89b9f0
Assessment: Migrate programming inline feedback read-only view to Uni…
musaberkay f293e5b
Merge branch 'develop' into feature/assessment/uniform-feedback-editing
musaberkay b5818cc
Merge branch 'develop' into feature/assessment/uniform-feedback-editing
musaberkay 5bcb2a2
Merge branch 'develop' into feature/assessment/uniform-feedback-editing
musaberkay e9b63f4
Merge branch 'develop' into feature/assessment/uniform-feedback-editing
SultanTheHL 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
118 changes: 14 additions & 104 deletions
118
...ssessment/manage/unreferenced-feedback-detail/unreferenced-feedback-detail.component.html
This file contains hidden or 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 |
|---|---|---|
| @@ -1,105 +1,15 @@ | ||
| <div (drop)="updateFeedbackOnDrop($event)" (dragover)="$event.preventDefault()" class="unreferenced-feedback-detail card mb-3" [class.is-suggestion]="isSuggestion()"> | ||
| <div class="card-header"> | ||
| @if (isSuggestion() || Feedback.isFeedbackSuggestion(feedback())) { | ||
| <jhi-feedback-suggestion-badge [feedback]="feedback()" [useDefaultText]="useDefaultFeedbackSuggestionBadgeText()" /> | ||
| } | ||
| @if (feedback().gradingInstruction) { | ||
| <jhi-grading-instruction-link-icon [feedback]="feedback()" /> | ||
| } | ||
| @if (!readOnly()) { | ||
| <button | ||
| jhiDeleteButton | ||
| [buttonSize]="ButtonSize.SMALL" | ||
| [translateValues]="{ text: this.feedback() | feedbackContent | quoted: ' ' }" | ||
| deleteQuestion="artemisApp.feedback.delete.question" | ||
| (delete)="delete()" | ||
| [dialogError]="dialogError$" | ||
| [renderButtonStyle]="false" | ||
| [renderButtonText]="false" | ||
| class="btn float-end" | ||
| > | ||
| <fa-icon [icon]="faTrashAlt" /> | ||
| </button> | ||
| } | ||
| <!-- Accept/Discard for feedback suggestions --> | ||
| @if (isSuggestion()) { | ||
| <div class="row float-end suggestion-action-buttons"> | ||
| <button class="btn btn-success m-1 btn-sm" (click)="onAcceptSuggestion.emit(feedback())"> | ||
| <fa-icon [icon]="faCheck" /> | ||
| <span jhiTranslate="artemisApp.assessment.detail.accept"></span> | ||
| </button> | ||
| <button class="btn btn-danger m-1 btn-sm" (click)="onDiscardSuggestion.emit(feedback())"> | ||
| <fa-icon [icon]="faTrash" /> | ||
| <span jhiTranslate="artemisApp.assessment.detail.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()" | ||
| [disabled]="!!feedback().gradingInstruction || readOnly()" | ||
| [readOnly]="!!feedback().gradingInstruction || readOnly()" | ||
| [required]="!feedback().gradingInstruction" | ||
| /> | ||
| </div> | ||
| <div class="form-group row"> | ||
| <div class="col-4 assessment-label"> | ||
| <label class="pe-0" jhiTranslate="artemisApp.assessment.detail.feedback"></label> | ||
| @if (feedback().gradingInstruction) { | ||
| <div> | ||
| <fa-icon [icon]="faQuestionCircle" class="text-secondary ps-1" [ngbTooltip]="'artemisApp.assessment.feedbackHint' | artemisTranslate" /> | ||
| </div> | ||
| } | ||
| </div> | ||
| <div class="col p-0"> | ||
| @if (feedback().gradingInstruction) { | ||
| <div> | ||
| <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) --> | ||
| @if (feedback().correctionStatus !== undefined) { | ||
| <div> | ||
| @if (feedback().correctionStatus === 'CORRECT') { | ||
| <span class="text-success">{{ 'artemisApp.exampleSubmission.feedback.' + feedback().correctionStatus! | artemisTranslate }} </span> | ||
| } | ||
| @if (feedback().correctionStatus !== 'CORRECT') { | ||
| <span 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 --> | ||
| @if (feedback().correctionStatus !== 'CORRECT') { | ||
| <fa-layers> | ||
| <fa-icon class="text-warning" [icon]="faExclamationTriangle" /> | ||
| <fa-icon class="text-dark exclamation-icon" [icon]="faExclamation" size="2x" transform="shrink-10" /> | ||
| </fa-layers> | ||
| } | ||
| </div> | ||
| } | ||
| <jhi-assessment-correction-round-badge [feedback]="feedback()" [highlightDifferences]="highlightDifferences()" /> | ||
| </div> | ||
| <div class="unreferenced-feedback-detail" (drop)="updateFeedbackOnDrop($event)" (dragover)="$event.preventDefault()"> | ||
| <jhi-unified-feedback | ||
| [editable]="true" | ||
| [readOnly]="readOnly()" | ||
| [feedback]="feedback()" | ||
| [highlightDifferences]="highlightDifferences()" | ||
| [(feedbackTitle)]="feedback().text" | ||
| [(feedbackDetail)]="feedback().detailText" | ||
| [(feedbackCredits)]="feedback().credits!" | ||
| (feedbackTitleChange)="emitChanges()" | ||
| (feedbackDetailChange)="emitChanges()" | ||
| (feedbackCreditsChange)="emitChanges()" | ||
| (onDelete)="delete()" | ||
| /> | ||
| </div> | ||
42 changes: 0 additions & 42 deletions
42
...ssessment/manage/unreferenced-feedback-detail/unreferenced-feedback-detail.component.scss
This file contains hidden or 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 |
|---|---|---|
| @@ -1,42 +0,0 @@ | ||
| .card-body { | ||
| padding-top: 5px; | ||
| padding-bottom: 5px; | ||
| } | ||
|
|
||
| .assessment-label > label { | ||
| float: left; | ||
| } | ||
|
|
||
| fa-icon.exclamation-icon { | ||
| width: 16px; | ||
| margin-top: -6px; | ||
| } | ||
|
|
||
| .is-suggestion .card-header, | ||
| .is-suggestion .card-body { | ||
| background-color: var(--feedback-suggestions-background); | ||
| } | ||
|
|
||
| .is-suggestion input, | ||
| .is-suggestion textarea { | ||
| background-color: var(--feedback-suggestions-input-background); | ||
| } | ||
|
|
||
| /* Slight opacity for suggestions until they are hovered */ | ||
| .is-suggestion .card-body > * { | ||
| opacity: 0.6; /* grey out the suggestion content to indicate that it is not saved yet */ | ||
| transition: opacity 0.2s ease-in-out; | ||
| } | ||
|
|
||
| .is-suggestion:hover .card-body > * { | ||
| opacity: 1; /* make the suggestion more readable on hover */ | ||
| } | ||
|
|
||
| .suggestion-action-buttons button { | ||
| width: fit-content; | ||
| } | ||
|
|
||
| .assessment-label { | ||
| padding-left: 5px; | ||
| padding-right: 5px; | ||
| } | ||
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.