-
Notifications
You must be signed in to change notification settings - Fork 276
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
: Prevent unnecessary page refreshes when opening repositories
#8496
Programming exercises
: Prevent unnecessary page refreshes when opening repositories
#8496
Conversation
WalkthroughThe changes aim to enhance navigation within an Angular application by shifting from direct href links to using Angular's routerLink for internal routing. This update improves routing efficiency and control in the application. Additionally, the TypeScript components have been optimized by removing unnecessary router imports and associated logic, simplifying the codebase. Changes
Recent Review DetailsConfiguration used: CodeRabbit UI 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 as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Programming exercises
: Prevent refresh when viewing the diff of a commitProgramming exercises
: Prevent a page refresh when viewing the diff of a commit
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 looks good 👍 this is a great improvement, thank you!
Programming exercises
: Prevent a page refresh when viewing the diff of a commitProgramming exercises
: Fix links related to opening repositories
Programming exercises
: Fix links related to opening repositoriesProgramming exercises
: Prevent unnecessary page refreshes when opening repositories
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 ❤️
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
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: 1
Out of diff range and nitpick comments (1)
src/main/webapp/app/detail-overview-list/detail-overview-list.component.ts (1)
Line range hint
1-1
: Ensure all unused imports are removed to keep the code clean.
src/main/webapp/app/exercises/shared/participation/participation.component.ts
Show resolved
Hide resolved
src/main/webapp/app/exercises/shared/participation/participation.component.html
Outdated
Show resolved
Hide resolved
…on.component.html
2656171
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.
Demonstrated in on-site testing session - works as promised 👍
Checklist
General
Client
Motivation and Context
Sometimes, clicking on links or buttons caused a reload of the entire angular app, e.g.
This caused longer load times and unnecessary REST calls.
Description
I changed
[href]
to[routerLink]
and simplified the links where appropriate, leaving external links as-is (although I did fix some target="_blank"s).Steps for Testing
Prerequisites:
Open repository (participant)
Open repository (exercise details view)
Open repository (participantions)
Testserver States
Note
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked
Review Progress
Code Review
Manual Tests
Summary by CodeRabbit
Summary by CodeRabbit