-
Notifications
You must be signed in to change notification settings - Fork 667
[metal3] Add details card to baremetal host dashboard #2553
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
[metal3] Add details card to baremetal host dashboard #2553
Conversation
rawagner
left a comment
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.
Depends on #2520 being merged first and we also need to target this to 4.3 branch, once it's available
frontend/packages/metal3-plugin/src/components/dashboard/details-card.tsx
Outdated
Show resolved
Hide resolved
frontend/public/components/dashboard/details-card/detail-item.tsx
Outdated
Show resolved
Hide resolved
jtomasek
left a comment
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.
If the goal is to eventually replace the 'Overview' page with the dashboard, The details card should hold much more information - everything which is in overview page and not present in other cards (e.g. inventory card). Is the details card going to scale well to carry that amount of information?
The same concern applies to the fact that the intention is also to eventually merge dashboards across several resources (Host/Node).
@andybraren any comments, please?
frontend/packages/metal3-plugin/src/components/dashboard/details-card.tsx
Outdated
Show resolved
Hide resolved
| <DetailsBody> | ||
| <DetailItem key="node-name" title="Node name" value={nodeName} isLoading={false} /> | ||
| <DetailItem key="host-role" title="Role" value={hostRole} isLoading={false} /> | ||
| <DetailItem key="machine-cell" title="Machine" value={machineCell} isLoading={false} /> |
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.
To align with relatively recent decision to link to a Node instead of Machine from the host, this should reference a Node using NodeCell
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.
🤦♂️
frontend/packages/metal3-plugin/src/components/dashboard/details-card.tsx
Outdated
Show resolved
Hide resolved
This was the original plan, but we later learned that some Overview pages have tables and other info from the YAML that would make combining the two tabs tricky (among other issues). We mocked up some larger Details cards, but...
Yeah we ran into this :) Instead, resource dashboard Details cards should contain the same fields that the resource’s List view does (same columns) in the same order. Clicking “View all” in the top-right of the card should then take the user to the Overview tab to see everything.
For now we’ll continue to follow the guideline above, even with bare metal Nodes, and see if that’s sufficient. A refined dashboard design for that is coming soon. |
Thanks for clarification, sounds good to me. |
|
Rebasing on top of #2520 seems to have worked out well... |
|
/approve |
|
/hold |
|
/hold cancel |
|
/test e2e-aws-console |
| const hostName = getName(obj); | ||
| const namespace = getNamespace(obj); | ||
| const nodeCell = <NodeCell nodeName={hostName} namespace={namespace} />; | ||
| const hostRole = <BaremetalHostRole machine={machine} />; |
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.
Nit: these two could go directly into the return jsx
|
/lgtm |
|
/test e2e-aws-console-olm |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: honza, jtomasek, knowncitizen The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |

Depends on
#2520