Skip to content
This repository has been archived by the owner on Feb 25, 2024. It is now read-only.

Commit

Permalink
Separate out viz and Stately editor info on welcome screen
Browse files Browse the repository at this point in the history
  • Loading branch information
laurakalbag committed Nov 1, 2023
1 parent c80b891 commit 87274e1
Showing 1 changed file with 33 additions and 8 deletions.
41 changes: 33 additions & 8 deletions src/WelcomeArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
Box,
Button,
ButtonProps,
Heading,
HStack,
Link,
Stack,
Expand Down Expand Up @@ -131,22 +132,22 @@ export const WelcomeArea = () => {
<>
<Stack spacing="6">
<Stack>
<Title>XState Visualizer (Legacy)</Title>
<Title size="lg">Stately Visualizer</Title>

Check failure on line 135 in src/WelcomeArea.tsx

View workflow job for this annotation

GitHub Actions / cypress-tests

Type '{ children: string; size: string; }' is not assignable to type 'IntrinsicAttributes & { children?: ReactNode; }'.
<Description>
Welcome to the legacy visualizer! Here, you can continue to
build state machine diagrams using XState.{' '}
Build state machine diagrams using XState.{' '}
</Description>
<Description>
For a better experience,{' '}
For the best experience,{' '}
<Link
href="https://stately.ai?source=viz"
target="_blank"
color="blue.300"
>
use our Stately visual editor
use our Stately visualizer
</Link>{' '}
to build state machines visually, generate machines from text
descriptions, export to XState V5, and much much more.
to build and visualize state machines. You can create with
drag-and-drop, generate machines from text descriptions,
export to XState V5, and more.
</Description>
</Stack>
<Stack spacing="3">
Expand All @@ -160,9 +161,33 @@ export const WelcomeArea = () => {
>
<HStack spacing="4">
<MagicIcon color="gray.200" h="6" w="6" />
<Text color="gray.100">Use the Stately visual editor</Text>
<Text color="gray.100">Use the new Stately visualizer</Text>
</HStack>
</Button>
<Heading size="md" paddingTop="3">
XState Legacy Visualizer
</Heading>
<Description>
This legacy visualizer is deprecated and is no longer
maintained. We recommend migrating your state machines to use
the{' '}
<Link
href="https://stately.ai?source=viz"
target="_blank"
color="blue.300"
>
new Stately visualizer
</Link>
.{' '}
<Link
href="https://stately.ai/docs/visualizer"
target="_blank"
color="blue.300"
>
Read our docs for more information on the differences
between the legacy visualizer and new visualizer.
</Link>
</Description>
<Button
{...buttonStyleProps}
onClick={() => send('CLICK_SEE_EXAMPLE')}
Expand Down

0 comments on commit 87274e1

Please sign in to comment.