🚸(frontend) add beta tags to transcript and screen recording features

Add explicit beta tags to transcript and screen recording functionality to
clearly indicate these features are still in development. Helps set proper
user expectations by communicating that these capabilities may be unstable.
This commit is contained in:
lebaudantoine
2025-04-16 18:31:08 +02:00
committed by aleb_the_flash
parent f1b45af7d7
commit ba20fbe3a5

View File

@@ -22,6 +22,7 @@ export interface ToolsButtonProps {
title: string
description: string
onPress: () => void
isBetaFeature?: boolean
}
const ToolButton = ({
@@ -29,6 +30,7 @@ const ToolButton = ({
title,
description,
onPress,
isBetaFeature = false,
}: ToolsButtonProps) => {
return (
<RACButton
@@ -59,9 +61,28 @@ const ToolButton = ({
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
position: 'relative',
})}
>
{icon}
{isBetaFeature && (
<div
className={css({
position: 'absolute',
backgroundColor: 'primary.50',
color: 'primary.800',
fontSize: '12px',
fontWeight: 500,
borderRadius: '4px',
paddingX: '4px',
paddingBottom: '1px',
bottom: -8,
right: -8,
})}
>
BETA
</div>
)}
</div>
<div>
<Text margin={false} as="h3">
@@ -127,6 +148,7 @@ export const Tools = () => {
title={t('tools.transcript.title')}
description={t('tools.transcript.body')}
onPress={() => openTranscript()}
isBetaFeature
/>
)}
{hasScreenRecordingAccess && (
@@ -135,6 +157,7 @@ export const Tools = () => {
title={t('tools.screenRecording.title')}
description={t('tools.screenRecording.body')}
onPress={() => openScreenRecording()}
isBetaFeature
/>
)}
</Div>