Added Ghost Explore app

no issue

- bumps Ghost Explore integrated app  to GA from alpha
This commit is contained in:
Aileen Nowak 2022-10-25 16:02:35 +01:00 committed by Aileen Booker
parent cdd65f25ac
commit b79006d7f3
6 changed files with 7 additions and 25 deletions

View File

@ -33,11 +33,9 @@
</a>
</li>
{{#if (gh-user-can-admin this.session.user)}}
{{#if (feature "exploreApp")}}
<li class="relative">
<LinkTo @route="explore" title="Ghost Explore" data-test-nav="explore">{{svg-jar "globe-simple"}} Explore</LinkTo>
</li>
{{/if}}
<li class="relative">
<LinkTo @route="explore" title="Ghost Explore" data-test-nav="explore">{{svg-jar "globe-simple"}} Explore</LinkTo>
</li>
{{/if}}
</ul>
<ul class="gh-nav-list gh-nav-manage">

View File

@ -15,13 +15,13 @@ export default class ExploreIndexRoute extends AuthenticatedRoute {
// older versions of Ghost where the `connect` part lives in the
// explore route directly. By using the query param, we avoid causing
// a 404 and handle the redirect here.
if (transition.to?.queryParams?.new === 'true' || !this.feature.exploreApp) {
if (transition.to?.queryParams?.new === 'true') {
this.explore.isIframeTransition = false;
return this.router.transitionTo('explore.connect');
}
// Ensure the explore window is set to open
if (this.feature.get('exploreApp') && transition.to?.localName === 'index' && !this.explore.exploreWindowOpen) {
if (transition.to?.localName === 'index' && !this.explore.exploreWindowOpen) {
this.explore.openExploreWindow(this.router.currentURL);
}
}

View File

@ -65,7 +65,6 @@ export default class FeatureService extends Service {
@feature('emailAlerts') emailAlerts;
@feature('sourceAttribution') sourceAttribution;
@feature('lexicalEditor') lexicalEditor;
@feature('exploreApp') exploreApp;
@feature('audienceFeedback') audienceFeedback;
@feature('fixNewsletterLinks') fixNewsletterLinks;

View File

@ -14,9 +14,8 @@
{{#if this.showBilling}}
<GhBillingModal @billingWindowOpen={{this.billing.billingWindowOpen}} />
{{/if}}
{{#if (feature "exploreApp")}}
<GhExploreModal />
{{/if}}
<GhExploreModal />
</main>

View File

@ -258,19 +258,6 @@
</div>
</div>
</div>
<div class="gh-expandable-block">
<div class="gh-expandable-header">
<div>
<h4 class="gh-expandable-title">Explore app</h4>
<p class="gh-expandable-description">
Enable the Explore iframe app.
</p>
</div>
<div class="for-switch">
<GhFeatureFlag @flag="exploreApp" />
</div>
</div>
</div>
<div class="gh-expandable-block">
<div class="gh-expandable-header">
<div>

View File

@ -35,7 +35,6 @@ const ALPHA_FEATURES = [
'urlCache',
'beforeAfterCard',
'lexicalEditor',
'exploreApp',
'audienceFeedback'
];