Skip to content

Link namespace column values to namespace resource detail#16492

Merged
richard-cox merged 2 commits intorancher:masterfrom
richard-cox:namespace-link
Feb 3, 2026
Merged

Link namespace column values to namespace resource detail#16492
richard-cox merged 2 commits intorancher:masterfrom
richard-cox:namespace-link

Conversation

@richard-cox
Copy link
Copy Markdown
Member

@richard-cox richard-cox commented Jan 28, 2026

Summary

Fixes #16491

Occurred changes and/or fixed issues

  • use the LinkName formatter for namespace columns to turn it from text to a link to the namespace resource detail page
  • also fixed usage of LinkName
    • pass through current cluster
    • pass through current product

Areas or cases that should be tested

  • Any list that is namespaced and shows column
  • Some examples
    • Workloads --> Deployments
    • Service Discovery --> Services
  • Some more fun examples
    • Cluster Management --> Advanced --> Machines
      • These are still a bit odd, they redirect to the namespace but in the cluster management view

Areas which could experience regressions

  • Pod detail page (created by a deployment
    • Link to workload in header
    • Link to node in header

Checklist

  • The PR is linked to an issue and the linked issue has a Milestone, or no issue is needed
  • The PR has a Milestone
  • The PR template has been filled out
  • The PR has been self reviewed
  • The PR has a reviewer assigned
  • The PR has automated tests or clear instructions for manual tests and the linked issue has appropriate QA labels, or tests are not needed
  • The PR has reviewed with UX and tested in light and dark mode, or there are no UX changes
  • The PR has been reviewed in terms of Accessibility
  • The PR has considered, and if applicable tested with, the three Global Roles Admin, Standard User and User Base

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR makes namespace column values in resource lists clickable, linking to the namespace detail page. It also fixes the LinkName formatter to properly pass cluster and product context from the current store state.

Changes:

  • Added LinkName formatter to the NAMESPACE table header configuration with appropriate formatterOpts
  • Updated LinkName component to retrieve cluster ID from the store and use the current product context as fallback

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
shell/config/table-headers.js Added formatter and formatterOpts to NAMESPACE header to enable clickable namespace links, imported NAMESPACE_TYPE constant
shell/components/formatter/LinkName.vue Added cluster parameter retrieval from store, improved product parameter fallback logic to respect current product context

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@richard-cox richard-cox marked this pull request as ready for review February 2, 2026 12:02
@richard-cox richard-cox requested a review from aalves08 February 2, 2026 12:03
Copy link
Copy Markdown
Member

@aalves08 aalves08 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gave it a test and works fine, so LGTM!

@richard-cox richard-cox merged commit daf7fe2 into rancher:master Feb 3, 2026
154 of 160 checks passed
@richard-cox richard-cox deleted the namespace-link branch February 3, 2026 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Namespace column values should link to namespace detail page

3 participants