Commit Graph

6145 Commits

Author SHA1 Message Date
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
Kevin Ansfield
c0da576e41 Lock file maintenance 2020-11-30 11:21:39 +00:00
renovate[bot]
bfc23a7505 Update dependency autoprefixer to v10.0.4 (#1785)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-30 11:16:18 +00:00
renovate[bot]
4e7d629f55 Update dependency ember-composable-helpers to v4.4.0 (#1786)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-30 11:15:57 +00:00
Sanne de Vries
8467bf025b Changed font styling for email stats in posts list 2020-11-30 10:14:27 +01:00
Sanne de Vries
a2a98b575f Added email open rate to posts list in admin (#1772)
no issue

- added "Sends" and "Opens" columns to the posts list to see newsletter performance at a glance
- "Sends" will show the type of members sent to (free, paid, all) as a tooltip
- "Opens" shows open rate by default and total opens on hover
2020-11-26 17:19:05 +00:00
Rishabh Garg
1dd2b33499 Updated Stripe Subscription status label handling (#1784)
refs https://github.com/TryGhost/Ghost/issues/12256

* Replace `_` in stripe's status with space to setup proper status label for subscriptions
* Displayed subscription status for cancelled subscriptions

Co-authored-by: Fabien O'Carroll <fabien@allou.is>
2020-11-25 10:45:18 +00:00
Peter Zimon
f476c268b5 Zapier templates update (#1783)
- updated Zapier templates page to show the most relevant Zaps instead of the latest
- fixed design regression in Slack, Amp and Unsplash integration pages
2020-11-25 11:31:15 +01:00
Fabien 'egg' O'Carroll
9cd6ed06a7 Added cancellation reason to Members UI (#1782)
refs https://github.com/TryGhost/Ghost/issues/12403

This is only displayed when it is present, so as not to clutter the UI
unless it's required.
2020-11-24 10:20:21 +00:00
Sanne de Vries
50a423ed2b Added toggle in settings to enable open-tracking configuration (#1777)
closes https://github.com/TryGhost/Ghost/issues/12390
requires https://github.com/TryGhost/Ghost/pull/12404

- Added toggle for open-tracking in settings (Labs > Members > Email section)

Co-authored-by: Kevin Ansfield <kevin@lookingsideways.co.uk>
2020-11-23 18:36:57 +00:00
Daniel Lockyer
0ed99dd0a1 Merged 3.38.3 into master
v3.38.3

* tag '3.38.3':
  v3.38.3
  🐛 Fixed editor unable to handle non-latin IME languages
  🐛 Fixed authors failing to publish post with newsletters
2020-11-23 17:37:19 +00:00
Daniel Lockyer
9eef32aa33 v3.38.3 2020-11-23 17:34:33 +00:00
Daniel Lockyer
54389216ab 🐛 Fixed editor unable to handle non-latin IME languages
closes https://github.com/TryGhost/Ghost/issues/12268

- see the referenced issue for discussion on the many issues with
  non-latin IME input
- this has been a long term bug which needed a patch in upstream
  mobiledoc-kit
- the fixes were released upstream in 0.12.5, so we've merged a
  contributor PR to our mobiledoc-kit fork and released v0.12.5-ghost.1
- in testing, this seems to fix a lot of the input issues people were
  seeing
2020-11-23 15:38:53 +00:00
Rish
aec4ee21bc 🐛 Fixed authors failing to publish post with newsletters
no refs

With last release, by default a post has newsletter sending option enabled by default based on default visibility. Since authors don't have permission to see or toggle the email newsletter options, if the newsletter was enabled for them the post publish failed as they lacked permissions to send newsletter. This patches the option by switching off newsletter option when publishing post as an author.
2020-11-23 21:07:34 +05:30
Daniel Lockyer
7e240bf27a 🐛 Fixed editor unable to handle non-latin IME languages
closes https://github.com/TryGhost/Ghost/issues/12268

- see the referenced issue for discussion on the many issues with
  non-latin IME input
- this has been a long term bug which needed a patch in upstream
  mobiledoc-kit
- the fixes were released upstream in 0.12.5, so we've merged a
  contributor PR to our mobiledoc-kit fork and released v0.12.5-ghost.1
- in testing, this seems to fix a lot of the input issues people were
  seeing
2020-11-23 12:19:20 +00:00
Daniel Lockyer
bf797e3ad2 Fixed missing GitHub Action in workflow
- must have missed it when applying a specific Node version to the
  workflow
2020-11-23 11:16:05 +00:00
Kevin Ansfield
f66a791708 Lock file maintenance 2020-11-23 10:05:31 +00:00
renovate[bot]
9fd6395b65 Update dependency eslint to v7.14.0 (#1780)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-23 09:57:33 +00:00
renovate[bot]
f1c2e34d89 Update dependency ember-power-datepicker to v0.8.1 (#1779)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-23 09:55:54 +00:00
Rishabh Garg
487724e0fe Added support for external urls for redirect (#1778)
refs https://github.com/TryGhost/Ghost/issues/12366

Adds support for saving external URL's for custom redirects and improves error handling to validate on blur/before saving

Co-authored-by: Fabien O'Carroll <fabien@allou.is>
2020-11-23 09:38:29 +00:00
Peter Zimon
660762e100 Added scrolling for Portal settings links
no refs.
2020-11-20 12:02:35 +01:00
Rish
d8dec01edd Added new portal link for free plan
refs TryGhost/Ghost#12365

Portal allows direct free signup link or data attributes, allowing members to directly share or link to only free plan in Portal popup if available

- A new portal signup link for free plan - `/signup/free`
2020-11-20 15:48:18 +05:30
Fabien 'egg' O'Carroll
b6dfa54b07 Improved UI for custom redirect settings (#1775)
refs https://github.com/TryGhost/Ghost/issues/12366

* Displays URL as absolute, but still stores the path relative to the site 
* Allows pasting absolute URL's or relative
* Does not support external URL's
* Removed redundant "Links" section in Portal settings sidebar

Co-authored-by: Peter Zimon <zimo@ghost.org>
2020-11-20 09:53:08 +00:00
Thibaut Patel
b16b4bcdc7 Added staff personal tokens
refs TryGhost/Ghost#12373
2020-11-20 10:23:19 +01:00
Daniel Lockyer
298e581817 Merged 3.38.2 into master
v3.38.2

* tag '3.38.2':
  v3.38.2
2020-11-19 13:42:20 +00:00
Daniel Lockyer
e80abad341 v3.38.2 2020-11-19 13:40:08 +00:00
renovate[bot]
caec3e003d Update dependency ember-power-select to v4.1.0 (#1769)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-19 11:40:01 +00:00
renovate[bot]
38f37225be Update dependency ember-composable-helpers to v4.3.2 (#1774)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-19 11:39:26 +00:00
Peter Zimon
3cdb63006a Supported custom redirects for member signup (#1768)
refs https://github.com/TryGhost/Ghost/issues/12366

- added form fields for redirects
- updated CSS to handle scrolling

Co-authored-by: Fabien O'Carroll <fabien@allou.is>
2020-11-19 09:59:51 +00:00
Rishabh Garg
7a0defab17 Added new portal links for plan checkout (#1770)
refs TryGhost/Ghost#12365

Portal now allows direct checkout links for monthly/yearly plans via Portal links or data attributes, allowing members to directly signup to a paid plan. This PR adds -

- A new portal signup link for monthly plan - `/signup/monthly`
- A new portal signup link for yearly plan - `/signup/yearly`

Co-authored-by: Peter Zimon <zimo@ghost.org>
2020-11-18 00:00:46 +05:30
Daniel Lockyer
036cd516ed v3.38.1 2020-11-17 16:42:06 +00:00
Daniel Lockyer
9927e9f583 v3.38.0 2020-11-17 13:53:34 +00:00
Peter Zimon
b3354c5f67 Fixed copy in newsletter settings
no refs.
2020-11-16 18:44:39 +01:00
Peter Zimon
d03f0f56fb Fixed extra padding in Members settings
no refs.
- removed extra padding when mailgun configuration is not displayed on Members screen
2020-11-16 18:43:38 +01:00
Sanne de Vries
c71413b0f7 Added descriptive line to each menu item in cardmenu 2020-11-16 17:34:40 +01:00
Peter Zimon
7970917872 Updated email recipient checkbox design
no refs.
- changed email recipient checkboxes to switches in the publish menu so that it's nicely balanced
2020-11-16 16:48:42 +01:00
Peter Zimon
c46198f728 Update post email preview design (#1767)
Made post email preview design consistent with the new email settings design preview.

* changed background

* added fake container windows and faux sender/recipient content

* updated mobile and dark mode
2020-11-16 12:16:51 +01:00
Fabien 'egg' O'Carroll
96f096a839 Added support for basic HTML newsletter footer (#1765)
no-issue

This allows users to use basic HTML to customise their newsletter
footer, meaning they can use links, and bold/italic text.
2020-11-16 10:29:32 +00:00
Peter Zimon
8d8a5d8bc3 Updated scroll area for email settings
no refs.
- updated email settings preview scroll area so that now only the content is scrolling not the whole screen
2020-11-13 16:31:21 +01:00
Peter Zimon
44bcf3b46f Updated dark style for email settings
no refs.
2020-11-13 16:05:00 +01:00
Fabien O'Carroll
65b310d500 Renamed footer setting to newsletterFooterContent
no-issue

This is more generic and matches the setting in the backend.
2020-11-13 13:32:31 +00:00
Fabien 'egg' O'Carroll
fafe7d7b74 Added newsletter footer customisation (#1764)
no-issue

This adds support for customising the newsletter footer with plaintext.
Updates the new modal to use Octane, rather than legacy components.
2020-11-13 13:21:42 +00:00
Peter Zimon
b9ae1f6e95 Updated email address in email settings preview
no refs.
- set actual (dynamic) from address in email settings preview
2020-11-13 12:35:56 +01:00
Peter Zimon
37c5f0ce08 Refined newsletter settings modal
no refs.
- set fake sender, site icon and title dynamic
- removed scrollbar for preview window
2020-11-13 12:18:19 +01:00
Peter Zimon
94581a87f8 Added newsletter customisation options (#1756)
no-issue

This adds three initial customisation options for newsletters:
  1. Show/Hide site title and logo
  2. Set font to serif/sans serif
  3. Display a publish with Ghost badge

This is the first step in allowing customisation of the look and feel of newsletters.

Co-authored-by: Rish <zrishabhgarg@gmail.com>
Co-authored-by: Peter Zimon <zimo@ghost.org>
2020-11-12 14:45:22 +00:00
Kevin Ansfield
f68738ee62 Lock file maintenance 2020-11-12 11:15:02 +00:00
renovate[bot]
440d668b16 Update dependency autoprefixer to v10.0.2 (#1759)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-12 10:08:28 +00:00
renovate[bot]
5118ffb99d Update dependency ember-composable-helpers to v4.3.1 (#1757)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-12 10:08:09 +00:00
Peter Zimon
28888be650 Updated publishmenu copy
no refs.
- updated newsletter recepient checkbox label
2020-11-12 11:00:10 +01:00
Rishabh Garg
7191fe1558 Added member counts to newsletter publish menu (#1760)
refs 6140a98351

- Adds free/paid member counts to newsletter option in publish menu
- Updates default state for newsletter sending option based on number of members for free/paid
- Updates styling for checkboxes based on enabled/disabled state
2020-11-11 22:38:43 +05:30
Renovate Bot
1640ee25b6 Update dependency @tryghost/timezone-data to v0.2.32 2020-11-10 12:37:59 +00:00
Daniel Lockyer
ad98c53cc8 Extracted linting test to separate job
- we don't need to run linting twice as we do currently in the Firefox &
  Chrome jobs
- also pins the Node version to 12.18.0 so we can be sure what Node
  version we're running with
2020-11-10 12:36:56 +00:00
Sanne de Vries
38a8a13e4b Fixed border-radius bug in bookmark cards 2020-11-09 13:37:37 +01:00
renovate[bot]
1197832715 Update dependency @tryghost/kg-parser-plugins to v1.0.10 (#1750)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-09 09:13:30 +00:00
renovate[bot]
bf01771f46 Update dependency ember-moment to v8.0.1 (#1754)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-09 09:11:22 +00:00
renovate[bot]
0bfc13fda0 Update dependency @tryghost/kg-clean-basic-html to v1.0.10 (#1749)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-09 09:10:35 +00:00
renovate[bot]
dceecc30ec Update dependency ember-load-initializers to v2.1.2 (#1752)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-09 09:10:21 +00:00
Renovate Bot
034d27511f Update dependency eslint to v7.13.0 2020-11-09 00:06:39 +00:00
Rishabh Garg
49b86b466a Allowed sending newsletter to free members only (#1751)
refs 6140a98351

This officially decouples the newsletter recipients from the post visibility allowing us to send emails to free members only.
2020-11-07 00:24:27 +05:30
Kevin Ansfield
81ec6729c8 Fixed error when creating a block-editable card in the editor
no issue

The toolbar display/positioning logic was recently changed so that the toolbar is shown when a `saveAsSnippet` action is passed in. However the `_setToolbarProperties` method wasn't taking into account the toolbar element not being present when in editing mode such as when a block-editable card (markdown, html, code) is created.

- remove conditional logic that may change over time and replace it with checks for the toolbar element existing
2020-11-06 18:13:32 +00:00
renovate[bot]
4f86f3ddeb Update CSS preprocessors (#1708)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-05 11:51:51 +00:00
Peter Zimon
74c008fbb3 Fixed setting buttons alignment regression
refs https://github.com/TryGhost/Ghost-Admin/pull/1736 where a style change caused regression in the action button's alignment on settings screens.

- fixed alignment issues
2020-11-05 10:55:43 +01:00
Daniel Lockyer
26003629e1 v3.37.1 2020-11-03 14:00:30 +00:00
Kevin Ansfield
3b87c951c0 🐛 Fixed snippet icon showing in card toolbar for authors/contributors
no issue

- authors/contributors do not have permission to create snippets so the icon should not be displayed
2020-11-03 13:57:11 +00:00
Daniel Lockyer
85a07b3586 v3.37.0 2020-11-03 13:11:42 +00:00
Rishabh Garg
d534bba348 Enabled Portal settings for all sites (#1748)
refs 8ad11fe082

- Removes Portal settings access from behind flag and includes it by default.

Portal script is now enabled as default, the change here allows Site owners to access Portal settings via Ghost-Admin
2020-11-03 14:38:53 +05:30
renovate[bot]
fb25b17d28 Update dependency @tryghost/timezone-data to v0.2.31 (#1747)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-02 15:52:58 +00:00
renovate[bot]
a5fb8ed443 Lock file maintenance (#1742)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-02 15:52:34 +00:00
renovate[bot]
1078007b6c Update dependency @tryghost/string to v0.1.14 (#1746)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-02 15:06:01 +00:00
renovate[bot]
2fc54e3607 Update dependency @tryghost/helpers to v1.1.34 (#1745)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-02 15:05:49 +00:00
renovate[bot]
560c10330d Update dependency ember-auto-import to v1.7.0 (#1744)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-02 15:05:34 +00:00
Peter Zimon
cf9534f31c Fixed truncated label names in members list
no refs.
- fixed Import related labels being truncated in the label filter dropdown list on the Members screen
2020-10-29 18:31:59 +01:00
Renovate Bot
679abad2b1 Update dependency ember-exam to v6.0.1 2020-10-28 20:02:39 +00:00
Sanne de Vries
64e1f74033 Adjusted cardmenu styling for dark mode
No issue

- Changed snippet icon fill
- Changed section border color
- Deleted white corners on bookmark icon
2020-10-28 14:55:34 +01:00
Sanne de Vries
8b26a2ae7e Changed "Delete snippet" button to sentence case 2020-10-28 13:45:13 +01:00
Sanne de Vries
22050954df Changed copy for snippet deletion modal 2020-10-28 13:30:26 +01:00
Sanne de Vries
ce674169e6 Improved hover state styling of snippets in cardmenu
No issue

- Changed delete icon colour and padding
- Changed fill of snippet icon on hover
2020-10-28 13:14:25 +01:00
Daniel Lockyer
3183fe045d Bumped minimum Node 14 version to latest LTS
- 14.15.0 is the latest version of Node 14 LTS
2020-10-28 11:05:00 +00:00
Kevin Ansfield
348ffc7d05 Changed slash menu filter to match any part of a snippet title
no issue

- extracted item matching into a separate function
- modified item matching to work with arrays (existing exact match behaviour) or functions which can be defined per-item
- changed snippet item `matches` to a function that does a naive match or the typed query to any part of the snippet's title
2020-10-28 08:37:04 +00:00
Kevin Ansfield
7f537f8ba4 Fixed error when closing delete snippet confirmation dialog 2020-10-27 18:33:31 +00:00
Kevin Ansfield
f98f5000df Fixed error when clicking snippet icon from card toolbar 2020-10-27 18:32:20 +00:00
Kevin Ansfield
8f91bb2083 Fixed toolbar showing when block cards are in edit mode 2020-10-27 18:23:56 +00:00
Kevin Ansfield
ad2d6bcf52 Fixed squashed card menu display in Safari 2020-10-27 16:28:24 +00:00
Kevin Ansfield
79d9179289 Added scroll-into-view behaviour for slash menu selection
no issue

- when selecting items with arrow keys in the slash menu, scroll the selected item into view if it's not visible
2020-10-27 16:15:58 +00:00
Kevin Ansfield
1e639c2504 Added snippets feature to editor
no issue

Snippets are pieces of saved content that are given a name and made available for easy and quick insertion when editing posts or pages. They can contain rich text, cards, or a combination of both making it faster and less error-prone to re-use pieces of content across multiple posts. Snippet length is not constrained meaning they can also stand in as post type templates alleviating the need to keep drafts around as templates and copy/pasting each time they are used.

Feature changes:
- added "create snippet" icon to selection and card toolbars
- added "Snippets" section to the plus and slash menus
  - for the slash menu, continuing to type after opening the menu will filter by snippet name
- all saved snippets are available to all staff users
- snippets can be deleted by clicking the trash can icon when hovering the mouse over a snippet entry in the plus or slash menus
- creation/deletion of snippets is available to staff users with the owner, admin, or editor role

This commit:
- removed developer experiments guard around snippet UI
2020-10-27 15:01:35 +00:00
Kevin Ansfield
581b195e12 Truncated long card menu labels 2020-10-27 14:48:39 +00:00
Kevin Ansfield
c6753a0efd Hid snippet management UI from staff users without permissions
no issue

- snippets can only be created and deleted by owners/admins/editors
- added a property in the editor controller to determine if the logged in user has sufficient permissions, then only pass the appropriate save/delete snippet actions to the editor component if the check is passed
- updates koenig menus and toolbars to skip rendering of buttons if the associated action function is not available
2020-10-27 14:42:59 +00:00
Rishabh Garg
2edb7226e1 Added past_due and unpaid subscriptions for members (#1740)
refs https://github.com/TryGhost/Ghost/issues/12256, https://github.com/TryGhost/Ghost/issues/12255

Currently when listing subscriptions for Members in both the Admin and the Theme, we only show the subscriptions which have a status of trialing or active.

Based on discussion, the `unpaid` and `past_due` states on Stripe also represent owner's intention of considering a subscription as active instead of `cancelled`, so we allow any subscriptions under these 2 states to be also listed for a member and consider them as `paid`. This updates Admin to consider those subscriptions as active as well.

- Subscriptions will go into a past_due state if the payment is missed, this should be considered a grace period where the member still has access.

- After this the subscriptions will either go to the unpaid or the cancelled state - this can be configured on an account by account basis in the Stripe dashboard. `unpaid` is considered as an intention to keep the subscription to allow for re-activation later.
2020-10-27 15:27:31 +05:30
Kevin Ansfield
38fa62001a Fixed card menus closing when clicking on modal background
no issue

- when deleting a snippet we display a confirmation modal, if the background is clicked to dismiss the modal then the menus closed too which is a different behaviour to clicking the close/cancel button inside the dialog
- adjusted the "ignore click" selector in the menus to include all fullscreen modal elements
2020-10-27 08:43:46 +00:00
Kevin Ansfield
2b04a58ccc Lock file maintenance 2020-10-27 08:38:30 +00:00
renovate[bot]
70e4073117 Update dependency ember-cli-babel to v7.23.0 (#1730)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-27 08:36:10 +00:00
renovate[bot]
723caa8551 Update dependency ember-cli-terser to v4.0.1 (#1738)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-27 08:35:32 +00:00
Sanne de Vries
c0f7cbcd40 Added a "Sent to xxx members" message in content management screen for posts that have been sent out to members 2020-10-27 09:33:38 +01:00
Renovate Bot
bc4a079317 Update dependency eslint to v7.12.1 2020-10-27 05:05:31 +00:00
Kevin Ansfield
1bd4b5cda7 Added delete button with confirmation to snippets in card menus
no issue

- show a delete icon when a snippet is hovered in plus/slash menus
- show a confirmation dialog when the delete icon is clicked
- keep menus open whilst displaying the delete confirmation dialog
2020-10-26 17:09:39 +00:00
Renovate Bot
cddd977536 Update dependency eslint to v7.12.0 2020-10-26 00:06:46 +00:00
renovate[bot]
1c4ad3b59a Update dependency ember-power-select to v4.0.6 (#1737)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-23 14:50:45 +01:00