Commit Graph

6141 Commits

Author SHA1 Message Date
Kevin Ansfield
63c1f2060c Added stripe connection to launch site wizard
refs https://github.com/TryGhost/Team/issues/450

- duplicated and refactored/updated direct and connect settings UI from labs to the "connect stripe" step of the launch site wizard
- updated wizard buttons to be right-aligned
2021-01-19 22:31:59 +00:00
Kevin Ansfield
7828aea09c Lock file maintenance 2021-01-19 09:29:55 +00:00
Kevin Ansfield
ab2dd14677 Pinned all postcss dependencies to v7 (#1830)
no issue

- due to various levels of sub-dependency support across our postcss dependencies we'd ended up with three different versions of postcss installed (6, 7, and 8)
- pinned our dependencies to versions that all use postcss@^7
- we can't upgrade to postcss@8 because we make heavy use of `color-mod` which is no longer in the CSS spec and so the dependency providing it has not been updated
- switched from `postcss-easy-import` to `postcss-import` to drop the postcss@6 sub dependency (we weren't using any of the features that postcss-easy-import added over postcss-import)
- initial tests show CSS compilation times to have roughly halved
- disabled renovate for css dependencies to reduce noise for updates we can't merge
2021-01-19 09:25:05 +00:00
renovate[bot]
c2ad14559a Update dependency @tryghost/members-csv to v0.4.2 (#1828)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-19 08:22:48 +00:00
renovate[bot]
1f69ad3b82 Update dependency ember-fetch to v8.0.4 (#1829)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-19 08:22:32 +00:00
Aileen Nowak
abc38ab375 Updated links to ghost.org sites
no issue

Follow-up task of the updated Ghost Docs structure. Updated links reflecting the new structure to prevent unnecessary 404s and redirects.
2021-01-19 13:18:59 +13:00
Kevin Ansfield
00c73bbf68 Actually fixed tests 2021-01-18 21:16:00 +00:00
Kevin Ansfield
60be92bbc0 Fixed tests 2021-01-18 21:07:48 +00:00
Kevin Ansfield
2b41499b22 Added design customisation and preview to launch wizard
refs https://github.com/TryGhost/Team/issues/450

- moved next/finish buttons into wizard step components in case they need to save before triggering transition
- added icon, logo, and cover image upload+removal to "customise design" step alongside a preview that reloads each time an image is changed
2021-01-18 17:48:11 +00:00
Kevin Ansfield
d48abaa1f8 Added outline launch wizard framework
refs https://github.com/TryGhost/Team/issues/450

- adds `launch/*` routes corresponding to launch wizard steps
- sets up navigation between each wizard step
- adds components for each `launch/*` step to contain step-related functionality and facilitate later refactoring to a generalised wizard component
- adds link to the launch wizard from the dashboard screen
2021-01-18 13:48:23 +00:00
Kevin Ansfield
beac5543ce Default developer experiments to "off" in tests
no issue

- we should be testing production functionality by default, if tests need to test functionality behind the developer experiments flag they should explicitly enable it
2021-01-18 09:13:43 +00:00
Kevin Ansfield
5463e95d8e Added blank dashboard screen
no issue

- preparatory work for upcoming features
- default homepage when developer experiments is enabled
2021-01-18 09:02:44 +00:00
renovate[bot]
0a3e26fb7d Update dependency ember-fetch to v8.0.3 (#1826)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-18 08:19:35 +00:00
Renovate Bot
dcd1d0d5b8 Update dependency eslint to v7.18.0 2021-01-18 07:52:49 +00:00
Rishabh Garg
464e601c4d Added new FirstPromoter integration (#1825)
no issue

Adds new FirstPromoter integration on the integrations page. FirstPromoter enables sites to launch their own members referral program, and integration allows Site admins to directly add their FirstPromoter tracking ID in the settings to enable FirstPromoter script on their site.
2021-01-15 20:01:40 +05:30
John O'Nolan
eea1ddab71 Updated integrations showcase: Plausible, Ulysses, GitHub 2021-01-14 19:29:21 +07:00
Daniel Lockyer
912c6b4896 Renamed TryGhost/Ghost-Admin links to TryGhost/Admin
no issue

- the repository has been renamed so this commit brings the links inline with this
2021-01-13 09:36:27 +00:00
Renovate Bot
6e5fca1e63 Update actions/setup-node action to v2 2021-01-13 08:26:20 +00:00
Kevin Ansfield
17a69850a2 Removed "unsubscribed" events from member activity feed
refs 63f7f9a827
closes https://github.com/TryGhost/Team/issues/446

- email failures no longer auto-unsubscribe members so we shouldn't show that in the activity feed
2021-01-12 18:44:43 +00:00
Kevin Ansfield
4cfdd9f885 Lock file maintenance 2021-01-12 17:57:57 +00:00
renovate[bot]
1901422d04 Update dependency @tryghost/timezone-data to v0.2.35 (#1824)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-12 17:55:33 +00:00
renovate[bot]
7f8eeb1566 Update dependency @tryghost/string to v0.1.16 (#1823)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-12 17:50:04 +00:00
renovate[bot]
42ea6d776e Update dependency @tryghost/helpers to v1.1.37 (#1822)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-12 17:49:50 +00:00
renovate[bot]
76748fa4a8 Update dependency ember-in-viewport to v3.8.1 (#1804)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-12 17:49:34 +00:00
renovate[bot]
2fd0ea95f3 Update dependency markdown-it to v12 (#1729)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-12 11:21:56 +00:00
renovate[bot]
31b913d4b5 Update dependency @tryghost/kg-parser-plugins to v1.1.0 (#1821)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-12 11:06:21 +00:00
renovate[bot]
e8c724a22a Update dependency @tryghost/kg-clean-basic-html to v1.0.11 (#1820)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-12 11:05:29 +00:00
renovate[bot]
4d6282bd87 Update dependency reframe.js to v3 (#1588)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-12 10:22:01 +00:00
renovate[bot]
132ea620f6 Update dependency @tryghost/timezone-data to v0.2.34 (#1817)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-12 09:46:04 +00:00
Harsh Maur
78513b7998 🐛 Fixed flash of unstyled content appearing when toggling night mode (#1818)
closes https://github.com/TryGhost/Ghost/issues/12396

We use two stylesheets ghost-light.css and ghost-dark.css for light mode and night mode respectively. The problem occurs when we disable the light stylesheet when we enable dark stylesheet, as there is a moment when there is no style applied. This causes flash of unstyled content (or a big logo when users flip the night mode switch)

Since the ghost-dark style is loaded after the ghost-light stylesheet, we only need to enable or disable the dark stylesheet. When the dark stylesheet is enabled, the light stylesheet will be overridden automatically by the browser. I could not find any performance implications on overriding styles. The only performance implication is around loading a new stylesheet which we already do.
2021-01-12 09:45:33 +00:00
renovate[bot]
88e12089bd Update dependency @tryghost/string to v0.1.15 (#1816)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-12 09:17:31 +00:00
renovate[bot]
1b54ecc750 Update dependency @tryghost/helpers to v1.1.36 (#1815)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-12 09:17:21 +00:00
renovate[bot]
49815efe29 Update dependency autoprefixer to v10.2.1 (#1814)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-12 09:17:06 +00:00
Sanne de Vries
44ff46277c Fixed several responsiveness issues in members list
No issue

- Member email is cut off when overflowing on mobile
- Not displaying date moment-from-now and chevron on mobile
- Fixed left alignment issue for geolocation when there's no open rate
2021-01-08 14:01:48 +01:00
Sanne de Vries
57c376e202 Fixed overflowing content on mobile for user rows on staff page 2021-01-07 17:12:28 +01:00
Daniel Lockyer
2c6701223e v3.40.5 2021-01-07 08:46:16 +00:00
Sanne de Vries
6a6858238a Fixed bug navigation margins on mobile 2021-01-06 21:52:44 +01:00
Kevin Ansfield
8c712d62bf 🐛 Fixed blank data in member customer tab
refs 772f5fa766

- when pulling the customer data display out of the subscriptions loop the data output was not updated to match
- adds a `customer` property to the `<GhMemberSettingsForm>` backing class that pulls the customer data from the first available subscription and adds the `startDate` property. Using the first available customer record works because there's a 1:1 mapping of member to stripe customer
2021-01-06 11:56:15 +00:00
Daniel Lockyer
0a710d7b70 v3.40.4 2021-01-05 16:46:28 +00:00
Daniel Lockyer
227521a732 v3.40.3 2021-01-05 13:10:10 +00:00
renovate[bot]
dd597c3da6 Lock file maintenance (#1813)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-05 11:20:23 +00:00
renovate[bot]
af2ff1b973 Update dependency @tryghost/members-csv to v0.4.1 (#1798)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-04 09:24:49 +00:00
renovate[bot]
5dadb108f6 Update dependency ember-cli-mirage to v2 (#1812)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-04 09:08:31 +00:00
renovate[bot]
29d9192a19 Update dependency markdown-it-mark to v3.0.1 (#1811)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-04 08:54:53 +00:00
renovate[bot]
ce5881b18e Update dependency ember-concurrency-decorators to v2.0.3 (#1810)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-04 08:54:35 +00:00
renovate[bot]
b04c815a80 Update dependency ember-auto-import to v1.10.1 (#1809)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-04 08:53:43 +00:00
Renovate Bot
eaa4d4b3fc Update dependency eslint to v7.17.0 2021-01-04 00:07:32 +00:00
Renovate Bot
cc47ab5f70 Update dependency eslint to v7.16.0 2020-12-21 00:07:26 +00:00
Kevin Ansfield
772f5fa766 🐛 Fixed duplicate customers showing for members with multiple subscriptions
no issue

- the customer info table was being rendered as part of the `{{#each member.subscriptions}}` loops which meant it was being rendered again for every subscription
- moved the customer record display out of the subscriptions loop
2020-12-19 09:11:13 +00:00
Daniel Lockyer
1d7738be76 v3.40.2 2020-12-16 14:04:39 +00:00
Kevin Ansfield
eca8392296 🐛 Fixed potential "Request entity too large" error when saving members
no issue

- `email_recipient` records are embedded alongside member data when fetching individual members so the member activity feed can be generated
- full email details are included for each email so that previews can be generated which can result in a large payload
- by default Ember Data will push all embedded records back to the server when saving which resulted in `Request entity too large` errors in some environments when a member has received many emails
2020-12-16 13:41:45 +00:00
Sanne de Vries
27cc99c907 Fixed issues for member details mobile view (#1807)
* Fixed issues for member details mobile view

No-ref

- Changed order to display feed at the bottom
- Displayed heading and value vertically between 1400px and 1160px
- Displayed "Complementary plan" copy and switch vertically between 1400px and 1160px
- Added margin below "Continue subscription" button
- Prevented date in feed to wrap

* fixed tests

Co-authored-by: Kevin Ansfield <kevin@lookingsideways.co.uk>
2020-12-16 10:04:33 +01:00
renovate[bot]
830a586849 Update dependency ember-auto-import to v1.9.0 (#1805)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-12-14 12:29:53 +00:00
renovate[bot]
c12fdb7fa1 Update dependency @glimmer/component to v1.0.3 (#1802)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-12-14 12:29:29 +00:00
Daniel Lockyer
4c1f906b22 v3.40.1 2020-12-11 11:28:12 +00:00
Kevin Ansfield
a3b2f2072a 🐛 Fixed clipped tooltips in member activity feed after showing all
no issue

- liquid-fire containers (inserted by `{{#liquid-if}}`) have `overflow: hidden` applied which means the absolutely positioned tooltips that leave the container are clipped or in some cases not visible at all
- adding `class="show-overflow"` to `{{#liquid-if}}` adds the class to the top-level `.liquid-container` element allowing us to alter the behaviour slightly in CSS by making use of the `.liquid-animating` class that is added whilst the animation is in progress. By only applying `overflow: hidden` whilst animating we can keep the reveal whilst eliminating the clipping when the animation finishes
  - does not work in all cases and can introduce jankiness in others where the visible overflow causes positioning changes
2020-12-11 11:04:18 +00:00
Sanne de Vries
77e24d4d25 Fixed test failure for post time format 2020-12-11 10:03:29 +01:00
Sanne de Vries
20d0ef2fe7 Changed tooltip on hovering schedule state in post list from uppercase to capitalised 2020-12-11 09:49:07 +01:00
Sanne de Vries
c53363586c Fixed date alignment in activity feed on mobile 2020-12-11 09:41:10 +01:00
Daniel Lockyer
2b6158a822 v3.40.0 2020-12-10 15:49:34 +00:00
Kevin Ansfield
ca956981c3 Fixed open rate appearing twice in posts ordering dropdown
no issue

- sometimes the controller's init method can be triggered twice so a guard was added to ensure we're not re-adding the same option
2020-12-10 15:14:13 +00:00
Sanne de Vries
e4c4237365 Fixed overflow issue for ID and email in member Stripe info 2020-12-10 15:33:12 +01:00
Sanne de Vries
57dc3ca115 Changed icon color for received emails in member feed 2020-12-10 15:06:45 +01:00
Kevin Ansfield
c84282d5da Added member activity feed icon color classes
no issue

- use green for normal activities and red for failed/undesireable activities
2020-12-10 14:01:11 +00:00
Renovate Bot
6475260522 Update dependency @tryghost/helpers to v1.1.35 2020-12-10 11:59:02 +00:00
Renovate Bot
b2ff80e334 Update dependency @tryghost/timezone-data to v0.2.33 2020-12-10 11:58:39 +00:00
Sanne de Vries
2453f6afbd Added activity feed to member details screen (#1796)
closes https://github.com/TryGhost/Ghost/issues/12461

Design changes:
- added activity feed to member details page
- rearranged Stripe info to display on the right
- added toggle buttons for Stripe subscription and customer info
- added box to display activity feed for received and opened emails

Functionality changes:
- added `queryRecord()` to member adapter so `queryRecord('member', {id: x})` will hit `/members/:id/?query` instead of `/members/?id=x&query`
- updated member route to query member with `?include=email_recipients`
- added `EmailRecipient` model for access to event timestamps and email relationship setup
- added `<GhMemberActivityFeed>` component that accepts an `EmailRecipient` array and converts that into an activity list
- added support for `@model=emailInstance` to the email preview modal
- fixed a timing issue with email preview that could result in it showing blank content until the mobile/desktop toggle is used
- fixed sometimes blank member location

Co-authored-by: Kevin Ansfield <kevin@lookingsideways.co.uk>
2020-12-10 11:38:38 +00:00
Peter Zimon
be0ad730e0 Copy fix for member import errors
no refs.
- removed full stops from member import error messages
2020-12-10 12:15:07 +01:00
Rishabh Garg
69782e7aca Updated UI for empty member import (#1801)
no issue

- Disabled import button if mapping screen has 0 members to be imported
- Updated UI logic for no-member upload case
- Used bullet list for email summary
2020-12-10 16:33:56 +05:30
Kevin Ansfield
65129a0d9f Fixed missing email received/opened count when creating new member
no issue

- adds default value of 0 for `member.{email_count,opened_email_count}` to match server-side behaviour and allow consistency in the UI
2020-12-10 10:15:42 +00:00
Rish
23a71113ed Updated Lock file
no refs
2020-12-10 13:34:24 +05:30
Rishabh Garg
f068e40723 Added new members CSV importer (#1797)
no refs
depends on https://github.com/TryGhost/Ghost/pull/12472

The members CSV importer gets an overhaul and works with new importer module in members service, performing the import in a background job when the import will take too long to complete in a reasonable time and send an email with data on completion. Also includes updated CSV mapping UI and error handling to allow easier import from different type of exports.

Co-authored-by: Fabien O'Carroll <fabien@allou.is>
Co-authored-by: Peter Zimon <zimo@ghost.org>
2020-12-10 01:02:31 +05:30
Sanne de Vries
4b51ae8705 Fixed responsive layout for members list 2020-12-09 19:10:12 +01:00
Sanne de Vries
3adcf2b5d8 Fixed font color bug for email on member details page 2020-12-09 17:23:25 +01:00
renovate[bot]
117a46c5e5 Update dependency autoprefixer to v10.1.0 (#1793)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-12-09 13:27:04 +00:00
renovate[bot]
54d79e5a14 Update dependency ember-concurrency-decorators to v2.0.2 (#1792)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-12-09 13:26:50 +00:00
renovate[bot]
a19dd9614f Update dependency ember-composable-helpers to v4.4.1 (#1791)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-12-09 13:26:37 +00:00
Sanne de Vries
ecfb77b980 Added email stats overview to member details page (#1795)
refs https://github.com/TryGhost/Ghost/issues/12461

- Added "Emails received", "Emails opened", and "Avg. open rate" to member details
- Adjusted visual display of avatar, name and email. Made email a mailto link
- Rearranged Name and Email fields to reduce height
- Changed height of the notes textarea

Co-authored-by: Kevin Ansfield <kevin@lookingsideways.co.uk>
2020-12-09 13:26:00 +00:00
Sanne de Vries
ffe0f84700 Added open-rate column and ordering to the members list (#1790)
closes https://github.com/TryGhost/Ghost/issues/12421

- added `emailOpenRate` property to member model
- added open-rate column to the members list
  - hidden when email analytics is disabled
- added `{{feature "flag"}}` helper so feature flags can be checked in templates without injecting the feature service into the backing class
- added `order` query param to the members controller/route and wired it into the data fetching routine
- added order dropdown to the filter bar with "Newest" (default) and "Open rate" as the two options
  - whole dropdown is hidden if email analytics is disabled

Co-authored-by: Kevin Ansfield <kevin@lookingsideways.co.uk>
2020-12-08 19:23:57 +00:00
Daniel Lockyer
a6ceeb634f Merged 3.39.3 into master
v3.39.3

* tag '3.39.3':
  v3.39.3
  🐛 Fixed email design settings not opening
2020-12-08 09:41:15 +00:00
Daniel Lockyer
16614d2aae v3.39.3 2020-12-08 09:37:00 +00:00
Rish
a48cb89e53 🐛 Fixed email design settings not opening
closes https://github.com/TryGhost/Ghost/issues/12459

- Email design settings don't open in some cases when footer html is set as null, specifically on import
- Patches html cleanup to use empty string in case of null footer value
2020-12-08 09:35:05 +00:00
Rish
439b877744 🐛 Fixed email design settings not opening
closes https://github.com/TryGhost/Ghost/issues/12459

- Email design settings don't open in some cases when footer html is set as null, specifically on import
- Patches html cleanup to use empty string in case of null footer value
2020-12-08 15:01:38 +05:30
Daniel Lockyer
47f3855d4d Merged 3.39.2 into master
v3.39.2

* tag '3.39.2':
  v3.39.2
2020-12-07 11:17:06 +00:00
Daniel Lockyer
31ccbe44e4 v3.39.2 2020-12-07 11:14:53 +00:00
Daniel Lockyer
a454bb5d99 Merged 3.39.1 into master
v3.39.1

* tag '3.39.1':
  v3.39.1
  Fixed email cards missing an edit icon in the toolbar
  Fixed copy for open-tracking settings
2020-12-07 09:22:09 +00:00
Daniel Lockyer
1fab8db87b v3.39.1 2020-12-07 09:20:05 +00:00
Kevin Ansfield
6b3cb59aff Fixed email cards missing an edit icon in the toolbar
no issue

- email cards a block cards so have a distinct edit mode, that type of card should always have an edit icon in the toolbar for consistency and ease of use when the double-click or cmd+enter shortcuts aren't known
2020-12-07 09:09:30 +00:00
Sanne de Vries
dbfe2f493a Fixed copy for open-tracking settings 2020-12-07 09:09:18 +00:00
Renovate Bot
c6f9bdf986 Update dependency eslint to v7.15.0 2020-12-07 00:06:47 +00:00
Kevin Ansfield
84aaa5224c Moved email open rate ordering behind analytics flag
refs https://github.com/TryGhost/Ghost/issues/12420

- email analytics can be disabled, when that's the case it doesn't make sense to allow posts to be sorted by open rate
2020-12-04 14:08:48 +00:00
Kevin Ansfield
439ba03053 Added open rate order option to posts list
closes https://github.com/TryGhost/Ghost/issues/12420

- adds "Open rate" to the available ordering options in the posts list order dropdown
- amends pages controller to have it's own order list because pages can't be ordered by open rate
2020-12-04 10:30:03 +00:00
renovate[bot]
817e327032 Lock file maintenance (#1787)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-12-04 09:03:35 +00:00
renovate[bot]
1fb9d12126 Update dependency ember-auto-import to v1.8.0 (#1789)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-12-04 08:42:12 +00:00
Kevin Ansfield
d5d0eafb47 Fixed email cards missing an edit icon in the toolbar
no issue

- email cards a block cards so have a distinct edit mode, that type of card should always have an edit icon in the toolbar for consistency and ease of use when the double-click or cmd+enter shortcuts aren't known
2020-12-03 10:26:28 +00:00
Sanne de Vries
70b34432c8 Fixed copy for open-tracking settings 2020-12-02 21:31:11 +01:00
Daniel Lockyer
af75bc320d v3.39.0 2020-12-02 15:11:32 +00:00
Peter Zimon
b616a839a9 Email settings preview refinements (#1788)
- fixed sizes for email preview area
- replaced static values with dynamic ones
- replaced radio button with font selector
- fixed footer textarea styles
- refined styles
- refined copy
2020-12-02 13:12:41 +01:00
Kevin Ansfield
ca97f84cad Added emailAnalytics feature flag
no issue

- email analytics feature has a potential to be resource-intensive so it may be switched off via config, when this is the case we don't want to show stats in the admin that are out of date or won't be added/updated
- fixed page link titles saying "Edit this post" instead of "Edit this page"
2020-12-02 11:47:34 +00:00
Kukhyeon Heo
8e219f35c9 🐛 Fixed infinite spinner when admin login attempt fails (#1755)
closes TryGhost/Ghost#12189

- This bug happened because authenticate function always returned success(true) even when it is failed.
2020-12-01 14:32:59 +00:00