mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
relates to #22374 > NOTE: we still need integration with the API which will be done in another PR. >NOTE: Please review https://github.com/fleetdm/fleet/pull/22651 first, as this PR is based off of that branch. This adds the UI for uploading a setup experience script. this includes: **setup experience script uploader:**  **script card:**  **delete script modal:**  **script run preview:**  <!-- 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`. - [ ] Added/updated tests - [x] Manual QA for all new/changed functionality
51 lines
1.4 KiB
TypeScript
51 lines
1.4 KiB
TypeScript
import PATHS from "router/paths";
|
|
|
|
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 SetupExperienceScript from "./cards/SetupExperienceScript";
|
|
|
|
interface ISetupExperienceCardProps {
|
|
currentTeamId?: number;
|
|
}
|
|
|
|
// TODO: types
|
|
const SETUP_EXPERIENCE_NAV_ITEMS: ISideNavItem<
|
|
ISetupExperienceCardProps | any
|
|
>[] = [
|
|
{
|
|
title: "1. End user authentication",
|
|
urlSection: "end-user-auth",
|
|
path: PATHS.CONTROLS_END_USER_AUTHENTICATION,
|
|
Card: EndUserAuthentication,
|
|
},
|
|
{
|
|
title: "2. Setup assistant",
|
|
urlSection: "setup-assistant",
|
|
path: PATHS.CONTROLS_SETUP_ASSITANT,
|
|
Card: SetupAssistant,
|
|
},
|
|
{
|
|
title: "3. Bootstrap package",
|
|
urlSection: "bootstrap-package",
|
|
path: PATHS.CONTROLS_BOOTSTRAP_PACKAGE,
|
|
Card: BootstrapPackage,
|
|
},
|
|
{
|
|
title: "4. Install software",
|
|
urlSection: "install-software",
|
|
path: PATHS.CONTROLS_INSTALL_SOFTWARE,
|
|
Card: InstallSoftware,
|
|
},
|
|
{
|
|
title: "5. Run script",
|
|
urlSection: "run-script",
|
|
path: PATHS.CONTROLS_RUN_SCRIPT,
|
|
Card: SetupExperienceScript,
|
|
},
|
|
];
|
|
|
|
export default SETUP_EXPERIENCE_NAV_ITEMS;
|