diff --git a/frontend/src/component/personalDashboard/ConnectSDK.tsx b/frontend/src/component/personalDashboard/ConnectSDK.tsx index 9d91ae15dace..497c7c8a1493 100644 --- a/frontend/src/component/personalDashboard/ConnectSDK.tsx +++ b/frontend/src/component/personalDashboard/ConnectSDK.tsx @@ -1,4 +1,4 @@ -import { Button, styled } from '@mui/material'; +import { Button, styled, Typography } from '@mui/material'; import type { FC } from 'react'; const TitleContainer = styled('div')(({ theme }) => ({ @@ -20,6 +20,22 @@ const NeutralCircleContainer = styled('span')(({ theme }) => ({ borderRadius: '50%', })); +const MainCircleContainer = styled(NeutralCircleContainer)(({ theme }) => ({ + backgroundColor: theme.palette.primary.main, + color: theme.palette.background.paper, +})); + +const SuccessContainer = styled('div')(({ theme }) => ({ + display: 'flex', + flexDirection: 'column', + + fontSize: theme.spacing(1.75), + fontWeight: 'bold', + backgroundColor: theme.palette.success.light, + borderRadius: theme.shape.borderRadiusLarge, + padding: theme.spacing(2, 2, 2, 2), +})); + const ActionBox = styled('div')(({ theme }) => ({ flexBasis: '50%', padding: theme.spacing(4, 2), @@ -48,6 +64,30 @@ export const CreateFlag: FC<{ project: string }> = ({ project }) => { ); }; +export const ExistingFlag: FC<{ project: string }> = ({ project }) => { + return ( + + + + Create a feature flag + + + + You have created your first flag + + + Go to the project to customize the flag further. + + +
+ +
+
+ ); +}; + export const ConnectSDK: FC<{ project: string }> = ({ project }) => { return ( diff --git a/frontend/src/component/personalDashboard/PersonalDashboard.tsx b/frontend/src/component/personalDashboard/PersonalDashboard.tsx index 3fdde6e8d765..400746841588 100644 --- a/frontend/src/component/personalDashboard/PersonalDashboard.tsx +++ b/frontend/src/component/personalDashboard/PersonalDashboard.tsx @@ -15,7 +15,7 @@ import { ProjectIcon } from 'component/common/ProjectIcon/ProjectIcon'; import React, { type FC, useEffect, useState } from 'react'; import LinkIcon from '@mui/icons-material/Link'; import { Badge } from '../common/Badge/Badge'; -import { ConnectSDK, CreateFlag } from './ConnectSDK'; +import { ConnectSDK, CreateFlag, ExistingFlag } from './ConnectSDK'; import { WelcomeDialog } from './WelcomeDialog'; import { useLocalStorageState } from 'hooks/useLocalStorageState'; import { ProjectSetupComplete } from './ProjectSetupComplete'; @@ -298,9 +298,13 @@ export const PersonalDashboard = () => { {stage === 'onboarded' ? ( - ) : activeProject ? ( + ) : null} + {stage === 'onboarding-started' ? ( ) : null} + {stage === 'first-flag-created' ? ( + + ) : null} {stage === 'onboarded' &&