diff --git a/web/packages/teleport/src/Bots/Add/AddBotsPicker.story.tsx b/web/packages/teleport/src/Bots/Add/AddBotsPicker.story.tsx deleted file mode 100644 index 416f466ccf8f0..0000000000000 --- a/web/packages/teleport/src/Bots/Add/AddBotsPicker.story.tsx +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Teleport - * Copyright (C) 2024 Gravitational, Inc. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -import { TeleportProviderBasic } from 'teleport/mocks/providers'; - -import { AddBotsPicker } from './AddBotsPicker'; - -export default { - title: 'Teleport/Bots/Add/AddBotsPicker', -}; - -export const Picker = () => ( - - - -); diff --git a/web/packages/teleport/src/Bots/Add/AddBotsPicker.tsx b/web/packages/teleport/src/Bots/Add/AddBotsPicker.tsx index de8a1964bbc91..20c9ce5a1d563 100644 --- a/web/packages/teleport/src/Bots/Add/AddBotsPicker.tsx +++ b/web/packages/teleport/src/Bots/Add/AddBotsPicker.tsx @@ -19,12 +19,9 @@ import { ReactNode } from 'react'; import styled from 'styled-components'; -import { Box, Flex, Text } from 'design'; +import { Flex, Text } from 'design'; import { ResourceIconName } from 'design/ResourceIcon'; -import { P } from 'design/Text/Text'; -import { InfoGuideButton } from 'shared/components/SlidingSidePanel/InfoGuide'; -import { FeatureHeader, FeatureHeaderTitle } from 'teleport/components/Layout'; import { ToolTipNoPermBadge } from 'teleport/components/ToolTipNoPermBadge'; import cfg from 'teleport/config'; import { IntegrationTile } from 'teleport/Integrations'; @@ -34,9 +31,7 @@ import { IntegrationEnrollKind, userEventService, } from 'teleport/services/userEvent'; -import useTeleport from 'teleport/useTeleport'; -import { InfoGuide } from '../InfoGuide'; import { BotFlowType } from '../types'; export type BotIntegration = { @@ -202,51 +197,6 @@ export const integrations: BotIntegration[] = [ }, ]; -// TODO(alexhemard): delete in a follow up PR -export function AddBotsPicker() { - const ctx = useTeleport(); - return ( - <> - - Select Bot Type - }} /> - - -

- Set up Teleport Machine ID to allow CI/CD workflows and other machines - to access resources protected by Teleport. -

- - - - ); -} - -export function BotTiles({ - hasCreateBotPermission, -}: { - hasCreateBotPermission: boolean; -}) { - return ( -
- {integrations.map(i => ( - - - - ))} -
- ); -} - export function BotTile({ integration, hasCreateBotPermission, diff --git a/web/packages/teleport/src/Integrations/Enroll/MachineIDIntegrationSection.tsx b/web/packages/teleport/src/Integrations/Enroll/MachineIDIntegrationSection.tsx deleted file mode 100644 index b52162203df08..0000000000000 --- a/web/packages/teleport/src/Integrations/Enroll/MachineIDIntegrationSection.tsx +++ /dev/null @@ -1,40 +0,0 @@ -/** - * Teleport - * Copyright (C) 2023 Gravitational, Inc. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -import { Box, H2 } from 'design'; -import { P } from 'design/Text/Text'; - -import { BotTiles } from 'teleport/Bots/Add/AddBotsPicker'; -import useTeleport from 'teleport/useTeleport'; - -// TODO(alexhemard): delete in a follow up PR -export const MachineIDIntegrationSection = () => { - const ctx = useTeleport(); - return ( - <> - -

Machine ID

-

- Set up Teleport Machine ID to allow CI/CD workflows and other machines - to access resources protected by Teleport. -

-
- - - ); -};