Skip to content

tinkerbell: Align UI with v0.23 lab data#895

Open
ayushmaan-16 wants to merge 1 commit into
headlamp-k8s:mainfrom
ayushmaan-16:tinkerbell-lab-ui-fixes
Open

tinkerbell: Align UI with v0.23 lab data#895
ayushmaan-16 wants to merge 1 commit into
headlamp-k8s:mainfrom
ayushmaan-16:tinkerbell-lab-ui-fixes

Conversation

@ayushmaan-16

Copy link
Copy Markdown
Contributor

Summary

This PR updates the Tinkerbell plugin UI based on testing against a real
Tinkerbell v0.23.0 Vagrant/VirtualBox lab.

The changes focus on the core Hardware, Template, and Workflow CRDs.

Changes

  • Update Workflow list/detail views to handle the v0.23.0 status shape.
  • Fix Workflow detail rendering when status.currentState is an object.
  • Use v0.23.0 action timing fields like executionStart,
    executionStop, and executionDuration.
  • Remove misleading status fields from Hardware and Template views.
  • Improve Hardware detail display using observed agent attributes.
  • Improve Template action summaries for simple conditional alternatives,
    such as reboot into os / kexec into os.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the Tinkerbell plugin UI and resource typings to match the observed CRD/status shapes from a real Tinkerbell v0.23.0 lab, improving list/detail rendering for Workflows, Hardware, and Templates.

Changes:

  • Adjust Workflow resource typing and UI to handle v0.23.0 status.currentState object shape and action timing fields (executionStart/executionStop/executionDuration).
  • Simplify Hardware/Template list + detail views by removing misleading status fields and showing more relevant observed/derived attributes.
  • Harden normalizeState to safely handle non-string inputs and add a unit test.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
tinkerbell/src/resources/workflow.ts Updates Workflow CRD typings for v0.23.0 status/boot options/action timing fields.
tinkerbell/src/resources/common.ts Makes normalizeState accept unknown and return “Unknown” for non-strings.
tinkerbell/src/resources/common.test.ts Adds test coverage for normalizeState with non-string input.
tinkerbell/src/components/workflows/List.tsx Updates Workflow list columns to use v0.23.0 state/current action/task count derivations.
tinkerbell/src/components/workflows/Detail.tsx Updates Workflow detail rendering for new currentState shape and action timing fields.
tinkerbell/src/components/templates/List.tsx Removes Template status column; focuses list view on template body-derived info.
tinkerbell/src/components/templates/Detail.tsx Improves template action summaries, including conditional alternatives (“action slots”).
tinkerbell/src/components/hardware/List.tsx Removes Hardware status column and improves Agent ID derivation fallback logic.
tinkerbell/src/components/hardware/Detail.tsx Reworks Hardware detail view to surface observed agent attributes and more relevant summary fields.

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

Comment thread tinkerbell/src/resources/workflow.ts
Comment thread tinkerbell/src/components/workflows/Detail.tsx
Comment thread tinkerbell/src/components/hardware/List.tsx Outdated
Comment thread tinkerbell/src/components/hardware/Detail.tsx Outdated
Use the real v0.23 workflow status shape observed in the

Vagrant lab. This prevents detail pages from crashing when

currentState is returned as an object.

Remove misleading Hardware and Template status fields. Improve

Template conditional action summaries and render observed Hardware

attributes from agent data.

Signed-off-by: ayxsh_shxrma <ayushmaan.sharma911@gmail.com>
@ayushmaan-16 ayushmaan-16 force-pushed the tinkerbell-lab-ui-fixes branch from 4bbcdf9 to 387817f Compare July 12, 2026 10:25
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.

2 participants