Skip to content

Commit

Permalink
Release v4.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
attemka authored Aug 21, 2023
2 parents 4330b2f + 97f6e86 commit 8cbef77
Show file tree
Hide file tree
Showing 13 changed files with 38 additions and 13 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [4.6.1] - 2023-08-21

### Changed

- Changed retries amount for asset upload
- Changed copy for Google button

### Fixed

- Fixed double segment call for YPP dashboard
- Fixed more error with crashes when Google Translate is used

## [4.6.0] - 2023-08-17

### Added
Expand Down
2 changes: 1 addition & 1 deletion packages/atlas/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@joystream/atlas",
"description": "UI for consuming Joystream - a user governed video platform",
"version": "4.6.0",
"version": "4.6.1",
"license": "GPL-3.0",
"scripts": {
"start": "vite",
Expand Down
2 changes: 1 addition & 1 deletion packages/atlas/src/components/Fee/Fee.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const Fee: FC<FeeProps> = ({
{(!hideOnMobile || smMatch) && (
<>
<Text as="span" variant={variant} color={color}>
Fee:&nbsp;{feeNumber < 0.01 && feeNumber !== 0 && '<'}&nbsp;
Fee:&nbsp;{feeNumber < 0.01 && feeNumber !== 0 && <span>{'<'}</span>}&nbsp;
</Text>
<NumberFormat
withToken={withToken}
Expand Down
6 changes: 3 additions & 3 deletions packages/atlas/src/components/NumberFormat/NumberFormat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export const NumberFormat = forwardRef<HTMLHeadingElement, NumberFormatProps>(
ref={denominationRef}
>
({formattedDenominatedValue !== '<$0.01' ? <span>$</span> : null}
{formattedDenominatedValue}){' '}
<span>{formattedDenominatedValue}</span>){' '}
</Text>
)}
<StyledText
Expand All @@ -115,7 +115,7 @@ export const NumberFormat = forwardRef<HTMLHeadingElement, NumberFormatProps>(
>
{' '}
({formattedDenominatedValue !== '<$0.01' ? <span>$</span> : null}
{formattedDenominatedValue}){' '}
<span>{formattedDenominatedValue}</span>){' '}
</Text>
)}
</ContentContainer>
Expand Down Expand Up @@ -143,7 +143,7 @@ export const NumberFormat = forwardRef<HTMLHeadingElement, NumberFormatProps>(
ref={denominationRef}
>
{formattedDenominatedValue !== '<$0.01' ? <span>$</span> : null}
{formattedDenominatedValue}
<span>{formattedDenominatedValue}</span>
</Denomination>
)}
</Container>
Expand Down
4 changes: 2 additions & 2 deletions packages/atlas/src/components/_auth/LogInModal/LogInModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ export const LogInModal = () => {
<AuthenticationModalStepTemplate
title="Sign in"
subtitle={
<>
<span>
Use your {atlasConfig.general.appName} account.{' '}
<TextButton onClick={() => setAuthModalOpenName('signUp')}>Create account</TextButton>
</>
</span>
}
hasNavigatedBack
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const GoogleButton = ({ label, ...rest }: GoogleButtonProps) => {
<IconContainer>
<SvgGoogleSmallLogo />
</IconContainer>
<span>Sign in with Google</span>
<span>Sign up with Google</span>
</StyledButton>
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ const VideoPlayerComponent: ForwardRefRenderFunction<HTMLVideoElement, VideoPlay
totalLength: video?.duration ?? -1,
fullScreen: isFullScreen,
quality: video?.mediaMetadata?.pixelHeight?.toString() ?? '1',
isNft: !!video?.nft?.id,
}),
[
videoId,
Expand All @@ -197,6 +198,7 @@ const VideoPlayerComponent: ForwardRefRenderFunction<HTMLVideoElement, VideoPlay
video?.category?.name,
video?.duration,
video?.mediaMetadata?.pixelHeight,
video?.nft?.id,
isFullScreen,
]
)
Expand Down
2 changes: 2 additions & 0 deletions packages/atlas/src/hooks/useSegmentAnalytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export type videoPlaybackParams = {
totalLength: number
fullScreen: boolean
quality: string
isNft?: boolean
}

type PageViewParams = {
Expand All @@ -25,6 +26,7 @@ type PageViewParams = {
type VideoPageViewParams = {
videoId?: string
videoTitle?: string
isNft?: boolean
category?: string
}

Expand Down
2 changes: 1 addition & 1 deletion packages/atlas/src/providers/uploads/uploads.hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { InputAssetUpload, StartFileUploadOptions } from './uploads.types'

import { useSnackbar } from '../snackbars'

const MAX_BUCKET_RETRY = 1
const MAX_BUCKET_RETRY = 3
const RETRIES_COUNT = 3
const RETRY_DELAY = 1000
const UPLOADING_SNACKBAR_TIMEOUT = 8000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const PlaygroundGoogleAuthentication: FC = () => {

return (
<>
<Button onClick={oauthSignIn}>Sign in with Google</Button>
<Button onClick={oauthSignIn}>Sign up with Google</Button>
{code && (
<>
<Text as="h2" variant="h400" margin={{ top: 4 }}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const VideoWorkspace: FC = memo(() => {
disabled: formStatus?.isDisabled,
onClick: () => {
!isEdit && trackPublishAndUploadClicked(activeChannel?.id)
return formStatus?.triggerFormSubmit
formStatus?.triggerFormSubmit()
},
text: formStatus?.actionBarPrimaryText,
},
Expand Down
10 changes: 9 additions & 1 deletion packages/atlas/src/views/studio/YppDashboard/YppDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { atlasConfig } from '@/config'
import { useHeadTags } from '@/hooks/useHeadTags'
import { useMediaMatch } from '@/hooks/useMediaMatch'
import { useSegmentAnalytics } from '@/hooks/useSegmentAnalytics'
import { useUploadsStore } from '@/providers/uploads/uploads.store'
import { useGetYppSyncedChannels } from '@/views/global/YppLandingView/useGetYppSyncedChannels'
import { YppDashboardReferralsTab } from '@/views/studio/YppDashboard/tabs/YppDashboardReferralsTab/YppDashboardReferralsTab'

Expand All @@ -32,6 +33,7 @@ export const YppDashboard: FC = () => {
const [currentVideosTab, setCurrentVideosTab] = useState(0)
const { currentChannel, isLoading } = useGetYppSyncedChannels()
const { trackPageView } = useSegmentAnalytics()
const { processingAssets, uploads } = useUploadsStore()

const subscribersCount = currentChannel?.subscribersCount || 0
const currentTier = TIERS.reduce((prev, current, idx) => {
Expand All @@ -43,8 +45,14 @@ export const YppDashboard: FC = () => {
}, 0)

useEffect(() => {
// if user avatar is currently processing membership will be refetched when it's uploaded,
// which will trigger page view event
const avatarId = uploads.find((upload) => upload.type === 'avatar')?.id
if (avatarId && processingAssets.some((asset) => asset.id === avatarId)) {
return
}
trackPageView('YPP Dashboard', { tab: TABS[currentVideosTab] })
}, [currentVideosTab, trackPageView])
}, [currentVideosTab, processingAssets, trackPageView, uploads])

const tiersTooltip = atlasConfig.features.ypp.tiersDefinition?.tiersTooltip

Expand Down
3 changes: 2 additions & 1 deletion packages/atlas/src/views/viewer/VideoView/VideoView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,11 @@ export const VideoView: FC = () => {
trackPageView('Video', {
videoId: video.id,
videoTitle: video.title || undefined,
isNft: !!video.nft?.id,
category: video.category?.name || undefined,
})
}
}, [trackPageView, video?.category?.name, video?.id, video?.title])
}, [trackPageView, video?.category?.name, video?.id, video?.nft?.id, video?.title])

const videoMetaTags = useMemo(() => {
if (!video || !thumbnailUrls) return {}
Expand Down

0 comments on commit 8cbef77

Please sign in to comment.