From 5d39e4c612d971ac1f04aedb88b6be9ad6dddb47 Mon Sep 17 00:00:00 2001 From: Steve Larson <9larsons@gmail.com> Date: Mon, 10 Jul 2023 08:43:24 -0500 Subject: [PATCH] Added alpha flag for collections card (#17246) no refs -alpha flag for collections card for pages --- .../admin/app/components/koenig-lexical-editor.js | 2 ++ ghost/admin/app/services/feature.js | 1 + ghost/admin/app/templates/settings/labs.hbs | 14 ++++++++++++++ ghost/core/core/shared/labs.js | 1 + 4 files changed, 18 insertions(+) diff --git a/ghost/admin/app/components/koenig-lexical-editor.js b/ghost/admin/app/components/koenig-lexical-editor.js index 9ebf3ca2ce..284e3f138f 100644 --- a/ghost/admin/app/components/koenig-lexical-editor.js +++ b/ghost/admin/app/components/koenig-lexical-editor.js @@ -278,6 +278,8 @@ export default class KoenigLexicalEditor extends Component { fetchLabels, feature: { signupCard: true, + collectionsCard: this.feature.get('collectionsCard'), + collections: this.feature.get('collections'), headerV2: this.feature.get('headerUpgrade') }, membersEnabled: this.settings.get('membersSignupAccess') === 'all', diff --git a/ghost/admin/app/services/feature.js b/ghost/admin/app/services/feature.js index 0f486913bf..aaa9431148 100644 --- a/ghost/admin/app/services/feature.js +++ b/ghost/admin/app/services/feature.js @@ -76,6 +76,7 @@ export default class FeatureService extends Service { @feature('pageImprovements') pageImprovements; @feature('flatUrls') flatUrls; @feature('mailEvents') mailEvents; + @feature('collectionsCard') collectionsCard; @feature('headerUpgrade') headerUpgrade; _user = null; diff --git a/ghost/admin/app/templates/settings/labs.hbs b/ghost/admin/app/templates/settings/labs.hbs index 29613f4618..5a5289dbcb 100644 --- a/ghost/admin/app/templates/settings/labs.hbs +++ b/ghost/admin/app/templates/settings/labs.hbs @@ -283,6 +283,20 @@ +
+
+
+

Collections Card

+

+ Enables the Collections Card for pages - requires Collections and the beta Editor to be enabled +

+
+
+ +
+
+
+
diff --git a/ghost/core/core/shared/labs.js b/ghost/core/core/shared/labs.js index ca20fe71a0..718d039fd0 100644 --- a/ghost/core/core/shared/labs.js +++ b/ghost/core/core/shared/labs.js @@ -42,6 +42,7 @@ const ALPHA_FEATURES = [ 'pageImprovements', 'flatUrls', 'mailEvents', + 'collectionsCard', 'headerUpgrade' ];