Commit Graph

5939 Commits

Author SHA1 Message Date
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
renovate[bot]
db9f97955d Update dependency ember-simple-auth to v3.0.1 (#1732)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-23 14:49:49 +01:00
Daniel Lockyer
efd631dcf4 🔥 Added support for Node 14 2020-10-23 12:42:34 +01:00
Kevin Ansfield
092a906e4f Removed Instagram embed entry from the card menu
no issue

- Facebook are changing how Facebook/Instagram embeds work meaning that they won't work in Ghost once the deprecation lands on Oct 24th
2020-10-23 11:40:31 +01:00
Kevin Ansfield
b392313df1 Changed snippet icon in menus based on snippet contents
no issue

- vary the snippet icon based on the snippet contents: text only, text and cards, cards only
2020-10-23 10:56:32 +01:00
Sanne de Vries
0ab0100567 Fixed bottom padding for card menu in Firefox 2020-10-23 11:55:41 +02:00
Kevin Ansfield
5d97c1710f Update dependency eslint-plugin-ghost to v2.0.0
no issue

- bumps eslint and eslint-plugin-ember versions
- octane rules are enabled by default
  - disabled them in our eslintrc.json so we can switch to warn/error whilst migrating to octane
- fixed a couple of linting errors from new/updated rules
2020-10-23 09:59:09 +01:00