-
Notifications
You must be signed in to change notification settings - Fork 303
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
Programming Exercises
: Align title and buttons for participation page
#10121
base: develop
Are you sure you want to change the base?
Programming Exercises
: Align title and buttons for participation page
#10121
Conversation
WalkthroughThe pull request modifies the Changes
Assessment against linked issues
Suggested Labels
Suggested Reviewers
Finishing Touches
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: 0
🧹 Nitpick comments (2)
src/main/webapp/app/exercises/shared/participation/participation.component.html (2)
32-51
: Consider adding ARIA labels for better accessibilityWhile the layout is well-structured, consider enhancing accessibility by adding aria-label attributes to the radio inputs.
- <input type="radio" [ngModel]="participationCriteria.filterProp" (click)="updateParticipationFilter(FilterProp.ALL)" [value]="FilterProp.ALL" /> + <input type="radio" [ngModel]="participationCriteria.filterProp" (click)="updateParticipationFilter(FilterProp.ALL)" [value]="FilterProp.ALL" + aria-label="{{ 'artemisApp.exercise.showAll' | translate }}" />
Line range hint
52-400
: Consider extracting presentation-related functionalityThe data table section contains complex presentation score logic that could be extracted into a separate component for better maintainability and reusability.
Consider creating a new component like
presentation-score.component
to handle the presentation-related columns and buttons, which would:
- Reduce complexity in the main template
- Improve maintainability
- Make the presentation feature more modular and reusable
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
src/main/webapp/app/exercises/shared/participation/participation.component.html
(1 hunks)
🧰 Additional context used
⏰ Context from checks skipped due to timeout of 90000ms (10)
- GitHub Check: client-compilation
- GitHub Check: client-tests-selected
- GitHub Check: client-style
- GitHub Check: server-tests
- GitHub Check: server-style
- GitHub Check: client-tests
- GitHub Check: Build and Push Docker Image
- GitHub Check: Build .war artifact
- GitHub Check: Analyse
- GitHub Check: Codacy Static Code Analysis
🔇 Additional comments (2)
src/main/webapp/app/exercises/shared/participation/participation.component.html (2)
2-31
: Well-structured layout implementation!The new flex layout with
justify-content-between
effectively centers and aligns the title and buttons. Good use of the new@if
syntax for conditional rendering.
Line range hint
1-400
: Implementation successfully meets PR objectivesThe changes effectively improve the layout by:
- Centering the title and buttons using flex layout
- Maintaining clear separation of filters
- Preserving all existing functionality
9442db2
to
343c630
Compare
There hasn't been any activity on this pull request recently. Therefore, this pull request has been automatically marked as stale and will be closed if no further activity occurs within seven days. Thank you for your contributions. |
Opening this PR from a branch in the main repository to enable test server deployment, as it wasn't possible with the previous PR from a forked repository (see #9983)
Checklist
General
Client
Motivation and Context
Very optional changes, but it was a little offputting that the buttons weren't actually centered with anything.
(Another solution could be to center them with the original div structure to place them in the middle of the title and filters.)
I simply find these changes more aesthetic.
Closes #9967.
Description
Steps for Testing
Prerequisites:
Instructor actions
->Participations
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
Exam Mode Test
Performance Tests
Screenshots
Before:
After:
Summary by CodeRabbit