-
Notifications
You must be signed in to change notification settings - Fork 302
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
Exam mode
: Remove exercise title from solution containers
#9442
Conversation
WalkthroughThe pull request introduces changes to the HTML templates of three components related to exam submissions: Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
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.
Actionable comments posted: 2
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: ASSERTIVE
📒 Files selected for processing (5)
- src/main/webapp/app/exam/participate/exercises/file-upload/file-upload-exam-submission.component.html (1 hunks)
- src/main/webapp/app/exam/participate/exercises/modeling/modeling-exam-submission.component.html (1 hunks)
- src/main/webapp/app/exam/participate/exercises/text/text-exam-submission.component.html (1 hunks)
- src/main/webapp/i18n/de/exam.json (1 hunks)
- src/main/webapp/i18n/en/exam.json (1 hunks)
🧰 Additional context used
📓 Path-based instructions (4)
src/main/webapp/app/exam/participate/exercises/file-upload/file-upload-exam-submission.component.html (1)
Pattern
src/main/webapp/**/*.html
: @if and @for are new and valid Angular syntax replacing *ngIf and *ngFor. They should always be used over the old style.src/main/webapp/app/exam/participate/exercises/modeling/modeling-exam-submission.component.html (1)
Pattern
src/main/webapp/**/*.html
: @if and @for are new and valid Angular syntax replacing *ngIf and *ngFor. They should always be used over the old style.src/main/webapp/app/exam/participate/exercises/text/text-exam-submission.component.html (1)
Pattern
src/main/webapp/**/*.html
: @if and @for are new and valid Angular syntax replacing *ngIf and *ngFor. They should always be used over the old style.src/main/webapp/i18n/de/exam.json (1)
Pattern
src/main/webapp/i18n/de/**/*.json
: German language translations should be informal (dutzen) and should never be formal (sietzen). So the user should always be addressed with "du/dein" and never with "sie/ihr".
🔇 Additional comments (3)
src/main/webapp/app/exam/participate/exercises/modeling/modeling-exam-submission.component.html (1)
19-19
: LGTM! Verify translation key existence.The changes align with the PR objectives by conditionally rendering either the exercise title or "Your Solution" based on the
examTimeline
value. The new Angular syntax (@if) is correctly used as per the coding guidelines.To ensure the translation key is properly set up, please run the following script:
src/main/webapp/app/exam/participate/exercises/text/text-exam-submission.component.html (1)
19-19
: LGTM! Verify translation key existence.The change aligns well with the PR objectives by replacing the exercise title with a translated "Your Solution" text when
examTimeline
is false. This modification enhances the user interface for exam submissions as intended.To ensure the translation key is properly defined, please run the following script:
This script will help confirm that the new translation key is properly defined in both language files, ensuring a smooth localization experience.
src/main/webapp/i18n/de/exam.json (1)
153-153
: Translation looks good!The added translation "Deine Lösung" for "yourSolution" is correct and follows the required informal style (dutzen). It's consistent with the context and maintains the JSON structure.
...webapp/app/exam/participate/exercises/file-upload/file-upload-exam-submission.component.html
Show resolved
Hide resolved
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.
Tested, works as expected
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.
Would it be possible here to use the jhiTranslate instead of the artemisTranslate pipe?
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.
Code
I couldn't find a way to use jhiTranslate here. Any suggestions? Edit: But I think it's not really a great approach if the only reason is to avoid using the artemisTranslate pipe here. So I would still use artemisTranslate here 😄 |
Exam Mode
: Remove Exercise Title From Solution Containers Exam mode
: Remove Exercise Title From Solution Containers
Exam mode
: Remove Exercise Title From Solution Containers Exam mode
: Remove exercise title from solution containers
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.
Code LGTM
Checklist
General
Client
Motivation and Context
The title of an exercise is displayed three times during the exam (see screenshot), if the sidebar is not collapsed. Therefore, the exercise title in the solution container becomes unnecessary.
Description
Changed the exercise title displayed in the solution container to a static text "Your Solution", which is presented only in text, modeling, and file upload exercises.
Exam Mode Testing
Prerequisites:
(There is already an exam called 'Exam Title Container' under my course on TS4. Test users 1-5 are registered to the exam.)
Testserver States
Note
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked
Click on the badges to get to the test servers.
Review Progress
Code Review
Manual Tests
Exam Mode Test
Screenshots
Before
After
Summary by CodeRabbit
New Features
Bug Fixes