mirror of
https://github.com/fleetdm/fleet
synced 2026-04-22 14:07:19 +00:00
## PR 2/2 for #32037 - Implements update for the Linux setup experience from the end-user's point of view (the "My device" page). - Works in concert with the new endpoints implemented in https://github.com/fleetdm/fleet/pull/32493 - My device page calls a new endpoint to get in-progress setup experience software installations. If there are any, the page is replaced with a "Setting up your device" page - The UI polls this endpoint until all such installations are either successful or failed (including canceled) - Setting up your device page includes a table displaying the name and status of each software installation - Once all installations are finished (succeed/fail), renders the regular My device page - Add a handler for the new API call for relevant tests  ## Testing Can use [this branch with fake data](https://github.com/fleetdm/fleet/tree/32037-end-user-fake-data) to help test this PR - [x] Changes file added for user-visible changes in `changes/` - [x] Added/updated automated tests - additional tests coming in follow-up - [x] QA'd all new/changed functionality manually --------- Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
21 lines
525 B
TypeScript
21 lines
525 B
TypeScript
import SoftwareIcon from "pages/SoftwarePage/components/icons/SoftwareIcon";
|
|
import React from "react";
|
|
|
|
const baseClass = "setup-software-process-cell";
|
|
|
|
interface ISetupSoftwareProcessCell {
|
|
name: string;
|
|
}
|
|
|
|
const SetupSoftwareProcessCell = ({ name }: ISetupSoftwareProcessCell) => {
|
|
return (
|
|
<span className={baseClass}>
|
|
<SoftwareIcon name={name || ""} size="small" />
|
|
<div>
|
|
Install <b>{name || "Unknown software"}</b>
|
|
</div>
|
|
</span>
|
|
);
|
|
};
|
|
|
|
export default SetupSoftwareProcessCell;
|