fleet/frontend/pages/admin/IntegrationsPage/IntegrationNavItems.tsx
Rachael Shaw 75104bfbcb
Rename "Single sign-on options" settings page to "Single sign-on (SSO)" (#33946)
As part of https://github.com/fleetdm/fleet/issues/25798, we planned to
rename "Single sign-on options" to "Single sign-on (SSO)". However, we
missed adding a check for the copy change in the test plan, so we didn't
catch that the change didn't make it in.

The documentation/guide changes referencing the new page name were
already merged as part of 4.71.
2025-10-07 13:38:37 -05:00

80 lines
2.3 KiB
TypeScript

import PATHS from "router/paths";
import { ISideNavItem } from "../components/SideNav/SideNav";
import Integrations from "./cards/Integrations";
import MdmSettings from "./cards/MdmSettings";
import Calendars from "./cards/Calendars";
import ChangeManagement from "./cards/ChangeManagement";
import CertificateAuthorities from "./cards/CertificateAuthorities";
import ConditionalAccess from "./cards/ConditionalAccess";
import IdentityProviders from "./cards/IdentityProviders";
import Sso from "./cards/Sso";
import GlobalHostStatusWebhook from "../IntegrationsPage/cards/GlobalHostStatusWebhook";
const getIntegrationSettingsNavItems = (
isManagedCloud: boolean
): ISideNavItem<any>[] => {
const items: ISideNavItem<any>[] = [
{
title: "Ticket destinations",
urlSection: "ticket-destinations",
path: PATHS.ADMIN_INTEGRATIONS_TICKET_DESTINATIONS,
Card: Integrations,
},
{
title: "Mobile device management (MDM)",
urlSection: "mdm",
path: PATHS.ADMIN_INTEGRATIONS_MDM,
Card: MdmSettings,
},
{
title: "Calendars",
urlSection: "calendars",
path: PATHS.ADMIN_INTEGRATIONS_CALENDARS,
Card: Calendars,
},
{
title: "Change management",
urlSection: "change-management",
path: PATHS.ADMIN_INTEGRATIONS_CHANGE_MANAGEMENT,
Card: ChangeManagement,
},
{
title: "Single sign-on (SSO)",
urlSection: "sso",
path: PATHS.ADMIN_INTEGRATIONS_SSO,
Card: Sso,
},
{
title: "Certificates",
urlSection: "certificates",
path: PATHS.ADMIN_INTEGRATIONS_CERTIFICATE_AUTHORITIES,
Card: CertificateAuthorities,
},
{
title: "Identity provider (IdP)",
urlSection: "identity-provider",
path: PATHS.ADMIN_INTEGRATIONS_IDENTITY_PROVIDER,
Card: IdentityProviders,
},
{
title: "Host status webhook",
urlSection: "host-status-webhook",
path: PATHS.ADMIN_INTEGRATIONS_HOST_STATUS_WEBHOOK,
Card: GlobalHostStatusWebhook,
},
];
if (isManagedCloud) {
items.push({
title: "Conditional access",
urlSection: "conditional-access",
path: PATHS.ADMIN_INTEGRATIONS_CONDITIONAL_ACCESS,
Card: ConditionalAccess,
});
}
return items;
};
export default getIntegrationSettingsNavItems;