From 8012e376b52680777fb8692c302fedc024abfe29 Mon Sep 17 00:00:00 2001 From: George Gevoian Date: Fri, 26 Apr 2024 18:01:41 -0400 Subject: [PATCH] (core) Add learn more link to tooltip Summary: Adds a link to the support site documentation from the tooltip about filtering reference choices with dropdown conditions. Test Plan: N/A Reviewers: paulfitz Reviewed By: paulfitz Differential Revision: https://phab.getgrist.com/D4240 --- app/client/ui/GristTooltips.ts | 3 +++ app/common/gristUrls.ts | 1 + 2 files changed, 4 insertions(+) diff --git a/app/client/ui/GristTooltips.ts b/app/client/ui/GristTooltips.ts index 9b7b2554..e212987d 100644 --- a/app/client/ui/GristTooltips.ts +++ b/app/client/ui/GristTooltips.ts @@ -147,6 +147,9 @@ see or edit which parts of your document.') dom('div', {style: 'margin-top: 8px;'}, t('Example: {{example}}', { example: dom.create(buildHighlightedCode, 'choice.Role == "Manager"', {}, {style: 'margin-top: 8px;'}), })), + dom('div', + cssLink({href: commonUrls.helpFilteringReferenceChoices, target: '_blank'}, t('Learn more.')), + ), ...args, ), }; diff --git a/app/common/gristUrls.ts b/app/common/gristUrls.ts index 69f2fa2a..903c3206 100644 --- a/app/common/gristUrls.ts +++ b/app/common/gristUrls.ts @@ -86,6 +86,7 @@ export const commonUrls = { helpTelemetryLimited: "https://support.getgrist.com/telemetry-limited", helpCalendarWidget: "https://support.getgrist.com/widget-calendar", helpLinkKeys: "https://support.getgrist.com/examples/2021-04-link-keys", + helpFilteringReferenceChoices: "https://support.getgrist.com/col-refs/#filtering-reference-choices-in-dropdown", freeCoachingCall: getFreeCoachingCallUrl(), contactSupport: getContactSupportUrl(), plans: "https://www.getgrist.com/pricing",