generated from 8iq/nodejs-hackathon-boilerplate-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(condo): DOMA-8414 tour page (#4462)
* feat(condo): DOMA-8414 added tour icon to side bar * feat(condo): DOMA-8414 added basic tour page * feat(condo): DOMA-8414 added basic ticket flow * feat(condo): DOMA-8414 added tour flow for ticket and meter * feat(condo): DOMA-8414 added billing step * feat(condo): DOMA-8414 tour mobile screen * feat(condo): DOMA-8414 added sync steps mutation * feat(condo): DOMA-8414 sync organization steps * feat(condo): DOMA-8414 disabled step tooltips * fix(condo): DOMA-8414 open complete modal when createNews step completed * feat(condo): DOMA-8414 added modals in technic app card * feat(condo): DOMA-8414 added accesses and tests for SyncTourSteps mutation * fix(condo): DOMA-8414 remove second step from active step from storage * feat(condo): DOMA-8414 refactor code * fix(condo): DOMA-8414 added useCompletedTourStepsData hook * fix(condo): DOMA-8414 removed hook to useCompletedTourModals and returns modals from it * fix(condo): DOMA-8414 added translations * fix(condo): DOMA-8414 refactor useCompletedTourModals modals data getters * fix(condo): DOMA-8414 added translations * feat(condo): DOMA-8414 update SyncTourStepsService tests * fix(condo): DOMA-8414 fix semgrep issues * feat(condo): DOMA-8618 added analytics to tour events * feat(condo): DOMA-8414 disable all iner todo steps instead first todo step * feat(condo): DOMA-8414 added videos to tour page and moved links to env * fix(condo): DOMA-8414 fixes after review * feat(condo): DOMA-8626 new property form * feat(condo): DOMA-8414 added video to map creation form * feat(condo): DOMA-8312 added tour step to ticket and property form * feat(condo): DOMA-8312 added hints on property map create * feat(condo): DOMA-8414 update redirects after organization created * feat(condo): DOMA-8414 redirect to tour after create organization * feat(condo): DOMA-8414 added no address modal * feat(condo): DOMA-8414 fixes after review * chore(condo): DOMA-8414 recreate migration * fix(condo): DOMA-8414 update tour video env * feat(condo): DOMA-8414 added notFound content for property address search select and unit select * chore(condo): DOMA-8414 recreate migration * feat(condo): DOMA-8414 add README.md * feat(condo): DOMA-8414 rename control room to tickets in side bar * chore(condo): DOMA-8414 recreate migration * feat(condo): DOMA-8644 added pics for technic card * fix(condo): DOMA-8414 remove size value 32 from space props * fix(condo): DOMA-8414 fix initial notFoundContent in AddressSuggestionsSearchInput * fix(condo): DOMA-8414 fix link with icon spacing * fix(condo): DOMA-8669 update base search input styles * fix(condo): DOMA-8414 fixed technic app card images * fix(condo): DOMA-8414 fix ticket empty list view * fix(condo): DOMA-8414 fix translations * fix(condo): DOMA-8414 fix redirect routes * fix(condo): DOMA-8414 fix tooltip and focus
- Loading branch information
1 parent
1d0c94e
commit 656c94e
Showing
95 changed files
with
3,641 additions
and
416 deletions.
There are no files selected for viewing
Submodule .helm
updated
from d8e8d1 to cf5513
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import React, { CSSProperties, useEffect, useState } from 'react' | ||
|
||
import { Card, Space, Typography } from '@open-condo/ui' | ||
|
||
import { Loader } from './Loader' | ||
|
||
|
||
const CARD_VIDEO_WRAPPER_STYLES: CSSProperties = { | ||
borderRadius: '12px', | ||
overflow: 'hidden', | ||
height: '260px', | ||
width: '100%', | ||
display: 'flex', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
} | ||
|
||
export const CardVideo = ({ src, title, description }) => { | ||
const [loading, setLoading] = useState<boolean>(true) | ||
|
||
useEffect(() => { | ||
setLoading(true) | ||
}, [src]) | ||
|
||
return ( | ||
<Card hoverable> | ||
<Space size={24} direction='vertical'> | ||
<div style={CARD_VIDEO_WRAPPER_STYLES}> | ||
<iframe | ||
width='100%' | ||
height='100%' | ||
src={src} | ||
frameBorder='0' | ||
onLoad={() => setLoading(false)} | ||
hidden={loading} | ||
allowFullScreen | ||
/> | ||
{loading && <Loader size='large' />} | ||
</div> | ||
<Space size={8} direction='vertical'> | ||
<Typography.Title level={2}>{title}</Typography.Title> | ||
<Typography.Paragraph type='secondary'>{description}</Typography.Paragraph> | ||
</Space> | ||
</Space> | ||
</Card> | ||
) | ||
} |
13 changes: 13 additions & 0 deletions
13
apps/condo/domains/common/components/Form/FormItemTooltipWrapper.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,13 @@ | ||
import { CSSProperties, useMemo } from 'react' | ||
|
||
|
||
export const FormItemTooltipWrapper = ({ children, padding = '10px 8px' }) => { | ||
const wrapperStyles: CSSProperties = useMemo(() => | ||
({ display: 'flex', flexDirection: 'column', gap: '8px', padding }), [padding]) | ||
|
||
return ( | ||
<div style={wrapperStyles}> | ||
{children} | ||
</div> | ||
) | ||
} |
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import Link from 'next/link' | ||
import React, { useMemo } from 'react' | ||
|
||
import { IconProps } from '@open-condo/icons' | ||
import { Typography, TypographyLinkProps } from '@open-condo/ui' | ||
|
||
|
||
type LinkWithIconPropsType = { | ||
href?: string | ||
onClick?: () => void | ||
title: string | ||
size: TypographyLinkProps['size'] | ||
target?: '_self' | '_blank' | ||
PrefixIcon?: React.ComponentType<IconProps> | ||
PostfixIcon?: React.ComponentType<IconProps> | ||
} | ||
|
||
const CONTENT_WRAPPER_STYLE = { display: 'inline-flex', textDecoration: 'underline', flexFlow: 'row', gap: '8px', alignItems: 'center' } | ||
|
||
export const LinkWithIcon: React.FC<LinkWithIconPropsType> = ({ href, title, size, onClick, PrefixIcon, PostfixIcon, target = '_self' }) => { | ||
const linkContent = useMemo(() => ( | ||
<div style={CONTENT_WRAPPER_STYLE}> | ||
{PrefixIcon && <PrefixIcon size='small' />} | ||
{title} | ||
{PostfixIcon && <PostfixIcon size='small' />} | ||
</div> | ||
), [PostfixIcon, PrefixIcon, title]) | ||
|
||
if (target === '_blank' || !href) { | ||
return ( | ||
<Typography.Link | ||
href={href} | ||
onClick={onClick} | ||
target='_blank' | ||
size={size} | ||
> | ||
{linkContent} | ||
</Typography.Link> | ||
) | ||
} | ||
|
||
return ( | ||
<Link href={href}> | ||
<Typography.Link size={size} onClick={onClick}> | ||
{linkContent} | ||
</Typography.Link> | ||
</Link> | ||
) | ||
} |
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
Oops, something went wrong.