-
Notifications
You must be signed in to change notification settings - Fork 298
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
: Support opening instructor actions in new tab
#9966
General
: Support opening instructor actions in new tab
#9966
Conversation
WalkthroughThe changes in this pull request primarily involve modifications to the HTML template of the Changes
Assessment against linked issues
Possibly related PRs
Suggested labels
Suggested reviewers
Tip CodeRabbit's docstrings feature is now available as part of our Early Access Program! Simply use the command 📜 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.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (1)
src/main/webapp/app/overview/exercise-details/course-exercise-details.component.html (1)
18-23
: Add accessibility attributes to anchor tags.The conversion from button to anchor tag successfully enables new tab functionality as requested. However, let's enhance accessibility:
Apply these improvements to the anchor tags:
-<a class="btn" [routerLink]="instructorActionItem.routerLink" ngbDropdownItem> +<a class="btn" [routerLink]="instructorActionItem.routerLink" [href]="instructorActionItem.routerLink" role="button" ngbDropdownItem>This change:
- Adds
href
attribute for proper accessibility- Adds
role="button"
to maintain button semantics while using anchor tag
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
📒 Files selected for processing (1)
src/main/webapp/app/overview/exercise-details/course-exercise-details.component.html
(1 hunks)
🧰 Additional context used
🔇 Additional comments (1)
src/main/webapp/app/overview/exercise-details/course-exercise-details.component.html (1)
Line range hint 1-1
: Implementation aligns with requirements and guidelines.
The template correctly uses the new Angular control flow syntax (@if, @for) as specified in the coding guidelines, and the button-to-anchor conversion successfully implements the requested functionality for opening items in new tabs.
Programming exercise
: Swap button with achor tag for dropdown itemsProgramming exercise
: Support opening Instructor actions
in new tab
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. |
Please unstale. |
ed56cb5
to
860afb4
Compare
Programming exercise
: Support opening Instructor actions
in new tabGeneral
: Support opening instructor actions in new tab
Checklist
General
Client
Motivation and Context
Not being able to open the
Instructor actions
in new tabs is frustrating anddoes not follow the expected behavior of the dropdown item buttons.
Closes #9935.
Description
I changed the
<button>
to an anchor tag<a>
to achieve a middle click and a right click on the dropdown elements.Steps for Testing
Prerequisites:
Instructor actions
View
,Scores
, etc.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
instructor-actions-dropdown.mp4
Summary by CodeRabbit