Fleet UI: Ability to update android configuration + FE cleanups (#37065)

This commit is contained in:
RachelElysia
2025-12-15 09:26:33 -05:00
committed by GitHub
parent 3e7c4d1850
commit d8a3af4e88
26 changed files with 900 additions and 285 deletions
+17 -10
View File
@@ -112,16 +112,11 @@ export interface ISoftwarePackage {
install_during_setup?: boolean;
labels_include_any: ILabelSoftwareTitle[] | null;
labels_exclude_any: ILabelSoftwareTitle[] | null;
categories?: SoftwareCategory[];
categories?: SoftwareCategory[] | null;
fleet_maintained_app_id?: number | null;
hash_sha256?: string | null;
}
export const isSoftwarePackage = (
data: ISoftwarePackage | IAppStoreApp
): data is ISoftwarePackage =>
(data as ISoftwarePackage).install_script !== undefined;
export interface IAppStoreApp {
name: string;
/** Not included in SoftwareTitle software.app_store_app response, hoisted up one level
@@ -146,9 +141,21 @@ export interface IAppStoreApp {
version?: string;
labels_include_any: ILabelSoftwareTitle[] | null;
labels_exclude_any: ILabelSoftwareTitle[] | null;
categories?: SoftwareCategory[];
categories?: SoftwareCategory[] | null;
configuration?: string;
}
/**
* package: includes FMA, custom packages, and are defined under software_package
* app-store: includes VPP, Google Play Store apps and are defined under app_store_app
*/
export type InstallerType = "package" | "app-store";
export const isSoftwarePackage = (
data: ISoftwarePackage | IAppStoreApp
): data is ISoftwarePackage =>
(data as ISoftwarePackage).install_script !== undefined;
export interface ISoftwareTitle {
id: number;
name: string;
@@ -514,7 +521,7 @@ export interface IHostSoftwarePackage {
version: string;
last_install: ISoftwareLastInstall | null;
last_uninstall: ISoftwareLastUninstall | null;
categories?: SoftwareCategory[];
categories?: SoftwareCategory[] | null;
automatic_install_policies?: ISoftwareInstallPolicy[] | null;
platform?: Platform;
}
@@ -526,7 +533,7 @@ export interface IHostAppStoreApp {
icon_url: string;
version: string;
last_install: IAppLastInstall | null;
categories?: SoftwareCategory[];
categories?: SoftwareCategory[] | null;
automatic_install_policies?: ISoftwareInstallPolicy[] | null;
}
@@ -795,7 +802,7 @@ export interface IFleetMaintainedAppDetails {
url: string;
slug: string;
software_title_id?: number; // null unless the team already has the software added (as a Fleet-maintained app, App Store (app), or custom package)
categories: SoftwareCategory[];
categories: SoftwareCategory[] | null;
}
export const ROLLING_ARCH_LINUX_NAMES = [