forked from novuhq/novu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(web,novui): Add Studio onboarding (novuhq#5646)
- Loading branch information
1 parent
d27cf87
commit b0402e4
Showing
35 changed files
with
1,175 additions
and
263 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
Submodule .source
updated
from b7ebc0 to ac8908
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 |
---|---|---|
|
@@ -197,4 +197,4 @@ | |
} | ||
] | ||
} | ||
} | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import { CONTEXT_PATH } from '../config'; | ||
|
||
export const COMPANY_LOGO_PATH = CONTEXT_PATH + '/static/images/novu.svg'; | ||
|
||
export const COMPANY_LOGO_TEXT_PATH = CONTEXT_PATH + '/static/images/novu-text.svg'; |
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
1 change: 0 additions & 1 deletion
1
apps/web/src/pages/get-started/components/timeline/Timeline.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
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
104 changes: 104 additions & 0 deletions
104
apps/web/src/pages/studio-onboarding/components/Footer.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,104 @@ | ||
import { text } from '@novu/novui/recipes'; | ||
import { HStack, styled, VStack } from '@novu/novui/jsx'; | ||
import { Tooltip } from '@novu/design-system'; | ||
import { IconOutlineMenuBook } from '@novu/novui/icons'; | ||
import { useLocation, useNavigate } from 'react-router-dom'; | ||
import { css } from '@novu/novui/css'; | ||
import { When } from '../../../components/utils/When'; | ||
import { DocsButton } from '../../../components/docs/DocsButton'; | ||
import { Button } from '@novu/novui'; | ||
import { useSegment } from '../../../components/providers/SegmentProvider'; | ||
import { ROUTES } from '../../../constants/routes'; | ||
|
||
const Text = styled('a', text); | ||
|
||
export const Footer = ({ | ||
canSkipSetup = true, | ||
showLearnMore = true, | ||
buttonText = 'Continue', | ||
onClick, | ||
loading = false, | ||
tooltip = '', | ||
disabled = false, | ||
}: { | ||
canSkipSetup?: boolean; | ||
showLearnMore?: boolean; | ||
buttonText?: string; | ||
onClick?: () => void; | ||
loading?: boolean; | ||
tooltip?: string; | ||
disabled?: boolean; | ||
}) => { | ||
const segment = useSegment(); | ||
const navigate = useNavigate(); | ||
const { pathname } = useLocation(); | ||
|
||
return ( | ||
<div | ||
className={css({ | ||
paddingTop: '50', | ||
paddingBottom: '100', | ||
backgroundColor: 'surface.panel', | ||
position: 'fixed', | ||
bottom: 0, | ||
left: 0, | ||
right: 0, | ||
zIndex: 'docked', | ||
})} | ||
> | ||
<VStack alignContent="center" className={css({ height: '250' })}> | ||
<HStack | ||
justify="space-between" | ||
className={css({ | ||
width: 'onboarding', | ||
})} | ||
> | ||
<div> | ||
<When truthy={showLearnMore}> | ||
<DocsButton | ||
TriggerButton={({ onClick: onDocsClick }) => ( | ||
<HStack gap="50" className={css({ color: 'typography.text.secondary' })}> | ||
<IconOutlineMenuBook /> | ||
<Text | ||
onClick={(e) => { | ||
e.preventDefault(); | ||
segment.track('Documentation linked clicked - [Onboarding - Signup]', { | ||
step: pathname, | ||
}); | ||
onDocsClick(); | ||
}} | ||
href="" | ||
> | ||
Learn more in our docs | ||
</Text> | ||
</HStack> | ||
)} | ||
/> | ||
</When> | ||
</div> | ||
<HStack gap="100"> | ||
<When truthy={canSkipSetup}> | ||
<Button | ||
disabled={loading} | ||
onClick={() => { | ||
segment.track('Skip setup button clicked - [Onboarding - Signup]', { | ||
step: pathname, | ||
}); | ||
navigate(ROUTES.WORKFLOWS); | ||
}} | ||
variant="transparent" | ||
> | ||
Skip setup | ||
</Button> | ||
</When> | ||
<Tooltip label={tooltip} disabled={!tooltip}> | ||
<Button loading={loading} onClick={onClick} disabled={disabled}> | ||
{buttonText} | ||
</Button> | ||
</Tooltip> | ||
</HStack> | ||
</HStack> | ||
</VStack> | ||
</div> | ||
); | ||
}; |
Oops, something went wrong.