Commit Graph

6680 Commits

Author SHA1 Message Date
Sanne de Vries
4f10e611b0 Moved default post access from Payments to Access screen (#1879)
refs https://github.com/TryGhost/Team/issues/579

- updated access section on Payments screen to only show when not running developer experiments
- added default post access settings to Access screen

Co-authored-by: Kevin Ansfield <kevin@lookingsideways.co.uk>
2021-04-14 19:02:36 +01:00
renovate[bot]
f92532d51c Update dependency broccoli-concat to v4.2.5 (#1914)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-14 18:45:44 +01:00
renovate[bot]
69097a805c Update dependency @tryghost/kg-parser-plugins to v1.1.7 (#1912)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-14 18:39:14 +01:00
renovate[bot]
c4031f498e Update dependency broccoli-funnel to v3.0.4 (#1913)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-14 18:37:17 +01:00
renovate[bot]
60fdb16f5c Update dependency @tryghost/kg-clean-basic-html to v1.0.17 (#1911)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-14 18:36:57 +01:00
Daniel Lockyer
62f08b024f Merge v4.2.1 into main
v4.2.1
2021-04-13 16:26:46 +01:00
Daniel Lockyer
b0830c0454 v4.2.1 2021-04-13 16:23:48 +01:00
Kevin Ansfield
59a37dc984 Fixed faker.random.number rename warnings
no issue

- `faker.random.number` is now `faker.datatype.number`
2021-04-12 15:32:39 +01:00
renovate[bot]
40c6cb51e6 Update dependency ember-in-viewport to v3.9.0 (#1899)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-12 13:51:07 +01:00
renovate[bot]
e1ddf1795f Update dependency ember-concurrency to v2 (#1909)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-12 13:42:58 +01:00
renovate[bot]
e05a6d1c19 Update dependency fs-extra to v9.1.0 (#1904)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-12 13:42:50 +01:00
renovate[bot]
53a8a6a0c1 Update dependency @html-next/vertical-collection to v2 (#1906)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-12 13:33:07 +01:00
renovate[bot]
16b9fb046e Update dependency faker to v5.5.3 (#1903)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-12 13:30:16 +01:00
renovate[bot]
08d2a8e7a7 Update dependency ember-cli-app-version to v5 (#1908)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-12 13:30:00 +01:00
renovate[bot]
7f71b9dd10 Update dependency @tryghost/members-csv to v1 (#1907)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-12 13:29:04 +01:00
renovate[bot]
6a9e206665 Update dependency ember-power-select to v4.1.4 (#1900)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-12 13:28:47 +01:00
renovate[bot]
d9cdca6823 Update dependency ember-svg-jar to v2.3.3 (#1902)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-12 13:28:30 +01:00
Kevin Ansfield
cf7a763199 Removed usage of deprecated EmberSimpleAuth mixins (#1910)
refs https://github.com/TryGhost/Admin/pull/1901

Ember has deprecated mixins in preparation for 4.0 and `ember-simple-auth` has now done the same in 3.1.0.

- removed all imports of Ember Simple Auth mixins
- moved authenticated and invalidated handling from application route to session service
- moved server-notification loading from application route to session service
- updated `AuthenticatedRoute` to use the session service directly rather than authenticated route mixin
- added `UnauthenticatedRoute` that incorporates the behaviour from our overridden `UnauthenticatedRouteMixin` and switches to using the session service directly
2021-04-12 13:21:57 +01:00
Sanne de Vries
eb28e42ad4 Updated styles for change-user-role modal 2021-04-12 14:09:24 +02:00
Kevin Ansfield
ffe5416b77 Swapped staff role selector from <select> to new role selection modal
closes https://github.com/TryGhost/Team/issues/572

Role selection when inviting users was updated to show information about each staff role. This change updates the staff edit screen to use the same UI for changing the role of an existing user.

- added `select-user-role` modal which uses `<GhRoleSelection>` to allow role selection
- replaced the `<select>` input for changing a user's role with a button that triggers the role selection modal
  - role is not set unless the "Set role" button is clicked after making a selection, cancel or close will leave the original role selected
2021-04-12 11:35:50 +01:00
Kevin Ansfield
824953d162 Fixed initial role selection and layout shift in <GhRoleSelection>
no issue

- initial role was always being set to Contributor due to incorrect argument being used when checking if the default role should be applied
- there was considerable layout shift of the `<GhRoleSelection>` container after role loading was finished, quick-fix applied by specifying a width and height to the loading spinner container that matches the final width/height
2021-04-12 11:27:37 +01:00
Kevin Ansfield
c3c383ae69 Fixed role validation when inviting new users
no issue

- the `role` argument was not being passed to the `validateRole` method when changing roles
2021-04-12 11:15:09 +01:00
renovate[bot]
519ed564b8 Update dependency ember-simple-auth to v3.1.0 (#1901)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-12 09:11:58 +01:00
renovate[bot]
ede91dc162 Update dependency ember-cli-htmlbars to v5.7.1 (#1897)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-12 09:11:29 +01:00
renovate[bot]
64ed5a61e7 Update dependency ember-cli-babel to v7.26.3 (#1896)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-12 09:11:17 +01:00
renovate[bot]
f2c9b0306e Update dependency ember-cli-mirage to v2.1.0 (#1898)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-12 08:50:08 +01:00
renovate[bot]
a751b3051a Update dependency @tryghost/timezone-data to v0.2.39 (#1893)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-12 08:49:36 +01:00
renovate[bot]
f8451c7eb6 Update dependency @tryghost/limit-service to v0.4.1 (#1890)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-12 08:49:28 +01:00
renovate[bot]
1534f0b454 Update dependency @tryghost/kg-clean-basic-html to v1.0.16 (#1888)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-12 08:49:19 +01:00
renovate[bot]
bb0532e9d7 Update dependency ember-auto-import to v1.11.2 (#1895)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-12 08:38:41 +01:00
renovate[bot]
ba8edadcf2 Update dependency element-resize-detector to v1.2.2 (#1894)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-12 08:37:28 +01:00
renovate[bot]
a1a357e911 Update dependency @tryghost/string to v0.1.17 (#1892)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-12 08:36:47 +01:00
renovate[bot]
d32e12f995 Update dependency @tryghost/members-csv to v0.4.5 (#1891)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-12 08:36:30 +01:00
renovate[bot]
3c17fd898a Update dependency @tryghost/kg-parser-plugins to v1.1.6 (#1889)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-12 08:36:13 +01:00
renovate[bot]
2b9e8171bd Update dependency @tryghost/helpers to v1.1.41 (#1887)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-12 08:35:54 +01:00
renovate[bot]
6d1a8fb03c Update dependency @glimmer/component to v1.0.4 (#1886)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-12 08:35:36 +01:00
renovate[bot]
1f15b332d2 Pin dependency ember-keyboard to 6.0.2 (#1885)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-12 08:35:24 +01:00
Renovate Bot
f96456c9fc Update Test & linting packages 2021-04-12 00:51:22 +00:00
Kevin Ansfield
582cbd93ca Fixed renovate config
refs c1ecb6a572
refs https://github.com/TryGhost/Admin/pull/1830

- using `renovate-config-validator` it appears Renovate doesn't support extends within packageRules or at least requires direct selectors rather than extended selectors
- copied package rules from `@tryghost:pkgCSS` across rather than using `extends`
2021-04-10 09:02:10 +01:00
Kevin Ansfield
c1ecb6a572 Attempted to fix renovate config
refs https://github.com/TryGhost/Admin/pull/1830

- Renovate hasn't tried to update any packages since January when the postcss dependencies were pinned and Renovate config updated to try and disable css related package updates
- it's possible the `enabled: false` was affecting everything because the wrong extends was used in the package rule. Swapped from `groupCSS` to `pkgCSS` to better match the intention of disabling specific packages
2021-04-10 08:54:08 +01:00
Kevin Ansfield
85048a5fbb Update dependency ember-one-way-select to 4.0.1 2021-04-10 08:40:16 +01:00
Kevin Ansfield
e7ac8731b0 Extracted role selector to <GhRoleSelection> component
refs https://github.com/TryGhost/Team/issues/572

- preparation for re-using the new role selector in a model when changing an existing user's role
2021-04-10 08:16:16 +01:00
Peter Zimon
80357855aa Added mock product price modal
no refs.
- added static price modal to product detail page
2021-04-09 13:01:28 +02:00
Thibaut Patel
7b99c555c5 Fix the limit service when querying an empty config
commit d350a58769
2021-04-09 11:16:37 +02:00
Thibaut Patel
47f0969ac2 Fix customThemes flag
commit f65c5a7f8b

 - disabled = true means that the feature is disabled
2021-04-08 20:23:21 +02:00
Thibaut Patel
f65c5a7f8b Fix UploadThemeController to support disable:true customThemes flag
no issue
2021-04-08 19:32:46 +02:00
Peter Zimon
f172fedb58 Updated settings icon colors 2021-04-08 17:25:32 +02:00
Peter Zimon
c6bb423a26 Updated product detail page mockup
- updated layout for static product detail page
2021-04-08 17:20:32 +02:00
Kevin Ansfield
733f76d571 Added automatic CSV export when bulk deleting members
refs https://github.com/TryGhost/Team/issues/585

- updated bulk destroy task to first use the current query params to fetch from the appropriate CSV export endpoint and trigger a download
  - fetches via JS and triggers download from a blob URL link instead of an iframe so that we can be sure the download is successful before we hit the bulk delete endpoint
  - works differently to user deletion download because the server is not generating an export file and saving it meaning the client has to be sure we don't delete data before it's exported
- updated copy in the confirmation modal to reflect the download behaviour
2021-04-08 16:06:00 +01:00
Kevin Ansfield
51b0cfb199 Fixed members list query not always matching route params
refs e25e36352d

- referenced refactor accidentally removed direct usage of `params` in `fetchMembersTask()`
- because it's called from the `model()` hook the query param properties on `this` have not yet been updated to the new params meaning we were querying the API with stale params
2021-04-08 16:00:43 +01:00