Commit Graph

34327 Commits

Author SHA1 Message Date
Elena Baidakova
254de144e4
Fixed dark mode for lexical (#16888)
refs TryGhost/Team#3327
2023-05-29 17:20:25 +04:00
Sanne de Vries
08fc96a077 Refined signup card frontend styles
Refs https://github.com/TryGhost/Team/issues/3246
2023-05-29 12:28:27 +02:00
renovate[bot]
1ee9c5f805 Update dependency jsdom to v22.1.0 2023-05-29 11:18:45 +02:00
Peter Zimon
8f710eb8b1 Added global 'no value' label in Admin Design Sys
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-29 11:00:09 +02:00
Rishabh
0167952949 Fixed duplicate key errors in admin-x
refs https://github.com/TryGhost/Team/issues/3151

- adds unique key to global heading element
2023-05-29 14:29:03 +05:30
Rishabh
95cfabb271 Cleaned up api and data access for admin-x
refs https://github.com/TryGhost/Team/issues/3151

- updates data providers to include roles as well as cleaner api syntax
- updates api methods to cleaner syntax and add roles api
- updated wiring for staff user profile editing and save
- updated data provider location in main app, is used before the modal provider so it has access to common context
- added `useRoles` hook that providers access to roles data for admin
- added `currentUser` to the staff provider
2023-05-29 14:29:03 +05:30
Peter Zimon
8732231abf Updated sizing of setting group value in AdminX
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-29 10:31:32 +02:00
renovate[bot]
610ba33513 Update dependency postcss to v8.4.24 2023-05-29 07:52:39 +02:00
Jono Mingard
1ed556f4ab Fixed both text and loading indicator showing on the subscribe button 2023-05-29 16:56:57 +12:00
Ghost CI
a589fcd9e4 v5.49.1 2023-05-26 15:02:32 +00:00
Peter Zimon
5fea02d147 Fixed minor sidebar bug in AdminX Settings
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-25 18:59:29 +02:00
Peter Zimon
505d61bf9f Modal refinements in AdminX
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-25 18:24:45 +02:00
Sam Lord
7bdb98ff9d Added empty translations for all locales
refs: https://github.com/TryGhost/Ghost/issues/16628
2023-05-25 16:48:56 +01:00
Sam Lord
c37c785a9f Refactored translation function t into object destructure
refs: https://github.com/TryGhost/Ghost/issues/16628
2023-05-25 16:48:56 +01:00
Sam Lord
a123a3ceee Added missing reference to translation function t
refs: https://github.com/TryGhost/Ghost/issues/16628
2023-05-25 16:48:56 +01:00
Sam Lord
8135ef74f7 Wrapped public facing strings with translation function
refs: https://github.com/TryGhost/Ghost/issues/16628
2023-05-25 16:48:56 +01:00
Sam Lord
5816217019 Added more string translations
refs: https://github.com/TryGhost/Ghost/issues/16628
2023-05-25 16:48:56 +01:00
Sam Lord
67c81dbd6c Added wrapped i18n strings for email FAQ
refs: https://github.com/TryGhost/Ghost/issues/16628

This adds a library for interpolating strings with React components, which allows us to pass HTML elements / React components into our i18n templates. We can further templatize those components to have fully translated, nested components.
2023-05-25 16:48:56 +01:00
Sam Lord
91ce2fd21f Wrapped i18n strings for paid account actions
refs: https://github.com/TryGhost/Ghost/issues/16628

Separate commit for these, this change was a little more complex since the string "Complimentary" was repeated several times, with different additional context.

I decided to keep "Complimentary" by itself as a translatable string, and concatenated a second string for the expiry.

If this would be better as 3 strings, then we could switch to having these:
- "Complimentary"
- "Complimentary ({{label}})"
- "Complimentary - Expires {{expiry date}}"

^ Makes sense only if the use of parentheses & hyphens would be changed in other locales
2023-05-25 16:48:56 +01:00
Sam Lord
d3fd8f81e2 Wrapped easy i18n strings
refs: https://github.com/TryGhost/Ghost/issues/16628

Added wrapping for as many easy / simple i18n strings as possible.
2023-05-25 16:48:56 +01:00
Peter Zimon
b99cf16753 Handle no-change saves in AdminX
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-25 17:12:35 +02:00
Peter Zimon
0a02768ec1 Added dynamic icon component in AdminX
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-25 16:57:36 +02:00
Rishabh
5c20aa08de Wired data to user detail modal in adminX
refs https://github.com/TryGhost/Team/issues/3151

- wires user data in the user detail modal from the api
2023-05-25 20:19:17 +05:30
Michael Barrett
88f3161903
Fixed flaky legacy posts api test (#16871)
refs https://github.com/TryGhost/Team/issues/2808

Updated the test to ensure that the date assertions do not unexpectedly
fail if the dates used are computed precisely at the start of a second
(no milliseconds `.000Z`)
2023-05-25 15:40:17 +01:00
Daniel Lockyer
a66ca378f7
Updated lockfile 2023-05-25 15:44:10 +02:00
Simon Backx
bd6b3099d8 Updated admin tests for feature helper change
refs 488aa983d0
2023-05-25 15:38:21 +02:00
Michael Barrett
8fc4e0fdcc
Add e2e test for update check script (#16840)
refs https://github.com/TryGhost/Team/issues/3234

Added an e2e for the update check script to detect potential breakages
in the script due to uninitialised dependencies in the isolated
execution environment
2023-05-25 14:36:36 +01:00
Simon Backx
488aa983d0 Added signup form code generation to admin
fixes https://github.com/TryGhost/Team/issues/3296

Adds a new `signupForm` feature flag, that will enable/disable the new embeddable signup form code generation.

Since the new flag shares its name with a new config value (that contains the script location), this also fixes the feature helper to only use a config with the same name if it is a boolean.
2023-05-25 15:18:40 +02:00
Peter Zimon
486876e3ac Updated default states in AdminX
refs. https://github.com/TryGhost/Team/issues/3151
2023-05-25 14:59:50 +02:00
Peter Zimon
5d1b752d89 Updated tabs in AdminX Design System
refs. https://github.com/TryGhost/Team/issues/3151

Tabs were changing their widths which resulted in an unwanted visual effect.
2023-05-25 14:59:50 +02:00
Peter Zimon
e6a28146e4 Minor modal refinements in AdminX
refs. https://github.com/TryGhost/Team/issues/3151
2023-05-25 14:59:50 +02:00
Peter Zimon
8678bbc591 Added view mode for Metadata in AdminX Settings
refs. https://github.com/TryGhost/Team/issues/3151
2023-05-25 14:59:50 +02:00
Rishabh
3520f7fe1c Added typings for svg imports
refs https://github.com/TryGhost/Team/issues/3151

Using svg imports in React *.tsx files was throwing error as Module `*.svg` did not have any exported member as `ReactComponent`. This change updates the typings to declare the module with exported ReactComponent as an SVG element, allowing svg files to be imported normally.
2023-05-25 18:27:03 +05:30
Kevin Ansfield
2598097b36
Added lexical conversion when copying from mobiledoc
closes https://github.com/TryGhost/Team/issues/3311

- added event handler to the mobiledoc editor for cut and copy operations that reads mobiledoc from the event data, converts to lexical using `@tryghost/kg-converters` and stores the converted data on the event under the `application/x-lexical-editor` mimetype ready to be pasted into a lexical editor
2023-05-25 13:50:47 +01:00
Kevin Ansfield
365a143c64
Added paste support to mobiledoc when copying from lexical
refs https://github.com/TryGhost/Team/issues/3199

- when content is copied from the Lexical editor the converted mobiledoc post is placed in the clipboardData's `application/x-mobiledoc-editor` mimetype
- added custom paste handling to extract that data and place it into the html content in the same format as a typical mobiledoc copy/paste so that it can then be handled internally by mobiledoc
2023-05-25 13:50:44 +01:00
Rishabh
6f2424976c Wired staff users list in admin-x settings
refs https://github.com/TryGhost/Team/issues/3151

- adds api to fetch staff users
- adds provider to use users data in the application
- wires Users UI to show real owner and other staff users
- combines all data providers for application under a single provider
2023-05-25 17:18:27 +05:30
Peter Zimon
c01af74265 Fixed type issue on AdminX user modal
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-25 13:18:01 +02:00
Peter Zimon
d85286ecf2 Updated toggle in AdminX Design System
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-25 12:49:13 +02:00
Peter Zimon
e38af593dc Updated password fields in user details in AdminX
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-25 12:30:07 +02:00
Peter Zimon
9791b341be Added static user detail popup in AdminX Settings
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-25 12:26:50 +02:00
Daniel Lockyer
f2277ded40
Updated member email strings to use i18n function
refs https://github.com/TryGhost/Ghost/issues/16628

- this wraps nearly all of the public strings in member signup/signin
  emails, so they are ready for translating
2023-05-25 12:25:01 +02:00
Sanne de Vries
fca78b2bae Updated frontend styles for signup card
Refs https://github.com/TryGhost/Team/issues/3246
2023-05-25 12:21:41 +02:00
renovate[bot]
f768639102 Update sentry-javascript monorepo to v7.53.0 2023-05-25 11:41:13 +02:00
Simon Backx
cc83b3661a
Added signup-form e2e tests to CI (#16860)
refs https://github.com/TryGhost/Team/issues/3298

This adds a new GitHub workflow that runs the signup-form E2E tests,
only when files in `ghost/signup-form` have changed
2023-05-25 10:28:48 +02:00
Simon Backx
b382c3e7e6 Released Signup Form v0.0.1 2023-05-25 10:21:29 +02:00
Daniel Lockyer
1811f96472
Updated list of locales
refs https://github.com/TryGhost/Team/issues/2795

- adds Korean, which I just merged
2023-05-25 10:00:27 +02:00
Husband of Rebekah
8a6e4cd003
Added Korean translations (#16866)
refs https://github.com/TryGhost/Team/issues/2795
2023-05-25 09:29:39 +02:00
renovate[bot]
d71eb04bbc Update dependency @playwright/test to v1.34.3 2023-05-25 09:12:55 +02:00
Fabien "egg" O'Carroll
b58dac262e Updated collections package to use .d.ts for external lib types
Rather than using `require` we can add a type definition file, this allows us
to add custom types in the future if we want. We need to add some config for
ts-node to pick up the types correctly.
2023-05-24 12:47:20 -04:00
Sag
7000b8214b Bumped Lexical dependencies
no issue
2023-05-24 17:36:27 +02:00