From 525f0a50a811820747b9dca22c5acbf5d2cbe44c Mon Sep 17 00:00:00 2001 From: Brian Fleming Date: Thu, 26 Sep 2024 13:51:03 -0400 Subject: [PATCH] Minor text updates and layout for link shortening [CV2-3961] (#2130) --- .../src/app/components/team/TeamDetails.json | 11 +- src/app/components/team/TeamDetails.js | 123 ++++++++++-------- .../components/team/TeamDetails.module.css | 4 + 3 files changed, 79 insertions(+), 59 deletions(-) diff --git a/localization/react-intl/src/app/components/team/TeamDetails.json b/localization/react-intl/src/app/components/team/TeamDetails.json index 2954d3de07..a54db0e4c7 100644 --- a/localization/react-intl/src/app/components/team/TeamDetails.json +++ b/localization/react-intl/src/app/components/team/TeamDetails.json @@ -37,17 +37,22 @@ { "id": "teamDetails.linkManagement", "description": "Title of the link management section in team details page", - "defaultMessage": "Link management" + "defaultMessage": "Link Management" }, { "id": "teamDetails.linkManagementRss", "description": "Helper text for link management switcher when workspace has RSS newsletters configured", - "defaultMessage": "Link shortening makes URLs more readable and a predictable length. If you’re using an RSS feed, the link service cannot be disabled. Learn more about link shortening." + "defaultMessage": "Link engagement analytics: Link shortening is used to record the number of times the link was clicked by users when distributed through a report or a newsletter." + }, + { + "id": "teamDetails.linkManagementLinkLength", + "description": "Additional helper text for link management describing link length", + "defaultMessage": "Link length and RSS: Link shortening makes URLs a predictable length. If you are using an RSS feed, the link service cannot be disabled. Learn more about link shortening." }, { "id": "teamDetails.linkManagementSwitcher", "description": "Label for a switch where the user toggles link management in team details page", - "defaultMessage": "Enable link shortening and analytics" + "defaultMessage": "Enable link shortening and engagement analytics" }, { "id": "teamDetails.utmCodePlaceholder", diff --git a/src/app/components/team/TeamDetails.js b/src/app/components/team/TeamDetails.js index 4d4abab06f..35252ba11f 100644 --- a/src/app/components/team/TeamDetails.js +++ b/src/app/components/team/TeamDetails.js @@ -187,7 +187,7 @@ const TeamDetails = ({
- +
+ <> + +
+ + } label={} onChange={setShortenOutgoingUrls} /> { shortenOutgoingUrls ? - <> - - - { placeholder => ( - - } - id="team-details__utm-code" - label={ - - } - placeholder={placeholder} - onChange={e => setUtmCode(e.target.value)} - /> - )} - - - } - title={} - variant="warning" - /> - +
+
+ + { placeholder => ( + + } + id="team-details__utm-code" + label={ + + } + placeholder={placeholder} + onChange={e => setUtmCode(e.target.value)} + /> + )} + + + } + title={} + variant="warning" + /> +
+
: null }
diff --git a/src/app/components/team/TeamDetails.module.css b/src/app/components/team/TeamDetails.module.css index fce51e617b..f123627eea 100644 --- a/src/app/components/team/TeamDetails.module.css +++ b/src/app/components/team/TeamDetails.module.css @@ -10,3 +10,7 @@ .StyledAvatarEditButton { width: 100%; } + +.link-engagement-details { + margin: 16px 0 0; +}