Commit Graph

7046 Commits

Author SHA1 Message Date
Kevin Ansfield
e5056af95e Update dependencies ember-in-viewport@3.9.0 and ember-infinity@2.2.1
no issue

- dependencies needed to be updated together due to inter-dependency version issues
2021-06-03 15:26:26 +01:00
renovate[bot]
763a3f6797 Update dependency @tryghost/kg-parser-plugins to v1.1.8 (#1988)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-03 14:52:03 +01:00
renovate[bot]
9ddd280189 Update dependency ember-fetch to v8.0.5 (#1992)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-03 14:01:02 +01:00
renovate[bot]
8840ec44d8 Update dependency @sentry/ember to v6.5.1 (#1991)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-03 14:00:48 +01:00
renovate[bot]
0cb368692b Update dependency ember-concurrency to v2.1.0 (#1989)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-03 14:00:19 +01:00
renovate[bot]
2338b7c493 Update dependency @tryghost/kg-clean-basic-html to v1.0.18 (#1987)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-03 13:59:47 +01:00
Kevin Ansfield
79d14082c2 🎨 Enabled use of Grammarly extension in the editor
no issue

- Grammarly have indicated their extension is now compatible with the underlying editor technology used in Ghost
- removed html attributes that explicitly disabled the extension on our editor fields
2021-06-03 13:22:07 +01:00
Daniel Lockyer
f1954f8772 Added CI step to trigger canary build
refs 84bfbae282

- if Admin is pushed to after Ghost, the canary build won't contain
  Admin changes, so we need to trigger another canary build
- this commit adds a final step to the CI flow that will trigger the
  Ghost canary build if all steps were successful
2021-06-01 17:16:08 +01:00
Kevin Ansfield
2f828137ab 🐛 Fixed Enter key not working in send email confirmation modal
no issue

- the modal wasn't overriding the default `confirm` action so an error was thrown and the confirm action not triggered when pressing <kbd>Enter</kbd> whilst the modal is shown
- resolves Sentry error `ADMIN-M`
2021-06-01 17:02:31 +01:00
Kevin Ansfield
194cf296e5 Fixed "this.args is undefined" error when pressing Escape to close roles modal
no issue

- the modal component is using a native class but with the `@classic` decorator so it's still using pre-Glimmer component syntax where `this.args` doesn't exist
- fixes Sentry error `ADMIN-4C`
2021-06-01 16:50:02 +01:00
Kevin Ansfield
66f6d25d4b 🐛 Fixed blank branding preview on split front-end/admin domain setups
no issue

- the POST request made to fetch the preview was going to the non-trailing-slash version of the site URL which was resulting in a redirect to the trailing-slash version which then failed due to CORS
2021-06-01 10:46:28 +01:00
renovate[bot]
167a18deaf Lock file maintenance (#1986)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-01 09:43:20 +01:00
renovate[bot]
d3c0e6d0b4 Update dependency markdown-it-footnote to v3.0.3 (#1971)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-01 09:22:09 +01:00
renovate[bot]
21c365b039 Update dependency @sentry/ember to v6.5.0 (#1985)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-01 09:20:54 +01:00
renovate[bot]
848d6b0785 Update dependency ember-modifier to v2.1.2 (#1983)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-01 09:20:40 +01:00
renovate[bot]
bcd71a29a4 Update dependency testem to v3.4.2 (#1984)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-01 09:08:21 +01:00
renovate[bot]
7f2c7ca1fb Update dependency papaparse to v5.3.1 (#1982)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-01 09:07:49 +01:00
renovate[bot]
7d6908ef6a Update dependency ember-keyboard to v6.0.3 (#1981)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-01 09:06:54 +01:00
renovate[bot]
a11b1d0f70 Update dependency broccoli-funnel to v3.0.6 (#1979)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-01 09:06:34 +01:00
Sanne de Vries
098f5b9d06 Added icon to staff user role dropdown field 2021-06-01 09:29:37 +02:00
Daniel Lockyer
b8ec55a380 Merged v4.6.4 into main
v4.6.4
2021-05-27 19:20:16 +01:00
Daniel Lockyer
c961a89cad v4.6.4 2021-05-27 19:19:14 +01:00
Kevin Ansfield
04f3a4ae41 Enabled sourcemap build output in production
no issue

- production sourcemaps are needed to have reasonably readable stack traces in error reporting
- will be excluded from Ghost release zips by `.npmignore` rules
2021-05-27 18:54:25 +01:00
Kevin Ansfield
fb17b41c05 Fixed tests expecting '(Untitled') in editor title input
refs a5dd92f1b8

- updated to reflect changed behaviour
2021-05-27 18:52:35 +01:00
Kevin Ansfield
a5dd92f1b8 Changed editor title input to treat '(Untitled)' as blank
refs https://github.com/TryGhost/Team/issues/707

- the switch to a hard `'(Untitled)'` when you start typing is jarring and pulls you away from writing to want to set a title
- by changing the input to treat '(Untitled)' as a blank value the placeholder continues to be shown so flow isn't broken. Post validation and title display elsewhere in the app is unaffected because we're still setting `'(Untitled')` under the hood, it's only the editor display that changes
2021-05-27 18:18:51 +01:00
Kevin Ansfield
6d66c2cc73 Converted <GhKoenigEditor> to glimmer component
no issue

- switched to Ember Octane patterns
  - use native class instead of EmberObject syntax
  - moved container element into template
2021-05-27 18:18:51 +01:00
Daniel Lockyer
5f582c0d16 v4.6.3 2021-05-27 17:25:35 +01:00
Kevin Ansfield
3d43964bcd 🐛 Fixed portal preview resize when using split front-end/admin URLs (#1980)
no issue

- switched to listening to Portal's `message` events that now include a height
- removes need to reach into Portal preview iframe contents which is blocked by browser security when working cross-origin
2021-05-27 13:20:37 +01:00
Kevin Ansfield
c8f1fb5b45 🐛 Fixed error on membership screen when using split front-end/admin URLs
no issue

- when the preview iframe origin does not match the admin origin (ie, front-end and admin live on different URLs) we would hit browser security restrictions for accessing contents of a cross-origin iframe
- added a guard around the preview resize code so we abort resizing when we hit a security error
2021-05-27 11:00:10 +01:00
Daniel Lockyer
987a6d9c29 v4.6.2 2021-05-27 08:17:23 +01:00
Kevin Ansfield
f45f250a1d Sorted snippets alphabetically in card menus
no issue

- more logical ordering
2021-05-26 20:29:41 +01:00
Daniel Lockyer
28d9a4e6c4 v4.6.1 2021-05-26 18:46:08 +01:00
ceecko
0b31be4c90 🎨 Added error message from limit service to theme upload
no issue

- Addresses 634d2daa13 (r49241896)
- Uses limit service to display the configured error message
2021-05-26 19:05:19 +02:00
Kevin Ansfield
09716646b0 Switched from Sentry.captureMessage to captureException for better logging
no issue

- `Sentry.captureMessage` is used for plain text messages rather than errors or objects
2021-05-26 17:18:02 +01:00
Kevin Ansfield
5b2194d5e8 Added Sentry error tracking for unhandled exceptions and API errors
refs https://github.com/TryGhost/Team/issues/723

- if the `/site/` API returns a `sentry_dsn` then we configure Sentry for error reporting as soon as we've loaded the initial unauthenticated data
- once we're authenticated and we have the full Ghost version available, override the Sentry event processor to use the full release
- updated `notifications.showAlert()` which is our fallback for API errors that shows the red banner at the top - these are the errors we're most interested in getting visibility for and reducing
2021-05-26 17:01:32 +01:00
Rishabh
7630b5f3ae Fixed member details not loading
refs https://github.com/TryGhost/Team/issues/660

We added a guard to not send price object in a subscription when the data is missing from DB. This can cause the member details page to fail with the missing price object, so this change adds a guard against subscriptions with missing price.

Note: This is only a short-term fix till we add a proper fix to cleanup the DB in the subsequent release.
2021-05-26 19:53:41 +05:30
Daniel Lockyer
7714431d39 v4.6.0 2021-05-25 15:11:56 +01:00
Peter Zimon
efb036f9f1 Refined icon color 2021-05-25 14:00:22 +02:00
renovate[bot]
c2ebf91365 Update dependency ember-test-selectors to v5.3.0 (#1978)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-25 11:08:14 +01:00
renovate[bot]
e28fc4255c Update dependency grunt to v1.4.1 (#1976)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-25 11:07:17 +01:00
Kevin Ansfield
2a4dc849d0 Disabled "Customise portal" button when signup access is disabled
no issue

- when signup access is set to "none" the portal preview will be blank and the settings not available so it doesn't make sense to make the customise portal modal available
2021-05-25 10:09:13 +01:00
Kevin Ansfield
2f39953917 Fixed preview background flash when switching from none -> all/invite
no issue

- flash was occurring because as soon as the setting was changed we switched to showing the portal preview but at that time the preview URL is still set to an old url value. The url doesn't get changed until the settings save completes which gives enough time for a non-portal page to load before being replaced
- added a `switchFromNoneTask` that is triggered when switching away from a saved none value and updated the template to stay on the "disabled" view until the save has completed so we don't trigger multiple page loads
2021-05-25 09:40:17 +01:00
Kevin Ansfield
2bd118eef9 Attempted fix of portal background flash going from nobody->anybody/invite
no issue

- dropped use of `@guid` tracked param in favour of adding query param to URL in `updatePortalPreview()` and making sure we only update it when necessary
2021-05-24 19:29:18 +01:00
Kevin Ansfield
28de12c7eb Added scrolling="no" back in correct position
no issue

- property is specific to the membership portal preview rather than all site iframes
- fixes page-height scrollbar appearing on portal preview height animation
2021-05-24 19:14:47 +01:00
Peter Zimon
5cf7a29d2c Portal preview iframe refinements 2021-05-24 20:06:39 +02:00
Kevin Ansfield
b06a351538 Removed errant scrolling="no" on <GhSiteIframe> 2021-05-24 18:59:21 +01:00
Kevin Ansfield
956ec8f302 Added animation to portal preview height (#1977)
no issue

- add CSS transition for height attribute of portal preview container
- before adjusting height of container, apply styles to portal preview nested iframe to prevent scrollbars from showing
2021-05-24 18:55:18 +01:00
Kevin Ansfield
baafe011a2 Fixed portal preview resize and cached page bugs
no issue

- moved `@onLoad` trigger from `load` event to the `makeVisible()` task so that consumer code isn't called before load has fully finished
  - fixes issue with portal sometimes not being ready when we perform the resize on the membership screen
- added guid as a cache-busting `?v={guid}` query param
  - fixes issue where preview iframe can load stale data after a settings change resulting in a blank preview after going from "nobody" to "invite/anybody" because the loaded homepage is stale and doesn't have the portal script injected
2021-05-24 17:28:01 +01:00
Rishabh
757f061362 Added stripe connect guard for saving product
no refs

While saving on membership screen, we also try and save the product with any prices that have changed. In case Stripe is not connected, saving Product doesn't make sense as we should not edit prices for the default product without Stripe connection.
2021-05-24 21:17:40 +05:30
Rishabh
1b491aa083 Fixed price reset when no monthly/yearly prices
no refs

When we reset the prices on leaving the membership settings screen, its possible we don't have the prices created already and not able to read any monthly/yearly price.
2021-05-24 20:02:49 +05:30