diff --git a/frontend/src/lib/components/icons.tsx b/frontend/src/lib/components/icons.tsx
index 0a44f93d842..e7a951bb0a7 100644
--- a/frontend/src/lib/components/icons.tsx
+++ b/frontend/src/lib/components/icons.tsx
@@ -428,25 +428,77 @@ export function DiveIcon({ style }: { style?: CSSProperties }): JSX.Element {
)
}
-// Antd arrows rotated at convenient angles
-
-export function ArrowTopLeftOutlined({ style }: { style?: CSSProperties }): JSX.Element {
+export function IconInfinity({ style }: { style?: CSSProperties }): JSX.Element {
return (
-
+
+ )
+}
+
+export function IconPathsCompletedArrow(): JSX.Element {
+ return (
+
+ )
+}
+
+export function IconPathsDropoffArrow(): JSX.Element {
+ return (
+
+ )
+}
+
+export function IconTrendUp({ style }: { style?: CSSProperties }): JSX.Element {
+ return (
+
+ )
+}
+
+export function IconFeedbackWarning({ style }: { style?: CSSProperties }): JSX.Element {
+ return (
+
+ )
+}
+
+// AntD arrows rotated at convenient angles
+
+export function ArrowBottomRightOutlined({ style }: { style?: CSSProperties }): JSX.Element {
+ return (
+
{SAVED_INSIGHTS_COPY[tab].description}
diff --git a/frontend/src/scenes/insights/FunnelCorrelation.scss b/frontend/src/scenes/insights/FunnelCorrelation.scss new file mode 100644 index 00000000000..c06c780b340 --- /dev/null +++ b/frontend/src/scenes/insights/FunnelCorrelation.scss @@ -0,0 +1,36 @@ +@import '~/vars'; + +.funnel-correlation { + .skew-warning { + margin-top: $default_spacing; + line-height: 2em; + border: 1px solid $warning; + + .ant-card-body { + padding: $default_spacing / 2 $default_spacing; + } + + h4 { + font-size: 1.1em; + display: flex; + align-items: center; + border-bottom: 1px solid $border; + padding: $default_spacing / 2 $default_spacing; + margin-left: -$default_spacing; + margin-right: -$default_spacing; + position: relative; + + .close-button { + position: absolute; + right: 16px; + color: $text_muted !important; + cursor: pointer; + } + } + + b { + padding-bottom: $default_spacing / 2; + font-weight: $medium; + } + } +} diff --git a/frontend/src/scenes/insights/FunnelCorrelation.tsx b/frontend/src/scenes/insights/FunnelCorrelation.tsx index 8f2c4690a3a..0f295e1d71a 100644 --- a/frontend/src/scenes/insights/FunnelCorrelation.tsx +++ b/frontend/src/scenes/insights/FunnelCorrelation.tsx @@ -1,37 +1,47 @@ import { Card } from 'antd' -import { useValues } from 'kea' +import { useActions, useValues } from 'kea' import React from 'react' import { funnelLogic } from 'scenes/funnels/funnelLogic' import { insightLogic } from './insightLogic' -import WarningOutlined from '@ant-design/icons/lib/icons/WarningOutlined' - +import './FunnelCorrelation.scss' import { FunnelCorrelationTable } from './InsightTabs/FunnelTab/FunnelCorrelationTable' import { FunnelPropertyCorrelationTable } from './InsightTabs/FunnelTab/FunnelPropertyCorrelationTable' +import { IconFeedbackWarning } from 'lib/components/icons' +import { CloseOutlined } from '@ant-design/icons' -export const FunnelCorrelation = (): JSX.Element => { +export const FunnelCorrelation = (): JSX.Element | null => { const { insightProps } = useValues(insightLogic) const { isSkewed, stepsWithCount } = useValues(funnelLogic(insightProps)) + const { hideSkewWarning } = useActions(funnelLogic(insightProps)) - return stepsWithCount.length > 1 ? ( - <> - {isSkewed ? ( -