mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
✨ Added Recommendations feature (#18664)
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:
parent
40a2bdad20
commit
4e338114de
5 changed files with 3 additions and 22 deletions
|
@ -47,10 +47,6 @@ const features = [{
|
||||||
title: 'Tips & donations',
|
title: 'Tips & donations',
|
||||||
description: 'Enables publishers to collect one-time payments',
|
description: 'Enables publishers to collect one-time payments',
|
||||||
flag: 'tipsAndDonations'
|
flag: 'tipsAndDonations'
|
||||||
},{
|
|
||||||
title: 'Recommendations',
|
|
||||||
description: 'Enables publishers to recommend sites to their audience',
|
|
||||||
flag: 'recommendations'
|
|
||||||
}];
|
}];
|
||||||
|
|
||||||
const AlphaFeatures: React.FC = () => {
|
const AlphaFeatures: React.FC = () => {
|
||||||
|
|
|
@ -50,7 +50,6 @@ export const responseFixtures = {
|
||||||
};
|
};
|
||||||
|
|
||||||
let defaultLabFlags = {
|
let defaultLabFlags = {
|
||||||
recommendations: false,
|
|
||||||
audienceFeedback: false,
|
audienceFeedback: false,
|
||||||
collections: false,
|
collections: false,
|
||||||
themeErrorsNotification: false,
|
themeErrorsNotification: false,
|
||||||
|
|
|
@ -351,20 +351,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -20,7 +20,8 @@ const GA_FEATURES = [
|
||||||
'outboundLinkTagging',
|
'outboundLinkTagging',
|
||||||
'announcementBar',
|
'announcementBar',
|
||||||
'signupForm',
|
'signupForm',
|
||||||
'lexicalEditor'
|
'lexicalEditor',
|
||||||
|
'recommendations'
|
||||||
];
|
];
|
||||||
|
|
||||||
// NOTE: this allowlist is meant to be used to filter out any unexpected
|
// NOTE: this allowlist is meant to be used to filter out any unexpected
|
||||||
|
@ -41,7 +42,6 @@ const ALPHA_FEATURES = [
|
||||||
'collectionsCard',
|
'collectionsCard',
|
||||||
'tipsAndDonations',
|
'tipsAndDonations',
|
||||||
'importMemberTier',
|
'importMemberTier',
|
||||||
'recommendations',
|
|
||||||
'lexicalIndicators'
|
'lexicalIndicators'
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -758,7 +758,7 @@ exports[`Settings API Edit Can edit a setting 2: [headers] 1`] = `
|
||||||
Object {
|
Object {
|
||||||
"access-control-allow-origin": "http://127.0.0.1:2369",
|
"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",
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
||||||
"content-length": "4278",
|
"content-length": "4303",
|
||||||
"content-type": "application/json; charset=utf-8",
|
"content-type": "application/json; charset=utf-8",
|
||||||
"content-version": StringMatching /v\\\\d\\+\\\\\\.\\\\d\\+/,
|
"content-version": StringMatching /v\\\\d\\+\\\\\\.\\\\d\\+/,
|
||||||
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
||||||
|
|
Loading…
Add table
Reference in a new issue