Date: Thu, 28 Nov 2024 18:57:25 +0100
Subject: [PATCH 3/7] Review
---
.../design/src/ToolTip/ToolTip.story.tsx | 22 +++++++++----------
web/packages/design/src/ToolTip/ToolTip.tsx | 2 +-
web/packages/design/src/ToolTip/index.ts | 2 +-
.../AccessDuration/AccessDurationRequest.tsx | 6 ++---
.../AccessDuration/AccessDurationReview.tsx | 6 ++---
.../RequestCheckout/AdditionalOptions.tsx | 10 ++++-----
.../NewRequest/ResourceList/Apps.tsx | 6 ++---
.../AdvancedSearchToggle.tsx | 6 ++---
.../components/FieldInput/FieldInput.tsx | 4 ++--
.../shared/components/FieldSelect/shared.tsx | 4 ++--
.../FieldTextArea/FieldTextArea.tsx | 4 ++--
.../shared/components/ToolTip/index.ts | 6 ++---
.../DocumentKubeExec/KubeExecDataDialog.tsx | 6 ++---
.../CreateAppAccess/CreateAppAccess.tsx | 6 ++---
.../AutoDeploy/SelectSecurityGroups.tsx | 6 ++---
.../AutoDeploy/SelectSubnetIds.tsx | 6 ++---
.../EnrollRdsDatabase/AutoDiscoverToggle.tsx | 6 ++---
.../EnrollEKSCluster/EnrollEksCluster.tsx | 10 ++++-----
.../DiscoveryConfigSsm/DiscoveryConfigSsm.tsx | 6 ++---
.../EnrollEc2Instance/EnrollEc2Instance.tsx | 6 ++---
.../Discover/Shared/Aws/ConfigureIamPerms.tsx | 6 ++---
.../ConfigureDiscoveryServiceDirections.tsx | 6 ++---
.../SecurityGroupPicker.tsx | 6 ++---
.../AwsOidc/ConfigureAwsOidcSummary.tsx | 6 ++---
.../Enroll/AwsOidc/S3BucketConfiguration.tsx | 6 ++---
.../src/Integrations/IntegrationList.tsx | 4 ++--
.../teleport/src/Navigation/Navigation.tsx | 6 ++---
.../src/Navigation/SideNavigation/Section.tsx | 6 ++---
.../src/Roles/RoleEditor/StandardEditor.tsx | 4 ++--
29 files changed, 90 insertions(+), 90 deletions(-)
diff --git a/web/packages/design/src/ToolTip/ToolTip.story.tsx b/web/packages/design/src/ToolTip/ToolTip.story.tsx
index 686c005aa37a1..ceb48d73edfff 100644
--- a/web/packages/design/src/ToolTip/ToolTip.story.tsx
+++ b/web/packages/design/src/ToolTip/ToolTip.story.tsx
@@ -25,11 +25,11 @@ import { P } from 'design/Text/Text';
import AGPLLogoLight from 'design/assets/images/agpl-light.svg';
import AGPLLogoDark from 'design/assets/images/agpl-dark.svg';
-import { ToolTipInfo } from './ToolTip';
+import { TooltipInfo } from './Tooltip';
import { HoverTooltip } from './HoverTooltip';
export default {
- title: 'Shared/ToolTip',
+ title: 'Design/Tooltip',
};
export const ShortContent = () => (
@@ -38,25 +38,25 @@ export const ShortContent = () => (
Hover the icon
- "some popover content"
+ "some popover content"
Hover the icon
- "some popover content"
+ "some popover content"
Hover the icon
- "some popover content"
+ "some popover content"
Hover the icon
- "some popover content"
+ "some popover content"
);
@@ -78,7 +78,7 @@ export const LongContent = () => {
<>
Hover the icon
-
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
@@ -91,7 +91,7 @@ export const LongContent = () => {
cupidatat non proident, sunt in culpa qui officia deserunt mollit
anim id est laborum.
-
+
Here's some content that shouldn't interfere with the semi-transparent
@@ -120,7 +120,7 @@ export const WithMutedIconColor = () => (
Hover the icon
- "some popover content"
+ "some popover content"
>
);
@@ -129,7 +129,7 @@ export const WithKindWarning = () => (
Hover the icon
- "some popover content"
+ "some popover content"
>
);
@@ -138,7 +138,7 @@ export const WithKindError = () => (
Hover the icon
- "some popover content"
+ "some popover content"
>
);
diff --git a/web/packages/design/src/ToolTip/ToolTip.tsx b/web/packages/design/src/ToolTip/ToolTip.tsx
index 8443ecc20fbf3..7e227f2cc4bc3 100644
--- a/web/packages/design/src/ToolTip/ToolTip.tsx
+++ b/web/packages/design/src/ToolTip/ToolTip.tsx
@@ -27,7 +27,7 @@ import { anchorOriginForPosition, transformOriginForPosition } from './shared';
type ToolTipKind = 'info' | 'warning' | 'error';
-export const ToolTipInfo: React.FC<
+export const TooltipInfo: React.FC<
PropsWithChildren<{
trigger?: 'click' | 'hover';
position?: Position;
diff --git a/web/packages/design/src/ToolTip/index.ts b/web/packages/design/src/ToolTip/index.ts
index c6518cad9b297..f511148deb903 100644
--- a/web/packages/design/src/ToolTip/index.ts
+++ b/web/packages/design/src/ToolTip/index.ts
@@ -16,5 +16,5 @@
* along with this program. If not, see .
*/
-export { ToolTipInfo } from './ToolTip';
+export { TooltipInfo } from './Tooltip';
export { HoverTooltip } from './HoverTooltip';
diff --git a/web/packages/shared/components/AccessRequests/AccessDuration/AccessDurationRequest.tsx b/web/packages/shared/components/AccessRequests/AccessDuration/AccessDurationRequest.tsx
index d6120fdf0eddd..015d34c9a476c 100644
--- a/web/packages/shared/components/AccessRequests/AccessDuration/AccessDurationRequest.tsx
+++ b/web/packages/shared/components/AccessRequests/AccessDuration/AccessDurationRequest.tsx
@@ -19,7 +19,7 @@
import React from 'react';
import { Flex, LabelInput, Text } from 'design';
-import { ToolTipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/ToolTip';
import Select, { Option } from 'shared/components/Select';
@@ -36,11 +36,11 @@ export function AccessDurationRequest({
Access Duration
-
+
How long you would be given elevated privileges. Note that the time it
takes to approve this request will be subtracted from the duration you
requested.
-
+
-
+
How long the access will be granted for after approval.
-
+
);
}
diff --git a/web/packages/shared/components/AccessRequests/NewRequest/RequestCheckout/AdditionalOptions.tsx b/web/packages/shared/components/AccessRequests/NewRequest/RequestCheckout/AdditionalOptions.tsx
index 91fe207f6712c..e42a3c160f82e 100644
--- a/web/packages/shared/components/AccessRequests/NewRequest/RequestCheckout/AdditionalOptions.tsx
+++ b/web/packages/shared/components/AccessRequests/NewRequest/RequestCheckout/AdditionalOptions.tsx
@@ -20,7 +20,7 @@ import React, { useState } from 'react';
import { Flex, Text, ButtonIcon, Box, LabelInput } from 'design';
import * as Icon from 'design/Icon';
-import { ToolTipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/ToolTip';
import Select, { Option } from 'shared/components/Select';
@@ -73,10 +73,10 @@ export function AdditionalOptions({
Request expires if not reviewed in
-
+
The request TTL which is the amount of time this request will
be in the PENDING state before it expires.
-
+
Access Request Lifetime
-
+
The max duration of an access request, starting from its
creation, until it expires.
-
+
{getFormattedDurationTxt({
diff --git a/web/packages/shared/components/AccessRequests/NewRequest/ResourceList/Apps.tsx b/web/packages/shared/components/AccessRequests/NewRequest/ResourceList/Apps.tsx
index e2a09bf7d47e4..71f16dacdc6d3 100644
--- a/web/packages/shared/components/AccessRequests/NewRequest/ResourceList/Apps.tsx
+++ b/web/packages/shared/components/AccessRequests/NewRequest/ResourceList/Apps.tsx
@@ -24,7 +24,7 @@ import { ClickableLabelCell, Cell } from 'design/DataTable';
import { App } from 'teleport/services/apps';
-import { ToolTipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/ToolTip';
import Select, {
Option as BaseOption,
@@ -231,11 +231,11 @@ function ActionCell({
)}
-
+
This application {agent.name} can be alternatively requested by
members of user groups. You can alternatively select user groups
instead to access this application.
-
+
Advanced
-
+
-
+
);
}
diff --git a/web/packages/shared/components/FieldInput/FieldInput.tsx b/web/packages/shared/components/FieldInput/FieldInput.tsx
index 7166cac313d5c..367e836e11fa0 100644
--- a/web/packages/shared/components/FieldInput/FieldInput.tsx
+++ b/web/packages/shared/components/FieldInput/FieldInput.tsx
@@ -28,7 +28,7 @@ import styled, { useTheme } from 'styled-components';
import { IconProps } from 'design/Icon/Icon';
import { InputMode, InputSize, InputType } from 'design/Input';
-import { ToolTipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/ToolTip';
import { useRule } from 'shared/components/Validation';
@@ -114,7 +114,7 @@ const FieldInput = forwardRef(
>
{label}
-
+
>
) : (
<>{label}>
diff --git a/web/packages/shared/components/FieldSelect/shared.tsx b/web/packages/shared/components/FieldSelect/shared.tsx
index 0588356769790..eabfd1a75e412 100644
--- a/web/packages/shared/components/FieldSelect/shared.tsx
+++ b/web/packages/shared/components/FieldSelect/shared.tsx
@@ -25,7 +25,7 @@ import LabelInput from 'design/LabelInput';
import Flex from 'design/Flex';
-import { ToolTipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/ToolTip';
import { HelperTextLine } from '../FieldInput/FieldInput';
import { useRule } from '../Validation';
@@ -96,7 +96,7 @@ export const FieldSelectWrapper = ({
{toolTipContent ? (
{label}
-
+
) : (
label
diff --git a/web/packages/shared/components/FieldTextArea/FieldTextArea.tsx b/web/packages/shared/components/FieldTextArea/FieldTextArea.tsx
index fc01245f6c9b7..26f9e54032cde 100644
--- a/web/packages/shared/components/FieldTextArea/FieldTextArea.tsx
+++ b/web/packages/shared/components/FieldTextArea/FieldTextArea.tsx
@@ -27,7 +27,7 @@ import { TextAreaSize } from 'design/TextArea';
import { BoxProps } from 'design/Box';
-import { ToolTipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/ToolTip';
import { useRule } from 'shared/components/Validation';
@@ -141,7 +141,7 @@ export const FieldTextArea = forwardRef<
>
{label}
-
+
>
) : (
<>{label}>
diff --git a/web/packages/shared/components/ToolTip/index.ts b/web/packages/shared/components/ToolTip/index.ts
index a3d07c5ab42ce..0e038d19f4f29 100644
--- a/web/packages/shared/components/ToolTip/index.ts
+++ b/web/packages/shared/components/ToolTip/index.ts
@@ -17,9 +17,9 @@
*/
export {
- /** @deprecated Use `design/Tooltip` */
- ToolTipInfo,
+ /** @deprecated Use `TooltipInfo` from `design/Tooltip` */
+ TooltipInfo as ToolTipInfo,
- /** @deprecated Use `design/Tooltip` */
+ /** @deprecated Use `HoverTooltip` from `design/Tooltip` */
HoverTooltip,
} from 'design/ToolTip';
diff --git a/web/packages/teleport/src/Console/DocumentKubeExec/KubeExecDataDialog.tsx b/web/packages/teleport/src/Console/DocumentKubeExec/KubeExecDataDialog.tsx
index f5b4146bcb894..24bca7f59c036 100644
--- a/web/packages/teleport/src/Console/DocumentKubeExec/KubeExecDataDialog.tsx
+++ b/web/packages/teleport/src/Console/DocumentKubeExec/KubeExecDataDialog.tsx
@@ -35,7 +35,7 @@ import {
import Validation from 'shared/components/Validation';
import FieldInput from 'shared/components/FieldInput';
import { requiredField } from 'shared/components/Validation/rules';
-import { ToolTipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/ToolTip';
type Props = {
onClose(): void;
@@ -123,11 +123,11 @@ function KubeExecDataDialog({ onClose, onExec }: Props) {
Interactive shell
-
+
You can start an interactive shell and have a
bidirectional communication with the target pod, or you
can run one-off command and see its output.
-
+
diff --git a/web/packages/teleport/src/Discover/AwsMangementConsole/CreateAppAccess/CreateAppAccess.tsx b/web/packages/teleport/src/Discover/AwsMangementConsole/CreateAppAccess/CreateAppAccess.tsx
index 2104c11ce5fd4..d388481b547c2 100644
--- a/web/packages/teleport/src/Discover/AwsMangementConsole/CreateAppAccess/CreateAppAccess.tsx
+++ b/web/packages/teleport/src/Discover/AwsMangementConsole/CreateAppAccess/CreateAppAccess.tsx
@@ -21,7 +21,7 @@ import styled from 'styled-components';
import { Box, Flex, Link, Mark, H3 } from 'design';
import TextEditor from 'shared/components/TextEditor';
import { Danger } from 'design/Alert';
-import { ToolTipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/ToolTip';
import { useAsync } from 'shared/hooks/useAsync';
import { P } from 'design/Text/Text';
@@ -81,7 +81,7 @@ export function CreateAppAccess() {
First configure your AWS IAM permissions
-
+
The following IAM permissions will be added as an inline policy
named {IAM_POLICY_NAME} to IAM role{' '}
{iamRoleName}
@@ -94,7 +94,7 @@ export function CreateAppAccess() {
/>
-
+
Run the command below on your{' '}
diff --git a/web/packages/teleport/src/Discover/Database/DeployService/AutoDeploy/SelectSecurityGroups.tsx b/web/packages/teleport/src/Discover/Database/DeployService/AutoDeploy/SelectSecurityGroups.tsx
index 74035fd6774c0..5cbabf6e97147 100644
--- a/web/packages/teleport/src/Discover/Database/DeployService/AutoDeploy/SelectSecurityGroups.tsx
+++ b/web/packages/teleport/src/Discover/Database/DeployService/AutoDeploy/SelectSecurityGroups.tsx
@@ -21,7 +21,7 @@ import React, { useState, useEffect } from 'react';
import { Text, Flex, Box, Indicator, ButtonSecondary, Subtitle3 } from 'design';
import * as Icons from 'design/Icon';
import { FetchStatus } from 'design/DataTable/types';
-import { HoverTooltip, ToolTipInfo } from 'design/ToolTip';
+import { HoverTooltip, TooltipInfo } from 'design/ToolTip';
import useAttempt from 'shared/hooks/useAttemptNext';
import { getErrMessage } from 'shared/utils/errorType';
import { pluralize } from 'shared/utils/text';
@@ -126,7 +126,7 @@ export const SelectSecurityGroups = ({
<>
Select ECS Security Groups
-
+
Select ECS security group(s) based on the following requirements:
@@ -141,7 +141,7 @@ export const SelectSecurityGroups = ({
-
+
diff --git a/web/packages/teleport/src/Discover/Database/DeployService/AutoDeploy/SelectSubnetIds.tsx b/web/packages/teleport/src/Discover/Database/DeployService/AutoDeploy/SelectSubnetIds.tsx
index 712102576074b..7d8af78645290 100644
--- a/web/packages/teleport/src/Discover/Database/DeployService/AutoDeploy/SelectSubnetIds.tsx
+++ b/web/packages/teleport/src/Discover/Database/DeployService/AutoDeploy/SelectSubnetIds.tsx
@@ -29,7 +29,7 @@ import {
} from 'design';
import * as Icons from 'design/Icon';
import { FetchStatus } from 'design/DataTable/types';
-import { HoverTooltip, ToolTipInfo } from 'design/ToolTip';
+import { HoverTooltip, TooltipInfo } from 'design/ToolTip';
import { pluralize } from 'shared/utils/text';
import useAttempt from 'shared/hooks/useAttemptNext';
import { getErrMessage } from 'shared/utils/errorType';
@@ -121,12 +121,12 @@ export function SelectSubnetIds({
<>
Select ECS Subnets
-
+
A subnet has an outbound internet route if it has a route to an
internet gateway or a NAT gateway in a public subnet.
-
+
diff --git a/web/packages/teleport/src/Discover/Database/EnrollRdsDatabase/AutoDiscoverToggle.tsx b/web/packages/teleport/src/Discover/Database/EnrollRdsDatabase/AutoDiscoverToggle.tsx
index 790993b715957..4272820f64a5a 100644
--- a/web/packages/teleport/src/Discover/Database/EnrollRdsDatabase/AutoDiscoverToggle.tsx
+++ b/web/packages/teleport/src/Discover/Database/EnrollRdsDatabase/AutoDiscoverToggle.tsx
@@ -19,7 +19,7 @@
import React from 'react';
import { Box, Toggle } from 'design';
-import { ToolTipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/ToolTip';
export function AutoDiscoverToggle({
wantAutoDiscover,
@@ -40,11 +40,11 @@ export function AutoDiscoverToggle({
Auto-enroll all databases for the selected VPC
-
+
Auto-enroll will automatically identify all RDS databases (e.g.
PostgreSQL, MySQL, Aurora) from the selected VPC and register them as
database resources in your infrastructure.
-
+
);
diff --git a/web/packages/teleport/src/Discover/Kubernetes/EnrollEKSCluster/EnrollEksCluster.tsx b/web/packages/teleport/src/Discover/Kubernetes/EnrollEKSCluster/EnrollEksCluster.tsx
index 8cff0fc08a27d..3fb5d8a513cf3 100644
--- a/web/packages/teleport/src/Discover/Kubernetes/EnrollEKSCluster/EnrollEksCluster.tsx
+++ b/web/packages/teleport/src/Discover/Kubernetes/EnrollEKSCluster/EnrollEksCluster.tsx
@@ -31,7 +31,7 @@ import { FetchStatus } from 'design/DataTable/types';
import { Danger } from 'design/Alert';
import useAttempt from 'shared/hooks/useAttemptNext';
-import { ToolTipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/ToolTip';
import { getErrMessage } from 'shared/utils/errorType';
import { EksMeta, useDiscover } from 'teleport/Discover/useDiscover';
@@ -435,11 +435,11 @@ export function EnrollEksCluster(props: AgentStepProps) {
Enable Kubernetes App Discovery
-
+
Teleport's Kubernetes App Discovery will automatically identify
and enroll to Teleport HTTP applications running inside a
Kubernetes cluster.
-
+
Auto-enroll all EKS clusters for selected region
-
+
Auto-enroll will automatically identify all EKS clusters from
the selected region and register them as Kubernetes resources in
your infrastructure.
-
+
{showTable && (
diff --git a/web/packages/teleport/src/Discover/Server/DiscoveryConfigSsm/DiscoveryConfigSsm.tsx b/web/packages/teleport/src/Discover/Server/DiscoveryConfigSsm/DiscoveryConfigSsm.tsx
index 5fa5f242fc019..4cf227456669b 100644
--- a/web/packages/teleport/src/Discover/Server/DiscoveryConfigSsm/DiscoveryConfigSsm.tsx
+++ b/web/packages/teleport/src/Discover/Server/DiscoveryConfigSsm/DiscoveryConfigSsm.tsx
@@ -30,7 +30,7 @@ import {
import styled from 'styled-components';
import { Danger, Info } from 'design/Alert';
import TextEditor from 'shared/components/TextEditor';
-import { ToolTipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/ToolTip';
import FieldInput from 'shared/components/FieldInput';
import { Rule } from 'shared/components/Validation/rules';
import Validation, { Validator } from 'shared/components/Validation';
@@ -317,7 +317,7 @@ export function DiscoveryConfigSsm() {
{' '}
to configure your IAM permissions.
-
+
The following IAM permissions will be added as an inline
policy named {IAM_POLICY_NAME} to IAM role{' '}
{arnResourceName}
@@ -330,7 +330,7 @@ export function DiscoveryConfigSsm() {
/>
-
+
Auto-enroll all EC2 instances for selected region
-
+
Auto-enroll will automatically identify all EC2 instances from
the selected region and register them as node resources in
your infrastructure.
-
+
{wantAutoDiscover && (
diff --git a/web/packages/teleport/src/Discover/Shared/Aws/ConfigureIamPerms.tsx b/web/packages/teleport/src/Discover/Shared/Aws/ConfigureIamPerms.tsx
index b713235ee5a7a..323a3feb7323b 100644
--- a/web/packages/teleport/src/Discover/Shared/Aws/ConfigureIamPerms.tsx
+++ b/web/packages/teleport/src/Discover/Shared/Aws/ConfigureIamPerms.tsx
@@ -21,7 +21,7 @@ import styled from 'styled-components';
import { Flex, Link, Box, H3 } from 'design';
import { assertUnreachable } from 'shared/utils/assertUnreachable';
import TextEditor from 'shared/components/TextEditor';
-import { ToolTipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/ToolTip';
import { P } from 'design/Text/Text';
@@ -179,11 +179,11 @@ export function ConfigureIamPerms({
<>
Configure your AWS IAM permissions
-
+
The following IAM permissions will be added as an inline policy
named {iamPolicyName} to IAM role {iamRoleName}
{editor}
-
+
{msg} Run the command below on your{' '}
diff --git a/web/packages/teleport/src/Discover/Shared/ConfigureDiscoveryService/ConfigureDiscoveryServiceDirections.tsx b/web/packages/teleport/src/Discover/Shared/ConfigureDiscoveryService/ConfigureDiscoveryServiceDirections.tsx
index f5d98c03ca386..34bb7a37a0690 100644
--- a/web/packages/teleport/src/Discover/Shared/ConfigureDiscoveryService/ConfigureDiscoveryServiceDirections.tsx
+++ b/web/packages/teleport/src/Discover/Shared/ConfigureDiscoveryService/ConfigureDiscoveryServiceDirections.tsx
@@ -18,7 +18,7 @@
import { Box, Flex, Input, Text, Mark, H3, Subtitle3 } from 'design';
import styled from 'styled-components';
-import { ToolTipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/ToolTip';
import React from 'react';
@@ -71,7 +71,7 @@ discovery_service:
Auto-enrolling requires you to configure a{' '}
Discovery Service
-
+
>
@@ -100,7 +100,7 @@ discovery_service:
Step 2
Define a Discovery Group name{' '}
-
+
diff --git a/web/packages/teleport/src/Discover/Shared/SecurityGroupPicker/SecurityGroupPicker.tsx b/web/packages/teleport/src/Discover/Shared/SecurityGroupPicker/SecurityGroupPicker.tsx
index 3b986be833de4..48823788401b1 100644
--- a/web/packages/teleport/src/Discover/Shared/SecurityGroupPicker/SecurityGroupPicker.tsx
+++ b/web/packages/teleport/src/Discover/Shared/SecurityGroupPicker/SecurityGroupPicker.tsx
@@ -23,7 +23,7 @@ import Table, { Cell } from 'design/DataTable';
import { Danger } from 'design/Alert';
import { CheckboxInput } from 'design/Checkbox';
import { FetchStatus } from 'design/DataTable/types';
-import { ToolTipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/ToolTip';
import { Attempt } from 'shared/hooks/useAttemptNext';
@@ -163,13 +163,13 @@ export const SecurityGroupPicker = ({
if (sg.recommended && sg.tips?.length) {
return (
-
+
{sg.tips.map((tip, index) => (
{tip}
))}
-
+
|
);
}
diff --git a/web/packages/teleport/src/Integrations/Enroll/AwsOidc/ConfigureAwsOidcSummary.tsx b/web/packages/teleport/src/Integrations/Enroll/AwsOidc/ConfigureAwsOidcSummary.tsx
index 1adace833d8d1..7480fd7c52248 100644
--- a/web/packages/teleport/src/Integrations/Enroll/AwsOidc/ConfigureAwsOidcSummary.tsx
+++ b/web/packages/teleport/src/Integrations/Enroll/AwsOidc/ConfigureAwsOidcSummary.tsx
@@ -20,7 +20,7 @@ import React from 'react';
import styled from 'styled-components';
import { Flex, Box, H3, Text } from 'design';
import TextEditor from 'shared/components/TextEditor';
-import { ToolTipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/ToolTip';
import useStickyClusterId from 'teleport/useStickyClusterId';
@@ -61,7 +61,7 @@ export function ConfigureAwsOidcSummary({
}`;
return (
-
+
Running the command in AWS CloudShell does the following:
1. Configures an AWS IAM OIDC Identity Provider (IdP)
@@ -76,7 +76,7 @@ export function ConfigureAwsOidcSummary({
/>
-
+
);
}
diff --git a/web/packages/teleport/src/Integrations/Enroll/AwsOidc/S3BucketConfiguration.tsx b/web/packages/teleport/src/Integrations/Enroll/AwsOidc/S3BucketConfiguration.tsx
index b316c5f3a1a56..d69019a460017 100644
--- a/web/packages/teleport/src/Integrations/Enroll/AwsOidc/S3BucketConfiguration.tsx
+++ b/web/packages/teleport/src/Integrations/Enroll/AwsOidc/S3BucketConfiguration.tsx
@@ -19,7 +19,7 @@
import React from 'react';
import { Text, Flex } from 'design';
import FieldInput from 'shared/components/FieldInput';
-import { ToolTipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/ToolTip';
export function S3BucketConfiguration({
s3Bucket,
@@ -32,11 +32,11 @@ export function S3BucketConfiguration({
<>
Amazon S3 Location
-
+
Deprecated. Amazon is now validating the IdP certificate against a
list of root CAs. Storing the OpenID Configuration in S3 is no longer
required, and should be removed to improve security.
-
+
{
{getStatusCodeTitle(item.statusCode)}
{statusDescription && (
- {statusDescription}
+ {statusDescription}
)}
diff --git a/web/packages/teleport/src/Navigation/Navigation.tsx b/web/packages/teleport/src/Navigation/Navigation.tsx
index db95daad39759..030f14057a2a0 100644
--- a/web/packages/teleport/src/Navigation/Navigation.tsx
+++ b/web/packages/teleport/src/Navigation/Navigation.tsx
@@ -21,7 +21,7 @@ import styled, { useTheme } from 'styled-components';
import { matchPath, useLocation, useHistory } from 'react-router';
import { Box, Text, Flex } from 'design';
-import { ToolTipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/ToolTip';
import cfg from 'teleport/config';
import {
@@ -195,9 +195,9 @@ function LicenseFooter({
{title}
-
+
{infoContent}
-
+
{subText}
diff --git a/web/packages/teleport/src/Navigation/SideNavigation/Section.tsx b/web/packages/teleport/src/Navigation/SideNavigation/Section.tsx
index 495452b1452d8..e744afba9cff2 100644
--- a/web/packages/teleport/src/Navigation/SideNavigation/Section.tsx
+++ b/web/packages/teleport/src/Navigation/SideNavigation/Section.tsx
@@ -23,7 +23,7 @@ import styled, { css, useTheme } from 'styled-components';
import { Box, ButtonIcon, Flex, P2, Text } from 'design';
import { Theme } from 'design/theme';
import { ArrowLineLeft } from 'design/Icon';
-import { HoverTooltip, ToolTipInfo } from 'design/ToolTip';
+import { HoverTooltip, TooltipInfo } from 'design/ToolTip';
import cfg from 'teleport/config';
@@ -470,9 +470,9 @@ function LicenseFooter({
{title}
-
+
{infoContent}
-
+
{subText}
diff --git a/web/packages/teleport/src/Roles/RoleEditor/StandardEditor.tsx b/web/packages/teleport/src/Roles/RoleEditor/StandardEditor.tsx
index 178c5b838631f..634b55c6b56ce 100644
--- a/web/packages/teleport/src/Roles/RoleEditor/StandardEditor.tsx
+++ b/web/packages/teleport/src/Roles/RoleEditor/StandardEditor.tsx
@@ -31,7 +31,7 @@ import FieldInput from 'shared/components/FieldInput';
import Validation, { Validator } from 'shared/components/Validation';
import { requiredField } from 'shared/components/Validation/rules';
import * as Icon from 'design/Icon';
-import { HoverTooltip, ToolTipInfo } from 'design/ToolTip';
+import { HoverTooltip, TooltipInfo } from 'design/ToolTip';
import styled, { useTheme } from 'styled-components';
import { MenuButton, MenuItem } from 'shared/components/MenuAction';
@@ -326,7 +326,7 @@ const Section = ({
{/* TODO(bl-nero): Show validation result in the summary. */}
{title}
- {tooltip && {tooltip} }
+ {tooltip && {tooltip} }
{removable && (
Date: Thu, 28 Nov 2024 19:14:39 +0100
Subject: [PATCH 4/7] Also, rename the tooltip directory
---
web/packages/design/src/{ToolTip => Tooltip}/HoverTooltip.tsx | 0
.../{ToolTip/ToolTip.story.tsx => Tooltip/Tooltip.story.tsx} | 0
.../design/src/{ToolTip/ToolTip.tsx => Tooltip/Tooltip.tsx} | 0
web/packages/design/src/{ToolTip => Tooltip}/index.ts | 0
web/packages/design/src/{ToolTip => Tooltip}/shared.tsx | 0
.../AccessRequests/AccessDuration/AccessDurationRequest.tsx | 2 +-
.../AccessRequests/AccessDuration/AccessDurationReview.tsx | 2 +-
.../NewRequest/RequestCheckout/AdditionalOptions.tsx | 2 +-
.../NewRequest/RequestCheckout/RequestCheckout.tsx | 2 +-
.../components/AccessRequests/NewRequest/ResourceList/Apps.tsx | 2 +-
.../ReviewRequests/RequestView/RequestReview/RequestReview.tsx | 2 +-
.../AccessRequests/ReviewRequests/RequestView/RequestView.tsx | 2 +-
web/packages/shared/components/AccessRequests/Shared/Shared.tsx | 2 +-
.../components/AdvancedSearchToggle/AdvancedSearchToggle.tsx | 2 +-
.../shared/components/ClusterDropdown/ClusterDropdown.tsx | 2 +-
web/packages/shared/components/Controls/MultiselectMenu.tsx | 2 +-
web/packages/shared/components/Controls/SortMenu.tsx | 2 +-
web/packages/shared/components/Controls/ViewModeSwitch.tsx | 2 +-
web/packages/shared/components/FieldInput/FieldInput.tsx | 2 +-
web/packages/shared/components/FieldSelect/shared.tsx | 2 +-
web/packages/shared/components/FieldTextArea/FieldTextArea.tsx | 2 +-
web/packages/shared/components/ToolTip/index.ts | 2 +-
.../components/UnifiedResources/CardsView/ResourceCard.tsx | 2 +-
web/packages/shared/components/UnifiedResources/FilterPanel.tsx | 2 +-
.../components/UnifiedResources/ListView/ResourceListItem.tsx | 2 +-
web/packages/shared/components/UnifiedResources/ResourceTab.tsx | 2 +-
.../shared/components/UnifiedResources/UnifiedResources.tsx | 2 +-
.../shared/components/UnifiedResources/shared/CopyButton.tsx | 2 +-
.../shared/components/UnifiedResources/shared/PinButton.tsx | 2 +-
web/packages/teleport/src/Bots/List/Bots.tsx | 2 +-
.../src/Console/DocumentKubeExec/KubeExecDataDialog.tsx | 2 +-
web/packages/teleport/src/DesktopSession/TopBar.tsx | 2 +-
.../AwsMangementConsole/CreateAppAccess/CreateAppAccess.tsx | 2 +-
.../Database/DeployService/AutoDeploy/SelectSecurityGroups.tsx | 2 +-
.../Database/DeployService/AutoDeploy/SelectSubnetIds.tsx | 2 +-
.../Discover/Database/EnrollRdsDatabase/AutoDiscoverToggle.tsx | 2 +-
.../Discover/Kubernetes/EnrollEKSCluster/EnrollEksCluster.tsx | 2 +-
.../Discover/Server/DiscoveryConfigSsm/DiscoveryConfigSsm.tsx | 2 +-
.../src/Discover/Server/EnrollEc2Instance/EnrollEc2Instance.tsx | 2 +-
.../teleport/src/Discover/Shared/Aws/ConfigureIamPerms.tsx | 2 +-
.../ConfigureDiscoveryServiceDirections.tsx | 2 +-
.../Discover/Shared/SecurityGroupPicker/SecurityGroupPicker.tsx | 2 +-
.../src/Integrations/Enroll/AwsOidc/ConfigureAwsOidcSummary.tsx | 2 +-
.../src/Integrations/Enroll/AwsOidc/S3BucketConfiguration.tsx | 2 +-
web/packages/teleport/src/Integrations/IntegrationList.tsx | 2 +-
.../teleport/src/Integrations/status/AwsOidc/AwsOidcHeader.tsx | 2 +-
web/packages/teleport/src/JoinTokens/JoinTokens.tsx | 2 +-
web/packages/teleport/src/JoinTokens/UpsertJoinTokenDialog.tsx | 2 +-
web/packages/teleport/src/Navigation/Navigation.tsx | 2 +-
web/packages/teleport/src/Navigation/SideNavigation/Section.tsx | 2 +-
web/packages/teleport/src/Notifications/Notifications.tsx | 2 +-
web/packages/teleport/src/Roles/RoleEditor/EditorHeader.tsx | 2 +-
web/packages/teleport/src/Roles/RoleEditor/Shared.tsx | 2 +-
web/packages/teleport/src/Roles/RoleEditor/StandardEditor.tsx | 2 +-
web/packages/teleport/src/TopBar/TopBar.tsx | 2 +-
web/packages/teleport/src/TopBar/TopBarSideNav.tsx | 2 +-
.../ExternalAuditStorageCta/ExternalAuditStorageCta.tsx | 2 +-
57 files changed, 52 insertions(+), 52 deletions(-)
rename web/packages/design/src/{ToolTip => Tooltip}/HoverTooltip.tsx (100%)
rename web/packages/design/src/{ToolTip/ToolTip.story.tsx => Tooltip/Tooltip.story.tsx} (100%)
rename web/packages/design/src/{ToolTip/ToolTip.tsx => Tooltip/Tooltip.tsx} (100%)
rename web/packages/design/src/{ToolTip => Tooltip}/index.ts (100%)
rename web/packages/design/src/{ToolTip => Tooltip}/shared.tsx (100%)
diff --git a/web/packages/design/src/ToolTip/HoverTooltip.tsx b/web/packages/design/src/Tooltip/HoverTooltip.tsx
similarity index 100%
rename from web/packages/design/src/ToolTip/HoverTooltip.tsx
rename to web/packages/design/src/Tooltip/HoverTooltip.tsx
diff --git a/web/packages/design/src/ToolTip/ToolTip.story.tsx b/web/packages/design/src/Tooltip/Tooltip.story.tsx
similarity index 100%
rename from web/packages/design/src/ToolTip/ToolTip.story.tsx
rename to web/packages/design/src/Tooltip/Tooltip.story.tsx
diff --git a/web/packages/design/src/ToolTip/ToolTip.tsx b/web/packages/design/src/Tooltip/Tooltip.tsx
similarity index 100%
rename from web/packages/design/src/ToolTip/ToolTip.tsx
rename to web/packages/design/src/Tooltip/Tooltip.tsx
diff --git a/web/packages/design/src/ToolTip/index.ts b/web/packages/design/src/Tooltip/index.ts
similarity index 100%
rename from web/packages/design/src/ToolTip/index.ts
rename to web/packages/design/src/Tooltip/index.ts
diff --git a/web/packages/design/src/ToolTip/shared.tsx b/web/packages/design/src/Tooltip/shared.tsx
similarity index 100%
rename from web/packages/design/src/ToolTip/shared.tsx
rename to web/packages/design/src/Tooltip/shared.tsx
diff --git a/web/packages/shared/components/AccessRequests/AccessDuration/AccessDurationRequest.tsx b/web/packages/shared/components/AccessRequests/AccessDuration/AccessDurationRequest.tsx
index 015d34c9a476c..c9729b80eabda 100644
--- a/web/packages/shared/components/AccessRequests/AccessDuration/AccessDurationRequest.tsx
+++ b/web/packages/shared/components/AccessRequests/AccessDuration/AccessDurationRequest.tsx
@@ -19,7 +19,7 @@
import React from 'react';
import { Flex, LabelInput, Text } from 'design';
-import { TooltipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/Tooltip';
import Select, { Option } from 'shared/components/Select';
diff --git a/web/packages/shared/components/AccessRequests/AccessDuration/AccessDurationReview.tsx b/web/packages/shared/components/AccessRequests/AccessDuration/AccessDurationReview.tsx
index fd06e66ec96e1..aa10ee5f024a9 100644
--- a/web/packages/shared/components/AccessRequests/AccessDuration/AccessDurationReview.tsx
+++ b/web/packages/shared/components/AccessRequests/AccessDuration/AccessDurationReview.tsx
@@ -19,7 +19,7 @@
import React from 'react';
import { Flex, Text } from 'design';
-import { TooltipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/Tooltip';
import { AccessRequest } from 'shared/services/accessRequests';
diff --git a/web/packages/shared/components/AccessRequests/NewRequest/RequestCheckout/AdditionalOptions.tsx b/web/packages/shared/components/AccessRequests/NewRequest/RequestCheckout/AdditionalOptions.tsx
index e42a3c160f82e..c500410532da5 100644
--- a/web/packages/shared/components/AccessRequests/NewRequest/RequestCheckout/AdditionalOptions.tsx
+++ b/web/packages/shared/components/AccessRequests/NewRequest/RequestCheckout/AdditionalOptions.tsx
@@ -20,7 +20,7 @@ import React, { useState } from 'react';
import { Flex, Text, ButtonIcon, Box, LabelInput } from 'design';
import * as Icon from 'design/Icon';
-import { TooltipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/Tooltip';
import Select, { Option } from 'shared/components/Select';
diff --git a/web/packages/shared/components/AccessRequests/NewRequest/RequestCheckout/RequestCheckout.tsx b/web/packages/shared/components/AccessRequests/NewRequest/RequestCheckout/RequestCheckout.tsx
index 0de1808937410..fd4bc1578869d 100644
--- a/web/packages/shared/components/AccessRequests/NewRequest/RequestCheckout/RequestCheckout.tsx
+++ b/web/packages/shared/components/AccessRequests/NewRequest/RequestCheckout/RequestCheckout.tsx
@@ -39,7 +39,7 @@ import { ArrowBack, ChevronDown, ChevronRight, Warning } from 'design/Icon';
import Table, { Cell } from 'design/DataTable';
import { Danger } from 'design/Alert';
-import { HoverTooltip } from 'design/ToolTip';
+import { HoverTooltip } from 'design/Tooltip';
import Validation, { useRule, Validator } from 'shared/components/Validation';
import { Attempt } from 'shared/hooks/useAttemptNext';
diff --git a/web/packages/shared/components/AccessRequests/NewRequest/ResourceList/Apps.tsx b/web/packages/shared/components/AccessRequests/NewRequest/ResourceList/Apps.tsx
index 71f16dacdc6d3..28a8105f67c02 100644
--- a/web/packages/shared/components/AccessRequests/NewRequest/ResourceList/Apps.tsx
+++ b/web/packages/shared/components/AccessRequests/NewRequest/ResourceList/Apps.tsx
@@ -24,7 +24,7 @@ import { ClickableLabelCell, Cell } from 'design/DataTable';
import { App } from 'teleport/services/apps';
-import { TooltipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/Tooltip';
import Select, {
Option as BaseOption,
diff --git a/web/packages/shared/components/AccessRequests/ReviewRequests/RequestView/RequestReview/RequestReview.tsx b/web/packages/shared/components/AccessRequests/ReviewRequests/RequestView/RequestReview/RequestReview.tsx
index e7ce487a17f4b..c21e4295c3afc 100644
--- a/web/packages/shared/components/AccessRequests/ReviewRequests/RequestView/RequestReview/RequestReview.tsx
+++ b/web/packages/shared/components/AccessRequests/ReviewRequests/RequestView/RequestReview/RequestReview.tsx
@@ -22,7 +22,7 @@ import { ButtonPrimary, Text, Box, Alert, Flex, Label, H3 } from 'design';
import { Warning } from 'design/Icon';
import { Radio } from 'design/RadioGroup';
-import { HoverTooltip } from 'design/ToolTip';
+import { HoverTooltip } from 'design/Tooltip';
import Validation, { Validator } from 'shared/components/Validation';
import { FieldSelect } from 'shared/components/FieldSelect';
diff --git a/web/packages/shared/components/AccessRequests/ReviewRequests/RequestView/RequestView.tsx b/web/packages/shared/components/AccessRequests/ReviewRequests/RequestView/RequestView.tsx
index 2111bbceae983..9a3e424787378 100644
--- a/web/packages/shared/components/AccessRequests/ReviewRequests/RequestView/RequestView.tsx
+++ b/web/packages/shared/components/AccessRequests/ReviewRequests/RequestView/RequestView.tsx
@@ -42,7 +42,7 @@ import { displayDateWithPrefixedTime } from 'design/datetime';
import { LabelKind } from 'design/LabelState/LabelState';
-import { HoverTooltip } from 'design/ToolTip';
+import { HoverTooltip } from 'design/Tooltip';
import { hasFinished, Attempt } from 'shared/hooks/useAsync';
diff --git a/web/packages/shared/components/AccessRequests/Shared/Shared.tsx b/web/packages/shared/components/AccessRequests/Shared/Shared.tsx
index 5e035bb5cdb8d..2159f6309c95e 100644
--- a/web/packages/shared/components/AccessRequests/Shared/Shared.tsx
+++ b/web/packages/shared/components/AccessRequests/Shared/Shared.tsx
@@ -21,7 +21,7 @@ import { ButtonPrimary, Text, Box, ButtonIcon, Menu } from 'design';
import { Info } from 'design/Icon';
import { displayDateWithPrefixedTime } from 'design/datetime';
-import { HoverTooltip } from 'design/ToolTip';
+import { HoverTooltip } from 'design/Tooltip';
import { AccessRequest } from 'shared/services/accessRequests';
diff --git a/web/packages/shared/components/AdvancedSearchToggle/AdvancedSearchToggle.tsx b/web/packages/shared/components/AdvancedSearchToggle/AdvancedSearchToggle.tsx
index 2cbfe29821118..8756ccbf3ddb5 100644
--- a/web/packages/shared/components/AdvancedSearchToggle/AdvancedSearchToggle.tsx
+++ b/web/packages/shared/components/AdvancedSearchToggle/AdvancedSearchToggle.tsx
@@ -22,7 +22,7 @@ import { Text, Toggle, Link, Flex, H2 } from 'design';
import { P } from 'design/Text/Text';
-import { TooltipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/Tooltip';
const GUIDE_URL =
'https://goteleport.com/docs/reference/predicate-language/#resource-filtering';
diff --git a/web/packages/shared/components/ClusterDropdown/ClusterDropdown.tsx b/web/packages/shared/components/ClusterDropdown/ClusterDropdown.tsx
index 090a7c6fd8813..60846510fe90d 100644
--- a/web/packages/shared/components/ClusterDropdown/ClusterDropdown.tsx
+++ b/web/packages/shared/components/ClusterDropdown/ClusterDropdown.tsx
@@ -24,7 +24,7 @@ import { ChevronDown } from 'design/Icon';
import cfg from 'teleport/config';
import { Cluster } from 'teleport/services/clusters';
-import { HoverTooltip } from 'design/ToolTip';
+import { HoverTooltip } from 'design/Tooltip';
export interface ClusterDropdownProps {
clusterLoader: ClusterLoader;
diff --git a/web/packages/shared/components/Controls/MultiselectMenu.tsx b/web/packages/shared/components/Controls/MultiselectMenu.tsx
index fb73ad0d1293c..98acea2a75d28 100644
--- a/web/packages/shared/components/Controls/MultiselectMenu.tsx
+++ b/web/packages/shared/components/Controls/MultiselectMenu.tsx
@@ -29,7 +29,7 @@ import {
import { ChevronDown } from 'design/Icon';
import { CheckboxInput } from 'design/Checkbox';
-import { HoverTooltip } from 'design/ToolTip';
+import { HoverTooltip } from 'design/Tooltip';
type MultiselectMenuProps = {
options: {
diff --git a/web/packages/shared/components/Controls/SortMenu.tsx b/web/packages/shared/components/Controls/SortMenu.tsx
index fcb91790ed69a..a55dabad7929c 100644
--- a/web/packages/shared/components/Controls/SortMenu.tsx
+++ b/web/packages/shared/components/Controls/SortMenu.tsx
@@ -20,7 +20,7 @@ import React, { useState } from 'react';
import { ButtonBorder, Flex, Menu, MenuItem } from 'design';
import { ArrowDown, ArrowUp } from 'design/Icon';
-import { HoverTooltip } from 'design/ToolTip';
+import { HoverTooltip } from 'design/Tooltip';
type SortMenuSort = {
fieldName: Exclude;
diff --git a/web/packages/shared/components/Controls/ViewModeSwitch.tsx b/web/packages/shared/components/Controls/ViewModeSwitch.tsx
index 51ad9ae396db4..62e5f94b36a3a 100644
--- a/web/packages/shared/components/Controls/ViewModeSwitch.tsx
+++ b/web/packages/shared/components/Controls/ViewModeSwitch.tsx
@@ -22,7 +22,7 @@ import { Rows, SquaresFour } from 'design/Icon';
import { ViewMode } from 'gen-proto-ts/teleport/userpreferences/v1/unified_resource_preferences_pb';
-import { HoverTooltip } from 'design/ToolTip';
+import { HoverTooltip } from 'design/Tooltip';
export const ViewModeSwitch = ({
currentViewMode,
diff --git a/web/packages/shared/components/FieldInput/FieldInput.tsx b/web/packages/shared/components/FieldInput/FieldInput.tsx
index 367e836e11fa0..5ac9d4185c61c 100644
--- a/web/packages/shared/components/FieldInput/FieldInput.tsx
+++ b/web/packages/shared/components/FieldInput/FieldInput.tsx
@@ -28,7 +28,7 @@ import styled, { useTheme } from 'styled-components';
import { IconProps } from 'design/Icon/Icon';
import { InputMode, InputSize, InputType } from 'design/Input';
-import { TooltipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/Tooltip';
import { useRule } from 'shared/components/Validation';
diff --git a/web/packages/shared/components/FieldSelect/shared.tsx b/web/packages/shared/components/FieldSelect/shared.tsx
index eabfd1a75e412..3c3b9c4087ecc 100644
--- a/web/packages/shared/components/FieldSelect/shared.tsx
+++ b/web/packages/shared/components/FieldSelect/shared.tsx
@@ -25,7 +25,7 @@ import LabelInput from 'design/LabelInput';
import Flex from 'design/Flex';
-import { TooltipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/Tooltip';
import { HelperTextLine } from '../FieldInput/FieldInput';
import { useRule } from '../Validation';
diff --git a/web/packages/shared/components/FieldTextArea/FieldTextArea.tsx b/web/packages/shared/components/FieldTextArea/FieldTextArea.tsx
index 26f9e54032cde..8c73f80ea5f3e 100644
--- a/web/packages/shared/components/FieldTextArea/FieldTextArea.tsx
+++ b/web/packages/shared/components/FieldTextArea/FieldTextArea.tsx
@@ -27,7 +27,7 @@ import { TextAreaSize } from 'design/TextArea';
import { BoxProps } from 'design/Box';
-import { TooltipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/Tooltip';
import { useRule } from 'shared/components/Validation';
diff --git a/web/packages/shared/components/ToolTip/index.ts b/web/packages/shared/components/ToolTip/index.ts
index 0e038d19f4f29..da5647c5d0af2 100644
--- a/web/packages/shared/components/ToolTip/index.ts
+++ b/web/packages/shared/components/ToolTip/index.ts
@@ -22,4 +22,4 @@ export {
/** @deprecated Use `HoverTooltip` from `design/Tooltip` */
HoverTooltip,
-} from 'design/ToolTip';
+} from 'design/Tooltip';
diff --git a/web/packages/shared/components/UnifiedResources/CardsView/ResourceCard.tsx b/web/packages/shared/components/UnifiedResources/CardsView/ResourceCard.tsx
index 8daaaed8c4e40..b592e0acddca0 100644
--- a/web/packages/shared/components/UnifiedResources/CardsView/ResourceCard.tsx
+++ b/web/packages/shared/components/UnifiedResources/CardsView/ResourceCard.tsx
@@ -26,7 +26,7 @@ import { ResourceIcon } from 'design/ResourceIcon';
import { makeLabelTag } from 'teleport/components/formatters';
-import { HoverTooltip } from 'design/ToolTip';
+import { HoverTooltip } from 'design/Tooltip';
import { ResourceItemProps } from '../types';
import { PinButton } from '../shared/PinButton';
diff --git a/web/packages/shared/components/UnifiedResources/FilterPanel.tsx b/web/packages/shared/components/UnifiedResources/FilterPanel.tsx
index 133693fb09850..d470abe9a9e9e 100644
--- a/web/packages/shared/components/UnifiedResources/FilterPanel.tsx
+++ b/web/packages/shared/components/UnifiedResources/FilterPanel.tsx
@@ -26,7 +26,7 @@ import { ChevronDown, ArrowsIn, ArrowsOut, Refresh } from 'design/Icon';
import { ViewMode } from 'gen-proto-ts/teleport/userpreferences/v1/unified_resource_preferences_pb';
-import { HoverTooltip } from 'design/ToolTip';
+import { HoverTooltip } from 'design/Tooltip';
import { SortMenu } from 'shared/components/Controls/SortMenu';
import { ViewModeSwitch } from 'shared/components/Controls/ViewModeSwitch';
diff --git a/web/packages/shared/components/UnifiedResources/ListView/ResourceListItem.tsx b/web/packages/shared/components/UnifiedResources/ListView/ResourceListItem.tsx
index 70784f7b2d6df..582a7c5ece831 100644
--- a/web/packages/shared/components/UnifiedResources/ListView/ResourceListItem.tsx
+++ b/web/packages/shared/components/UnifiedResources/ListView/ResourceListItem.tsx
@@ -26,7 +26,7 @@ import { ResourceIcon } from 'design/ResourceIcon';
import { makeLabelTag } from 'teleport/components/formatters';
-import { HoverTooltip } from 'design/ToolTip';
+import { HoverTooltip } from 'design/Tooltip';
import { ResourceItemProps } from '../types';
import { PinButton } from '../shared/PinButton';
diff --git a/web/packages/shared/components/UnifiedResources/ResourceTab.tsx b/web/packages/shared/components/UnifiedResources/ResourceTab.tsx
index d32879e07d961..2deb131ffcde9 100644
--- a/web/packages/shared/components/UnifiedResources/ResourceTab.tsx
+++ b/web/packages/shared/components/UnifiedResources/ResourceTab.tsx
@@ -20,7 +20,7 @@ import React from 'react';
import styled from 'styled-components';
import { Box, Text } from 'design';
-import { HoverTooltip } from 'design/ToolTip';
+import { HoverTooltip } from 'design/Tooltip';
import { PINNING_NOT_SUPPORTED_MESSAGE } from './UnifiedResources';
diff --git a/web/packages/shared/components/UnifiedResources/UnifiedResources.tsx b/web/packages/shared/components/UnifiedResources/UnifiedResources.tsx
index 716d6c1963273..a9f0699018d42 100644
--- a/web/packages/shared/components/UnifiedResources/UnifiedResources.tsx
+++ b/web/packages/shared/components/UnifiedResources/UnifiedResources.tsx
@@ -43,7 +43,7 @@ import {
AvailableResourceMode,
} from 'gen-proto-ts/teleport/userpreferences/v1/unified_resource_preferences_pb';
-import { HoverTooltip } from 'design/ToolTip';
+import { HoverTooltip } from 'design/Tooltip';
import {
makeEmptyAttempt,
diff --git a/web/packages/shared/components/UnifiedResources/shared/CopyButton.tsx b/web/packages/shared/components/UnifiedResources/shared/CopyButton.tsx
index 2b0076bfc749d..43b9cb2217165 100644
--- a/web/packages/shared/components/UnifiedResources/shared/CopyButton.tsx
+++ b/web/packages/shared/components/UnifiedResources/shared/CopyButton.tsx
@@ -22,7 +22,7 @@ import ButtonIcon from 'design/ButtonIcon';
import { Check, Copy } from 'design/Icon';
import { copyToClipboard } from 'design/utils/copyToClipboard';
-import { HoverTooltip } from 'design/ToolTip';
+import { HoverTooltip } from 'design/Tooltip';
export function CopyButton({
name,
diff --git a/web/packages/shared/components/UnifiedResources/shared/PinButton.tsx b/web/packages/shared/components/UnifiedResources/shared/PinButton.tsx
index 713f4d38f2e71..cde3b87142c04 100644
--- a/web/packages/shared/components/UnifiedResources/shared/PinButton.tsx
+++ b/web/packages/shared/components/UnifiedResources/shared/PinButton.tsx
@@ -21,7 +21,7 @@ import React, { useRef } from 'react';
import { PushPinFilled, PushPin } from 'design/Icon';
import ButtonIcon from 'design/ButtonIcon';
-import { HoverTooltip } from 'design/ToolTip';
+import { HoverTooltip } from 'design/Tooltip';
import { PinningSupport } from '../types';
diff --git a/web/packages/teleport/src/Bots/List/Bots.tsx b/web/packages/teleport/src/Bots/List/Bots.tsx
index d460ce277ede8..594a1840d7c52 100644
--- a/web/packages/teleport/src/Bots/List/Bots.tsx
+++ b/web/packages/teleport/src/Bots/List/Bots.tsx
@@ -19,7 +19,7 @@
import React, { useEffect, useState } from 'react';
import { useAttemptNext } from 'shared/hooks';
import { Link } from 'react-router-dom';
-import { HoverTooltip } from 'design/ToolTip';
+import { HoverTooltip } from 'design/Tooltip';
import { Alert, Box, Button, Indicator } from 'design';
import {
diff --git a/web/packages/teleport/src/Console/DocumentKubeExec/KubeExecDataDialog.tsx b/web/packages/teleport/src/Console/DocumentKubeExec/KubeExecDataDialog.tsx
index 24bca7f59c036..507b5fb34d4ab 100644
--- a/web/packages/teleport/src/Console/DocumentKubeExec/KubeExecDataDialog.tsx
+++ b/web/packages/teleport/src/Console/DocumentKubeExec/KubeExecDataDialog.tsx
@@ -35,7 +35,7 @@ import {
import Validation from 'shared/components/Validation';
import FieldInput from 'shared/components/FieldInput';
import { requiredField } from 'shared/components/Validation/rules';
-import { TooltipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/Tooltip';
type Props = {
onClose(): void;
diff --git a/web/packages/teleport/src/DesktopSession/TopBar.tsx b/web/packages/teleport/src/DesktopSession/TopBar.tsx
index e8a85a87f2c49..dcd5beaec4881 100644
--- a/web/packages/teleport/src/DesktopSession/TopBar.tsx
+++ b/web/packages/teleport/src/DesktopSession/TopBar.tsx
@@ -21,7 +21,7 @@ import { useTheme } from 'styled-components';
import { Text, TopNav, Flex } from 'design';
import { Clipboard, FolderShared } from 'design/Icon';
-import { HoverTooltip } from 'design/ToolTip';
+import { HoverTooltip } from 'design/Tooltip';
import ActionMenu from './ActionMenu';
import { AlertDropdown } from './AlertDropdown';
diff --git a/web/packages/teleport/src/Discover/AwsMangementConsole/CreateAppAccess/CreateAppAccess.tsx b/web/packages/teleport/src/Discover/AwsMangementConsole/CreateAppAccess/CreateAppAccess.tsx
index d388481b547c2..d84b32563b990 100644
--- a/web/packages/teleport/src/Discover/AwsMangementConsole/CreateAppAccess/CreateAppAccess.tsx
+++ b/web/packages/teleport/src/Discover/AwsMangementConsole/CreateAppAccess/CreateAppAccess.tsx
@@ -21,7 +21,7 @@ import styled from 'styled-components';
import { Box, Flex, Link, Mark, H3 } from 'design';
import TextEditor from 'shared/components/TextEditor';
import { Danger } from 'design/Alert';
-import { TooltipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/Tooltip';
import { useAsync } from 'shared/hooks/useAsync';
import { P } from 'design/Text/Text';
diff --git a/web/packages/teleport/src/Discover/Database/DeployService/AutoDeploy/SelectSecurityGroups.tsx b/web/packages/teleport/src/Discover/Database/DeployService/AutoDeploy/SelectSecurityGroups.tsx
index 5cbabf6e97147..0c64bcb482670 100644
--- a/web/packages/teleport/src/Discover/Database/DeployService/AutoDeploy/SelectSecurityGroups.tsx
+++ b/web/packages/teleport/src/Discover/Database/DeployService/AutoDeploy/SelectSecurityGroups.tsx
@@ -21,7 +21,7 @@ import React, { useState, useEffect } from 'react';
import { Text, Flex, Box, Indicator, ButtonSecondary, Subtitle3 } from 'design';
import * as Icons from 'design/Icon';
import { FetchStatus } from 'design/DataTable/types';
-import { HoverTooltip, TooltipInfo } from 'design/ToolTip';
+import { HoverTooltip, TooltipInfo } from 'design/Tooltip';
import useAttempt from 'shared/hooks/useAttemptNext';
import { getErrMessage } from 'shared/utils/errorType';
import { pluralize } from 'shared/utils/text';
diff --git a/web/packages/teleport/src/Discover/Database/DeployService/AutoDeploy/SelectSubnetIds.tsx b/web/packages/teleport/src/Discover/Database/DeployService/AutoDeploy/SelectSubnetIds.tsx
index 7d8af78645290..f13e5de573a21 100644
--- a/web/packages/teleport/src/Discover/Database/DeployService/AutoDeploy/SelectSubnetIds.tsx
+++ b/web/packages/teleport/src/Discover/Database/DeployService/AutoDeploy/SelectSubnetIds.tsx
@@ -29,7 +29,7 @@ import {
} from 'design';
import * as Icons from 'design/Icon';
import { FetchStatus } from 'design/DataTable/types';
-import { HoverTooltip, TooltipInfo } from 'design/ToolTip';
+import { HoverTooltip, TooltipInfo } from 'design/Tooltip';
import { pluralize } from 'shared/utils/text';
import useAttempt from 'shared/hooks/useAttemptNext';
import { getErrMessage } from 'shared/utils/errorType';
diff --git a/web/packages/teleport/src/Discover/Database/EnrollRdsDatabase/AutoDiscoverToggle.tsx b/web/packages/teleport/src/Discover/Database/EnrollRdsDatabase/AutoDiscoverToggle.tsx
index 4272820f64a5a..3efbdd3c5230a 100644
--- a/web/packages/teleport/src/Discover/Database/EnrollRdsDatabase/AutoDiscoverToggle.tsx
+++ b/web/packages/teleport/src/Discover/Database/EnrollRdsDatabase/AutoDiscoverToggle.tsx
@@ -19,7 +19,7 @@
import React from 'react';
import { Box, Toggle } from 'design';
-import { TooltipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/Tooltip';
export function AutoDiscoverToggle({
wantAutoDiscover,
diff --git a/web/packages/teleport/src/Discover/Kubernetes/EnrollEKSCluster/EnrollEksCluster.tsx b/web/packages/teleport/src/Discover/Kubernetes/EnrollEKSCluster/EnrollEksCluster.tsx
index 3fb5d8a513cf3..fd5d3c9ae47cb 100644
--- a/web/packages/teleport/src/Discover/Kubernetes/EnrollEKSCluster/EnrollEksCluster.tsx
+++ b/web/packages/teleport/src/Discover/Kubernetes/EnrollEKSCluster/EnrollEksCluster.tsx
@@ -31,7 +31,7 @@ import { FetchStatus } from 'design/DataTable/types';
import { Danger } from 'design/Alert';
import useAttempt from 'shared/hooks/useAttemptNext';
-import { TooltipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/Tooltip';
import { getErrMessage } from 'shared/utils/errorType';
import { EksMeta, useDiscover } from 'teleport/Discover/useDiscover';
diff --git a/web/packages/teleport/src/Discover/Server/DiscoveryConfigSsm/DiscoveryConfigSsm.tsx b/web/packages/teleport/src/Discover/Server/DiscoveryConfigSsm/DiscoveryConfigSsm.tsx
index 4cf227456669b..fcf513c35da04 100644
--- a/web/packages/teleport/src/Discover/Server/DiscoveryConfigSsm/DiscoveryConfigSsm.tsx
+++ b/web/packages/teleport/src/Discover/Server/DiscoveryConfigSsm/DiscoveryConfigSsm.tsx
@@ -30,7 +30,7 @@ import {
import styled from 'styled-components';
import { Danger, Info } from 'design/Alert';
import TextEditor from 'shared/components/TextEditor';
-import { TooltipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/Tooltip';
import FieldInput from 'shared/components/FieldInput';
import { Rule } from 'shared/components/Validation/rules';
import Validation, { Validator } from 'shared/components/Validation';
diff --git a/web/packages/teleport/src/Discover/Server/EnrollEc2Instance/EnrollEc2Instance.tsx b/web/packages/teleport/src/Discover/Server/EnrollEc2Instance/EnrollEc2Instance.tsx
index fb5df207be1df..a1c7cff720039 100644
--- a/web/packages/teleport/src/Discover/Server/EnrollEc2Instance/EnrollEc2Instance.tsx
+++ b/web/packages/teleport/src/Discover/Server/EnrollEc2Instance/EnrollEc2Instance.tsx
@@ -25,7 +25,7 @@ import { Danger } from 'design/Alert';
import { OutlineInfo } from 'design/Alert/Alert';
import { getErrMessage } from 'shared/utils/errorType';
-import { TooltipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/Tooltip';
import useTeleport from 'teleport/useTeleport';
import cfg from 'teleport/config';
diff --git a/web/packages/teleport/src/Discover/Shared/Aws/ConfigureIamPerms.tsx b/web/packages/teleport/src/Discover/Shared/Aws/ConfigureIamPerms.tsx
index 323a3feb7323b..46e7127c3dfe7 100644
--- a/web/packages/teleport/src/Discover/Shared/Aws/ConfigureIamPerms.tsx
+++ b/web/packages/teleport/src/Discover/Shared/Aws/ConfigureIamPerms.tsx
@@ -21,7 +21,7 @@ import styled from 'styled-components';
import { Flex, Link, Box, H3 } from 'design';
import { assertUnreachable } from 'shared/utils/assertUnreachable';
import TextEditor from 'shared/components/TextEditor';
-import { TooltipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/Tooltip';
import { P } from 'design/Text/Text';
diff --git a/web/packages/teleport/src/Discover/Shared/ConfigureDiscoveryService/ConfigureDiscoveryServiceDirections.tsx b/web/packages/teleport/src/Discover/Shared/ConfigureDiscoveryService/ConfigureDiscoveryServiceDirections.tsx
index 34bb7a37a0690..7bf32874c9306 100644
--- a/web/packages/teleport/src/Discover/Shared/ConfigureDiscoveryService/ConfigureDiscoveryServiceDirections.tsx
+++ b/web/packages/teleport/src/Discover/Shared/ConfigureDiscoveryService/ConfigureDiscoveryServiceDirections.tsx
@@ -18,7 +18,7 @@
import { Box, Flex, Input, Text, Mark, H3, Subtitle3 } from 'design';
import styled from 'styled-components';
-import { TooltipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/Tooltip';
import React from 'react';
diff --git a/web/packages/teleport/src/Discover/Shared/SecurityGroupPicker/SecurityGroupPicker.tsx b/web/packages/teleport/src/Discover/Shared/SecurityGroupPicker/SecurityGroupPicker.tsx
index 48823788401b1..6760a8a85d01f 100644
--- a/web/packages/teleport/src/Discover/Shared/SecurityGroupPicker/SecurityGroupPicker.tsx
+++ b/web/packages/teleport/src/Discover/Shared/SecurityGroupPicker/SecurityGroupPicker.tsx
@@ -23,7 +23,7 @@ import Table, { Cell } from 'design/DataTable';
import { Danger } from 'design/Alert';
import { CheckboxInput } from 'design/Checkbox';
import { FetchStatus } from 'design/DataTable/types';
-import { TooltipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/Tooltip';
import { Attempt } from 'shared/hooks/useAttemptNext';
diff --git a/web/packages/teleport/src/Integrations/Enroll/AwsOidc/ConfigureAwsOidcSummary.tsx b/web/packages/teleport/src/Integrations/Enroll/AwsOidc/ConfigureAwsOidcSummary.tsx
index 7480fd7c52248..21487e5add122 100644
--- a/web/packages/teleport/src/Integrations/Enroll/AwsOidc/ConfigureAwsOidcSummary.tsx
+++ b/web/packages/teleport/src/Integrations/Enroll/AwsOidc/ConfigureAwsOidcSummary.tsx
@@ -20,7 +20,7 @@ import React from 'react';
import styled from 'styled-components';
import { Flex, Box, H3, Text } from 'design';
import TextEditor from 'shared/components/TextEditor';
-import { TooltipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/Tooltip';
import useStickyClusterId from 'teleport/useStickyClusterId';
diff --git a/web/packages/teleport/src/Integrations/Enroll/AwsOidc/S3BucketConfiguration.tsx b/web/packages/teleport/src/Integrations/Enroll/AwsOidc/S3BucketConfiguration.tsx
index d69019a460017..c09cacdd713bc 100644
--- a/web/packages/teleport/src/Integrations/Enroll/AwsOidc/S3BucketConfiguration.tsx
+++ b/web/packages/teleport/src/Integrations/Enroll/AwsOidc/S3BucketConfiguration.tsx
@@ -19,7 +19,7 @@
import React from 'react';
import { Text, Flex } from 'design';
import FieldInput from 'shared/components/FieldInput';
-import { TooltipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/Tooltip';
export function S3BucketConfiguration({
s3Bucket,
diff --git a/web/packages/teleport/src/Integrations/IntegrationList.tsx b/web/packages/teleport/src/Integrations/IntegrationList.tsx
index 34022e407a48b..b3eebcf385d64 100644
--- a/web/packages/teleport/src/Integrations/IntegrationList.tsx
+++ b/web/packages/teleport/src/Integrations/IntegrationList.tsx
@@ -24,7 +24,7 @@ import { Link as InternalRouteLink } from 'react-router-dom';
import { Box, Flex } from 'design';
import Table, { Cell } from 'design/DataTable';
import { MenuButton, MenuItem } from 'shared/components/MenuAction';
-import { TooltipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/Tooltip';
import { useAsync } from 'shared/hooks/useAsync';
import { ResourceIcon } from 'design/ResourceIcon';
import { saveOnDisk } from 'shared/utils/saveOnDisk';
diff --git a/web/packages/teleport/src/Integrations/status/AwsOidc/AwsOidcHeader.tsx b/web/packages/teleport/src/Integrations/status/AwsOidc/AwsOidcHeader.tsx
index 614579d27c6f3..773efe7beb610 100644
--- a/web/packages/teleport/src/Integrations/status/AwsOidc/AwsOidcHeader.tsx
+++ b/web/packages/teleport/src/Integrations/status/AwsOidc/AwsOidcHeader.tsx
@@ -21,7 +21,7 @@ import { Link as InternalLink } from 'react-router-dom';
import { ButtonIcon, Flex, Label, Text } from 'design';
import { ArrowLeft } from 'design/Icon';
-import { HoverTooltip } from 'design/ToolTip';
+import { HoverTooltip } from 'design/Tooltip';
import cfg from 'teleport/config';
import { getStatusAndLabel } from 'teleport/Integrations/helpers';
diff --git a/web/packages/teleport/src/JoinTokens/JoinTokens.tsx b/web/packages/teleport/src/JoinTokens/JoinTokens.tsx
index 68ec5896346af..862085cfd0157 100644
--- a/web/packages/teleport/src/JoinTokens/JoinTokens.tsx
+++ b/web/packages/teleport/src/JoinTokens/JoinTokens.tsx
@@ -42,7 +42,7 @@ import Dialog, {
} from 'design/Dialog';
import { MenuButton } from 'shared/components/MenuAction';
import { Attempt, useAsync } from 'shared/hooks/useAsync';
-import { HoverTooltip } from 'design/ToolTip';
+import { HoverTooltip } from 'design/Tooltip';
import { CopyButton } from 'shared/components/UnifiedResources/shared/CopyButton';
import { useTeleport } from 'teleport';
diff --git a/web/packages/teleport/src/JoinTokens/UpsertJoinTokenDialog.tsx b/web/packages/teleport/src/JoinTokens/UpsertJoinTokenDialog.tsx
index 7d17d7e11e769..357c6a3d59471 100644
--- a/web/packages/teleport/src/JoinTokens/UpsertJoinTokenDialog.tsx
+++ b/web/packages/teleport/src/JoinTokens/UpsertJoinTokenDialog.tsx
@@ -29,7 +29,7 @@ import {
Alert,
} from 'design';
import styled from 'styled-components';
-import { HoverTooltip } from 'design/ToolTip';
+import { HoverTooltip } from 'design/Tooltip';
import { Cross } from 'design/Icon';
import Validation from 'shared/components/Validation';
import FieldInput from 'shared/components/FieldInput';
diff --git a/web/packages/teleport/src/Navigation/Navigation.tsx b/web/packages/teleport/src/Navigation/Navigation.tsx
index 030f14057a2a0..4bd0453b40f74 100644
--- a/web/packages/teleport/src/Navigation/Navigation.tsx
+++ b/web/packages/teleport/src/Navigation/Navigation.tsx
@@ -21,7 +21,7 @@ import styled, { useTheme } from 'styled-components';
import { matchPath, useLocation, useHistory } from 'react-router';
import { Box, Text, Flex } from 'design';
-import { TooltipInfo } from 'design/ToolTip';
+import { TooltipInfo } from 'design/Tooltip';
import cfg from 'teleport/config';
import {
diff --git a/web/packages/teleport/src/Navigation/SideNavigation/Section.tsx b/web/packages/teleport/src/Navigation/SideNavigation/Section.tsx
index e744afba9cff2..509cb0bd112d9 100644
--- a/web/packages/teleport/src/Navigation/SideNavigation/Section.tsx
+++ b/web/packages/teleport/src/Navigation/SideNavigation/Section.tsx
@@ -23,7 +23,7 @@ import styled, { css, useTheme } from 'styled-components';
import { Box, ButtonIcon, Flex, P2, Text } from 'design';
import { Theme } from 'design/theme';
import { ArrowLineLeft } from 'design/Icon';
-import { HoverTooltip, TooltipInfo } from 'design/ToolTip';
+import { HoverTooltip, TooltipInfo } from 'design/Tooltip';
import cfg from 'teleport/config';
diff --git a/web/packages/teleport/src/Notifications/Notifications.tsx b/web/packages/teleport/src/Notifications/Notifications.tsx
index ed31048b4fb14..b64d1460e8041 100644
--- a/web/packages/teleport/src/Notifications/Notifications.tsx
+++ b/web/packages/teleport/src/Notifications/Notifications.tsx
@@ -24,7 +24,7 @@ import { Alert, Box, Flex, Indicator, Text } from 'design';
import { Notification as NotificationIcon, BellRinging } from 'design/Icon';
import Logger from 'shared/libs/logger';
import { useRefClickOutside } from 'shared/hooks/useRefClickOutside';
-import { HoverTooltip } from 'design/ToolTip';
+import { HoverTooltip } from 'design/Tooltip';
import {
useInfiniteScroll,
diff --git a/web/packages/teleport/src/Roles/RoleEditor/EditorHeader.tsx b/web/packages/teleport/src/Roles/RoleEditor/EditorHeader.tsx
index b822474af3e34..541e6f08bfefa 100644
--- a/web/packages/teleport/src/Roles/RoleEditor/EditorHeader.tsx
+++ b/web/packages/teleport/src/Roles/RoleEditor/EditorHeader.tsx
@@ -18,7 +18,7 @@
import React from 'react';
import { Flex, ButtonText, H2 } from 'design';
-import { HoverTooltip } from 'design/ToolTip';
+import { HoverTooltip } from 'design/Tooltip';
import { Trash } from 'design/Icon';
import useTeleport from 'teleport/useTeleport';
diff --git a/web/packages/teleport/src/Roles/RoleEditor/Shared.tsx b/web/packages/teleport/src/Roles/RoleEditor/Shared.tsx
index 41af339cd2f01..3652e87a537ca 100644
--- a/web/packages/teleport/src/Roles/RoleEditor/Shared.tsx
+++ b/web/packages/teleport/src/Roles/RoleEditor/Shared.tsx
@@ -17,7 +17,7 @@
*/
import { Box, ButtonPrimary, ButtonSecondary, Flex } from 'design';
-import { HoverTooltip } from 'design/ToolTip';
+import { HoverTooltip } from 'design/Tooltip';
import useTeleport from 'teleport/useTeleport';
diff --git a/web/packages/teleport/src/Roles/RoleEditor/StandardEditor.tsx b/web/packages/teleport/src/Roles/RoleEditor/StandardEditor.tsx
index 634b55c6b56ce..37af3d1a8bdd8 100644
--- a/web/packages/teleport/src/Roles/RoleEditor/StandardEditor.tsx
+++ b/web/packages/teleport/src/Roles/RoleEditor/StandardEditor.tsx
@@ -31,7 +31,7 @@ import FieldInput from 'shared/components/FieldInput';
import Validation, { Validator } from 'shared/components/Validation';
import { requiredField } from 'shared/components/Validation/rules';
import * as Icon from 'design/Icon';
-import { HoverTooltip, TooltipInfo } from 'design/ToolTip';
+import { HoverTooltip, TooltipInfo } from 'design/Tooltip';
import styled, { useTheme } from 'styled-components';
import { MenuButton, MenuItem } from 'shared/components/MenuAction';
diff --git a/web/packages/teleport/src/TopBar/TopBar.tsx b/web/packages/teleport/src/TopBar/TopBar.tsx
index 6ab1e81da3ff9..e19e71ca780cd 100644
--- a/web/packages/teleport/src/TopBar/TopBar.tsx
+++ b/web/packages/teleport/src/TopBar/TopBar.tsx
@@ -23,7 +23,7 @@ import { Flex, Image, Text, TopNav } from 'design';
import { matchPath, useHistory } from 'react-router';
import { Theme } from 'design/theme/themes/types';
import { ArrowLeft, Download, Server, SlidersVertical } from 'design/Icon';
-import { HoverTooltip } from 'design/ToolTip';
+import { HoverTooltip } from 'design/Tooltip';
import useTeleport from 'teleport/useTeleport';
import { UserMenuNav } from 'teleport/components/UserMenuNav';
diff --git a/web/packages/teleport/src/TopBar/TopBarSideNav.tsx b/web/packages/teleport/src/TopBar/TopBarSideNav.tsx
index 9d578eb1011a9..54b8b95bcd8e2 100644
--- a/web/packages/teleport/src/TopBar/TopBarSideNav.tsx
+++ b/web/packages/teleport/src/TopBar/TopBarSideNav.tsx
@@ -22,7 +22,7 @@ import { Link } from 'react-router-dom';
import { Flex, Image, TopNav } from 'design';
import { matchPath, useHistory } from 'react-router';
import { Theme } from 'design/theme/themes/types';
-import { HoverTooltip } from 'design/ToolTip';
+import { HoverTooltip } from 'design/Tooltip';
import useTeleport from 'teleport/useTeleport';
import { UserMenuNav } from 'teleport/components/UserMenuNav';
diff --git a/web/packages/teleport/src/components/ExternalAuditStorageCta/ExternalAuditStorageCta.tsx b/web/packages/teleport/src/components/ExternalAuditStorageCta/ExternalAuditStorageCta.tsx
index ff2add5d944aa..6db1714a2fe41 100644
--- a/web/packages/teleport/src/components/ExternalAuditStorageCta/ExternalAuditStorageCta.tsx
+++ b/web/packages/teleport/src/components/ExternalAuditStorageCta/ExternalAuditStorageCta.tsx
@@ -25,7 +25,7 @@ import { ButtonPrimary, ButtonSecondary } from 'design/Button';
import Flex from 'design/Flex';
import Text from 'design/Text';
-import { HoverTooltip } from 'design/ToolTip';
+import { HoverTooltip } from 'design/Tooltip';
import cfg from 'teleport/config';
import { IntegrationKind } from 'teleport/services/integrations';
From 0f803c3195b06963cdff64e694dbd73634679838 Mon Sep 17 00:00:00 2001
From: Bartosz Leper
Date: Mon, 2 Dec 2024 19:47:51 +0100
Subject: [PATCH 5/7] Also, rename the tooltip component
---
...ooltip.story.tsx => IconTooltip.story.tsx} | 20 +++++++++----------
.../Tooltip/{Tooltip.tsx => IconTooltip.tsx} | 2 +-
web/packages/design/src/Tooltip/index.ts | 2 +-
.../AccessDuration/AccessDurationRequest.tsx | 6 +++---
.../AccessDuration/AccessDurationReview.tsx | 6 +++---
.../RequestCheckout/AdditionalOptions.tsx | 10 +++++-----
.../NewRequest/ResourceList/Apps.tsx | 6 +++---
.../AdvancedSearchToggle.tsx | 6 +++---
.../components/FieldInput/FieldInput.tsx | 4 ++--
.../shared/components/FieldSelect/shared.tsx | 4 ++--
.../FieldTextArea/FieldTextArea.tsx | 4 ++--
.../shared/components/ToolTip/index.ts | 2 +-
.../DocumentKubeExec/KubeExecDataDialog.tsx | 6 +++---
.../CreateAppAccess/CreateAppAccess.tsx | 6 +++---
.../AutoDeploy/SelectSecurityGroups.tsx | 6 +++---
.../AutoDeploy/SelectSubnetIds.tsx | 6 +++---
.../EnrollRdsDatabase/AutoDiscoverToggle.tsx | 6 +++---
.../EnrollEKSCluster/EnrollEksCluster.tsx | 10 +++++-----
.../DiscoveryConfigSsm/DiscoveryConfigSsm.tsx | 6 +++---
.../EnrollEc2Instance/EnrollEc2Instance.tsx | 6 +++---
.../Discover/Shared/Aws/ConfigureIamPerms.tsx | 6 +++---
.../ConfigureDiscoveryServiceDirections.tsx | 6 +++---
.../SecurityGroupPicker.tsx | 6 +++---
.../AwsOidc/ConfigureAwsOidcSummary.tsx | 6 +++---
.../Enroll/AwsOidc/S3BucketConfiguration.tsx | 6 +++---
.../src/Integrations/IntegrationList.tsx | 4 ++--
.../teleport/src/Navigation/Navigation.tsx | 6 +++---
.../src/Navigation/SideNavigation/Section.tsx | 6 +++---
.../src/Roles/RoleEditor/StandardEditor.tsx | 4 ++--
29 files changed, 87 insertions(+), 87 deletions(-)
rename web/packages/design/src/Tooltip/{Tooltip.story.tsx => IconTooltip.story.tsx} (88%)
rename web/packages/design/src/Tooltip/{Tooltip.tsx => IconTooltip.tsx} (99%)
diff --git a/web/packages/design/src/Tooltip/Tooltip.story.tsx b/web/packages/design/src/Tooltip/IconTooltip.story.tsx
similarity index 88%
rename from web/packages/design/src/Tooltip/Tooltip.story.tsx
rename to web/packages/design/src/Tooltip/IconTooltip.story.tsx
index ceb48d73edfff..8062ae357752a 100644
--- a/web/packages/design/src/Tooltip/Tooltip.story.tsx
+++ b/web/packages/design/src/Tooltip/IconTooltip.story.tsx
@@ -25,7 +25,7 @@ import { P } from 'design/Text/Text';
import AGPLLogoLight from 'design/assets/images/agpl-light.svg';
import AGPLLogoDark from 'design/assets/images/agpl-dark.svg';
-import { TooltipInfo } from './Tooltip';
+import { IconTooltip } from './IconTooltip';
import { HoverTooltip } from './HoverTooltip';
export default {
@@ -38,25 +38,25 @@ export const ShortContent = () => (
Hover the icon
- "some popover content"
+ "some popover content"
Hover the icon
- "some popover content"
+ "some popover content"
Hover the icon
- "some popover content"
+ "some popover content"
Hover the icon
- "some popover content"
+ "some popover content"
);
@@ -78,7 +78,7 @@ export const LongContent = () => {
<>
Hover the icon
-
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
@@ -91,7 +91,7 @@ export const LongContent = () => {
cupidatat non proident, sunt in culpa qui officia deserunt mollit
anim id est laborum.
-
+
Here's some content that shouldn't interfere with the semi-transparent
@@ -120,7 +120,7 @@ export const WithMutedIconColor = () => (
Hover the icon
- "some popover content"
+ "some popover content"
>
);
@@ -129,7 +129,7 @@ export const WithKindWarning = () => (
Hover the icon
- "some popover content"
+ "some popover content"
>
);
@@ -138,7 +138,7 @@ export const WithKindError = () => (
Hover the icon
- "some popover content"
+ "some popover content"
>
);
diff --git a/web/packages/design/src/Tooltip/Tooltip.tsx b/web/packages/design/src/Tooltip/IconTooltip.tsx
similarity index 99%
rename from web/packages/design/src/Tooltip/Tooltip.tsx
rename to web/packages/design/src/Tooltip/IconTooltip.tsx
index 7e227f2cc4bc3..e7434272fe6f3 100644
--- a/web/packages/design/src/Tooltip/Tooltip.tsx
+++ b/web/packages/design/src/Tooltip/IconTooltip.tsx
@@ -27,7 +27,7 @@ import { anchorOriginForPosition, transformOriginForPosition } from './shared';
type ToolTipKind = 'info' | 'warning' | 'error';
-export const TooltipInfo: React.FC<
+export const IconTooltip: React.FC<
PropsWithChildren<{
trigger?: 'click' | 'hover';
position?: Position;
diff --git a/web/packages/design/src/Tooltip/index.ts b/web/packages/design/src/Tooltip/index.ts
index f511148deb903..1be43077b8952 100644
--- a/web/packages/design/src/Tooltip/index.ts
+++ b/web/packages/design/src/Tooltip/index.ts
@@ -16,5 +16,5 @@
* along with this program. If not, see .
*/
-export { TooltipInfo } from './Tooltip';
+export { IconTooltip } from './IconTooltip';
export { HoverTooltip } from './HoverTooltip';
diff --git a/web/packages/shared/components/AccessRequests/AccessDuration/AccessDurationRequest.tsx b/web/packages/shared/components/AccessRequests/AccessDuration/AccessDurationRequest.tsx
index c9729b80eabda..35cfac569c462 100644
--- a/web/packages/shared/components/AccessRequests/AccessDuration/AccessDurationRequest.tsx
+++ b/web/packages/shared/components/AccessRequests/AccessDuration/AccessDurationRequest.tsx
@@ -19,7 +19,7 @@
import React from 'react';
import { Flex, LabelInput, Text } from 'design';
-import { TooltipInfo } from 'design/Tooltip';
+import { IconTooltip } from 'design/Tooltip';
import Select, { Option } from 'shared/components/Select';
@@ -36,11 +36,11 @@ export function AccessDurationRequest({
Access Duration
-
+
How long you would be given elevated privileges. Note that the time it
takes to approve this request will be subtracted from the duration you
requested.
-
+
-
+
How long the access will be granted for after approval.
-
+
);
}
diff --git a/web/packages/shared/components/AccessRequests/NewRequest/RequestCheckout/AdditionalOptions.tsx b/web/packages/shared/components/AccessRequests/NewRequest/RequestCheckout/AdditionalOptions.tsx
index c500410532da5..f27c721e77914 100644
--- a/web/packages/shared/components/AccessRequests/NewRequest/RequestCheckout/AdditionalOptions.tsx
+++ b/web/packages/shared/components/AccessRequests/NewRequest/RequestCheckout/AdditionalOptions.tsx
@@ -20,7 +20,7 @@ import React, { useState } from 'react';
import { Flex, Text, ButtonIcon, Box, LabelInput } from 'design';
import * as Icon from 'design/Icon';
-import { TooltipInfo } from 'design/Tooltip';
+import { IconTooltip } from 'design/Tooltip';
import Select, { Option } from 'shared/components/Select';
@@ -73,10 +73,10 @@ export function AdditionalOptions({
Request expires if not reviewed in
-
+
The request TTL which is the amount of time this request will
be in the PENDING state before it expires.
-
+
Access Request Lifetime
-
+
The max duration of an access request, starting from its
creation, until it expires.
-
+
{getFormattedDurationTxt({
diff --git a/web/packages/shared/components/AccessRequests/NewRequest/ResourceList/Apps.tsx b/web/packages/shared/components/AccessRequests/NewRequest/ResourceList/Apps.tsx
index 28a8105f67c02..341f37b61ec21 100644
--- a/web/packages/shared/components/AccessRequests/NewRequest/ResourceList/Apps.tsx
+++ b/web/packages/shared/components/AccessRequests/NewRequest/ResourceList/Apps.tsx
@@ -24,7 +24,7 @@ import { ClickableLabelCell, Cell } from 'design/DataTable';
import { App } from 'teleport/services/apps';
-import { TooltipInfo } from 'design/Tooltip';
+import { IconTooltip } from 'design/Tooltip';
import Select, {
Option as BaseOption,
@@ -231,11 +231,11 @@ function ActionCell({
)}
-
+
This application {agent.name} can be alternatively requested by
members of user groups. You can alternatively select user groups
instead to access this application.
-
+
Advanced
-
+
-
+
);
}
diff --git a/web/packages/shared/components/FieldInput/FieldInput.tsx b/web/packages/shared/components/FieldInput/FieldInput.tsx
index 5ac9d4185c61c..1ea08bf39ed8f 100644
--- a/web/packages/shared/components/FieldInput/FieldInput.tsx
+++ b/web/packages/shared/components/FieldInput/FieldInput.tsx
@@ -28,7 +28,7 @@ import styled, { useTheme } from 'styled-components';
import { IconProps } from 'design/Icon/Icon';
import { InputMode, InputSize, InputType } from 'design/Input';
-import { TooltipInfo } from 'design/Tooltip';
+import { IconTooltip } from 'design/Tooltip';
import { useRule } from 'shared/components/Validation';
@@ -114,7 +114,7 @@ const FieldInput = forwardRef(
>
{label}
-
+
>
) : (
<>{label}>
diff --git a/web/packages/shared/components/FieldSelect/shared.tsx b/web/packages/shared/components/FieldSelect/shared.tsx
index 3c3b9c4087ecc..35086cc5c3842 100644
--- a/web/packages/shared/components/FieldSelect/shared.tsx
+++ b/web/packages/shared/components/FieldSelect/shared.tsx
@@ -25,7 +25,7 @@ import LabelInput from 'design/LabelInput';
import Flex from 'design/Flex';
-import { TooltipInfo } from 'design/Tooltip';
+import { IconTooltip } from 'design/Tooltip';
import { HelperTextLine } from '../FieldInput/FieldInput';
import { useRule } from '../Validation';
@@ -96,7 +96,7 @@ export const FieldSelectWrapper = ({
{toolTipContent ? (
{label}
-
+
) : (
label
diff --git a/web/packages/shared/components/FieldTextArea/FieldTextArea.tsx b/web/packages/shared/components/FieldTextArea/FieldTextArea.tsx
index 8c73f80ea5f3e..c8bd7a1e0439d 100644
--- a/web/packages/shared/components/FieldTextArea/FieldTextArea.tsx
+++ b/web/packages/shared/components/FieldTextArea/FieldTextArea.tsx
@@ -27,7 +27,7 @@ import { TextAreaSize } from 'design/TextArea';
import { BoxProps } from 'design/Box';
-import { TooltipInfo } from 'design/Tooltip';
+import { IconTooltip } from 'design/Tooltip';
import { useRule } from 'shared/components/Validation';
@@ -141,7 +141,7 @@ export const FieldTextArea = forwardRef<
>
{label}
-
+
>
) : (
<>{label}>
diff --git a/web/packages/shared/components/ToolTip/index.ts b/web/packages/shared/components/ToolTip/index.ts
index da5647c5d0af2..f1be185cb4ae6 100644
--- a/web/packages/shared/components/ToolTip/index.ts
+++ b/web/packages/shared/components/ToolTip/index.ts
@@ -18,7 +18,7 @@
export {
/** @deprecated Use `TooltipInfo` from `design/Tooltip` */
- TooltipInfo as ToolTipInfo,
+ IconTooltip as ToolTipInfo,
/** @deprecated Use `HoverTooltip` from `design/Tooltip` */
HoverTooltip,
diff --git a/web/packages/teleport/src/Console/DocumentKubeExec/KubeExecDataDialog.tsx b/web/packages/teleport/src/Console/DocumentKubeExec/KubeExecDataDialog.tsx
index 507b5fb34d4ab..e8261cdf026c3 100644
--- a/web/packages/teleport/src/Console/DocumentKubeExec/KubeExecDataDialog.tsx
+++ b/web/packages/teleport/src/Console/DocumentKubeExec/KubeExecDataDialog.tsx
@@ -35,7 +35,7 @@ import {
import Validation from 'shared/components/Validation';
import FieldInput from 'shared/components/FieldInput';
import { requiredField } from 'shared/components/Validation/rules';
-import { TooltipInfo } from 'design/Tooltip';
+import { IconTooltip } from 'design/Tooltip';
type Props = {
onClose(): void;
@@ -123,11 +123,11 @@ function KubeExecDataDialog({ onClose, onExec }: Props) {
Interactive shell
-
+
You can start an interactive shell and have a
bidirectional communication with the target pod, or you
can run one-off command and see its output.
-
+
diff --git a/web/packages/teleport/src/Discover/AwsMangementConsole/CreateAppAccess/CreateAppAccess.tsx b/web/packages/teleport/src/Discover/AwsMangementConsole/CreateAppAccess/CreateAppAccess.tsx
index d84b32563b990..2c357df859a58 100644
--- a/web/packages/teleport/src/Discover/AwsMangementConsole/CreateAppAccess/CreateAppAccess.tsx
+++ b/web/packages/teleport/src/Discover/AwsMangementConsole/CreateAppAccess/CreateAppAccess.tsx
@@ -21,7 +21,7 @@ import styled from 'styled-components';
import { Box, Flex, Link, Mark, H3 } from 'design';
import TextEditor from 'shared/components/TextEditor';
import { Danger } from 'design/Alert';
-import { TooltipInfo } from 'design/Tooltip';
+import { IconTooltip } from 'design/Tooltip';
import { useAsync } from 'shared/hooks/useAsync';
import { P } from 'design/Text/Text';
@@ -81,7 +81,7 @@ export function CreateAppAccess() {
First configure your AWS IAM permissions
-
+
The following IAM permissions will be added as an inline policy
named {IAM_POLICY_NAME} to IAM role{' '}
{iamRoleName}
@@ -94,7 +94,7 @@ export function CreateAppAccess() {
/>
-
+
Run the command below on your{' '}
diff --git a/web/packages/teleport/src/Discover/Database/DeployService/AutoDeploy/SelectSecurityGroups.tsx b/web/packages/teleport/src/Discover/Database/DeployService/AutoDeploy/SelectSecurityGroups.tsx
index 0c64bcb482670..1717a082208ba 100644
--- a/web/packages/teleport/src/Discover/Database/DeployService/AutoDeploy/SelectSecurityGroups.tsx
+++ b/web/packages/teleport/src/Discover/Database/DeployService/AutoDeploy/SelectSecurityGroups.tsx
@@ -21,7 +21,7 @@ import React, { useState, useEffect } from 'react';
import { Text, Flex, Box, Indicator, ButtonSecondary, Subtitle3 } from 'design';
import * as Icons from 'design/Icon';
import { FetchStatus } from 'design/DataTable/types';
-import { HoverTooltip, TooltipInfo } from 'design/Tooltip';
+import { HoverTooltip, IconTooltip } from 'design/Tooltip';
import useAttempt from 'shared/hooks/useAttemptNext';
import { getErrMessage } from 'shared/utils/errorType';
import { pluralize } from 'shared/utils/text';
@@ -126,7 +126,7 @@ export const SelectSecurityGroups = ({
<>
Select ECS Security Groups
-
+
Select ECS security group(s) based on the following requirements:
@@ -141,7 +141,7 @@ export const SelectSecurityGroups = ({
-
+
diff --git a/web/packages/teleport/src/Discover/Database/DeployService/AutoDeploy/SelectSubnetIds.tsx b/web/packages/teleport/src/Discover/Database/DeployService/AutoDeploy/SelectSubnetIds.tsx
index f13e5de573a21..8a6e93a0491b1 100644
--- a/web/packages/teleport/src/Discover/Database/DeployService/AutoDeploy/SelectSubnetIds.tsx
+++ b/web/packages/teleport/src/Discover/Database/DeployService/AutoDeploy/SelectSubnetIds.tsx
@@ -29,7 +29,7 @@ import {
} from 'design';
import * as Icons from 'design/Icon';
import { FetchStatus } from 'design/DataTable/types';
-import { HoverTooltip, TooltipInfo } from 'design/Tooltip';
+import { HoverTooltip, IconTooltip } from 'design/Tooltip';
import { pluralize } from 'shared/utils/text';
import useAttempt from 'shared/hooks/useAttemptNext';
import { getErrMessage } from 'shared/utils/errorType';
@@ -121,12 +121,12 @@ export function SelectSubnetIds({
<>
Select ECS Subnets
-
+
A subnet has an outbound internet route if it has a route to an
internet gateway or a NAT gateway in a public subnet.
-
+
diff --git a/web/packages/teleport/src/Discover/Database/EnrollRdsDatabase/AutoDiscoverToggle.tsx b/web/packages/teleport/src/Discover/Database/EnrollRdsDatabase/AutoDiscoverToggle.tsx
index 3efbdd3c5230a..617d10ba79790 100644
--- a/web/packages/teleport/src/Discover/Database/EnrollRdsDatabase/AutoDiscoverToggle.tsx
+++ b/web/packages/teleport/src/Discover/Database/EnrollRdsDatabase/AutoDiscoverToggle.tsx
@@ -19,7 +19,7 @@
import React from 'react';
import { Box, Toggle } from 'design';
-import { TooltipInfo } from 'design/Tooltip';
+import { IconTooltip } from 'design/Tooltip';
export function AutoDiscoverToggle({
wantAutoDiscover,
@@ -40,11 +40,11 @@ export function AutoDiscoverToggle({
Auto-enroll all databases for the selected VPC
-
+
Auto-enroll will automatically identify all RDS databases (e.g.
PostgreSQL, MySQL, Aurora) from the selected VPC and register them as
database resources in your infrastructure.
-
+
);
diff --git a/web/packages/teleport/src/Discover/Kubernetes/EnrollEKSCluster/EnrollEksCluster.tsx b/web/packages/teleport/src/Discover/Kubernetes/EnrollEKSCluster/EnrollEksCluster.tsx
index fd5d3c9ae47cb..2505da7275658 100644
--- a/web/packages/teleport/src/Discover/Kubernetes/EnrollEKSCluster/EnrollEksCluster.tsx
+++ b/web/packages/teleport/src/Discover/Kubernetes/EnrollEKSCluster/EnrollEksCluster.tsx
@@ -31,7 +31,7 @@ import { FetchStatus } from 'design/DataTable/types';
import { Danger } from 'design/Alert';
import useAttempt from 'shared/hooks/useAttemptNext';
-import { TooltipInfo } from 'design/Tooltip';
+import { IconTooltip } from 'design/Tooltip';
import { getErrMessage } from 'shared/utils/errorType';
import { EksMeta, useDiscover } from 'teleport/Discover/useDiscover';
@@ -435,11 +435,11 @@ export function EnrollEksCluster(props: AgentStepProps) {
Enable Kubernetes App Discovery
-
+
Teleport's Kubernetes App Discovery will automatically identify
and enroll to Teleport HTTP applications running inside a
Kubernetes cluster.
-
+
Auto-enroll all EKS clusters for selected region
-
+
Auto-enroll will automatically identify all EKS clusters from
the selected region and register them as Kubernetes resources in
your infrastructure.
-
+
{showTable && (
diff --git a/web/packages/teleport/src/Discover/Server/DiscoveryConfigSsm/DiscoveryConfigSsm.tsx b/web/packages/teleport/src/Discover/Server/DiscoveryConfigSsm/DiscoveryConfigSsm.tsx
index fcf513c35da04..6846a09779e53 100644
--- a/web/packages/teleport/src/Discover/Server/DiscoveryConfigSsm/DiscoveryConfigSsm.tsx
+++ b/web/packages/teleport/src/Discover/Server/DiscoveryConfigSsm/DiscoveryConfigSsm.tsx
@@ -30,7 +30,7 @@ import {
import styled from 'styled-components';
import { Danger, Info } from 'design/Alert';
import TextEditor from 'shared/components/TextEditor';
-import { TooltipInfo } from 'design/Tooltip';
+import { IconTooltip } from 'design/Tooltip';
import FieldInput from 'shared/components/FieldInput';
import { Rule } from 'shared/components/Validation/rules';
import Validation, { Validator } from 'shared/components/Validation';
@@ -317,7 +317,7 @@ export function DiscoveryConfigSsm() {
{' '}
to configure your IAM permissions.
-
+
The following IAM permissions will be added as an inline
policy named {IAM_POLICY_NAME} to IAM role{' '}
{arnResourceName}
@@ -330,7 +330,7 @@ export function DiscoveryConfigSsm() {
/>
-
+
Auto-enroll all EC2 instances for selected region
-
+
Auto-enroll will automatically identify all EC2 instances from
the selected region and register them as node resources in
your infrastructure.
-
+
{wantAutoDiscover && (
diff --git a/web/packages/teleport/src/Discover/Shared/Aws/ConfigureIamPerms.tsx b/web/packages/teleport/src/Discover/Shared/Aws/ConfigureIamPerms.tsx
index 46e7127c3dfe7..0c244462b7507 100644
--- a/web/packages/teleport/src/Discover/Shared/Aws/ConfigureIamPerms.tsx
+++ b/web/packages/teleport/src/Discover/Shared/Aws/ConfigureIamPerms.tsx
@@ -21,7 +21,7 @@ import styled from 'styled-components';
import { Flex, Link, Box, H3 } from 'design';
import { assertUnreachable } from 'shared/utils/assertUnreachable';
import TextEditor from 'shared/components/TextEditor';
-import { TooltipInfo } from 'design/Tooltip';
+import { IconTooltip } from 'design/Tooltip';
import { P } from 'design/Text/Text';
@@ -179,11 +179,11 @@ export function ConfigureIamPerms({
<>
Configure your AWS IAM permissions
-
+
The following IAM permissions will be added as an inline policy
named {iamPolicyName} to IAM role {iamRoleName}
{editor}
-
+
{msg} Run the command below on your{' '}
diff --git a/web/packages/teleport/src/Discover/Shared/ConfigureDiscoveryService/ConfigureDiscoveryServiceDirections.tsx b/web/packages/teleport/src/Discover/Shared/ConfigureDiscoveryService/ConfigureDiscoveryServiceDirections.tsx
index 7bf32874c9306..1b56b2d69e270 100644
--- a/web/packages/teleport/src/Discover/Shared/ConfigureDiscoveryService/ConfigureDiscoveryServiceDirections.tsx
+++ b/web/packages/teleport/src/Discover/Shared/ConfigureDiscoveryService/ConfigureDiscoveryServiceDirections.tsx
@@ -18,7 +18,7 @@
import { Box, Flex, Input, Text, Mark, H3, Subtitle3 } from 'design';
import styled from 'styled-components';
-import { TooltipInfo } from 'design/Tooltip';
+import { IconTooltip } from 'design/Tooltip';
import React from 'react';
@@ -71,7 +71,7 @@ discovery_service:
Auto-enrolling requires you to configure a{' '}
Discovery Service
-
+
>
@@ -100,7 +100,7 @@ discovery_service:
Step 2
Define a Discovery Group name{' '}
-
+
diff --git a/web/packages/teleport/src/Discover/Shared/SecurityGroupPicker/SecurityGroupPicker.tsx b/web/packages/teleport/src/Discover/Shared/SecurityGroupPicker/SecurityGroupPicker.tsx
index 6760a8a85d01f..890eeee6cc60a 100644
--- a/web/packages/teleport/src/Discover/Shared/SecurityGroupPicker/SecurityGroupPicker.tsx
+++ b/web/packages/teleport/src/Discover/Shared/SecurityGroupPicker/SecurityGroupPicker.tsx
@@ -23,7 +23,7 @@ import Table, { Cell } from 'design/DataTable';
import { Danger } from 'design/Alert';
import { CheckboxInput } from 'design/Checkbox';
import { FetchStatus } from 'design/DataTable/types';
-import { TooltipInfo } from 'design/Tooltip';
+import { IconTooltip } from 'design/Tooltip';
import { Attempt } from 'shared/hooks/useAttemptNext';
@@ -163,13 +163,13 @@ export const SecurityGroupPicker = ({
if (sg.recommended && sg.tips?.length) {
return (
-
+
{sg.tips.map((tip, index) => (
{tip}
))}
-
+
|
);
}
diff --git a/web/packages/teleport/src/Integrations/Enroll/AwsOidc/ConfigureAwsOidcSummary.tsx b/web/packages/teleport/src/Integrations/Enroll/AwsOidc/ConfigureAwsOidcSummary.tsx
index 21487e5add122..b99521e8719ae 100644
--- a/web/packages/teleport/src/Integrations/Enroll/AwsOidc/ConfigureAwsOidcSummary.tsx
+++ b/web/packages/teleport/src/Integrations/Enroll/AwsOidc/ConfigureAwsOidcSummary.tsx
@@ -20,7 +20,7 @@ import React from 'react';
import styled from 'styled-components';
import { Flex, Box, H3, Text } from 'design';
import TextEditor from 'shared/components/TextEditor';
-import { TooltipInfo } from 'design/Tooltip';
+import { IconTooltip } from 'design/Tooltip';
import useStickyClusterId from 'teleport/useStickyClusterId';
@@ -61,7 +61,7 @@ export function ConfigureAwsOidcSummary({
}`;
return (
-
+
Running the command in AWS CloudShell does the following:
1. Configures an AWS IAM OIDC Identity Provider (IdP)
@@ -76,7 +76,7 @@ export function ConfigureAwsOidcSummary({
/>
-
+
);
}
diff --git a/web/packages/teleport/src/Integrations/Enroll/AwsOidc/S3BucketConfiguration.tsx b/web/packages/teleport/src/Integrations/Enroll/AwsOidc/S3BucketConfiguration.tsx
index c09cacdd713bc..47452f3aa720e 100644
--- a/web/packages/teleport/src/Integrations/Enroll/AwsOidc/S3BucketConfiguration.tsx
+++ b/web/packages/teleport/src/Integrations/Enroll/AwsOidc/S3BucketConfiguration.tsx
@@ -19,7 +19,7 @@
import React from 'react';
import { Text, Flex } from 'design';
import FieldInput from 'shared/components/FieldInput';
-import { TooltipInfo } from 'design/Tooltip';
+import { IconTooltip } from 'design/Tooltip';
export function S3BucketConfiguration({
s3Bucket,
@@ -32,11 +32,11 @@ export function S3BucketConfiguration({
<>
Amazon S3 Location
-
+
Deprecated. Amazon is now validating the IdP certificate against a
list of root CAs. Storing the OpenID Configuration in S3 is no longer
required, and should be removed to improve security.
-
+
{
{getStatusCodeTitle(item.statusCode)}
{statusDescription && (
- {statusDescription}
+ {statusDescription}
)}
diff --git a/web/packages/teleport/src/Navigation/Navigation.tsx b/web/packages/teleport/src/Navigation/Navigation.tsx
index 4bd0453b40f74..e50295ea5a1f9 100644
--- a/web/packages/teleport/src/Navigation/Navigation.tsx
+++ b/web/packages/teleport/src/Navigation/Navigation.tsx
@@ -21,7 +21,7 @@ import styled, { useTheme } from 'styled-components';
import { matchPath, useLocation, useHistory } from 'react-router';
import { Box, Text, Flex } from 'design';
-import { TooltipInfo } from 'design/Tooltip';
+import { IconTooltip } from 'design/Tooltip';
import cfg from 'teleport/config';
import {
@@ -195,9 +195,9 @@ function LicenseFooter({
{title}
-
+
{infoContent}
-
+
{subText}
diff --git a/web/packages/teleport/src/Navigation/SideNavigation/Section.tsx b/web/packages/teleport/src/Navigation/SideNavigation/Section.tsx
index 509cb0bd112d9..eb9d10c111b82 100644
--- a/web/packages/teleport/src/Navigation/SideNavigation/Section.tsx
+++ b/web/packages/teleport/src/Navigation/SideNavigation/Section.tsx
@@ -23,7 +23,7 @@ import styled, { css, useTheme } from 'styled-components';
import { Box, ButtonIcon, Flex, P2, Text } from 'design';
import { Theme } from 'design/theme';
import { ArrowLineLeft } from 'design/Icon';
-import { HoverTooltip, TooltipInfo } from 'design/Tooltip';
+import { HoverTooltip, IconTooltip } from 'design/Tooltip';
import cfg from 'teleport/config';
@@ -470,9 +470,9 @@ function LicenseFooter({
{title}
-
+
{infoContent}
-
+
{subText}
diff --git a/web/packages/teleport/src/Roles/RoleEditor/StandardEditor.tsx b/web/packages/teleport/src/Roles/RoleEditor/StandardEditor.tsx
index 37af3d1a8bdd8..9eefd10718705 100644
--- a/web/packages/teleport/src/Roles/RoleEditor/StandardEditor.tsx
+++ b/web/packages/teleport/src/Roles/RoleEditor/StandardEditor.tsx
@@ -31,7 +31,7 @@ import FieldInput from 'shared/components/FieldInput';
import Validation, { Validator } from 'shared/components/Validation';
import { requiredField } from 'shared/components/Validation/rules';
import * as Icon from 'design/Icon';
-import { HoverTooltip, TooltipInfo } from 'design/Tooltip';
+import { HoverTooltip, IconTooltip } from 'design/Tooltip';
import styled, { useTheme } from 'styled-components';
import { MenuButton, MenuItem } from 'shared/components/MenuAction';
@@ -326,7 +326,7 @@ const Section = ({
{/* TODO(bl-nero): Show validation result in the summary. */}
{title}
- {tooltip && {tooltip} }
+ {tooltip && {tooltip} }
{removable && (
Date: Tue, 3 Dec 2024 16:12:08 +0100
Subject: [PATCH 6/7] review
---
.../components/FieldMultiInput/FieldMultiInput.tsx | 14 +++++++-------
.../shared/components/Validation/Validation.tsx | 6 ++++--
.../shared/components/Validation/rules.test.ts | 4 ++--
web/packages/shared/components/Validation/rules.ts | 4 ++--
.../components/LabelsInput/LabelsInput.test.tsx | 2 +-
.../src/components/LabelsInput/LabelsInput.tsx | 6 +++---
6 files changed, 19 insertions(+), 17 deletions(-)
diff --git a/web/packages/shared/components/FieldMultiInput/FieldMultiInput.tsx b/web/packages/shared/components/FieldMultiInput/FieldMultiInput.tsx
index f323ec7dd268d..48a12d403f313 100644
--- a/web/packages/shared/components/FieldMultiInput/FieldMultiInput.tsx
+++ b/web/packages/shared/components/FieldMultiInput/FieldMultiInput.tsx
@@ -35,13 +35,13 @@ import FieldInput from '../FieldInput';
type StringListValidationResult = ValidationResult & {
/**
- * A list of validation results, one per label. Note: items are optional just
- * because `useRule` by default returns only `ValidationResult`. For the
- * actual validation, it's not optional; if it's undefined, or there are
- * fewer items in this list than the labels, the corresponding items will be
- * treated as valid.
+ * A list of validation results, one per list item. Note: results are
+ * optional just because `useRule` by default returns only
+ * `ValidationResult`. For the actual validation, it's not optional; if it's
+ * undefined, or there are fewer results in this list than the list items,
+ * the corresponding items will be treated as valid.
*/
- items?: ValidationResult[];
+ results?: ValidationResult[];
};
export type FieldMultiInputProps = {
@@ -119,7 +119,7 @@ export function FieldMultiInput({
diff --git a/web/packages/shared/components/Validation/Validation.tsx b/web/packages/shared/components/Validation/Validation.tsx
index b032f452f4dba..e319d061164da 100644
--- a/web/packages/shared/components/Validation/Validation.tsx
+++ b/web/packages/shared/components/Validation/Validation.tsx
@@ -110,7 +110,9 @@ export default class Validator extends Store {
const ValidationContext = React.createContext(undefined);
-type ValidationRenderFunction = (arg: { validator: Validator }) => any;
+type ValidationRenderFunction = (arg: {
+ validator: Validator;
+}) => React.ReactNode;
/**
* Installs a validation context that provides a {@link Validator} store. The
@@ -184,7 +186,7 @@ export function Validation(props: {
export function useValidation(): Validator | undefined {
const validator = React.useContext(ValidationContext);
if (!validator) {
- logger.warn('Missing Validation Context declaration');
+ throw new Error('useValidation() called without a validation context');
}
return useStore(validator);
}
diff --git a/web/packages/shared/components/Validation/rules.test.ts b/web/packages/shared/components/Validation/rules.test.ts
index 1ea9f5a15a541..07ee1bf434d01 100644
--- a/web/packages/shared/components/Validation/rules.test.ts
+++ b/web/packages/shared/components/Validation/rules.test.ts
@@ -190,7 +190,7 @@ test.each([
items: ['a', '', 'c'],
expected: {
valid: false,
- items: [
+ results: [
{ valid: true, message: '' },
{ valid: false, message: 'required' },
{ valid: true, message: '' },
@@ -202,7 +202,7 @@ test.each([
items: ['a', 'b', 'c'],
expected: {
valid: true,
- items: [
+ results: [
{ valid: true, message: '' },
{ valid: true, message: '' },
{ valid: true, message: '' },
diff --git a/web/packages/shared/components/Validation/rules.ts b/web/packages/shared/components/Validation/rules.ts
index 57b07f062a5af..545f28a348fce 100644
--- a/web/packages/shared/components/Validation/rules.ts
+++ b/web/packages/shared/components/Validation/rules.ts
@@ -285,7 +285,7 @@ const requiredAll =
/** A result of the {@link arrayOf} validation rule. */
export type ArrayValidationResult = ValidationResult & {
/** Results of validating each separate item. */
- items: R[];
+ results: R[];
};
/** Validates an array by executing given rule on each of its elements. */
@@ -296,7 +296,7 @@ const arrayOf =
(values: T[]) =>
() => {
const results = values.map(v => elementRule(v)());
- return { items: results, valid: results.every(r => r.valid) };
+ return { results: results, valid: results.every(r => r.valid) };
};
/**
diff --git a/web/packages/teleport/src/components/LabelsInput/LabelsInput.test.tsx b/web/packages/teleport/src/components/LabelsInput/LabelsInput.test.tsx
index 6697f3d5f163b..8f8c07ea95d0c 100644
--- a/web/packages/teleport/src/components/LabelsInput/LabelsInput.test.tsx
+++ b/web/packages/teleport/src/components/LabelsInput/LabelsInput.test.tsx
@@ -183,7 +183,7 @@ describe('validation rules', () => {
}));
return {
valid: results.every(r => r.name.valid && r.value.valid),
- items: results,
+ results: results,
};
};
diff --git a/web/packages/teleport/src/components/LabelsInput/LabelsInput.tsx b/web/packages/teleport/src/components/LabelsInput/LabelsInput.tsx
index c4256375325b7..eee6025249817 100644
--- a/web/packages/teleport/src/components/LabelsInput/LabelsInput.tsx
+++ b/web/packages/teleport/src/components/LabelsInput/LabelsInput.tsx
@@ -51,7 +51,7 @@ type LabelListValidationResult = ValidationResult & {
* fewer items in this list than the labels, a default validation rule will
* be used instead.
*/
- items?: LabelValidationResult[];
+ results?: LabelValidationResult[];
};
type LabelValidationResult = {
@@ -154,7 +154,7 @@ export function LabelsInput({
{labels.map((label, index) => {
const validationItem: LabelValidationResult | undefined =
- validationResult.items?.[index];
+ validationResult.results?.[index];
return (
@@ -246,6 +246,6 @@ export const nonEmptyLabels: LabelsRule = labels => () => {
}));
return {
valid: results.every(r => r.name.valid && r.value.valid),
- items: results,
+ results: results,
};
};
From 5e020d9010cb036085d997eb8eeb0fbe1047f638 Mon Sep 17 00:00:00 2001
From: Bartosz Leper
Date: Wed, 4 Dec 2024 15:41:42 +0100
Subject: [PATCH 7/7] Never return undefined from useValidation()
---
web/packages/shared/components/Validation/Validation.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/packages/shared/components/Validation/Validation.tsx b/web/packages/shared/components/Validation/Validation.tsx
index e319d061164da..6450c2915a61d 100644
--- a/web/packages/shared/components/Validation/Validation.tsx
+++ b/web/packages/shared/components/Validation/Validation.tsx
@@ -183,7 +183,7 @@ export function Validation(props: {
);
}
-export function useValidation(): Validator | undefined {
+export function useValidation(): Validator {
const validator = React.useContext(ValidationContext);
if (!validator) {
throw new Error('useValidation() called without a validation context');