Added Recommendations feature (#18743)

refs https://github.com/TryGhost/Product/issues/3744


Co-authored-by: Simon Backx <simon@ghost.org>
Co-authored-by: Djordje Vlaisavljevic <dzvlais@gmail.com>
This commit is contained in:
Sag 2023-10-24 11:00:11 -03:00 committed by GitHub
parent d0d0453833
commit 1b82efe5d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 3 additions and 22 deletions

View File

@ -47,10 +47,6 @@ const features = [{
title: 'Tips & donations',
description: 'Enables publishers to collect one-time payments',
flag: 'tipsAndDonations'
},{
title: 'Recommendations',
description: 'Enables publishers to recommend sites to their audience',
flag: 'recommendations'
},{
title: 'List-Unsubscribe header',
description: 'Set the List-Unsubscribe header in emails',

View File

@ -51,7 +51,6 @@ export const responseFixtures = {
};
let defaultLabFlags = {
recommendations: false,
audienceFeedback: false,
collections: false,
themeErrorsNotification: false,

View File

@ -351,20 +351,6 @@
</div>
</div>
</div>
<div class="gh-expandable-block">
<div class="gh-expandable-header">
<div>
<h4 class="gh-expandable-title">Recommendations</h4>
<p class="gh-expandable-description">
Enables publishers to recommend sites to their audience
</p>
</div>
<div class="for-switch">
<GhFeatureFlag @flag="recommendations" />
</div>
</div>
</div>
</div>
</div>
{{/if}}

View File

@ -19,7 +19,8 @@ const GA_FEATURES = [
'themeErrorsNotification',
'outboundLinkTagging',
'announcementBar',
'signupForm'
'signupForm',
'recommendations'
];
// NOTE: this allowlist is meant to be used to filter out any unexpected
@ -40,7 +41,6 @@ const ALPHA_FEATURES = [
'collectionsCard',
'tipsAndDonations',
'importMemberTier',
'recommendations',
'lexicalIndicators',
'listUnsubscribeHeader',
'editorEmojiPicker'

View File

@ -758,7 +758,7 @@ exports[`Settings API Edit Can edit a setting 2: [headers] 1`] = `
Object {
"access-control-allow-origin": "http://127.0.0.1:2369",
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
"content-length": "4255",
"content-length": "4280",
"content-type": "application/json; charset=utf-8",
"content-version": StringMatching /v\\\\d\\+\\\\\\.\\\\d\\+/,
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,