Add UI for adding fleet maintained apps (#22204)
relates to #21775 > NOTE: there still needs to be integrated with the API when this work is done. Adds the UI for adding Fleet maintained applications. This includes: **the view to see all the fleet maintained apps**  **The fleet maintained app details Page:**  <!-- Note that API documentation changes are now addressed by the product design team. --> - [x] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. See [Changes files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/Committing-Changes.md#changes-files) for more information. - [ ] Added/updated tests - [ ] Manual QA for all new/changed functionality
This commit is contained in:
@@ -1,17 +1,19 @@
|
||||
import React from "react";
|
||||
import React, { ReactNode } from "react";
|
||||
|
||||
import classnames from "classnames";
|
||||
|
||||
interface IHeaderCellProps {
|
||||
value: string | JSX.Element; // either a string or a TooltipWrapper
|
||||
value: ReactNode;
|
||||
isSortedDesc?: boolean;
|
||||
disableSortBy?: boolean;
|
||||
tootip?: ReactNode;
|
||||
}
|
||||
|
||||
const HeaderCell = ({
|
||||
value,
|
||||
isSortedDesc,
|
||||
disableSortBy,
|
||||
tootip,
|
||||
}: IHeaderCellProps): JSX.Element => {
|
||||
let sortArrowClass = "";
|
||||
if (isSortedDesc === undefined) {
|
||||
|
||||
@@ -46,7 +46,10 @@ const InstallIconWithTooltip = ({
|
||||
.
|
||||
</>
|
||||
) : (
|
||||
"Software can be installed on Host details page."
|
||||
<>
|
||||
Install manually on <b>Host details</b> page or automatically with
|
||||
policy automations.
|
||||
</>
|
||||
)}
|
||||
</span>
|
||||
</ReactTooltip>
|
||||
@@ -55,8 +58,9 @@ const InstallIconWithTooltip = ({
|
||||
};
|
||||
|
||||
interface ISoftwareNameCellProps {
|
||||
name: string;
|
||||
source: string;
|
||||
name?: string;
|
||||
source?: string;
|
||||
/** pass in a `path` that this cell will link to */
|
||||
path?: string;
|
||||
router?: InjectedRouter;
|
||||
hasPackage?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user