ShareDrawer: Wording and defaults improvements (#92629)

This commit is contained in:
Juan Cabanas 2024-08-29 15:31:28 -03:00 committed by GitHub
parent e43ddd516d
commit eb8b6a5a70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 10 additions and 9 deletions

View File

@ -36,7 +36,7 @@ export default function ShareButton({ dashboard, panel }: { dashboard: Dashboard
<Button
data-testid={newShareButtonSelector.shareLink}
size="sm"
tooltip={t('share-dashboard.share-button-tooltip', 'Copy shortened link')}
tooltip={t('share-dashboard.share-button-tooltip', 'Copy link')}
onClick={buildUrl}
>
<Trans i18nKey="share-dashboard.share-button">Share</Trans>

View File

@ -43,7 +43,7 @@ export default function ShareMenu({ dashboard, panel }: { dashboard: DashboardSc
testId: newShareButtonSelector.shareInternally,
icon: 'building',
label: t('share-dashboard.menu.share-internally-title', 'Share internally'),
description: t('share-dashboard.menu.share-internally-description', 'Advanced settings'),
description: t('share-dashboard.menu.share-internally-description', 'Link settings'),
renderCondition: true,
onClick: () => onMenuItemClick(shareDashboardType.link),
});

View File

@ -68,7 +68,8 @@ function ShareInternallyRenderer({ model }: SceneComponentProps<ShareInternally>
<>
<Alert severity="info" title={t('link.share.config-alert-title', 'Link configuration')}>
<Trans i18nKey="link.share.config-alert-description">
Updating your settings will modify the default copy link to include these changes.
Updating your settings will modify the default copy link to include these changes. Please note that these
settings are saved within your current browser scope.
</Trans>
</Alert>
<div className={styles.configDescription}>

View File

@ -1162,7 +1162,7 @@
},
"link": {
"share": {
"config-alert-description": "Updating your settings will modify the default copy link to include these changes.",
"config-alert-description": "Updating your settings will modify the default copy link to include these changes. Please note that these settings are saved within your current browser scope.",
"config-alert-title": "Link configuration",
"config-description": "Create a personalized, direct link to share your dashboard within your organization, with the following customization settings:",
"copy-link-button": "Copy link",
@ -2228,12 +2228,12 @@
"menu": {
"export-json-title": "Export as JSON",
"share-externally-title": "Share externally",
"share-internally-description": "Advanced settings",
"share-internally-description": "Link settings",
"share-internally-title": "Share internally",
"share-snapshot-title": "Share snapshot"
},
"share-button": "Share",
"share-button-tooltip": "Copy shortened link"
"share-button-tooltip": "Copy link"
},
"share-drawer": {
"confirm-action": {

View File

@ -1162,7 +1162,7 @@
},
"link": {
"share": {
"config-alert-description": "Ůpđäŧįʼnģ yőūř şęŧŧįʼnģş ŵįľľ mőđįƒy ŧĥę đęƒäūľŧ čőpy ľįʼnĸ ŧő įʼnčľūđę ŧĥęşę čĥäʼnģęş.",
"config-alert-description": "Ůpđäŧįʼnģ yőūř şęŧŧįʼnģş ŵįľľ mőđįƒy ŧĥę đęƒäūľŧ čőpy ľįʼnĸ ŧő įʼnčľūđę ŧĥęşę čĥäʼnģęş. Pľęäşę ʼnőŧę ŧĥäŧ ŧĥęşę şęŧŧįʼnģş äřę şävęđ ŵįŧĥįʼn yőūř čūřřęʼnŧ þřőŵşęř şčőpę.",
"config-alert-title": "Ŀįʼnĸ čőʼnƒįģūřäŧįőʼn",
"config-description": "Cřęäŧę ä pęřşőʼnäľįžęđ, đįřęčŧ ľįʼnĸ ŧő şĥäřę yőūř đäşĥþőäřđ ŵįŧĥįʼn yőūř őřģäʼnįžäŧįőʼn, ŵįŧĥ ŧĥę ƒőľľőŵįʼnģ čūşŧőmįžäŧįőʼn şęŧŧįʼnģş:",
"copy-link-button": "Cőpy ľįʼnĸ",
@ -2228,12 +2228,12 @@
"menu": {
"export-json-title": "Ēχpőřŧ äş ĴŜØŃ",
"share-externally-title": "Ŝĥäřę ęχŧęřʼnäľľy",
"share-internally-description": "Åđväʼnčęđ şęŧŧįʼnģş",
"share-internally-description": "Ŀįʼnĸ şęŧŧįʼnģş",
"share-internally-title": "Ŝĥäřę įʼnŧęřʼnäľľy",
"share-snapshot-title": "Ŝĥäřę şʼnäpşĥőŧ"
},
"share-button": "Ŝĥäřę",
"share-button-tooltip": "Cőpy şĥőřŧęʼnęđ ľįʼnĸ"
"share-button-tooltip": "Cőpy ľįʼnĸ"
},
"share-drawer": {
"confirm-action": {