Skip to content

kueue: Open resource details in a side panel instead of full navigation - #1179

Open
Adi-204 wants to merge 1 commit into
headlamp-k8s:mainfrom
Adi-204:fix/kueue-detail-side-panel
Open

kueue: Open resource details in a side panel instead of full navigation#1179
Adi-204 wants to merge 1 commit into
headlamp-k8s:mainfrom
Adi-204:fix/kueue-detail-side-panel

Conversation

@Adi-204

@Adi-204 Adi-204 commented Aug 14, 2026

Copy link
Copy Markdown

Summary

  • Clicking a ClusterQueue, LocalQueue, ResourceFlavor, or Workload name (and cross-links between them, e.g. ClusterQueue → ResourceFlavor, LocalQueue → ClusterQueue, Workload → LocalQueue/ClusterQueue) previously navigated to a full-page detail view instead of opening in Headlamp's side panel.
  • Root cause: Headlamp core's drawer/split-panel feature only activates for kinds present in its hardcoded kindComponentMap (see frontend/src/components/resourceMap/details/KubeNodeDetails.tsx). Kueue's CRDs aren't in that map, so Link's default navigation always won.
  • Fix follows the pattern already used by the kyverno and kmesh plugins in this repo: each list's name column (and each cross-link) now calls Activity.launch({ location: 'split-right', ... }) with the same Detail component as content, so it opens as a side panel with a "Fullscreen" option to maximize.
  • Each Detail component now accepts optional name/namespace props (falling back to useParams()), so the same component works both as a routed page and as Activity content.

Test plan

  • npm run tsc passes with no errors
  • npm run lint passes with no errors/warnings
  • Manually verify in a running Headlamp instance: clicking names in ClusterQueues, LocalQueues, ResourceFlavors, and Workloads lists opens a side panel (not a full navigation), and the panel's menu has a working "Fullscreen" option
  • Manually verify cross-links (ClusterQueue's ResourceFlavor references, LocalQueue's ClusterQueue reference, Workload's LocalQueue/ClusterQueue references) also open in the side panel

Clicking a ClusterQueue, LocalQueue, ResourceFlavor, or Workload name
(including cross-links between them) previously navigated to a full-page
detail view. Kueue's CRDs aren't in Headlamp core's kindComponentMap, so
the built-in drawer/split-panel feature never applied to them.

Follow the pattern already used by the kyverno and kmesh plugins: render
the name column as a button that calls Activity.launch({ location:
'split-right', ... }), opening the same Detail component as a side panel
with a "Fullscreen" option to maximize.

Signed-off-by: Adi-204 <adiboghawala@gmail.com>
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.

1 participant