Added alpha flag for collections card (#17246)

no refs
-alpha flag for collections card for pages
This commit is contained in:
Steve Larson 2023-07-10 08:43:24 -05:00 committed by GitHub
parent 0c309454cf
commit 5d39e4c612
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 0 deletions

View File

@ -278,6 +278,8 @@ export default class KoenigLexicalEditor extends Component {
fetchLabels, fetchLabels,
feature: { feature: {
signupCard: true, signupCard: true,
collectionsCard: this.feature.get('collectionsCard'),
collections: this.feature.get('collections'),
headerV2: this.feature.get('headerUpgrade') headerV2: this.feature.get('headerUpgrade')
}, },
membersEnabled: this.settings.get('membersSignupAccess') === 'all', membersEnabled: this.settings.get('membersSignupAccess') === 'all',

View File

@ -76,6 +76,7 @@ export default class FeatureService extends Service {
@feature('pageImprovements') pageImprovements; @feature('pageImprovements') pageImprovements;
@feature('flatUrls') flatUrls; @feature('flatUrls') flatUrls;
@feature('mailEvents') mailEvents; @feature('mailEvents') mailEvents;
@feature('collectionsCard') collectionsCard;
@feature('headerUpgrade') headerUpgrade; @feature('headerUpgrade') headerUpgrade;
_user = null; _user = null;

View File

@ -283,6 +283,20 @@
</div> </div>
</div> </div>
<div class="gh-expandable-block">
<div class="gh-expandable-header">
<div>
<h4 class="gh-expandable-title">Collections Card</h4>
<p class="gh-expandable-description">
Enables the Collections Card for pages - requires Collections and the beta Editor to be enabled
</p>
</div>
<div class="for-switch">
<GhFeatureFlag @flag="collectionsCard" />
</div>
</div>
</div>
<div class="gh-expandable-block"> <div class="gh-expandable-block">
<div class="gh-expandable-header"> <div class="gh-expandable-header">
<div> <div>

View File

@ -42,6 +42,7 @@ const ALPHA_FEATURES = [
'pageImprovements', 'pageImprovements',
'flatUrls', 'flatUrls',
'mailEvents', 'mailEvents',
'collectionsCard',
'headerUpgrade' 'headerUpgrade'
]; ];