mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
We recently implemented this change: https://github.com/fleetdm/fleet/pull/35782 I think it makes sense to capitalize Setup Assistant because it is a proper noun. However, we should drop macOS from the name since the Setup Assistant exists on iOS/iPadOS too and the skip panes functionality is platform agnostic. Otherwise users may be confused on how they achieve this on their iOS/iPadOS devices since this is so explicitly labeled as macOS.
52 lines
1.5 KiB
TypeScript
52 lines
1.5 KiB
TypeScript
import PATHS from "router/paths";
|
|
|
|
import { InjectedRouter } from "react-router";
|
|
|
|
import { ISideNavItem } from "pages/admin/components/SideNav/SideNav";
|
|
|
|
import EndUserAuthentication from "./cards/EndUserAuthentication/EndUserAuthentication";
|
|
import BootstrapPackage from "./cards/BootstrapPackage";
|
|
import SetupAssistant from "./cards/SetupAssistant";
|
|
import InstallSoftware from "./cards/InstallSoftware";
|
|
import RunScript from "./cards/RunScript";
|
|
|
|
export interface ISetupExperienceCardProps {
|
|
currentTeamId: number;
|
|
router: InjectedRouter;
|
|
urlPlatformParam?: string; // not yet guaranteed to be a valid platform
|
|
}
|
|
|
|
const SETUP_EXPERIENCE_NAV_ITEMS: ISideNavItem<ISetupExperienceCardProps>[] = [
|
|
{
|
|
title: "1. End user authentication",
|
|
urlSection: "end-user-auth",
|
|
path: PATHS.CONTROLS_END_USER_AUTHENTICATION,
|
|
Card: EndUserAuthentication,
|
|
},
|
|
{
|
|
title: "2. Bootstrap package",
|
|
urlSection: "bootstrap-package",
|
|
path: PATHS.CONTROLS_BOOTSTRAP_PACKAGE,
|
|
Card: BootstrapPackage,
|
|
},
|
|
{
|
|
title: "3. Install software",
|
|
urlSection: "install-software",
|
|
path: PATHS.CONTROLS_INSTALL_SOFTWARE("macos"),
|
|
Card: InstallSoftware,
|
|
},
|
|
{
|
|
title: "4. Run script",
|
|
urlSection: "run-script",
|
|
path: PATHS.CONTROLS_RUN_SCRIPT,
|
|
Card: RunScript,
|
|
},
|
|
{
|
|
title: "5. Setup Assistant",
|
|
urlSection: "setup-assistant",
|
|
path: PATHS.CONTROLS_SETUP_ASSISTANT,
|
|
Card: SetupAssistant,
|
|
},
|
|
];
|
|
|
|
export default SETUP_EXPERIENCE_NAV_ITEMS;
|