From ebd36f2503e5eafd5bc3b21830eedfcd01557fc8 Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Wed, 10 Apr 2024 12:13:37 +0100 Subject: [PATCH] Added `internalLinking` labs flag (#20006) ref https://linear.app/tryghost/issue/MOM-1 --- .../src/components/settings/advanced/labs/AlphaFeatures.tsx | 4 ++++ ghost/admin/app/services/feature.js | 1 + ghost/core/core/shared/labs.js | 3 ++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/admin-x-settings/src/components/settings/advanced/labs/AlphaFeatures.tsx b/apps/admin-x-settings/src/components/settings/advanced/labs/AlphaFeatures.tsx index 5645b3d8b1..1df4c3bdf8 100644 --- a/apps/admin-x-settings/src/components/settings/advanced/labs/AlphaFeatures.tsx +++ b/apps/admin-x-settings/src/components/settings/advanced/labs/AlphaFeatures.tsx @@ -63,6 +63,10 @@ const features = [{ title: 'Prevent Member Spam Signups', description: 'Enables features to help combat spam member signups', flag: 'membersSpamPrevention' +},{ + title: 'Internal Linking', + description: 'Adds internal URL search to editor link inputs', + flag: 'internalLinking' }]; const AlphaFeatures: React.FC = () => { diff --git a/ghost/admin/app/services/feature.js b/ghost/admin/app/services/feature.js index 19db382793..3b34bb5b88 100644 --- a/ghost/admin/app/services/feature.js +++ b/ghost/admin/app/services/feature.js @@ -82,6 +82,7 @@ export default class FeatureService extends Service { @feature('portalImprovements') portalImprovements; @feature('onboardingChecklist') onboardingChecklist; @feature('membersSpamPrevention') membersSpamPrevention; + @feature('internalLinking') internalLinking; _user = null; diff --git a/ghost/core/core/shared/labs.js b/ghost/core/core/shared/labs.js index 025a95bb3f..1d294ebaa7 100644 --- a/ghost/core/core/shared/labs.js +++ b/ghost/core/core/shared/labs.js @@ -51,7 +51,8 @@ const ALPHA_FEATURES = [ 'lexicalIndicators', // 'adminXOffers', 'adminXDemo', - 'membersSpamPrevention' + 'membersSpamPrevention', + 'internalLinking' ]; module.exports.GA_KEYS = [...GA_FEATURES];