From 70ff04a65400a71eda78511c41246c2723a78f28 Mon Sep 17 00:00:00 2001 From: Noah Stride Date: Fri, 9 Jan 2026 13:31:21 +0000 Subject: [PATCH 1/3] Remove unused MachineIDIntegrationSection component --- .../Enroll/MachineIDIntegrationSection.tsx | 40 ------------------- 1 file changed, 40 deletions(-) delete mode 100644 web/packages/teleport/src/Integrations/Enroll/MachineIDIntegrationSection.tsx 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. -

-
- - - ); -}; From e5d9fab204c6f4e32d0d882695373391d48537fb Mon Sep 17 00:00:00 2001 From: Noah Stride Date: Fri, 9 Jan 2026 14:33:18 +0000 Subject: [PATCH 2/3] Remove unused picker component --- .../src/Bots/Add/AddBotsPicker.story.tsx | 31 ------------- .../teleport/src/Bots/Add/AddBotsPicker.tsx | 45 ------------------- 2 files changed, 76 deletions(-) delete mode 100644 web/packages/teleport/src/Bots/Add/AddBotsPicker.story.tsx 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..3d4315fc7079d 100644 --- a/web/packages/teleport/src/Bots/Add/AddBotsPicker.tsx +++ b/web/packages/teleport/src/Bots/Add/AddBotsPicker.tsx @@ -202,51 +202,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, From 01a56edf1bb6a97205f06b015eac4e0725957e84 Mon Sep 17 00:00:00 2001 From: Noah Stride Date: Fri, 9 Jan 2026 15:01:26 +0000 Subject: [PATCH 3/3] Prettier! --- web/packages/teleport/src/Bots/Add/AddBotsPicker.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/web/packages/teleport/src/Bots/Add/AddBotsPicker.tsx b/web/packages/teleport/src/Bots/Add/AddBotsPicker.tsx index 3d4315fc7079d..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 = {