forked from Joystream/atlas
-
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.
- Loading branch information
Showing
22 changed files
with
300 additions
and
128 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
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 was deleted.
Oops, something went wrong.
81 changes: 81 additions & 0 deletions
81
packages/atlas/src/components/_ypp/YppSuspendedBanner/YppSuspendedBanner.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,81 @@ | ||
import { FC } from 'react' | ||
|
||
import { SvgAlertsWarning24 } from '@/assets/icons' | ||
import { Banner } from '@/components/Banner' | ||
import { Text } from '@/components/Text' | ||
import { TextButton } from '@/components/_buttons/Button' | ||
import { cVar } from '@/styles' | ||
|
||
import { List, ListItem, ListItemContent, ListItemMarker } from './YppSuspendedBannerStyles' | ||
|
||
export const YppSuspendedBanner: FC = () => ( | ||
<Banner | ||
title="YouTube Partner Program temporarily suspended" | ||
icon={<SvgAlertsWarning24 />} | ||
borderColor={cVar('colorTextCaution')} | ||
size="medium" | ||
description={ | ||
<> | ||
<Text variant="t200" color="colorText" as="p" margin={{ bottom: 6 }}> | ||
Due to recent technical issues with the YouTube Sync service, the YouTube Partner Program (YPP) has been | ||
temporarily suspended until further notice. | ||
</Text> | ||
<Text variant="t200" color="colorText" as="p" margin={{ bottom: 2 }}> | ||
The issues we identified: | ||
<List> | ||
<ListItem> | ||
<ListItemMarker /> | ||
<ListItemContent> | ||
Some creators were inadvertently removed from YPP due to a bug in the YouTube Sync service ( | ||
<TextButton as="span" to="https://github.com/Joystream/youtube-synch/issues/337"> | ||
GitHub issue | ||
</TextButton> | ||
) | ||
</ListItemContent> | ||
</ListItem> | ||
<ListItem> | ||
<ListItemMarker /> | ||
<ListItemContent> | ||
Recently imposed YouTube rate limits have caused synchronization delays, leaving over 100,000 videos | ||
stuck in the sync queue. | ||
</ListItemContent> | ||
</ListItem> | ||
</List> | ||
</Text> | ||
<Text variant="t200" color="colorText" as="p" margin={{ bottom: 6 }}> | ||
We're actively working to resolve these issues and will provide updates as soon as possible. | ||
</Text> | ||
<Text variant="t200" color="colorText" as="p" margin={{ bottom: 6 }}> | ||
To minimize disruption, we have implemented the following temporary measures: | ||
<List> | ||
<ListItem> | ||
<ListItemMarker /> | ||
<ListItemContent>We disabled new YPP signups.</ListItemContent> | ||
</ListItem> | ||
<ListItem> | ||
<ListItemMarker /> | ||
<ListItemContent>We paused all creator payouts and rewards.</ListItemContent> | ||
</ListItem> | ||
<ListItem> | ||
<ListItemMarker /> | ||
<ListItemContent>We limited content synchronization to selected channels.</ListItemContent> | ||
</ListItem> | ||
</List> | ||
</Text> | ||
<Text variant="t200" color="colorText" as="p" margin={{ bottom: 2 }}> | ||
If you're currently enrolled in YPP, you can still disable YouTube sync or opt out of the program via the{' '} | ||
<Text variant="t200" as="span" color="colorTextStrong"> | ||
Settings | ||
</Text>{' '} | ||
tab. | ||
</Text> | ||
<Text variant="t200" color="colorText" as="p" margin={{ bottom: 2 }}> | ||
Please note that these actions are currently irreversible. | ||
</Text> | ||
<Text variant="t200" color="colorText" as="p"> | ||
We apologize for any inconvenience and appreciate your understanding. | ||
</Text> | ||
</> | ||
} | ||
/> | ||
) |
29 changes: 29 additions & 0 deletions
29
packages/atlas/src/components/_ypp/YppSuspendedBanner/YppSuspendedBannerStyles.ts
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,29 @@ | ||
import styled from '@emotion/styled' | ||
|
||
import { cVar, sizes } from '@/styles' | ||
|
||
export const List = styled.ul` | ||
margin: ${sizes(2)} 0; | ||
padding: 0 0 0 ${sizes(4)}; | ||
list-style-type: none; | ||
` | ||
export const ListItem = styled.li` | ||
padding: 0; | ||
margin: 0 0 ${sizes(2)} 0; | ||
display: flex; | ||
align-items: flex-start; | ||
` | ||
|
||
export const ListItemMarker = styled.div` | ||
min-width: 6px; | ||
min-height: 6px; | ||
border-radius: 50%; | ||
width: 6px; | ||
height: 6px; | ||
margin: ${sizes(1.5)} ${sizes(3)} 0 0; | ||
background-color: ${cVar('colorText')}; | ||
` | ||
|
||
export const ListItemContent = styled.div` | ||
flex: 1; | ||
` |
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 @@ | ||
export * from './YppSuspendedBanner' |
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
File renamed without changes.
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 @@ | ||
export * from './YppSuspendedModal' |
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.