Commit Graph

5781 Commits

Author SHA1 Message Date
Daniel Lockyer 80e6800366 v3.29.0 2020-08-10 17:00:10 +01:00
Nazar Gargol d07c859d7d 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 d2456947bd 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 197f554c11 Fixed {{gh-pluralize}} errors
refs 754f8483e9

- 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 754f8483e9 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 fe1394ec59 Lock file maintenance 2020-08-10 08:57:51 +01:00
renovate[bot] 65aa4af739
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] d812a0e30f
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] 510859c166
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 aa6e138e5c 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 edad489d56 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 4915f6aee2 v3.28.0 2020-08-04 11:23:40 +01:00
Renovate Bot 4a943fd877 Update dependency @tryghost/timezone-data to v0.2.25 2020-08-04 11:05:12 +01:00
Renovate Bot eda36728c4 Update dependency @tryghost/helpers to v1.1.28 2020-08-04 10:53:17 +01:00
Renovate Bot 10ea199bf8 Update dependency @tryghost/string to v0.1.10 2020-08-04 10:52:59 +01:00
Roshan Dash 3eb8830cbd
🐛 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 03115d63dd 🐛 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] 4e75d1abec
Lock file maintenance (#1659)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-03 09:39:12 +01:00
renovate[bot] 7f8cedf747
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] c9ffea6024
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] e899e4d4f6
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 c2f6d448fe Updated core files to match ember-cli new output 2020-08-03 09:24:58 +01:00
Renovate Bot 8f4f0f30a8 Update ember core 2020-08-03 09:24:58 +01:00
renovate[bot] 8f8a26692f
Update dependency @glimmer/component to v1.0.1 (#1652)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-03 09:14:55 +01:00
Renovate Bot a89a9e0c76
Update dependency eslint to v7.6.0 2020-08-03 00:06:03 +00:00
Peter Zimon 563659e5a5 Updated Portal settings preview style
no refs.
- updated preview window style for portal so that it fits with the rest of the screen
2020-07-30 16:38:47 +02:00
Fabien O'Carroll d8c6e74066 v3.27.0 2020-07-27 18:38:25 +02:00
Peter Zimon 74392667fd Updated single member delete design
no issue
- updated single member delete modal copy + design layout
- swapped switch to regular checkbox + applied red color to it
- set button label based on checkbox state
2020-07-27 13:32:40 +02:00
renovate[bot] 331612eb32
Update dependency blueimp-md5 to v2.17.0 (#1650)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-27 09:25:38 +01:00
renovate[bot] 8db486fa87
Update dependency ember-source to v3.20.2 (#1651)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-27 09:25:22 +01:00
Peter Zimon 7be356b4c9 Updated default Portal icons
no refs.
- added a set of portal icons
- updated related CSS and mappings
2020-07-24 17:00:46 +02:00
Peter Zimon af1a17c461 Set Portal preview size
no refs.
- made Portal preview size a bit bigger
2020-07-24 17:00:46 +02:00
Fabien 'egg' O'Carroll 3155e6091d
Updated delete member UI to add toggle to cancel subscriptions (#1647)
no-issue

* Supported cancellation of subscriptions on delete

This makes the cancellation of subscriptions much more obvious to the
user, and we err on the side of caution by *not* cancelling by default.

* Updated base adapter to handle urls with query params

After creating the member adapter and overriding the urlForDeleteRecord
method the flow would take the url from that and it would get passed
into the buildUrl method of the base adapter. At this point it would
append a "/" _after_ the query param.

It would ouput http://admin.com/ghost/api?query=blah/
rather than http://admin.com/ghost/api/?query=blah
2020-07-24 16:02:42 +02:00
Rish ee494a4882 Removed accent color from general settings
no issue

- Accent color setting was behind dev flag on General settings screen
- Its now moved inside Portal settings where its primarily being used
- This change removes it from general settings screen so its only on Portal settings
2020-07-24 16:46:32 +05:30
Hannah Wolfe 14e533ea7a Updated host limit message to be clearer
- limits are based on total members not number of members that will be emailed
2020-07-23 18:24:33 +01:00
Rish fd5794cde9 Updated portal preview iframe url
no issue

- Updates url to load portal preview to use more specific path by appending `/preview`  in hash path
- Allows portal script to validate preview mode easily instead of guessing based on query string
2020-07-23 21:03:42 +05:30
Kevin Ansfield dea7a3da03 Removed bulk member edit dev experiment
no issue

- we're moving forward with a simplified bulk delete and the UI would conflict if both approaches are behind the dev experiments flag
2020-07-23 15:03:18 +01:00
Kevin Ansfield c223729fee Added automatic filter of members list after CSV import
requires 8ceabbcfba

- if the API responds with `meta.import_label` after an import, use it to reset and apply the filter across the members list so that it's quick to see the results of the import and perform further bulk actions (coming later)
- added ability to pass arguments through `<GhFullscreenModal>`'s `@confirm` action
- added a `console.error()` call to the members csv import so that any underlying error is not completely lost by the custom error handling
2020-07-23 14:15:07 +01:00
Rish 532172d430 Disabled interactions on portal preview frame
no issue

- All interactions on the portal preview should be disabled to keep a focused view.
- Disabled pointer events on portal preview iframe to not allow any interactions on page that can cause popup to close or navigate away
2020-07-23 16:56:27 +05:30
Kevin Ansfield b18d2b42df Removed errant .only from test suite 2020-07-22 20:00:03 +01:00
Daniel Lockyer 8ae6b89d54 v3.26.1 2020-07-22 11:56:55 +01:00
Rish b963e3afe5 Updated default icon handling for portal settings
no issue

- Adds mapping for default svg icons to keys
- Updates custom icon check to not include default icons
- Updated settings update to save default icon key on update
2020-07-22 16:16:29 +05:30
Rish 4413944d15 Updated portal preview setting for free plan selection
no issue

- Portal preview's free plan selection for Signup in settings was disabled because of old setting check
- Updates the disabled check to use correct self signup property
2020-07-22 13:19:37 +05:30
Daniel Lockyer f8f4db7039 Updated Renovate config
no issue

- automerge patches and minors
2020-07-21 16:57:05 +01:00
Daniel Lockyer a8d1b31ae2 v3.26.0 2020-07-21 13:45:56 +01:00
Amit Chambial e9f119daea
🐛 Fixed incorrect font size in editor when using code tags in headings (#1619)
closes https://github.com/TryGhost/Ghost/issues/11814

- replace font-size from rem to em (same size that is used in ghost)
2020-07-21 11:35:48 +01:00
renovate[bot] 99817dfa1d
Lock file maintenance (#1624)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-20 12:40:26 +01:00
renovate[bot] 6b02ad06ff
Update dependency ember-cli-chart to v3.7.1 (#1640)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-20 12:26:31 +01:00
Kevin Ansfield 199d33b8c0 Increased testem's `browser_start_timeout` to 120s
no issue

- we're seeing random failures in CI with the error "Browser failed to connect within 30s. testem.js not loaded?"
- bumped the timeout to 120s to determine if it's due to occasional CI-related slowness or something else
2020-07-20 12:20:26 +01:00
Kevin Ansfield e11fbabdaf Switched over to public {{in-element}} API
no issue

- Ember 3.20.0 introduced `{{in-element}}` as a public API in place of the now-deprecated `{{-in-element}}` private API
- replaced our usage of the private API with the public API
2020-07-20 12:10:17 +01:00