mirror of
https://github.com/fleetdm/fleet
synced 2026-05-05 14:28:46 +00:00
relates to #10935 This is the UI for all the flows around adding, removing, downloading, and viewing information about a bootstrap package for fleet mdm. This is pretty comprehensive but includes: ### Backend **Update `Get host/id`** to include bootstrap package name ```json { "macos_setup": { ... "bootstrap_package_name": "test.pkg" } } ``` ### Frontend **UI for ABM not being set up**:  **UIs for uploading, downloading, and deleting bootstrap package**:    **UIs for seeing bootstrap status aggregate data**  **UIs for filtering hosts by bootstrap status**  **UIs for seeing package status on host details and my device page**:   - [x] Changes file added for user-visible changes in `changes/` or `orbit/changes/`. See [Changes files](https://fleetdm.com/docs/contributing/committing-changes#changes-files) for more information. - [x] Manual QA for all new/changed functionality --------- Co-authored-by: Roberto Dip <dip.jesusr@gmail.com> Co-authored-by: gillespi314 <73313222+gillespi314@users.noreply.github.com> Co-authored-by: Martin Angers <martin.n.angers@gmail.com>
36 lines
865 B
TypeScript
36 lines
865 B
TypeScript
import React from "react";
|
|
|
|
const baseClass = "upload-list";
|
|
|
|
interface IUploadListProps {
|
|
listItems: any[]; // TODO: typings
|
|
HeadingComponent?: (props: any) => JSX.Element; // TODO: Typings
|
|
ListItemComponent: (props: { listItem: any }) => JSX.Element; // TODO: types
|
|
}
|
|
|
|
const UploadList = ({
|
|
listItems,
|
|
HeadingComponent,
|
|
ListItemComponent,
|
|
}: IUploadListProps) => {
|
|
const items = listItems.map((listItem) => {
|
|
return (
|
|
<li key={`${listItem.id}`} className={`${baseClass}__list-item`}>
|
|
<ListItemComponent listItem={listItem} />
|
|
</li>
|
|
);
|
|
});
|
|
|
|
return (
|
|
<div className={baseClass}>
|
|
{HeadingComponent && (
|
|
<div className={`${baseClass}__header`}>
|
|
<HeadingComponent />
|
|
</div>
|
|
)}
|
|
<ul className={`${baseClass}__list`}>{items}</ul>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default UploadList;
|