✨ Added TK Reminders feature (#19491)
no issue - keep an eye on on https://ghost.org/changelog/ for full details
This commit is contained in:
parent
c37642a67b
commit
100e7b70c6
@ -59,10 +59,6 @@ const features = [{
|
|||||||
title: 'AdminX Demo',
|
title: 'AdminX Demo',
|
||||||
description: 'Adds a navigation link to the AdminX demo app',
|
description: 'Adds a navigation link to the AdminX demo app',
|
||||||
flag: 'adminXDemo'
|
flag: 'adminXDemo'
|
||||||
},{
|
|
||||||
title: 'TK Reminders',
|
|
||||||
description: 'Enables the TK Reminders feature in the editor',
|
|
||||||
flag: 'tkReminders'
|
|
||||||
},{
|
},{
|
||||||
title: 'New email addresses',
|
title: 'New email addresses',
|
||||||
description: 'For self hosters, forces the usage of the mail.from config as from address for all outgoing emails',
|
description: 'For self hosters, forces the usage of the mail.from config as from address for all outgoing emails',
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
</span>
|
</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if (and (feature "tkReminders") @titleHasTk)}}
|
{{#if @titleHasTk}}
|
||||||
<div
|
<div
|
||||||
class="tk-indicator" data-testid="tk-indicator"
|
class="tk-indicator" data-testid="tk-indicator"
|
||||||
{{on "click" this.focusTitle}}
|
{{on "click" this.focusTitle}}
|
||||||
|
@ -537,7 +537,7 @@ export default class KoenigLexicalEditor extends Component {
|
|||||||
multiplayerEndpoint={multiplayerEndpoint}
|
multiplayerEndpoint={multiplayerEndpoint}
|
||||||
onError={this.onError}
|
onError={this.onError}
|
||||||
darkMode={this.feature.nightShift}
|
darkMode={this.feature.nightShift}
|
||||||
isTKEnabled={this.feature.tkReminders}
|
isTKEnabled={true}
|
||||||
>
|
>
|
||||||
<KoenigEditor
|
<KoenigEditor
|
||||||
editorResource={this.editorResource}
|
editorResource={this.editorResource}
|
||||||
@ -548,7 +548,7 @@ export default class KoenigLexicalEditor extends Component {
|
|||||||
registerAPI={this.args.registerAPI}
|
registerAPI={this.args.registerAPI}
|
||||||
/>
|
/>
|
||||||
<WordCountPlugin editorResource={this.editorResource} onChange={this.args.updateWordCount} />
|
<WordCountPlugin editorResource={this.editorResource} onChange={this.args.updateWordCount} />
|
||||||
{this.feature.tkReminders && <TKCountPlugin editorResource={this.editorResource} onChange={this.args.updatePostTkCount} />}
|
<TKCountPlugin editorResource={this.editorResource} onChange={this.args.updatePostTkCount} />
|
||||||
</KoenigComposer>
|
</KoenigComposer>
|
||||||
</Suspense>
|
</Suspense>
|
||||||
</ErrorHandler>
|
</ErrorHandler>
|
||||||
|
@ -79,7 +79,6 @@ export default class FeatureService extends Service {
|
|||||||
@feature('lexicalIndicators') lexicalIndicators;
|
@feature('lexicalIndicators') lexicalIndicators;
|
||||||
@feature('filterEmailDisabled') filterEmailDisabled;
|
@feature('filterEmailDisabled') filterEmailDisabled;
|
||||||
@feature('adminXDemo') adminXDemo;
|
@feature('adminXDemo') adminXDemo;
|
||||||
@feature('tkReminders') tkReminders;
|
|
||||||
@feature('portalImprovements') portalImprovements;
|
@feature('portalImprovements') portalImprovements;
|
||||||
|
|
||||||
_user = null;
|
_user = null;
|
||||||
|
@ -75,7 +75,7 @@
|
|||||||
@onEditorCreated={{this.setKoenigEditor}}
|
@onEditorCreated={{this.setKoenigEditor}}
|
||||||
@updateWordCount={{this.updateWordCount}}
|
@updateWordCount={{this.updateWordCount}}
|
||||||
@updatePostTkCount={{this.updatePostTkCount}}
|
@updatePostTkCount={{this.updatePostTkCount}}
|
||||||
@updateFeatureImageTkCount={{if (feature "tkReminders") this.updateFeatureImageTkCount}}
|
@updateFeatureImageTkCount={{this.updateFeatureImageTkCount}}
|
||||||
@featureImage={{this.post.featureImage}}
|
@featureImage={{this.post.featureImage}}
|
||||||
@featureImageAlt={{this.post.featureImageAlt}}
|
@featureImageAlt={{this.post.featureImageAlt}}
|
||||||
@featureImageCaption={{this.post.featureImageCaption}}
|
@featureImageCaption={{this.post.featureImageCaption}}
|
||||||
|
@ -5,7 +5,6 @@ import {authenticateSession, invalidateSession} from 'ember-simple-auth/test-sup
|
|||||||
import {beforeEach, describe, it} from 'mocha';
|
import {beforeEach, describe, it} from 'mocha';
|
||||||
import {blur, click, currentRouteName, currentURL, fillIn, find, findAll, triggerEvent, typeIn} from '@ember/test-helpers';
|
import {blur, click, currentRouteName, currentURL, fillIn, find, findAll, triggerEvent, typeIn} from '@ember/test-helpers';
|
||||||
import {datepickerSelect} from 'ember-power-datepicker/test-support';
|
import {datepickerSelect} from 'ember-power-datepicker/test-support';
|
||||||
import {enableLabsFlag} from '../helpers/labs-flag';
|
|
||||||
import {expect} from 'chai';
|
import {expect} from 'chai';
|
||||||
import {selectChoose} from 'ember-power-select/test-support';
|
import {selectChoose} from 'ember-power-select/test-support';
|
||||||
import {setupApplicationTest} from 'ember-mocha';
|
import {setupApplicationTest} from 'ember-mocha';
|
||||||
@ -573,7 +572,6 @@ describe('Acceptance: Editor', function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('handles TKs in title', async function () {
|
it('handles TKs in title', async function () {
|
||||||
enableLabsFlag(this.server, 'tkReminders');
|
|
||||||
let post = this.server.create('post', {authors: [author]});
|
let post = this.server.create('post', {authors: [author]});
|
||||||
|
|
||||||
await visit(`/editor/post/${post.id}`);
|
await visit(`/editor/post/${post.id}`);
|
||||||
|
@ -47,7 +47,6 @@ const ALPHA_FEATURES = [
|
|||||||
'adminXOffers',
|
'adminXOffers',
|
||||||
'filterEmailDisabled',
|
'filterEmailDisabled',
|
||||||
'adminXDemo',
|
'adminXDemo',
|
||||||
'tkReminders',
|
|
||||||
'newEmailAddresses',
|
'newEmailAddresses',
|
||||||
'portalImprovements'
|
'portalImprovements'
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user