Commit Graph

6166 Commits

Author SHA1 Message Date
Kevin Ansfield 8171a1692b Lock file maintenance 2020-11-12 11:15:02 +00:00
renovate[bot] 307fc059b1
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] 66d565020f
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 527a5471e6 Updated publishmenu copy
no refs.
- updated newsletter recepient checkbox label
2020-11-12 11:00:10 +01:00
Rishabh Garg b7c1da450f
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 500d61eb73 Update dependency @tryghost/timezone-data to v0.2.32 2020-11-10 12:37:59 +00:00
Daniel Lockyer c91719cc44 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 1c003653a8 Fixed border-radius bug in bookmark cards 2020-11-09 13:37:37 +01:00
renovate[bot] bc1e918741
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] d086a022c3
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] 2d29cd1fcc
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] fd6bb28832
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 872f4fe814
Update dependency eslint to v7.13.0 2020-11-09 00:06:39 +00:00
Rishabh Garg 582b3e356a
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 3f397e1b89 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] 71e77d6cda
Update CSS preprocessors (#1708)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-05 11:51:51 +00:00
Peter Zimon 524a77a91c 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 2562316ff4 v3.37.1 2020-11-03 14:00:30 +00:00
Kevin Ansfield 5adcf1bf0f 🐛 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 c1a31105d0 v3.37.0 2020-11-03 13:11:42 +00:00
Rishabh Garg fdd9ddeb4f
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] f637be76be
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] 6d3028be42
Lock file maintenance (#1742)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-02 15:52:34 +00:00
renovate[bot] 146437ba72
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] 8bc2e294c1
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] cee93b81de
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 c244606382 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 79822ef66c
Update dependency ember-exam to v6.0.1 2020-10-28 20:02:39 +00:00
Sanne de Vries 322d12059a 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 aab03b1c06 Changed "Delete snippet" button to sentence case 2020-10-28 13:45:13 +01:00
Sanne de Vries bb85a72d05 Changed copy for snippet deletion modal 2020-10-28 13:30:26 +01:00
Sanne de Vries a50a8186c7 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 269bfaf476 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 6b0618cc0d 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 a65ee0d8f3 Fixed error when closing delete snippet confirmation dialog 2020-10-27 18:33:31 +00:00
Kevin Ansfield b2e2d44cc6 Fixed error when clicking snippet icon from card toolbar 2020-10-27 18:32:20 +00:00
Kevin Ansfield 57becd52e0 Fixed toolbar showing when block cards are in edit mode 2020-10-27 18:23:56 +00:00
Kevin Ansfield 728e6e85d5 Fixed squashed card menu display in Safari 2020-10-27 16:28:24 +00:00
Kevin Ansfield 048cbc2967 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 714cf92395 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 552fdb335f Truncated long card menu labels 2020-10-27 14:48:39 +00:00
Kevin Ansfield 01a0aaf022 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 43c3e900da
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 f360ef60f2 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 ac56cb39e1 Lock file maintenance 2020-10-27 08:38:30 +00:00
renovate[bot] 8100d27f61
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] 11af6020f4
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 abfc9041a0 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 465186a621
Update dependency eslint to v7.12.1 2020-10-27 05:05:31 +00:00
Kevin Ansfield 57cfdae8f6 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