-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
templates: add more changes before release (#761)
Details - Refactor empty flows page to use the same tile component from templates page - Modify schedule reminder template details - Add new badge to templates sidebar item - Change whats new date --------- Co-authored-by: Ian Chen <[email protected]>
- Loading branch information
1 parent
cace44c
commit 90eab86
Showing
12 changed files
with
191 additions
and
276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 0 additions & 52 deletions
52
packages/frontend/src/components/EmptyFlows/FlowTemplate.tsx
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,7 @@ const drawerLinks = [ | |
text: 'Templates', | ||
to: URLS.TEMPLATES, | ||
isBottom: true, | ||
badge: 'New', | ||
}, | ||
] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 14 additions & 9 deletions
23
packages/frontend/src/pages/Flows/components/ApproveTransfersInfobox.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
packages/frontend/src/pages/Flows/components/EmptyFlows.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
import { useNavigate } from 'react-router-dom' | ||
import { Box, Flex, Hide, Text } from '@chakra-ui/react' | ||
import { Tile } from '@opengovsg/design-system-react' | ||
|
||
import NavigationDrawer from '@/components/Layout/NavigationDrawer' | ||
import * as URLS from '@/config/urls' | ||
import { TemplateIcon } from '@/helpers/flow-templates' | ||
|
||
export default function EmptyFlows({ onCreate }: { onCreate: () => void }) { | ||
const navigate = useNavigate() | ||
|
||
return ( | ||
<Flex | ||
maxW="600px" | ||
margin="auto" | ||
rowGap={4} | ||
flexDir="column" | ||
pt={{ base: '0', md: '10vh' }} | ||
> | ||
<Flex maxW="400px"> | ||
<Hide above="sm"> | ||
<Box mt={-1.5}> | ||
<NavigationDrawer /> | ||
</Box> | ||
</Hide> | ||
<Text textStyle="h3">How do you want to create your pipe?</Text> | ||
</Flex> | ||
|
||
<Flex gap={4} flexDir={{ base: 'column', md: 'row' }}> | ||
<Tile | ||
icon={() => ( | ||
<Box py={2}> | ||
<TemplateIcon iconName="BiBookOpen" fontSize="2rem" /> | ||
</Box> | ||
)} | ||
display="flex" | ||
flex="1" | ||
onClick={() => navigate(URLS.TEMPLATES)} | ||
> | ||
<Flex flexDir="column" gap={2} mt={2}> | ||
<Text textStyle="subhead-1">Use a template</Text> | ||
<Text textStyle="body-2"> | ||
Select from pre-built workflows that you can use as-is or | ||
customize further for your own use case | ||
</Text> | ||
</Flex> | ||
</Tile> | ||
|
||
<Tile | ||
icon={() => ( | ||
<Box py={2}> | ||
<TemplateIcon iconName="BiPlus" fontSize="2rem" /> | ||
</Box> | ||
)} | ||
display="flex" | ||
flex="1" | ||
onClick={onCreate} | ||
> | ||
<Flex flexDir="column" gap={2} mt={2}> | ||
<Text textStyle="subhead-1">Start from scratch</Text> | ||
<Text textStyle="body-2"> | ||
Use our workflow builder to create your own workflow | ||
</Text> | ||
</Flex> | ||
</Tile> | ||
</Flex> | ||
</Flex> | ||
) | ||
} |
Oops, something went wrong.