Share Externally: Texts modification (#89640)

This commit is contained in:
Juan Cabanas
2024-06-25 17:52:41 -03:00
committed by GitHub
parent 2fb7b18ead
commit 0d276fe7b1
8 changed files with 39 additions and 49 deletions

View File

@@ -75,10 +75,7 @@ export const ConfigEmailSharing = () => {
>
<Stack direction="row">
<Input
placeholder={t(
'public-dashboard.email-sharing.recipient-email-placeholder',
'Type in the recipient email address and press Enter'
)}
placeholder={t('public-dashboard.email-sharing.recipient-email-placeholder', 'Email')}
autoCapitalize="none"
loading={isAddEmailLoading}
{...register('email', {

View File

@@ -38,7 +38,7 @@ export const getAnyOneWithTheLinkShareOption = () => {
label: t('public-dashboard.share-externally.public-share-type-option-label', 'Anyone with the link'),
description: t(
'public-dashboard.share-externally.public-share-type-option-description',
'Anyone with the link can access'
'Anyone with the link can access dashboard'
),
value: PublicDashboardShareType.PUBLIC,
icon: 'globe',
@@ -49,7 +49,7 @@ const getOnlySpecificPeopleShareOption = () => ({
label: t('public-dashboard.share-externally.email-share-type-option-label', 'Only specific people'),
description: t(
'public-dashboard.share-externally.email-share-type-option-description',
'Only people with access can open with the link'
'Only people with the link can access dashboard'
),
value: PublicDashboardShareType.EMAIL,
icon: 'users-alt',

View File

@@ -69,29 +69,24 @@ export default function ShareTypeSelect({
</Label>
{isLoading && <Spinner />}
</Stack>
<Stack direction="row" gap={1} alignItems="center">
{isEmailSharingEnabled() ? (
<Select
data-testid={selectors.shareTypeSelect}
options={options}
value={value}
disabled={!hasWritePermissions}
onChange={(v) => {
setShareType(v);
onUpdateShareType(v.value!);
}}
className={styles.select}
/>
) : (
<>
{toIconName(anyOneWithTheLinkOpt.icon) && <Icon name={toIconName(anyOneWithTheLinkOpt.icon)!} />}
<Text>{anyOneWithTheLinkOpt.label}</Text>
</>
)}
<Text element="p" variant="bodySmall" color="disabled">
<Trans i18nKey="public-dashboard.share-configuration.access-label">can access</Trans>
</Text>
</Stack>
{isEmailSharingEnabled() ? (
<Select
data-testid={selectors.shareTypeSelect}
options={options}
value={value}
disabled={!hasWritePermissions}
onChange={(v) => {
setShareType(v);
onUpdateShareType(v.value!);
}}
className={styles.select}
/>
) : (
<>
{toIconName(anyOneWithTheLinkOpt.icon) && <Icon name={toIconName(anyOneWithTheLinkOpt.icon)!} />}
<Text>{anyOneWithTheLinkOpt.label}</Text>
</>
)}
</div>
);
}

View File

@@ -8,8 +8,8 @@ export function EmailSharingPricingAlert() {
<Alert title="" severity="info" bottomSpacing={0}>
<Stack justifyContent="space-between" gap={2} alignItems="center">
<Trans i18nKey="public-dashboard.email-sharing.alert-text">
Effective immediately, sharing public dashboards by email incurs a cost per active user. Going forward, youll
be prompted for payment whenever you add new users to your dashboard.
Sharing dashboards by email is billed per user for the duration of the 30-day token, regardless of how many
dashboards are shared. Billing stops after 30 days unless you renew the token.
</Trans>
<Button variant="secondary" onClick={() => window.open(EMAIL_SHARING_URL, '_blank')} type="button">
<Trans i18nKey="public-dashboard.email-sharing.learn-more-button">Learn more</Trans>