🚸(frontend) add beta warning about recording link sharing limitations

Display notice on recording page that link sharing is not available in
beta to prevent user confusion and set proper expectations.
This commit is contained in:
lebaudantoine
2025-07-11 12:50:41 +02:00
committed by aleb_the_flash
parent d85ed031a9
commit 2a39978245
5 changed files with 64 additions and 4 deletions

View File

@@ -14,6 +14,28 @@ import { fetchRecording } from '../api/fetchRecording'
import { RecordingStatus } from '@/features/recording'
import { useConfig } from '@/api/useConfig'
const BetaBadge = () => (
<span
className={css({
content: '"Beta"',
display: 'block',
letterSpacing: '-0.02rem',
padding: '0 0.25rem',
backgroundColor: 'primary.100',
color: '#0063CB',
fontSize: '14px',
fontWeight: 500,
margin: '0 0.3125rem',
lineHeight: '1rem',
borderRadius: '4px',
width: 'fit-content',
height: 'fit-content',
})}
>
Beta
</span>
)
export const RecordingDownload = () => {
const { t } = useTranslation('recording')
const { data: configData } = useConfig()
@@ -107,6 +129,28 @@ export const RecordingDownload = () => {
>
{t('success.button')}
</LinkButton>
<div
className={css({
backgroundColor: 'greyscale.50',
borderRadius: '5px',
paddingY: '1rem',
paddingX: '1rem',
maxWidth: '80%',
marginTop: '1rem',
display: 'flex',
flexDirection: 'column',
})}
>
<Text
className={css({
display: 'flex',
alignItems: 'center',
})}
>
{t('success.warning.title')} <BetaBadge />
</Text>
<Text variant="smNote">{t('success.warning.body')}</Text>
</div>
</VStack>
</Center>
</Screen>

View File

@@ -19,6 +19,10 @@
"title": "Ihre Aufzeichnung ist bereit!",
"body": "Aufzeichnung des Treffens <b>{{room}}</b> vom {{created_at}}.",
"expiration": "Achtung, diese Aufzeichnung wird nach {{expiration_days}} Tag(en) gelöscht.",
"button": "Herunterladen"
"button": "Herunterladen",
"warning": {
"title": "Linkfreigabe deaktiviert",
"body": "Die Freigabe der Aufzeichnung per Link ist noch nicht verfügbar. Nur Organisatoren können sie herunterladen."
}
}
}

View File

@@ -19,6 +19,10 @@
"title": "Your recording is ready!",
"body": "Recording of the meeting <b>{{room}}</b> from {{created_at}}.",
"expiration": "Attention, this recording will expire after {{expiration_days}} day(s).",
"button": "Download"
"button": "Download",
"warning": {
"title": "Link sharing disabled",
"body": "Sharing the recording via link is not yet available. Only organizers can download it."
}
}
}

View File

@@ -19,6 +19,10 @@
"title": "Votre enregistrement est prêt !",
"body": "Enregistrement de la réunion <b>{{room}}</b> du {{created_at}}.",
"expiration": "Attention cet enregistrement expirera au bout de {{expiration_days}} jour(s).",
"button": "Télécharger"
"button": "Télécharger",
"warning": {
"title": "Partage via lien désactivé",
"body": "Le partage de l'enregistrement via lien n'est pas encore disponible. Seuls les organisateurs peuvent le télécharger."
}
}
}

View File

@@ -19,6 +19,10 @@
"title": "Je opname is klaar!",
"body": "Opname van de vergadering <b>{{room}}</b> op {{created_at}}.",
"expiration": "Let op, deze opname verloopt na {{expiration_days}} dag(en).",
"button": "Downloaden"
"button": "Downloaden",
"warning": {
"title": "Delen via link uitgeschakeld",
"body": "Het delen van de opname via een link is nog niet beschikbaar. Alleen organisatoren kunnen deze downloaden."
}
}
}