-
Notifications
You must be signed in to change notification settings - Fork 299
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
General
: Migrate exam scores module to signals, inject and standalone
#9921
base: develop
Are you sure you want to change the base?
Conversation
WalkthroughThe pull request introduces significant modifications to the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
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.
Tested on TS3. I can't seem to access exams scores. I don't know if I missed any step. Please correct me if I'm wrong (I can't upload videos for some reason. Its been loading for 10 minutes so I upload this screenshot. When I clicked on scores, it was simply loading as shown. I waited for about 5 minutes but no scores were shown)
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 on TS2, works as expected 👍
1b756c0
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: 0
🧹 Nitpick comments (1)
src/main/webapp/app/exam/exam-scores/exam-scores.component.html (1)
Line range hint
76-259
: Enhance table accessibility.While the table structure is semantically correct, consider the following improvements for better accessibility:
- Add
scope="col"
to header cells in the statistics table- Consider adding
<caption>
elements to provide better context for screen readersExample improvement for the exam statistics table header:
<thead class="table-dark"> <tr> - <th></th> + <th scope="col"></th> @if (gradingScaleExists && !isBonus) { - <th jhiTranslate="artemisApp.examScores.passedColumn"></th> + <th scope="col" jhiTranslate="artemisApp.examScores.passedColumn"></th> } - <th jhiTranslate="artemisApp.examScores.submittedColumn"></th> - <th jhiTranslate="artemisApp.examScores.totalColumn"></th> + <th scope="col" jhiTranslate="artemisApp.examScores.submittedColumn"></th> + <th scope="col" jhiTranslate="artemisApp.examScores.totalColumn"></th>
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
src/main/webapp/app/exam/exam-scores/exam-scores.component.html
(1 hunks)
🧰 Additional context used
🔇 Additional comments (3)
src/main/webapp/app/exam/exam-scores/exam-scores.component.html (3)
38-42
: LGTM! Safe navigation operator usage is appropriate.The use of the safe navigation operator (
?.
) in the RouterLink expressions is a good defensive programming practice. It prevents runtime errors when the course object is not yet loaded.
Line range hint
1-24
: LGTM! Consistent usage of new Angular control flow syntax.The template correctly uses the new Angular control flow syntax (
@if
and@for
) instead of the older*ngIf
and*ngFor
directives, following the coding guidelines.
Line range hint
260-600
: LGTM! Well-structured data presentation with proper localization.The template demonstrates good practices in data presentation:
- Consistent use of number formatting via
roundAndPerformLocalConversion
- Proper internationalization with translation keys
- Clean conditional rendering for different exam configurations (bonus, grading scale)
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.
Reapprove
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.
re-approve
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.
works on ts2
d090515
Checklist
General
Client
Description
This pull request migrates exam scores module to use signals, inject and standalone
Steps for Testing
Prerequisites:
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
Performance Review
Code Review
Manual Tests
Summary by CodeRabbit
Release Notes
New Features
ExamScoresComponent
andExamScoresAverageScoresGraphComponent
are now standalone components, enhancing their modularity and reusability.Bug Fixes
Tests