Fleet UI: Updates to installed software tooltips (#21084)

This commit is contained in:
RachelElysia 2024-08-06 10:16:54 -04:00 committed by GitHub
parent ef07a406cc
commit d8af8c638b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 12 additions and 5 deletions

View file

@ -76,7 +76,7 @@ const SoftwareName = ({ name }: ISoftwareNameProps) => {
interface IStatusDisplayOption {
displayName: string;
iconName: "success" | "pending-outline" | "error";
tooltip: string;
tooltip: React.ReactNode;
}
const STATUS_DISPLAY_OPTIONS: Record<
@ -86,7 +86,12 @@ const STATUS_DISPLAY_OPTIONS: Record<
installed: {
displayName: "Installed",
iconName: "success",
tooltip: "Fleet installed software on these hosts.",
tooltip: (
<>
Fleet installed software on these hosts. Currently, if the software is
uninstalled, the &quot;Installed&quot; status won&apos;t be updated.
</>
),
},
pending: {
displayName: "Pending",

View file

@ -38,9 +38,9 @@ export const INSTALL_STATUS_DISPLAY_OPTIONS: Record<
displayText: "Installed",
tooltip: ({ lastInstalledAt: lastInstall }) => (
<>
Fleet installed software on this host
{dateAgo(lastInstall as string)}). Currently, if the software is
deleted, the Installed status wont be updated.
Fleet installed software on this host {dateAgo(lastInstall as string)}).
Currently, if the software is uninstalled, the &quot;Installed&quot;
status won&apos;t be updated.
</>
),
},

View file

@ -27,6 +27,8 @@ const STATUS_CONFIG: Record<SoftwareInstallStatus, IStatusDisplayConfig> = {
tooltip: ({ lastInstalledAt }) => (
<>
Software installed successfully ({dateAgo(lastInstalledAt as string)}).
Currently, if the software is uninstalled, the &quot;Installed&quot;
status won&apos;t be updated.
</>
),
},