Fix Fleet link navigation in GameServer view#32
Conversation
6f0ff28 to
410b7c5
Compare
|
@NAME-ASHWANIYADAV I'm seeing this error on the CI lint Any ideas? (Since you set this up 😄 ) |
Signed-off-by: Adarsh <216428386+Fire-furo@users.noreply.github.com>
410b7c5 to
d8221d3
Compare
|
Hey @markmandel, the "Problem running format" error means the contributor's changed file(s) have Prettier formatting violations. The CI step npm run format -- --check catches this. @Fire-furo to fix this, just run: This will auto-fix the formatting, then commit and push the changes. The CI should pass after that. 👍 |
|
Hi @markmandel @NAME-ASHWANIYADAV, I have fixed the Prettier formatting violations, and all checks ( There is another issue I would like to discuss. When I ran these checks on my local Windows machine (I tried multiple Node.js versions: 20.x, 22.x, and 24.x), I encountered the following issue:
The interesting part is that running the underlying commands directly works:
|
As an aside (I can create an issue if you want) - seems like we should provide a better error message (ideally one that explains how to resolve the issue) |
Hey @Fire-furo, the code change itself looks great! |
@markmandel! That "Problem running format" message from the headlamp-plugin CLI is definitely a bit too cryptic right now. We can absolutely create a separate issue to track this, and I'd be more than happy to take it on. My thought is we could add a clear, descriptive hint in the CI workflow's format step that guides contributors when the check fails-something simple like echo "💡 Fix: run 'npm run format' locally, then commit and push." Let me know if that sounds good and I can get the issue spun up! |
Love it! Let's do it! |


Type of change
What this PR does
This PR fixes the Fleet link in the GameServer details view.
Previously, the Fleet link was rendered as a plain HTML
<a>element, which did not trigger client-side navigation in Headlamp. This change replaces it with Headlamp'sLinkcomponent, using the registeredagones-fleetroute to navigate correctly to the Fleet page.Related issues
Fixes #28
Did you use AI tools in preparing this PR?:
Yes.
Used ChatGPT to discuss the routing issue, verify the use of Headlamp's
Linkcomponent, and review the PR description. The code was implemented, tested, and verified manually.Screenshots / recordings
before.mp4
after.mp4
Test plan
Automated checks
npm cinpm run buildnpm run tscnpm run lintnpm run format -- --checknpm run testManual verification
Tested in Headlamp against a cluster with Agones installed
Verified on a cluster without Agones
(if change affects CRD detection)
RBAC considerations
Notes for reviewers