Commit Graph

34622 Commits

Author SHA1 Message Date
Peter Zimon
ef096d9c87 Cleaned up classname properties in AdminX
refs. https://github.com/TryGhost/Team/issues/3354
2023-06-07 10:48:33 +02:00
Peter Zimon
f05b6a6037 Added unstyled property to image uploads AdminX
refs. https://github.com/TryGhost/Team/issues/3354
2023-06-07 10:29:03 +02:00
Peter Zimon
9faf2cafbe Got rid of modal folders in AdminX
refs. https://github.com/TryGhost/Team/issues/3354
2023-06-07 09:53:20 +02:00
Peter Zimon
a3cba13381 Broke down design settings in AdminX
refs. https://github.com/TryGhost/Team/issues/3354
2023-06-07 09:40:56 +02:00
Peter Zimon
d7e5661a35 Fixed preview modal size bug in AdminX
refs. https://github.com/TryGhost/Team/issues/3354
2023-06-07 09:10:16 +02:00
Sodbileg Gansukh
dfd4ab0f0f
Fixed search input focus on iOS (#16950)
closes https://github.com/TryGhost/Ghost/issues/16825

- iOS is very restrictive on input focus which doesn't allow without any
user interaction
- The only workaround was creating a temporary input, focus it, and
remove it after moving the focus to the actual searfch input
- It also moves the inputRef to the parent component, so that it can be
used in the click event handler, because the focus event only works when
it's inside a function that's triggered after user interaction
2023-06-07 15:01:28 +08:00
Duberly, Guarnizo Fuentes Rivera
28bef37d02
Updated Spanish translations (#16940)
refs https://github.com/TryGhost/Team/issues/2795
2023-06-07 08:57:30 +02:00
EchoBilisim
095a262b14
Updated Turkish translations (#16937)
refs https://github.com/TryGhost/Team/issues/2795
2023-06-07 08:52:20 +02:00
Daniel Lockyer
5d7d56198c
Released Portal v2.33.1 2023-06-07 08:38:25 +02:00
Daniel Lockyer
5f860c6e31
Fixed encoded characters appearing for Offers in Portal
fixes https://github.com/TryGhost/Team/issues/3392

- the "price" here can contain a slash, which is encoded/escaped by default by
  i18next
- this disables the escaping to fix the text that is shown to the user
2023-06-07 08:35:40 +02:00
Daniel Lockyer
05b854e156
Added extra coverage directories to gitignore
refs https://ghost.slack.com/archives/C02G9E68C/p1686083282151169

- these were added as part of splitting out the coverage for the
  separate runs, but I forgot to add them to the gitignore
2023-06-07 08:26:42 +02:00
Rishabh
71e5d708d4 Reverted "Disabled image editor setting check"
This reverts commit 9d9e296148.

This commit was a temporary fix to load the image editor if the setting was disabled.
2023-06-07 02:10:02 +05:30
Ghost CI
80ed948bb9 Merged v5.50.2 into main 2023-06-06 19:05:20 +00:00
Ghost CI
924d73e02e v5.50.2 2023-06-06 19:05:19 +00:00
Rishabh
9d9e296148 Disabled image editor setting check
refs https://github.com/TryGhost/Team/issues/3034

Temporarily disables image editor setting check to allow it load by default
2023-06-06 23:59:43 +05:30
Rishabh
6806b88139 Fixed pintura link in image editor integration
refs https://github.com/TryGhost/Team/issues/3034
2023-06-06 23:35:56 +05:30
Steve Larson
75458cd7be Added koenig lexical version to feedback submission
refs TryGhost/Team#3381
2023-06-06 12:55:51 -05:00
Naz
fab5b1845c
Made builtin collections un-deletable
closes https://github.com/TryGhost/Team/issues/3376

- It should not be possible to delete a built-in collection.
2023-06-06 22:04:16 +07:00
Ghost CI
c8b713a679 Merged v5.50.1 into main 2023-06-06 14:40:58 +00:00
Ghost CI
6a07d63f38 v5.50.1 2023-06-06 14:40:57 +00:00
Kevin Ansfield
076c2be9aa
🐛 Fixed copy/paste of HR cards between editor and beta editor
no issue

- bumped `@tryghost/kg-converters` which contains a fix for an incorrect card name map in the lexical/mobiledoc converter methods
2023-06-06 15:20:35 +01:00
Kevin Ansfield
d5a547b6ad
Added double-encoded fix to mobiledoc->lexical snippets sync
no issue

Early in the editor beta snippets were being saved with double-encoded JSON meaning we were dealing with strings rather than objects after Ember's deserialization. That's since been fixed so we're dealing with objects everywhere but old data can still cause issues.

- added a step to the `syncMobiledocSnippets()` method that checks if `snippet.lexical` is a string and performs the necessary fixes to the double-encoded values
- updated the snippet filter in the old editor to exclude double-encoded snippets as that could still load before the new editor has been accessed and the sync+fix has run
2023-06-06 15:20:22 +01:00
Kevin Ansfield
ed24899fa5
🐛 Fixed existing snippets not being available in beta editor
closes https://github.com/TryGhost/Team/issues/3387

- adds syncing of mobiledoc->lexical formats for snippets when opening the beta editor
- this is a one-way sync
  - new snippets or changes made to snippets inside the beta will not be available in the old editor
  - creating or changing snippets in the old editor will sync to (and potentially overwrite snippets) in the beta editor
- fixed incorrect saving of doubly-escaped JSON when creating snippets in the beta editor
2023-06-06 15:20:14 +01:00
Kevin Ansfield
dddd2a4111
🐛 Fixed copy/paste of HR cards between editor and beta editor
no issue

- bumped `@tryghost/kg-converters` which contains a fix for an incorrect card name map in the lexical/mobiledoc converter methods
2023-06-06 15:14:22 +01:00
Michael Barrett
a1b08f15b2
Fixed flaky frontend members test (#16947)
closes https://github.com/TryGhost/Team/issues/3325

Awaited `DomainEvents.allSettled()` to ensure domain event is fully
processed before asserting member was successfully updated
2023-06-06 14:57:46 +01:00
Sanne de Vries
d9a20b0e00 Fixed form embed settings overflowing in x direction
Closes https://github.com/TryGhost/Team/issues/3384
2023-06-06 15:24:08 +02:00
Peter Zimon
2e2a96c741 User modal refinements in AdminX
refs. https://github.com/TryGhost/Team/issues/3351
2023-06-06 15:17:05 +02:00
Peter Zimon
2fc3336dd2 Fixed modal padding bug
refs. https://github.com/TryGhost/Team/issues/3351
2023-06-06 15:08:04 +02:00
Sanne de Vries
c08723b7aa
Fixed error message position to be visible on minimal form (#16946)
Closes https://github.com/TryGhost/Team/issues/3386
2023-06-06 15:05:24 +02:00
Peter Zimon
19dfd28946 Added sticky footer option to modals in AdminX
refs. https://github.com/TryGhost/Team/issues/3351
2023-06-06 14:58:55 +02:00
Peter Zimon
f5415a25ad Added backDropClick param. to modals in AdminX
refs. https://github.com/TryGhost/Team/issues/3351
2023-06-06 14:58:55 +02:00
Rishabh Garg
5c209abdc0
Updated default value for image editor integration setting (#16897)
refs https://github.com/TryGhost/Team/issues/3145

Updates pintura integration to be switched on by default for all sites by adding a migration to update the default value for the setting.
2023-06-06 18:15:01 +05:30
Kevin Ansfield
c11c842b1e
Added double-encoded fix to mobiledoc->lexical snippets sync
no issue

Early in the editor beta snippets were being saved with double-encoded JSON meaning we were dealing with strings rather than objects after Ember's deserialization. That's since been fixed so we're dealing with objects everywhere but old data can still cause issues.

- added a step to the `syncMobiledocSnippets()` method that checks if `snippet.lexical` is a string and performs the necessary fixes to the double-encoded values
- updated the snippet filter in the old editor to exclude double-encoded snippets as that could still load before the new editor has been accessed and the sync+fix has run
2023-06-06 13:35:07 +01:00
Kevin Ansfield
48defc4000
🐛 Fixed existing snippets not being available in beta editor
closes https://github.com/TryGhost/Team/issues/3387

- adds syncing of mobiledoc->lexical formats for snippets when opening the beta editor
- this is a one-way sync
  - new snippets or changes made to snippets inside the beta will not be available in the old editor
  - creating or changing snippets in the old editor will sync to (and potentially overwrite snippets) in the beta editor
- fixed incorrect saving of doubly-escaped JSON when creating snippets in the beta editor
2023-06-06 12:56:33 +01:00
Sanne de Vries
9c9eae1c11 Updated signup embed modal responsiveness
Refs https://github.com/TryGhost/Team/issues/3340
2023-06-06 12:21:11 +02:00
Daniel Lockyer
73ba799d17
Fixed generating sodo-search CSS in dev mode
refs https://ghost.slack.com/archives/CFH10N79S/p1686042479311309?thread_ts=1679079897.164069&cid=CFH10N79S

- the current build workflow wasn't generating the Tailwind compiled CSS
  so we needed to amend the commands to do so
2023-06-06 12:19:40 +02:00
Rishabh
695857ae96 Wired save and error handling for user details modal
refs https://github.com/TryGhost/Team/issues/3351

- updates user state on suspend/delete actions to show the latest
- shows errors for email and url on user detail screen
2023-06-06 15:08:44 +05:30
Simon Backx
31549933a1 Removed 200% width in signup form minimal preview
no issue

This change wasn't needed after all
2023-06-06 10:43:32 +02:00
Simon Backx
0ae1dad2d2 Removed signup form preview flickering in Safari and improved responsiveness
no issue

- In Safari, we'll poll longer before animating to the new iframe
- Update the iframe immediately if the last change was a while ago, to improve responsiveness
2023-06-06 10:43:06 +02:00
Sodbileg Gansukh
feac482859 Fixed loading screen flash issue in dark mode
closes https://github.com/TryGhost/Team/issues/3344
2023-06-06 16:21:15 +08:00
Simon Backx
f0518bc76a Increased signup form embed icon resolution to 192px
no issue

Optimal resolution for @3x devices
2023-06-06 09:42:42 +02:00
Simon Backx
fc89ad22fc Prevented setting signup form embed locale when feature flag is disabled
fixes https://github.com/TryGhost/Team/issues/3385
2023-06-06 09:40:47 +02:00
Naz
5a8eec402f
Restricted built-in collection init to run once
refs https://github.com/TryGhost/Team/issues/3376
fixes b4a97d084f

- The in-memory stores are not cleaned up when the Ghost instance is "shallow restarted" between test suite runs, causing the initialization of built-in collections to run multiple times. The initialization should ever add the collections once.
2023-06-06 13:35:06 +07:00
Naz
b4a97d084f
Fixed snapshot for failing collections test
refs bdbd9327d9

- The "build" command was not run for the @tryghost/collecitons package and caused outdated response
2023-06-06 12:50:55 +07:00
Naz
bdbd9327d9
Added built-in automatic featured collection
refs https://github.com/TryGhost/Team/issues/3376

- When the Ghost instance is initialized it has to have a set of built-in collections. With these changes Ghost starts with a "featured posts" collection - available to be used right away.
2023-06-06 12:41:37 +07:00
Rishabh
fbfb1d0008 Fixed user cover and profile image upload issues
refs https://github.com/TryGhost/Team/issues/3351

Uploading cover and profile images for user was having a weird behavior where one was getting removed when the other was uploaded or deleted. This was due to how the state was being updated on image change, which ended up using the old user state while setting the new one. This change uses react's setState method that uses the latest state to set the new one so the changes don't get overridden.
2023-06-06 09:43:36 +05:30
Rishabh
7b9d8b1829 Updated yarn.lock 2023-06-06 09:20:45 +05:30
Rishabh
c243b48629 Wired user invite actions on adminX
refs https://github.com/TryGhost/Team/issues/3351

- wires resend and revoke actions for a user invite in staff settings
2023-06-06 09:20:45 +05:30
Rishabh
c88a073a5c Wired delete and owner actions for staff users in adminX
refs https://github.com/TryGhost/Team/issues/3351

- allows owners/admins to delete users based on their permission level
- allows admins to be made owner users only if owner is logged in
2023-06-06 09:20:45 +05:30
Jono Mingard
885531b345 Added e2e tests for most simple AdminX settings 2023-06-06 15:50:07 +12:00