From b7689ffe9da121d4b41c15cfc8531f763b700916 Mon Sep 17 00:00:00 2001 From: Simon Backx Date: Mon, 21 Mar 2022 17:35:14 +0100 Subject: [PATCH] Added dashboard 5.0 feature flag refs https://github.com/TryGhost/Team/issues/1431 --- ghost/admin/app/services/feature.js | 3 + ghost/admin/app/templates/dashboard.hbs | 378 ++++++++++---------- ghost/admin/app/templates/settings/labs.hbs | 13 + 3 files changed, 207 insertions(+), 187 deletions(-) diff --git a/ghost/admin/app/services/feature.js b/ghost/admin/app/services/feature.js index f536d1b659..5dfb442358 100644 --- a/ghost/admin/app/services/feature.js +++ b/ghost/admin/app/services/feature.js @@ -60,6 +60,9 @@ export default class FeatureService extends Service { @feature('multipleProducts') multipleProducts; + @feature('dashboardV5') + dashboardV5; + @feature('oauthLogin') oauthLogin; diff --git a/ghost/admin/app/templates/dashboard.hbs b/ghost/admin/app/templates/dashboard.hbs index 14a8b50c1c..e5eccbcd98 100644 --- a/ghost/admin/app/templates/dashboard.hbs +++ b/ghost/admin/app/templates/dashboard.hbs @@ -5,203 +5,207 @@ -
- {{#if (and this.session.user.isOwnerOnly (not this.settings.editorIsLaunchComplete) (not (feature "improvedOnboarding")))}} -
-
-

Select your publication style

-

Customize your brand and connect to Stripe to get your membership site ready to be shown to the world.

- Start setup guide -
- - - {{svg-jar "dotdotdot"}} - - - - - +
+ {{#if (feature "dashboardV5")}} + Dashboard 5.0 is active! ๐Ÿ˜Ž + {{else}} + {{#if (and this.session.user.isOwnerOnly (not this.settings.editorIsLaunchComplete) (not (feature "improvedOnboarding")))}} +
+
+

Select your publication style

+

Customize your brand and connect to Stripe to get your membership site ready to be shown to the world.

+ Start setup guide +
+ + + {{svg-jar "dotdotdot"}} + + + + + +
+
+ {{else if this.showMembersGraphs}} + + {{/if}} + +
+ {{#unless this.settings.editorIsLaunchComplete}} +
+
+

Start creating content

+ {{#if this.showMembersData}} + + {{svg-jar "members"}} +
+

Create your first member

+

Add yourself or import members from CSV

+
+
+ {{/if}} + + {{svg-jar "posts"}} +
+

Publish a post

+

Get familiar with the Ghost editor and start creating

+
+
+
+
+ {{/unless}} + +
+
+
+

Customize your site

+

Stand out from the crowd. Ghost lets you customize everything so you can create a publication that doesnโ€™t just look the same as what everyone else has.

+
+ +
+
+
+

Looking for help with Ghost features?

+

Our product knowledgebase is packed full of guides, tutorials, answers to frequently asked questions, tips for dealing with common errors, and much more.

+
+ +
+
+ + +
+
+

6 types of newsletters you can start today

+

Choosing one of these newsletter types for your publication will help you create better content at a faster pace with less work.

+

Get some inspiration →

+
5 MIN READ
+
+
+
+
+ + +
+
+

We're hiring! Join the team that makes Ghost.

+

The creator economy is growing faster than ever, and so are we! ๐Ÿ“ˆ Join a team that's determined to make decentralised, open technology the heart and soul of new media ๐ŸŒบ

+
+
+ See open roles → +
+
+
+ + +
+
+
+

How to grow your audience, starting from 0

+

Starting from zero is hard. Thankfully, successful creators have given us clues on how to grow an audience by using something called a content funnel.

+

Here's how it works →

+
9 MIN READ
+
+
+
+ +
+
+

Join the Ghost creator community.

+

Meet other people building both free & paid publications with Ghost. Talk strategy, get advice, or just hang out.

+ Share the journey +
+ community.ghost.org
- {{else if this.showMembersGraphs}} - - {{/if}} -
- {{#unless this.settings.editorIsLaunchComplete}} -
-
-

Start creating content

- {{#if this.showMembersData}} - - {{svg-jar "members"}} -
-

Create your first member

-

Add yourself or import members from CSV

-
-
- {{/if}} - - {{svg-jar "posts"}} -
-

Publish a post

-

Get familiar with the Ghost editor and start creating

-
-
-
-
- {{/unless}} - -
-
-
-

Customize your site

-

Stand out from the crowd. Ghost lets you customize everything so you can create a publication that doesnโ€™t just look the same as what everyone else has.

-
- -
-
-
-

Looking for help with Ghost features?

-

Our product knowledgebase is packed full of guides, tutorials, answers to frequently asked questions, tips for dealing with common errors, and much more.

-
- -
-
- - -
-
-

6 types of newsletters you can start today

-

Choosing one of these newsletter types for your publication will help you create better content at a faster pace with less work.

-

Get some inspiration →

-
5 MIN READ
-
-
-
-
- - -
-
-

We're hiring! Join the team that makes Ghost.

-

The creator economy is growing faster than ever, and so are we! ๐Ÿ“ˆ Join a team that's determined to make decentralised, open technology the heart and soul of new media ๐ŸŒบ

-
-
- See open roles → -
-
-
- - -
-
-
-

How to grow your audience, starting from 0

-

Starting from zero is hard. Thankfully, successful creators have given us clues on how to grow an audience by using something called a content funnel.

-

Here's how it works →

-
9 MIN READ
-
-
-
- -
-
-

Join the Ghost creator community.

-

Meet other people building both free & paid publications with Ghost. Talk strategy, get advice, or just hang out.

- Share the journey -
- community.ghost.org -
-
- -
- {{#if this.showMembersData}} - {{#if (not (feature "membersActivityFeed"))}} - {{#if this.topMembersData}} -
-
-

Top members

- {{#if this.topMembersDataHasOpenRates}} -

Open rate

- {{else}} -

Member since

- {{/if}} -
-
- {{#if this.topMembersLoading}} - Loading... - {{else}} - {{#if this.topMembersError}} -

- There was an error loading member events. - -

+
+ {{#if this.showMembersData}} + {{#if (not (feature "membersActivityFeed"))}} + {{#if this.topMembersData}} +
+
+

Top members

+ {{#if this.topMembersDataHasOpenRates}} +

Open rate

{{else}} -
    - {{#each this.topMembersData as |member|}} -
  • - - - {{#if member.name}} - {{member.name}} - {{else}} - - {{/if}} - - {{#if member.emailOpenRate}} - {{member.emailOpenRate}}% - {{else}} - - {{moment-format member.createdAtUTC "D MMM YYYY"}} - - {{/if}} -
  • - {{/each}} -
+

Member since

{{/if}} - {{/if}} - +
+ {{#if this.topMembersLoading}} + Loading... + {{else}} + {{#if this.topMembersError}} +

+ There was an error loading member events. + +

+ {{else}} +
    + {{#each this.topMembersData as |member|}} +
  • + + + {{#if member.name}} + {{member.name}} + {{else}} + + {{/if}} + + {{#if member.emailOpenRate}} + {{member.emailOpenRate}}% + {{else}} + + {{moment-format member.createdAtUTC "D MMM YYYY"}} + + {{/if}} +
  • + {{/each}} +
+ {{/if}} + {{/if}} +
+ {{/if}} + {{/if}} + + + {{/if}} + + {{#if (not (or this.whatsNewEntriesLoading this.whatsNewEntriesError))}} +
+
+

What's new?

+ {{svg-jar "gift"}}
+
+ {{#each this.whatsNewEntries as |entry|}} + +

{{entry.title}}

+ {{moment-format entry.published_at "D MMM YYYY"}} + {{#if entry.custom_excerpt}} +

{{entry.custom_excerpt}}

+ {{/if}} +
+ {{/each}} +
+ +
{{/if}} - {{/if}} - - - {{/if}} - - {{#if (not (or this.whatsNewEntriesLoading this.whatsNewEntriesError))}} -
-
-

What's new?

- {{svg-jar "gift"}} -
-
- {{#each this.whatsNewEntries as |entry|}} - -

{{entry.title}}

- {{moment-format entry.published_at "D MMM YYYY"}} - {{#if entry.custom_excerpt}} -

{{entry.custom_excerpt}}

- {{/if}} -
- {{/each}} -
- -
- {{/if}} -
+
+ {{/if}}
diff --git a/ghost/admin/app/templates/settings/labs.hbs b/ghost/admin/app/templates/settings/labs.hbs index aff648f95f..da52cad1d2 100644 --- a/ghost/admin/app/templates/settings/labs.hbs +++ b/ghost/admin/app/templates/settings/labs.hbs @@ -322,6 +322,19 @@
+
+
+
+

Dashboard 5.0

+

+ Increased amount of analytics with more useful / dynamic resources +

+
+
+ +
+
+
{{/if}}