Commit Graph

6140 Commits

Author SHA1 Message Date
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
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
Sanne de Vries
36dbb35eb5 Styled new row layout of the cardmenu
No issue

- Adjusted menu width and height
- Improved spacing cards
- Changed font styling
- Added snippet icons
2020-10-23 10:36:31 +02:00
Peter Zimon
6ecba355eb Moved members settings to new page (#1736)
no refs

Moves members related settings in Labs to its own page to improve the overall UX and make it more consistent with the rest of the Admin.
2020-10-22 16:09:00 +05:30
Kevin Ansfield
f1bab33296 Fixed member's location sometimes showing as ", US"
no issue

- geolocation.region is not always available but we had assumed it was. Adjusted the logic to only show "region, US" if region is available
2020-10-22 09:15:03 +01:00
Kevin Ansfield
5ae27247f7 Prevented card toolbar showing for embed/bookmark cards in input state
no issue

- it doesn't make sense to create snippets of bookmark/embed cards before they contain any content so we avoid passing the save snippet function through until content exists and the card has left it's input state
2020-10-21 18:27:26 +01:00
Kevin Ansfield
09368c2966 Changed card/plus menu layout from grid to rows
no issue

- with the addition of snippets the card menu contents height and potential label width are both growing considerably making the grid layout unworkable
2020-10-21 12:34:05 +01:00
Kevin Ansfield
489f45155d Added "Create snippet" toolbar icon when cards are selected
no issue

- show the toolbar icon for any `<KoenigCard>` instance that has the `saveAsSnippet` action passed to it
  - currently that's all cards except the HR card because that's a primitive element rather than containing any user-defined content
- add `koenigUi.inputHasFocus` so that card toolbars can be hidden when the snippet input is displayed
2020-10-21 12:16:04 +01:00
Kevin Ansfield
14755425c2 Fixed error when clicking on snippets in card menu
no issue

- click event was clearing the editor range so it's necessary to reposition the cursor before replacing with the post
2020-10-20 18:10:25 +01:00
Daniel Lockyer
bc342029d1 v3.36.0 2020-10-20 09:38:09 +01:00
Renovate Bot
c298bc7db3 Update dependency @tryghost/kg-clean-basic-html to v1.0.9 2020-10-20 08:41:19 +01:00
Renovate Bot
62d429be42 Update dependency @tryghost/kg-parser-plugins to v1.0.9 2020-10-20 08:38:06 +01:00
Renovate Bot
24f3366544 Update dependency @tryghost/timezone-data to v0.2.30 2020-10-20 08:36:57 +01:00
Renovate Bot
26a79e0edf Update dependency @tryghost/helpers to v1.1.33 2020-10-20 08:36:08 +01:00
Kevin Ansfield
3efeeac6a1 Swapped toolbar snippet icon for the new design 2020-10-19 09:55:26 +01:00
Kevin Ansfield
96bcf99332 Added Ctrl/Cmd+P shortcut in editor to open preview in new tab
no issue

- allows quick access to the preview without having to open post settings menu and click the preview link or hit Ctrl/Cmd+S and click the link in the success notification
2020-10-19 08:25:26 +01:00
Kevin Ansfield
11c16b8b4b Disabled mocked snippets API in development 2020-10-16 19:22:09 +01:00
Kevin Ansfield
95aa341468 Added max length validation to snippet's name field 2020-10-16 19:22:09 +01:00
Kevin Ansfield
3d48ce6bc4 Fixed snippets not loading in background when accessing editor
no issue

- add the missing snippets API query to the editor's background loaded
2020-10-16 19:22:09 +01:00
Renovate Bot
45bee39739 Update dependency @tryghost/helpers to v1.1.32 2020-10-16 14:35:51 +01:00
Renovate Bot
4b220ebd17 Update dependency @tryghost/string to v0.1.13 2020-10-16 14:35:34 +01:00
Peter Zimon
94077449b3 Update portal settings (#1731)
* Added auto focusing preview on the signup page while being on links and clicking on any setting in the sidebar

* Refine upload custom portal icon button

* Updated copy for sidebar and links screen

* Added grouping to links list
2020-10-16 15:34:22 +02:00
Kevin Ansfield
7e169a2a86 Renamed snippet.title to snippet.name for consistency
no issue

- all of our models which allow users to name something use `name` as the field descriptor rather than `title` so `snippet.title` was renamed for consistency
- also fixes typo in the plus-menu component that stopped clicking on snippets from working
2020-10-16 10:15:07 +01:00
Kevin Ansfield
b590ce1b95 Implemented first iteration of content snippets
closes https://github.com/TryGhost/Team/issues/411

- adds "Create snippet" icon to the editor toolbar
- uses the same link input component design for specifying snippet titles
- snippets are loaded in the background when the editor is accessed
- snippets are listed at the bottom of the card menus of the + and / menus
- clicking a snippet inserts the snippet's contents in place of the current blank section
2020-10-15 18:03:35 +01:00
Peter Zimon
bc779bb3e7 Fixed 'null' portal button text
no refs.
- fixing portal button displaying 'null' if the portal button text input field is empty
2020-10-14 14:47:08 +02:00
Kevin Ansfield
9fe752d86d Lock file maintenance 2020-10-14 12:55:06 +01:00
renovate[bot]
6c3195db93 Update dependency ember-cli-app-version to v4 (#1724)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-14 10:21:20 +01:00
renovate[bot]
4778128e63 Update dependency ember-truth-helpers to v3 (#1723)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-14 10:20:56 +01:00
Renovate Bot
2d285e7498 Update dependency ember-exam to v6 2020-10-12 21:55:26 +00:00
Peter Zimon
eede9e1141 Updated Portal links design
no refs.
- in Portal settings domain and the path are separated visually so that it conveys the concept of using the relative URL instead of absolute
- for similar reasons, copy link copies only the path part
2020-10-12 13:56:37 +02:00
Renovate Bot
69bcb90c43 Update dependency eslint to v7.11.0 2020-10-09 21:05:56 +00:00
Peter Zimon
33e1ceb010 Fixed test for scheduling copy change
no refs.
2020-10-09 17:15:21 +02:00
Peter Zimon
d567e975d2 Removed full stop from scheduling text in editor
no refs.
2020-10-09 16:56:37 +02:00
Peter Zimon
a7c0dc7469 Fixed account menu margin
no refs.
- fixes account menu dropdown button margins disappearing on Firefox for smaller screensizes
2020-10-09 16:56:13 +02:00
Kevin Ansfield
a8f63f9343 Fixed usage of {{enable-developer-experiments}} without sub-expression syntax 2020-10-09 15:52:23 +01:00
Kevin Ansfield
a3d3632e97 Added developer experiments indication to about page
no issue

- without this there's no indication the config flag is set when you have no access to the config file or you don't know which features are currently behind the flag
2020-10-09 11:38:47 +01:00
Kevin Ansfield
235d5f1b8b Added {{enable-developer-experiments}} helper
no issue

- removes the need to have component backing classes with the `config` service injected
2020-10-09 11:10:39 +01:00
Daniel Lockyer
508b7734fe v3.35.5 2020-10-08 11:00:35 +01:00
Daniel Lockyer
7ff4557e3c v3.35.4 2020-10-06 09:55:49 +01:00
Kevin Ansfield
44b9b0fc94 Resolved "already declared in upper scope" linting warnings
no issue

- fixed all `no-shadow` linter warnings
- changed `no-shadow` eslint rule from `warn` to `error` so we don't re-introduce shadowed variables in the future
2020-10-05 09:56:21 +01:00
renovate[bot]
c51990c3ae Update dependency ember-power-select to v4.0.5 (#1721)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-05 09:09:39 +01:00
renovate[bot]
7ea3a46ff3 Update dependency @tryghost/timezone-data to v0.2.28 (#1719)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-05 09:09:26 +01:00
Sam Lord
52e85451ec v3.35.3 2020-10-02 14:38:32 +01:00
Peter Zimon
47a045a935 Updated scheduling copy
no refs.
- updated moment locale to display '1 minute' instead of 'a minute' to be more explicit about scheduled time
- removed full stop from the scheduler message in editor header
2020-10-02 10:45:49 +02:00
Sam Lord
a60a28822d v3.35.2 2020-10-01 19:57:13 +01:00
Sam Lord
6090245ccb v3.35.1 2020-10-01 19:21:26 +01:00
Kevin Ansfield
fa240cae53 Fixed content jiggle when selecting cards and card code background position
no issue

- borders are necessary on selected cards to keep consistent spacing between selected/non-selected cards
  - use transparent borders in dark mode rather than eliminating borders
- moved transparent card background style to `_koenig-dark.css` so it only affects dark mode - we want to keep the background colour for light mode so that we don't get mis-aligned backgrounds in certain cards
2020-10-01 16:56:30 +01:00
Kevin Ansfield
171cec2b4e 🐛 Fixed first set of members appearing twice in members list
closes https://github.com/TryGhost/Ghost/issues/12241

- `ella-sparse` exposes a `range.page` property which we can use instead of trying to calculate the page number ourselves
2020-10-01 11:21:34 +01:00
Kevin Ansfield
db68f0248b Update dependency ember-in-viewport to v3.8.0
no issue

- now that we no longer have the `ember-sticky-element` dependency we're free to upgrade `ember-in-viewport`
- remove package.json resolution so latest version gets installed
- remove ember-in-viewport from renovate ignore config
- update `<GhScrollTrigger>` to match latest `ember-in-viewport` usage and convert to a glimmer component
  - ensure `scrollableArea` is always set so that the trigger doesn't stop working after the first trigger
2020-10-01 10:06:53 +01:00
Kevin Ansfield
c0149ee997 Removed ember-sticky-element in favour of native position: sticky
no issue

- native `position: sticky` support is now good enough across the board of our supported browser versions to use in place of a JS version for our use cases
- `ember-sticky-element` is preventing the dependency update of `ember-in-viewport` so removing it will allow a lot of our sub-dependencies to be updated
2020-10-01 10:02:27 +01:00
Kevin Ansfield
86531ebf16 Lock file maintenance 2020-10-01 08:02:06 +01:00
Rish
245dbef994 Allowed empty accent color in portal preview
no issue

- Current logic was not setting empty accent color in portal preview which was misleading when no accent color is set
- Updated preview url to contain empty accent color which is picked by Portal preview
2020-10-01 12:28:24 +05:30
renovate[bot]
91fa87b3ed Update ember core (#1704)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-01 07:57:12 +01:00
renovate[bot]
5850c2dd81 Lock file maintenance (#1720)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-01 07:44:44 +01:00
renovate[bot]
27c23a2cfd Update dependency @tryghost/string to v0.1.12 (#1718)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-01 07:42:18 +01:00
renovate[bot]
76e023ed6d Update dependency @tryghost/helpers to v1.1.31 (#1717)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-01 07:41:58 +01:00
Sam Lord
a64dedf265 v3.35.0 2020-09-30 11:00:13 +01:00
Fabien O'Carroll
a93c9bebe9 Updated magic link expiry information to 24 hours
no-issue

Since https://github.com/TryGhost/Ghost/commit/fd5194ea magic links have
a 24 hour expiry
2020-09-30 10:56:12 +01:00
Kevin Ansfield
08698ed1c9 Adjusted browser support to include Safari 12
no issue

- Safari 12 support was automatically dropped when Safari 14 was released this September. This created quite a step-change in level of JS that is left as native in the build output causing problems for users who haven't upgraded or are stuck on browser versions ~1yr old
- adjusted the browser support to include last 3 versions of Safari, giving another year (most likely based on Apple's historic release schedule) of older browser support
2020-09-30 09:48:47 +01:00
Fabien 'egg' O'Carroll
177d6f773d 🐛 Fixed tag metadata fields not being populated when editing in admin (#1714)
closes #12190

The "scratch" concept was being used incorrectly for codeinjection fields and was not initialised with all the required fields.
2020-09-28 16:20:53 +01:00
Peter Zimon
da81765bd9 Fixed publication logo display proportions
no refs.
- fixed the styles for publication logo in general settings so that the logo is displayed with correct ratio regardless of its proportions
2020-09-28 14:14:16 +02:00
Renovate Bot
b6cb527a25 Update dependency eslint to v7.10.0 2020-09-28 00:05:51 +00:00
Daniel Lockyer
e0e1e4fde9 Merged 3.34.1 into master
v3.34.1

* tag '3.34.1':
  v3.34.1
2020-09-24 19:29:19 +01:00
Daniel Lockyer
6c0191d361 v3.34.1 2020-09-24 19:26:52 +01:00
Peter Zimon
4142b98cdf Fixed loading spinner size for Portal icons
no refs.
- fixed oversized loading spinner for Portal icons
2020-09-24 10:00:22 +02:00
Peter Zimon
8173439298 Updated order of default Portal icons
no refs.
- swapped icon no. 3 and 4 to represent major use cases better
2020-09-24 09:50:33 +02:00
Rish
c7696ca03b Renamed members-modal naming to portal
no issue

- Updated naming for members modal to portal in sync with rest of the codebase
2020-09-24 12:19:35 +05:30
Fabien 'egg' O'Carroll
6ecb38eaa5 Added support for filtering the exported Members CSV (#1716)
no-issue

Co-authored-by: Peter Zimon <zimo@ghost.org>
2020-09-23 14:29:47 +01:00
Rishabh Garg
f1fbbe4685 🐛 Fixed social settings not saved on keyboard shortcut (#1633)
no issue

- Social account(twitter/facebook) values in general settings were only updated to settings upstream on focus out
- Uses `notifyPropertyChange` to avoid multiple `.set()` workarounds

Co-authored-by: Kevin Ansfield <kevin@lookingsideways.co.uk>
2020-09-23 16:58:48 +05:30
Daniel Lockyer
a4f8cb522d v3.34.0 2020-09-22 11:25:12 +01:00
renovate[bot]
7254e805a6 Update dependency grunt to v1.3.0 (#1682)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-22 08:52:04 +01:00
Umur Dinçer
2051b65e51 🐛 Fixed missing start date in members chart (#1644)
closes https://github.com/TryGhost/Ghost/issues/12014

- `startDateLabel` was never populated after refactoring the members chart to use the members stats service
- use the first date that's returned as part of the members stats days array so that we can account for any potential time period being selected

Co-authored-by: Kevin Ansfield <kevin@lookingsideways.co.uk>
2020-09-22 08:51:29 +01:00
Paul Davis
8062fa8994 Added margin to bottom of Admin when installed as PWA on newer iOS devices (#1667)
no issue

On newer iOS devices with no home button, we have this bar at the bottom of the screen instead. When installed as a PWA, the mobile nav sits under that bar. I'm unsure how much Ghost is used this way, but this is a small QOL improvement for those who do.

This PR uses the native `env` CSS custom properties Safari has to add a propriety amount of `padding-bottom` to the mobile nav bar, and also the global container to prevent anything in the iframe from being hidden by the taller nav bar. If the device does not support these `env` vars, is has no adverse affect. In order for this to work, the `<meta name="viewport" />` tag needs `viewport-fit=cover` added to it.

MDN docs for reference: https://developer.mozilla.org/en-US/docs/Web/CSS/env
2020-09-22 07:43:17 +01:00
Kukhyeon Heo
c38ca94683 🐛 Fixed Ctrl/Cmd+S triggering browser save when tags or authors input has focus (#1707)
closes https://github.com/TryGhost/Ghost/issues/11786

`GhTokenInput` uses `PowerSelect` component of `ember-power-select` internally in `app/components/gh-token-input/select-multiple`. 

When you open that component, [you can find](d36f38f39e/addon/components/power-select.ts (L262-L278)) that it calls `stopImmediatePropagation` when ctrl/cmd or meta key is down.

```js
  handleTriggerKeydown(e: KeyboardEvent) {
    if (this.args.onKeydown && this.args.onKeydown(this.storedAPI, e) === false) {
      e.stopImmediatePropagation();
      return;
    }
    if (e.ctrlKey || e.metaKey) {
      e.stopImmediatePropagation();
      return;
    }
    if ((e.keyCode >= 48 && e.keyCode <= 90) || isNumpadKeyEvent(e)) { // Keys 0-9, a-z or numpad keys
      (this.triggerTypingTask as unknown as Performable).perform(e);
    } else if (e.keyCode === 32) {  // Space
      this._handleKeySpace(this.storedAPI, e);
    } else {
      return this._routeKeydown(this.storedAPI, e);
    }
  }
```

Because of that, I had to dispatch event directly to the root of the Ghost admin app.
2020-09-21 18:14:57 +01:00
Kevin Ansfield
c4ca317fb2 Switched from uglify to terser
refs https://github.com/TryGhost/Ghost-Admin/pull/1701

- swap `ember-cli-uglify` for `ember-cli-terser` to match ember-cli 3.21.1's generated package.json
- swap `broccoli-uglify-sourcemap` for `broccoli-terser-sourcemap` used manually in our production builds to keep dependencies the same across custom and built-in build artefacts
2020-09-21 17:13:00 +01:00
Kevin Ansfield
9a7093231b Lock file maintenance 2020-09-21 16:25:16 +01:00
Fabien 'egg' O'Carroll
213434c389 Updated magic link expiry information to 4 hours (#1715)
no-issue

Since https://github.com/TryGhost/Ghost/pull/12218 magic links now have
an expiry of 4 hours.
2020-09-21 16:08:10 +01:00
renovate[bot]
bc9fbbd06a Update dependency postcss-custom-properties to v9.2.0 (#1712)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-21 07:57:24 +01:00
renovate[bot]
429b3eca8b Update dependency markdown-it to v11.0.1 (#1706)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-21 07:56:41 +01:00
renovate[bot]
a4a39d286d Update dependency ember-modifier to v2.1.1 (#1711)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-21 07:56:07 +01:00
renovate[bot]
37a66dd405 Update dependency @glimmer/component to v1.0.2 (#1713)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-21 07:55:42 +01:00
renovate[bot]
f885a88cd9 Update dependency ember-classic-decorator to v2 (#1709)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-21 07:54:36 +01:00
Rish
ede24fec24 Moved Portal settings behind dedicated flag
no issue
depends on https://github.com/TryGhost/Ghost/pull/12211

- Other than dev flag, the Portal is now also enabled behind a dedicated `portal` flag
- Shows/hides Portal settings based on dev or Portal flag
2020-09-17 19:50:41 +05:30
Peter Zimon
6dc0489b7b Updated Portal icons
no refs.

- updated Portal icons so that it matches the one on members.js
2020-09-16 16:04:38 +02:00
Sanne de Vries
710d6178c1 Added message box on Staff user page that indicates user is locked, and improved boxes naming and styling 2020-09-16 15:37:33 +02:00
Peter Zimon
fc3d83e869 Fixed date format in member Stripe details
no refs.
2020-09-15 07:33:58 +02:00
Daniel Lockyer
8ab33e2958 v3.33.0 2020-09-14 12:39:47 +01:00
Sanne de Vries
3c6923989e Changed locked state badge into lock icon and clarified its meaning with tooltip on hover. This commit builds on top of PR #1668 2020-09-14 12:34:18 +02:00
Renovate Bot
1cbe47aadd Update dependency eslint to v7.9.0 2020-09-14 00:04:31 +00:00
Daniel Lockyer
39a0f447f9 v3.32.2 2020-09-10 16:55:17 +01:00
Daniel Lockyer
aa8351e05f Added updated lockfile 2020-09-10 16:46:30 +01:00
Kevin Ansfield
3e83675175 🐛 Fix author/tag management in post settings menu (dependency revert)
closes https://github.com/TryGhost/Ghost/issues/12198

- Revert "Switched from uglify to terser" (commit e5b4960170)
- Revert "Update dependency ember-cli to v3.21.1 (commit 7e64683836)"
- Revert "Update ember core (commit 9866a840c6)"
2020-09-10 16:01:51 +01:00
Kevin Ansfield
e5b4960170 Switched from uglify to terser
refs https://github.com/TryGhost/Ghost-Admin/pull/1701

- swap `ember-cli-uglify` for `ember-cli-terser` to match ember-cli 3.21.1's generated package.json
- swap `broccoli-uglify-sourcemap` for `broccoli-terser-sourcemap` used manually in our production builds to keep dependencies the same across custom and built-in build artefacts
2020-09-09 17:22:23 +01:00
renovate[bot]
27c0ea0635 Update dependency ember-concurrency to v1.3.0 (#1700)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-09 17:09:12 +01:00
renovate[bot]
7e64683836 Update dependency ember-cli to v3.21.1 (#1701)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-09 17:08:53 +01:00
Sanne de Vries
6a7745c9a8 Adjusted dark mode styling of top menu dropdowns on the members page for consistency 2020-09-08 17:56:50 +02:00
renovate[bot]
af1462e66f Update dependency ember-power-select to v4.0.4 (#1699)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-07 23:09:52 +01:00
Kevin Ansfield
d8a93d00fc Update dependency broccoli-uglify-sourcemap to v4
refs 51d44c76d8, fe30958a19

- re-applying dependency update with required changes to application code
2020-09-07 14:42:53 +01:00
Daniel Lockyer
1f789f8742 Added production build test to CI
- we recently had an issue where a dependency update broke the
  release process because it was building in production mode, but our CI
  never ran in this mode and we missed it
- this commit adds a test to run in prod mode so hopefully we catch it
  next time
2020-09-07 12:47:10 +01:00
Daniel Lockyer
1713375adb v3.32.1 2020-09-07 12:06:05 +01:00
Daniel Lockyer
fe30958a19 Revert "Update dependency broccoli-uglify-sourcemap to v4 (#1697)"
- this reverts commit 51d44c76d8.
- fixes the build when running in production mode
2020-09-07 12:03:43 +01:00
Daniel Lockyer
661578bf26 v3.32.0 2020-09-07 11:54:59 +01:00
renovate[bot]
c1a9021d74 Update dependency blueimp-md5 to v2.18.0 (#1698)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-07 09:32:59 +01:00
renovate[bot]
51d44c76d8 Update dependency broccoli-uglify-sourcemap to v4 (#1697)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-07 09:32:30 +01:00
Sanne de Vries
7898e22e82 Removed white background and border in code editor in dark mode 2020-09-04 22:17:43 +02:00
Sanne de Vries
5cbd9f0f78 Adjusted code injection fields in settings to dark mode 2020-09-04 21:41:19 +02:00
Peter Zimon
ed1433b809 Added logic to custom portal icon delete
no refs.
- fixed issue that users can't reselect custom icon in portal by making the delete button only visible when the custom icon is selected
2020-09-04 16:10:46 +02:00
Peter Zimon
d65195aba4 Portal custom icon style refinement
no refs.
- refined delete icon style for portal
- refined icon sizes
2020-09-04 15:59:13 +02:00
Sanne de Vries
11699d5172 Fixed transparent background pattern for blog logo and icon in dark mode 2020-09-04 15:25:32 +02:00
Sanne de Vries
0b27a366ff Adjusted styling for user role badges in light and dark mode for improved consistency 2020-09-04 15:25:32 +02:00
Daniel Lockyer
a8ce77b1f7 Removed warning banner for mobile/tablet devices
closes https://github.com/TryGhost/Team/issues/347

- removes the warning banner directing users to use Ghost Desktop/a
  desktop browser because users are happy with the experience of editing
  on mobile/tablets
2020-09-03 17:55:45 +01:00
Daniel Lockyer
47f428b9af Removed suggestion to use Ghost-Desktop
- Ghost-Desktop is now deprecated and so we shouldn't suggest it to
  users
2020-09-03 13:16:44 +01:00
renovate[bot]
84e0dd033f Lock file maintenance (#1694)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-03 12:22:40 +01:00
renovate[bot]
9866a840c6 Update ember core (#1674)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-03 12:09:58 +01:00
renovate[bot]
701ac2594f Update dependency ember-test-selectors to v5 (#1696)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-03 10:54:42 +01:00
renovate[bot]
6e380fdeaf Update dependency ember-composable-helpers to v4.3.0 (#1695)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-03 10:54:03 +01:00
renovate[bot]
07fc861480 Update dependency @ember/optional-features to v2 (#1692)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-03 10:53:03 +01:00
renovate[bot]
ba81055ca5 Update dependency faker to v5.1.0 (#1691)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-03 10:52:34 +01:00
renovate[bot]
083d4dcff5 Update dependency papaparse to v5.3.0 (#1690)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-03 10:51:34 +01:00
Peter Zimon
4ec6aa3d3e Success button fixes in member email settings
no refs.
- fixed checkmark being too small on support or newsletter success button
- fixed case style for success button
2020-09-02 20:45:52 +02:00
Daniel Lockyer
8d557fe4ce Merged 3.31.5 into master
* tag '3.31.5':
  v3.31.5
2020-09-02 13:16:48 +01:00
Daniel Lockyer
43f9e9fe86 v3.31.5 2020-09-02 13:13:47 +01:00
Daniel Lockyer
5cc8d887c6 Merged 3.31.4 into master
* tag '3.31.4':
  v3.31.4
2020-09-02 12:30:15 +01:00
Daniel Lockyer
73ff6cd2a0 v3.31.4 2020-09-02 12:27:08 +01:00
Sanne de Vries
53c2879838 Improved calendar styling in publish and schedule datepickers 2020-09-02 10:32:45 +02:00
Rish
4fa2912bc3 Fixed missing signup text value in Portal preview
closes https://github.com/TryGhost/members.js/issues/91

- Fixes the missing signup text value in input box as it was incorrectly reading from wrong place
2020-09-02 13:28:51 +05:30
Renovate Bot
61aaa4ed53 Update dependency eslint to v7.8.1 2020-09-01 21:02:10 +00:00
Sanne de Vries
03da71cfde Improved date-picker spacing in post publish menu and settings menu 2020-09-01 16:43:22 +02:00
Sanne de Vries
bf6e37f2dd Fixed account menu spacing issue (#1693)
* Fixed spacing issue with account menu by changing verticalPosition of the Ember dropdown component to 'above' and adjusted the top attribute as needed.
2020-09-01 12:44:50 +02:00
Renovate Bot
36c72cd93d Update dependency eslint to v7.8.0 2020-08-31 23:03:33 +00:00
Rish
eefbb55d84 Added new support and reply-to address for members
no issue

- Adds 2 new email address fields for members in email settings section - support address and reply-to address
- Support address - Is used for member auth emails as well as in themes and Portal for allowing members to contact support.
- Reply-to address - Is used to set `reply-to` address for newsletter emails that allows configuring where member's reply to emails will go
- Disabled from address update for empty value
- Updated success toast message and copy for from/support address update
- Changed section title + description for email addresses
- Added "public" to support email description
2020-08-31 18:10:26 +05:30
Sanne de Vries
f068f85e38 Improved spacing for account menu 2020-08-31 12:25:55 +02:00
Daniel Lockyer
c04e4f05c9 v3.31.3 2020-08-31 10:37:01 +01:00
Peter Zimon
bd8807b18d Refined Portal maintabs style 2020-08-27 16:08:03 +02:00
Peter Zimon
5b8ccabee2 Refined Portal links page 2020-08-27 16:06:00 +02:00
Peter Zimon
18cc1a2b91 Fixed case style for Portal accent color 2020-08-27 15:57:15 +02:00
Peter Zimon
d1df165aa9 Refined Portal color picker 2020-08-27 15:55:02 +02:00
Peter Zimon
b9bd4fb505 Fixed image caption design bugs in Koenig
no refs.
- added side padding for alt and caption input fields
- fixed text color bug of alt toggle button
2020-08-27 15:21:11 +02:00
Nazar Gargol
0c673f280f Fixed linter error 2020-08-28 00:37:18 +12:00
Nazar Gargol
5faa18743f Replaced progress bar with spinner for members import uploader
no issue

- When an import is in progress showing completed progress bar is unusefull and confusing. For large imports it takes a lot longer to process the import itself than to upload the file, that's why it made sense to show a generic spinner untill a better solution is worked on (probably with introduction of jobs)
2020-08-28 00:32:26 +12:00
Rish
01c19fb672 Updated color picker sync in Portal settings
no refs

- Syncs the new color picker for accent color to the input field
- Updating color through new color picker or input field updates the portal preview
2020-08-26 21:38:53 +05:30
Peter Zimon
1902e0b659 Removed border from selected Portal tab
no refs.
2020-08-26 17:30:34 +02:00
Peter Zimon
2030681acf Refined toggle border
no refs.
- refined toggle border color and shadows
2020-08-26 17:21:47 +02:00
Peter Zimon
8674e8f32b Updated Portal links page
no refs.
- refined copy and design for Portal links page
2020-08-26 17:10:19 +02:00
Peter Zimon
20bcfd4839 Added color picker to Portal settings
no refs.
- added CSS color picker for accent color Portal settings. Note: sync between the input field and the color picker is to be done
2020-08-26 16:00:17 +02:00
Daniel Lockyer
5ee36f7737 v3.31.2 2020-08-25 12:57:57 +01:00
renovate[bot]
77044e8e18 Update dependency faker to v5 (#1687)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-25 09:50:47 +01:00
Daniel Lockyer
407dc1115a v3.31.1 2020-08-24 16:29:08 +01:00
Scott Cabot
73c87de243 🐛 Changed caret color to white in code editor on Night Shift
closes #12154
Adds a new css class selector to app-dark.css to mimic the same effect as created in the gh-markdown-editor. The class keonig-card-html--editor is applied conditionally when the card is in edit mode, as per its template file. This now makes the cursor the same color as the text and easier to read.
2020-08-24 16:24:03 +01:00
Peter Zimon
2ef41dc852 Fixed copy in members upgrade message
no refs.
- fixed pluralisation in members upgrade message
- added decimal point to limit and total numbers in members upgrade message
2020-08-24 17:16:31 +02:00
renovate[bot]
021bf17e85 Update dependency @tryghost/kg-parser-plugins to v1.0.8 (#1686)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-24 13:28:25 +01:00
renovate[bot]
79def05e3d Update dependency @tryghost/kg-clean-basic-html to v1.0.8 (#1685)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-24 13:26:19 +01:00
Daniel Lockyer
0789cc0c8b v3.31.0 2020-08-24 11:33:21 +01:00
Rishabh Garg
9da88937d7 Added subscription cancellation button to member page (#1683)
closes TryGhost/Ghost#12127

* Added cancel/continue button for individual subscriptions on member page

Co-authored-by: Peter Zimon <zimo@ghost.org>
2020-08-21 17:05:45 +05:30
Daniel Lockyer
3292edbf25 Merged 3.30.2 into master
v3.30.2

* tag '3.30.2':
  v3.30.2
2020-08-21 12:06:58 +01:00
Daniel Lockyer
9554b0f775 v3.30.2 2020-08-21 12:03:37 +01:00
Sanne de Vries
e271486c8b Changed order and font color of author and publisher on bookmark card 2020-08-21 11:40:52 +02:00
Sanne de Vries
a7c3255060 Change input field border color in settings menu 2020-08-20 16:10:44 +02:00
Daniel Lockyer
e0c345d3ca v3.30.1 2020-08-20 09:28:09 +01:00
Nazar Gargol
240edf89aa Added automatic 'first_name' column mapping for members CSV importer
no issue

- When columns which match /name/ patter are present in imported CSV they should detect the mapping to 'name' column automatically
2020-08-20 15:04:35 +12:00
Rishabh Garg
c47593891c Refined portal custom icon flow (#1675)
refs https://github.com/TryGhost/members.js/issues/79

- Updated interaction for custom icon flow as per design spec in issue
2020-08-19 20:30:06 +05:30
renovate[bot]
19353a6c36 Update dependency @tryghost/kg-parser-plugins to v1.0.7 (#1681)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-19 10:00:22 +01:00
renovate[bot]
a704fc010c Update dependency @tryghost/kg-clean-basic-html to v1.0.7 (#1680)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-19 09:45:49 +01:00
Daniel Lockyer
a418e8a38b v3.30.0 2020-08-18 16:35:02 +01:00
Daniel Lockyer
7a2fc28d40 Merged 3.29.2 into master
v3.29.2

* tag '3.29.2':
  v3.29.2
2020-08-18 12:18:36 +01:00
Daniel Lockyer
a3b797c3b3 v3.29.2 2020-08-18 12:15:49 +01:00
Rishabh Garg
6d4bcb205e Allowed Admin users to impersonate members (#1679)
closes TryGhost/Ghost#12126
depends on https://github.com/TryGhost/Ghost/pull/12132#pullrequestreview-469092171

- Previously, only Owner user was shown option to impersonate a member
- Grants Administrator user ability to impersonate a member
2020-08-18 14:19:12 +05:30
Renovate Bot
8139d35c29 Update dependency eslint to v7.7.0 2020-08-14 22:22:22 +00:00
Rish
59e49bb541 Fixed typo in portal preview signup options
no issue

- Pretty sure its supposed to be Signup and not Singup
2020-08-14 21:29:16 +05:30
renovate[bot]
5f7f3ec5df Update dependency ember-cli-mirage to v1.1.8 (#1664)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-13 12:06:26 +01:00
renovate[bot]
a8b6d6baa6 Update dependency ember-cli-htmlbars to v5.3.1 (#1670)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-13 12:06:13 +01:00
Renovate Bot
d8add12920 Update dependency @tryghost/timezone-data to v0.2.27 2020-08-13 10:37:47 +01:00
Renovate Bot
23faf916ab Update dependency @tryghost/string to v0.1.11 2020-08-13 10:30:07 +01:00
Renovate Bot
e78ef4473b Update dependency @tryghost/helpers to v1.1.30 2020-08-13 10:29:58 +01:00
Daniel Lockyer
7384fbad8a v3.29.1 2020-08-11 10:46:42 +01:00
Renovate Bot
fb52adb0b1 Update dependency @tryghost/timezone-data to v0.2.26 2020-08-11 09:27:40 +01:00
Renovate Bot
66b3a04aad Update dependency @tryghost/helpers to v1.1.29 2020-08-11 09:22:23 +01:00
Rish
d4cf0602e5 Updated background flicker for portal preview
refs https://github.com/TryGhost/members.js/issues/77

- There was a quick flicker before the portal popup appears due to the site theme being visible in background till portal loads
- Adds the constant background with slight delay to show the frame which ensures the portal script is successfully loaded to minimise the visible flicker
2020-08-11 12:27:34 +05:30
Rish
b796bf74fc Added close confirmation for Portal settings
refs https://github.com/TryGhost/members.js/issues/77

- Adds close confirmation when closing Portal settings for unsaved changes
2020-08-11 12:27:34 +05:30
Daniel Lockyer
020d099054 v3.29.0 2020-08-10 17:00:10 +01:00
Nazar Gargol
36e1dd6f2a Fixed members importer state after unknown API error
no issue

- Members importer returns to first state of uploader with file selection when unknown error happens during the upload. If the upload fails and 'summary' state is set, it leads to showing summary stas during 'customizing' state.
2020-08-11 00:08:12 +12:00
Kevin Ansfield
63070673d2 Added explicit count of paid members to email confirmation modal
closes https://github.com/TryGhost/Ghost/issues/12112

- perform a paid members list query with a limit of 1 when the modal is displayed if the post is set to members only, then use the pagination meta data to get a total number of members
- display a spinner and disable the confirm button whilst the count query is in progress
- does not display any counts for users with the Editor role as they do not have permission to list members
2020-08-10 12:27:16 +01:00
Kevin Ansfield
45a857c951 Fixed {{gh-pluralize}} errors
refs fd91b593a5

- fixed incorrect call `pluralize(undefined, {withoutCount: true})` when number is undefined - `pluralize()` expects only one argument when no number is provided
- fixed destructuring in ghPluralize
- fixed linting error for undefined method after removal of `formatNumber` import
- fixed typo of import path in members controller
2020-08-10 11:37:21 +01:00
Kevin Ansfield
fd91b593a5 Added number formatting to all pluralized counts
closes https://github.com/TryGhost/Ghost/issues/12110

- adds `{{gh-pluralize}}` helper that wraps the `{{pluralize}}` helper from `ember-inflector` but formats the number using our `{{format-number}}` helper
- updates all uses of `{{pluralize}}` to `{{gh-pluralize}}`
2020-08-10 11:16:03 +01:00
Kevin Ansfield
e246b2829d Lock file maintenance 2020-08-10 08:57:51 +01:00
renovate[bot]
4acc2f8f44 Update dependency ember-fetch to v8.0.2 (#1669)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-10 08:45:39 +01:00
renovate[bot]
a77e4a19bc Update dependency ember-resolver to v8.0.2 (#1666)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-10 08:45:11 +01:00
renovate[bot]
9a1725a0bd Update dependency ember-cli-chart to v3.7.2 (#1665)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-10 08:44:50 +01:00
Rish
6df368ed3b Updated portal preview to use default icon
refs https://github.com/TryGhost/members.js/issues/77

- By default, if there is no icon button selected, we fallback to show the first icon in list as selected in both preview and portal
2020-08-06 16:21:27 +05:30
Rish
5cce6138e5 Added Portal links section in preview area
closes https://github.com/TryGhost/members.js/issues/80

- This adds the link/attribute switcher and chooser directly to Admin in Portal preview area
- Thinks links/attributes section was previously shown as a Portal page
2020-08-05 11:36:26 +05:30
Daniel Lockyer
6245575b30 v3.28.0 2020-08-04 11:23:40 +01:00
Renovate Bot
b8fdf8c617 Update dependency @tryghost/timezone-data to v0.2.25 2020-08-04 11:05:12 +01:00
Renovate Bot
7fc437be6d Update dependency @tryghost/helpers to v1.1.28 2020-08-04 10:53:17 +01:00
Renovate Bot
4e19e0582e Update dependency @tryghost/string to v0.1.10 2020-08-04 10:52:59 +01:00
Roshan Dash
8df1892185 🐛 Fixed incorrect scheduled date in toast (#1663)
closes https://github.com/TryGhost/Ghost/issues/12102

- The scheduled date was incorrectly shown as month number in the toast box after scheduling
- Updates to correctly show the selected date
2020-08-04 13:04:24 +05:30
Kevin Ansfield
970df7fba7 🐛 Fixed missing autosave indicator regression in editor
refs https://github.com/TryGhost/Ghost/issues/12098

- the component template was directly referencing `this._isSaving` which meant that the `this.isSaving` getter was never fetched and so no autotracking was set up for `this.args.isSaving` to trigger the task that updates `this._isSaving`
2020-08-03 09:51:06 +01:00
renovate[bot]
15d1bfea30 Lock file maintenance (#1659)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-03 09:39:12 +01:00
renovate[bot]
e143c0a4df Update dependency autoprefixer to v9.8.6 (#1655)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-03 09:37:13 +01:00
renovate[bot]
c27349288c Update dependency ember-cli-babel to v7.22.1 (#1658)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-03 09:36:52 +01:00
renovate[bot]
2eb75f7b3b Update dependency ember-modifier to v2 (#1657)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-03 09:35:30 +01:00
Kevin Ansfield
0b6a2eda80 Updated core files to match ember-cli new output 2020-08-03 09:24:58 +01:00