Commit Graph

17730 Commits

Author SHA1 Message Date
Djordje Vlaisavljevic
559c1e0764 Updated feedback form copy
refs https://github.com/TryGhost/Team/issues/3370
2023-06-02 09:42:52 +01:00
Andrew Gutierrez
ff335d0e8e
Updated Spanish translations (#16920)
refs https://github.com/TryGhost/Team/issues/2795
2023-06-02 10:34:45 +02:00
Simon Backx
f00b788e6a Moved signup form embed to the membership settings
refs https://github.com/TryGhost/Team/issues/3340
2023-06-02 10:15:08 +02:00
Simon Backx
9ff9906670 Added transparent background pattern to minimal signup form preview
refs https://github.com/TryGhost/Team/issues/3340
2023-06-02 09:48:25 +02:00
Daniel Lockyer
f908a03fff
Enabled and tracked retries in CI tests (#16909) 2023-06-02 09:36:28 +02:00
Simon Backx
5152e0e042 Moved signup form embed to a modal
refs https://github.com/TryGhost/Team/issues/3340
2023-06-02 09:31:38 +02:00
Raka Afp
c21cd827bc
Updated Bahasa Indonesia translations (#16919)
refs https://github.com/TryGhost/Team/issues/2795
2023-06-02 09:07:24 +02:00
renovate[bot]
7959f76f44 Update sentry-javascript monorepo to v7.54.0 2023-06-02 09:06:32 +02:00
renovate[bot]
17acd2437b Update dependency typescript to v5.1.3 2023-06-02 09:06:20 +02:00
Peter Zimon
499ba64e00 Fixed delete button bug on image upload comp.
refs. https://github.com/TryGhost/Team/issues/3318
2023-06-02 07:31:08 +02:00
Rishabh
d9b3eb7817 Wired facebook setting image upload
refs https://github.com/TryGhost/Team/issues/3318

- wires image upload to facebook setting
2023-06-02 10:07:59 +05:30
Rishabh
0f7fc2855e Wired image upload for Twitter setting
refs https://github.com/TryGhost/Team/issues/3318

- adds new file service that allows managing image and file uploads
- wires file upload and save to twitter setting
- fixes issue with dynamic SVG icon loading not working randomly
2023-06-02 09:57:42 +05:30
Jono Mingard
eaa16c2f75 Added simple colour picker to change signup embed background
refs https://github.com/TryGhost/Team/issues/3338
2023-06-02 11:33:08 +12:00
Jono Mingard
024045b9e3 Update signup form text colours to be passed via attributes 2023-06-02 10:59:00 +12:00
Djordje Vlaisavljevic
aa78346dd8 Added triggers for Menu stories
refs https://github.com/TryGhost/Team/issues/3351
2023-06-01 19:50:43 +01:00
Djordje Vlaisavljevic
3c5b7165f0 Used IconButton component for menu trigger
refs https://github.com/TryGhost/Team/issues/3351
2023-06-01 19:49:18 +01:00
Djordje Vlaisavljevic
0d79d47af7 Made the Menu trigger more flexible
refs https://github.com/TryGhost/Team/issues/3351
2023-06-01 19:49:18 +01:00
Djordje Vlaisavljevic
6727f31042 Updated Menu stories
refs https://github.com/TryGhost/Team/issues/3351
2023-06-01 19:49:18 +01:00
Djordje Vlaisavljevic
555ac95c31 Added WIP IconButton component
refs https://github.com/TryGhost/Team/issues/3351
2023-06-01 19:49:18 +01:00
Djordje Vlaisavljevic
e8d2ff0e98 Updated type name
refs https://github.com/TryGhost/Team/issues/3351
2023-06-01 19:49:18 +01:00
Rishabh
81c57fd724 Handled serialisation for settings data
refs https://github.com/TryGhost/Team/issues/3151

Some settings, like twitter and facebook urls, need transformation on save and read as the value shown to user is shown as the full URL while we save only the username for their facebook and twitter accounts.

This change adds a pattern for handling special (de)serialisation for setting keys.
2023-06-01 22:58:53 +05:30
Peter Zimon
f4f891b035 Added Twitter and FB image uploads (AdminX)
refs. https://github.com/TryGhost/Team/issues/3351
2023-06-01 18:57:27 +02:00
Peter Zimon
bfcbb2b201 Added global image upload component (AdminX)
refs. https://github.com/TryGhost/Team/issues/3318
2023-06-01 18:57:25 +02:00
Kevin Ansfield
9a1b78ae4f
Bumped Koenig packages
no issue
2023-06-01 17:48:34 +01:00
Rishabh
cbf486d811 Added error handling pattern for social accounts setting
refs https://github.com/TryGhost/Team/issues/3318

Adds error handling pattern for facebook and twitter account settings same as old admin, showing error message when incorrect value is added and also on blur updates the value to include the facebook/twitter URL
2023-06-01 22:12:11 +05:30
Djordje Vlaisavljevic
1cce47482f Added link to Editor beta changelog post in Labs
refs https://github.com/TryGhost/Team/issues/3364
2023-06-01 17:20:04 +01:00
Simon Backx
27c9d6c12e Fixed signup form E2E tests for removed email on success page 2023-06-01 18:09:57 +02:00
Sanne de Vries
8aea35b78b Fixed linting errors due to tailwind class ordering
No ref
2023-06-01 18:02:35 +02:00
Peter Zimon
8246a56846 Updated global file upload component in AdminX
refs. https://github.com/TryGhost/Team/issues/3318
2023-06-01 17:52:35 +02:00
Sanne de Vries
3923b5cc88 Updated embeddable signup form to be responsive
Refs https://github.com/TryGhost/Team/issues/3334
2023-06-01 17:43:28 +02:00
Peter Zimon
022fadee01 Added interactivity to menu component in AdminX
refs. https://github.com/TryGhost/Team/issues/3351
2023-06-01 17:04:20 +02:00
Djordje Vlaisavljevic
661a85c748 Added more white space
refs https://github.com/TryGhost/Team/issues/3328
2023-06-01 13:56:41 +01:00
Djordje Vlaisavljevic
cc1e567a86 Fixed position issues
refs https://github.com/TryGhost/Team/issues/3328
2023-06-01 13:46:19 +01:00
Simon Backx
c929cecb11 Fixed linting issues in Frame component 2023-06-01 14:43:34 +02:00
Simon Backx
c88926d365 Fixed linting issue 2023-06-01 14:42:36 +02:00
Simon Backx
279a734f68 Added fixed logo height in signup form
refs https://github.com/TryGhost/Team/issues/3346
2023-06-01 14:39:52 +02:00
Simon Backx
bcaf95f506 Updated signup form with minimal style to use automatic height and minimum height
refs https://github.com/TryGhost/Team/issues/3295
refs https://ghost.slack.com/archives/C04TMVA1D7A/p1685620939701309?thread_ts=1685614059.121599&cid=C04TMVA1D7A

- The error message of the minimal style form is not visible
- Use minimum height instead of fixed height
- Automatically update height
- Fixed issues with iframe inline style causing spacing and layout jumps
2023-06-01 14:36:00 +02:00
Djordje Vlaisavljevic
3a64248a44 Renamed components and added dynamic labels to Menu
refs https://github.com/TryGhost/Team/issues/3328
2023-06-01 13:33:15 +01:00
Michael Barrett
ef92028b22
Removed post diffing from post history feature (#16904)
refs https://github.com/TryGhost/Team/issues/3337

Removed post diffing from post history feature as this functionality is
likely to be reworked in a future cycle
2023-06-01 13:22:51 +01:00
renovate[bot]
2a739cf248 Update dependency vitest to v0.31.4 2023-06-01 13:41:39 +02:00
Michael Barrett
83847bf22c
Added emailCustomization flag and removed makeItRain flag (#16903)
refs https://github.com/TryGhost/Team/issues/3337

Moved current email customization functionality that is behind the
`makeItRain` to its own flag (`emailCustomization`) and removed the now
redundant `makeItRain` flag
2023-06-01 12:32:37 +01:00
Michael Barrett
09ded37d91
Removed emailErrors flag (#16900)
refs https://github.com/TryGhost/Team/issues/3337

Removed emailErrors flag as it is no longer needed
2023-06-01 12:11:01 +01:00
Rishabh
88af280bd8 Wired site icon and url in metadata preview
refs https://github.com/TryGhost/Team/issues/3318
2023-06-01 16:00:21 +05:30
Rishabh
75b4b1fdff Added site api data to settings context in admin-x
refs https://github.com/TryGhost/Team/issues/3318

- pulls in site data via API in settings provider
- adds site data to be accessible via settings context
2023-06-01 15:56:59 +05:30
Simon Backx
17e9b803e4 Added POC for resizing iframe to fit outer container
refs https://github.com/TryGhost/Team/issues/3295
2023-06-01 12:06:48 +02:00
Peter Zimon
990395594b Fixed linting errors
refs. https://github.com/TryGhost/Team/issues/3328
2023-06-01 11:28:02 +02:00
Peter Zimon
0b6023a4c7 Implemented sidebar navigation in AdminX settings
refs. https://github.com/TryGhost/Team/issues/3328
2023-06-01 11:16:51 +02:00
renovate[bot]
c2e0514665 Update dependency vitest to v0.31.3 2023-06-01 11:09:06 +02:00
renovate[bot]
70960f27f6 Update dependency concurrently to v8.1.0 2023-06-01 11:08:55 +02:00
Rishabh
4883d73a0f Updated API service for admin-x
refs https://github.com/TryGhost/Team/issues/3151

The api service in admin-x was using hardcoded `x-ghost-version` as we did not have access to version value in the app so far. This change passes the ghost version from ember Admin app to Settings-X app via props, and refactors the api util to use the app version as a common header.

- Adds new services provider to pass common services for the app
- passes API as a service via context for the App
- refactors existing API usage to use api from context
2023-06-01 14:32:38 +05:30
Rishabh
667a673415 Added file upload component to admin-x
refs https://github.com/TryGhost/Team/issues/3318

- adds new file upload API
- adds new global file upload component with storybook
2023-06-01 14:32:38 +05:30
Simon Backx
92ca75eb5d Decreased required functions coverage for integration CI tests to 47%
no issue

Previous commits dropped coverage to below 48% on Node 16.
2023-06-01 10:45:21 +02:00
Simon Backx
a2a79cec0e Added support for yarn dev --signup
no issue

Added support for `--signup` to `yarn dev`. This will make sure that the signup form preview server is served (with rebuilding) and can be used in admin (instead of using the published version). This is also automatically started when using `yarn dev --all`, but with a twist:

If you only run `yarn dev --all`, it will only build and watch the production build of the signup form. If you use `yarn dev --signup` or `yarn dev --all --signup` it will also serve the demo app on `http://localhost:6173`.
2023-06-01 10:20:37 +02:00
Simon Backx
7e27d3f3e8
Added signup form attribution (#16899)
fixes https://github.com/TryGhost/Team/issues/3331

This adds attribution tracking to the signup form. It sends a newly
created url history when sending the signup API call, this url history
will get translated to a proper attribution and saved on the backend. We
send a history with only a single item that contains the referrer
source, medium and path of the Embed form.

This also makes some changes to the E2E tests so that the tests run
in an https environment instead of about:blank.
2023-06-01 10:18:11 +02:00
Naz
e8220b1387
Added DEL /collections/:id/posts/:post_id to Admin API
refs https://github.com/TryGhost/Team/issues/3260

- We need a way to remove posts form collections without fetching the whole collection's content. This API method allows to remove posts from manual collections by collection id and post id.
- As a response it returns up to date collection state without the removed post.
2023-06-01 14:59:05 +07:00
renovate[bot]
2edaf2c42c Update dependency vitest to v0.31.2 2023-06-01 09:44:15 +02:00
Naz
253f144501 Fixed fromDTO collection mapping
refs https://github.com/TryGhost/Team/issues/3260

- Whenever properties of the DTO are undefined they should be removed to avoid unintentional empty assignments to the stored collection
2023-06-01 14:25:49 +07:00
Naz
a0a7c3a61b Added coverage to all editable collection properties
refs https://github.com/TryGhost/Team/issues/3260

- Made sure we have sufficient coverage for all editable properties of the collection to avoid sneaky bugs
2023-06-01 14:25:49 +07:00
Naz
5d16425428 Fixed description editing in collections service
refs https://github.com/TryGhost/Team/issues/3260

- Fixed broken functionality after a refactor
2023-06-01 14:25:49 +07:00
Fabien "egg" O'Carroll
93bad82a24 Wired up adding post to collections to API 2023-06-01 14:25:49 +07:00
Fabien "egg" O'Carroll
b48a1d0a57 Implemented adding posts to collections; 2023-06-01 14:25:49 +07:00
Fabien "egg" O'Carroll
bd4fac451c Update CollectionsService to remove CollectionPost usage 2023-06-01 14:25:49 +07:00
Fabien "egg" O'Carroll
27f60b4ab5 Added logic for adding posts to collection
Also removes concept of CollectionPost in an effort to simplify the structure
2023-06-01 14:25:49 +07:00
Fabien "egg" O'Carroll
917ab0a79e Added CollectionRepository
This defines the interface required by the CollectionsService
2023-06-01 14:25:49 +07:00
Fabien "egg" O'Carroll
5282c4a72b Update eslint and c8 to support using TS interfaces
This will allow us to define the repository interface
2023-06-01 14:25:49 +07:00
Naz
a0c36e16d0 Added "addPost" method do collections module
refs https://github.com/TryGhost/Team/issues/3260

- The method allows to append individual posts to the collection
2023-06-01 14:25:49 +07:00
Naz
bf5becfb22 Added POST /collections/:id/posts to Admin API
refs https://github.com/TryGhost/Team/issues/3260

- We need a way to append posts to collections without sending over all of the posts that are already in the collection
- The API would receive post_id and collection_id as required fields and will optionally take in sort_order to control the ordering in the manual collection
2023-06-01 14:25:49 +07:00
Sodbileg Gansukh
116e09af95 Show the mobile nav only when logged in
closes https://github.com/TryGhost/Team/issues/3134

- the mobile nav was showing for 404 pages when not logged in
- this adds an additional check, so that the nav is only shown when user is logged in, not only when the user is not contributor
2023-06-01 15:23:47 +08:00
Chris Raible
c0b3aab4f2
Removed postHistory flag and updated post history logic (#16908)
no issue

- Removed the postHistory flag from labs
- Post History will be saved and displayed for all lexical posts,
regardless of whether the lexicalEditor flag is currently set
- Post History will still not be displayed for any mobiledoc posts
- With this change, the logic is simplified as we don't have to worry
about flags, but only the content in the given post (mobiledoc vs
lexical)
- If someone toggles the lexicalEditor flag on, creates a new post, then
toggles the lexicalEditor off, we still want Post History to work for
the existing lexical post
2023-05-31 23:45:29 -07:00
Sodbileg Gansukh
e4415e9109 Fixed product card image stretching issue
refs https://github.com/TryGhost/Team/issues/3329

- product card images have explicit width and height attributes in the markup now, and the image needs auto height for that reason
- without it, the images will lose its original aspect ratio for themes without the auto height images
2023-06-01 12:10:13 +08:00
Sodbileg Gansukh
3ab851e3aa Optimized Inter in the Admin
closes https://github.com/TryGhost/Team/issues/3257

- replaces the TTF with WOFF2 which is more compressed version
- adds a font file for italic style specifically so that the italic text is rendered consistently across different browsers
2023-06-01 11:56:27 +08:00
Jono Mingard
c63b0e1a1a Fixed signup form e2e tests to check new colour options
refs https://github.com/TryGhost/Team/issues/3338
2023-06-01 14:55:03 +12:00
Jono Mingard
80b9030805 Updated signup form to support configuring background and button color
refs https://github.com/TryGhost/Team/issues/3338

* background and button color can be passed in the script tag dataset
* text color is calculated automatically from background/button color
2023-06-01 14:43:57 +12:00
Jono M
257d84a4b1
Added storybook to signup form (#16898)
refs https://github.com/TryGhost/Team/issues/3299
2023-06-01 11:22:43 +12:00
Djordje Vlaisavljevic
bbdb90f1d6 Updated feedback form copy
refs https://github.com/TryGhost/Team/issues/3264
2023-05-31 21:56:37 +01:00
Fabien 'egg' O'Carroll
32f4861176
Bumped eslint-plugin-ghost (#16906)
- This includes changes to support PascalCase filenames for interfaces
- Also bumps newer packages to use the latest version to avoid conflicts
with the underlying eslint-plugin-filenames package
2023-05-31 16:36:32 -04:00
Peter Zimon
04d68b2e47 Added static user invite dialog to AdminX
refs. https://github.com/TryGhost/Team/issues/3328
2023-05-31 22:31:35 +02:00
Peter Zimon
c865ab00f4 Added static tabs for design settings in AdminX
refs. https://github.com/TryGhost/Team/issues/3328
2023-05-31 22:30:03 +02:00
Rishabh
664f4ebedd Updated save sequence for settings group in admin-x
refs https://github.com/TryGhost/Team/issues/3151

- updated save sequence for setting groups where edit button is hidden by default
- shows `Saved` for couple of seconds before disappearing on saving such setting groups
- adds save sequence for default recipient setting group
2023-06-01 00:29:09 +05:30
Rishabh
9ca82490c2 Added save states for setting groups in admin-x
refs https://github.com/TryGhost/Team/issues/3151

- adds Save -> Saving -> Saved sequence to save buttons on all setting groups
- uses common hook state to manage state across all Settings
2023-05-31 22:03:35 +05:30
Rishabh
19b2112f8b Updated wiring for user detail modal in admin-x
refs https://github.com/TryGhost/Team/issues/3151

- updates role info for user details modal for owner user, hides option to change role for owner
- adds saving/saved state for user detail modal
- removes alerts from invite and detail modal
- adds wiring for remaining user detail modal settings
2023-05-31 22:03:35 +05:30
Naz
87df8754ee Moved bookshelf posts repository to core
refs https://github.com/TryGhost/Team/issues/3260

- Moved the posts bookshelf repository into core codebase where it should belong.
2023-05-31 22:55:35 +07:00
Naz
4fe9e5fac0 Added posts editing to collections in Admin API
refs https://github.com/TryGhost/Team/issues/3260

- Allows to manually manage posts assigned to collections through Collections Admin API
2023-05-31 22:55:35 +07:00
Naz
66d489b8b3 Added Posts relation support to collections package
refs https://github.com/TryGhost/Team/issues/3260

- Adds "posts" relation to Collection entity to manage posts belonging to the collection
2023-05-31 22:55:35 +07:00
Naz
c7954fa695 Refactored basic edit test case
refs https://github.com/TryGhost/Team/issues/3260

- We need to have a reusable collection to edit throughout the describe, so we don't do repeatable work over and over
2023-05-31 22:55:35 +07:00
Naz
988f7e69c2 Grouped edit collection test cases
refs https://github.com/TryGhost/Team/issues/3260

- Cleanup before adding more test cases to the suite
2023-05-31 22:55:35 +07:00
Peter Zimon
8c02d963c4 Fixed button interface bug
refs. https://github.com/TryGhost/Team/issues/3328
2023-05-31 13:59:14 +02:00
Peter Zimon
13c629e6b3 Added static brand tab in AdminX Design settings
refs. https://github.com/TryGhost/Team/issues/3328
2023-05-31 13:58:21 +02:00
Fabien 'egg' O'Carroll
8b85f936fc
Added static DropdownMenu component to Admin X DS (#16896)
refs https://github.com/TryGhost/Team/issues/3328

<!--
copilot:summary
-->
### <samp>🤖 Generated by Copilot at 8a276bc</samp>

This pull request adds a new DropdownMenu component to the admin-x-ds
global library. It also includes a storybook file to showcase the
component's usage and appearance.

---------

Co-authored-by: Djordje Vlaisavljevic <dzvlais@gmail.com>
2023-05-31 12:49:40 +01:00
Mysterious_Dev
84a0029101
Updated French translations (#16870)
refs https://github.com/TryGhost/Team/issues/2795
2023-05-31 11:06:33 +02:00
Ronald Langeveld
c53bd499c7
Added typescript declerations to i18n (#16894)
refs https://github.com/TryGhost/Team/issues/3307

Added TypeScript support and a new namespace for the `i18n` module. This
enables type checking and localisation for the new signup form component and future typescript projects that may need to add i18n support.
2023-05-31 10:37:21 +02:00
Peter Zimon
53ed8078ca Added desktop window chrome to design preview
refs. https://github.com/TryGhost/Team/issues/3328
2023-05-31 09:59:01 +02:00
Gary Lai
ae7311e74f
Added Traditional Chinese translations (#16786)
refs https://github.com/TryGhost/Team/issues/2795
2023-05-31 09:52:42 +02:00
Peter Zimon
99798ad06b Added a backdrop blur to modals in AdminX
refs. https://github.com/TryGhost/Team/issues/3328
2023-05-31 09:42:10 +02:00
Peter Zimon
f2f3e2a22d Added window chrome comp. to AdminX Design System
refs. https://github.com/TryGhost/Team/issues/3328
2023-05-31 09:36:50 +02:00
Peter Zimon
35f7b7058c Added design setting skeleton to AdmiX Settings
refs. https://github.com/TryGhost/Team/issues/3328
2023-05-30 19:05:22 +02:00
Peter Zimon
0e5d66b680 Added preview modal to AdminX Design System
refs. https://github.com/TryGhost/Team/issues/3328
2023-05-30 18:54:42 +02:00
Sam Lord
ee274deae6 Added context strings to all new translatable strings
refs: https://github.com/TryGhost/Ghost/issues/16628

Modified a couple of translation strings to reduce complexity and remove duplication
2023-05-30 16:03:32 +01:00
Ghost CI
7e04828d45 Merged v5.49.2 into main 2023-05-30 14:57:20 +00:00
Ghost CI
e19f434781 v5.49.2 2023-05-30 14:57:17 +00:00
Naz
1605198a1a
Added debug data dump to email service
closes https://github.com/TryGhost/Team/issues/3324

- When the recipients batch size is larger than the limit in addition to logging the error we need extra data to figure out what exactly is inside those `2000` or `3000` records causing faulty behavior.
- This change grabs all available models and dumps them into a file inside of the `content/data` folder. The code is temporary and should be removed once the problem is narrowed down
2023-05-30 21:32:01 +07:00
Sanne de Vries
5df2403b61 Fixed linter failing due to Tailwind class ordering
No ref
2023-05-30 15:58:58 +02:00
Peter Zimon
30e2924b5e Updated site description field to use Textarea
refs. https://github.com/TryGhost/Team/issues/3328
2023-05-30 15:41:03 +02:00
Sanne de Vries
c9d0424636 Updated embeddable signup form styles
Refs https://github.com/TryGhost/Team/issues/3334
2023-05-30 15:39:11 +02:00
Peter Zimon
8d485fe1b7 Fixed list item clickarea bug in AdminX
refs. https://github.com/TryGhost/Team/issues/3318
2023-05-30 15:35:09 +02:00
Daniel Lockyer
7d4a09a6bb
Added language names to list of supported locales
refs https://github.com/TryGhost/Team/issues/2795

- this helps to understand what languages are already supported,
  especially when the locale code isn't obvious
2023-05-30 15:32:52 +02:00
Peter Zimon
2387718266 Fixed modal scroll bug in AdminX Design System
refs. https://github.com/TryGhost/Team/issues/3318
2023-05-30 15:31:13 +02:00
Peter Zimon
9657556265 Added avatar color generator helper in AdminX
refs. https://github.com/TryGhost/Team/issues/3318
2023-05-30 15:16:49 +02:00
Peter Zimon
55376774c0 Added cover image to user details in AdminX
refs. https://github.com/TryGhost/Team/issues/3318
2023-05-30 15:07:03 +02:00
Peter Zimon
5831e63dcf Added images to avatars in AdminX Settings
refs. https://github.com/TryGhost/Team/issues/3318
2023-05-30 14:53:18 +02:00
Peter Zimon
2aa0bba8d4 Moved assets to AdminX Design System
refs. https://github.com/TryGhost/Team/issues/3318

Until now all assets was part of the main app and not the AdminX Design System which could be problematic later when the system becomes a standalone library. Moved the assets folder under the design system for better reusability, less redundancy and for a more self-encapsulated system
2023-05-30 14:33:08 +02:00
Simon Backx
6dddf3ee67 Fixed old label usage of signup form demo
refs 644051e3e9
2023-05-30 14:10:27 +02:00
Simon Backx
644051e3e9 Fixed labels for signup form
fixes https://github.com/TryGhost/Team/issues/3316
fixes https://github.com/TryGhost/Team/issues/3313

Instead of using a comma separated list of labels, we now use multiple data properties: data-label-1, data-label-2, etc.
2023-05-30 14:06:25 +02:00
Djordje Vlaisavljevic
c62d73578b Added support for images and fallback icon to Avatar
refs https://github.com/TryGhost/Team/issues/3318
2023-05-30 12:51:33 +01:00
Djordje Vlaisavljevic
d76312c43b Added single user fill icon used for Avatar fallbacks
refs https://github.com/TryGhost/Team/issues/3318
2023-05-30 12:51:33 +01:00
Djordje Vlaisavljevic
01de9f57e2 Fixed ResizeOptions type case
refs https://github.com/TryGhost/Team/issues/3328
2023-05-30 12:51:33 +01:00
Simon Backx
ced0a3e792 Fixed signup-form-tests GitHub workflow
refs https://ghost.slack.com/archives/C02G9E68C/p1685446707169999

- `actions/setup-node` has a bug where it doesn't parse paths where the path is pretty-printed with colors, so we have to explicitly disable colors
- Added whitespace change inside signup-form to trigger new CI run
2023-05-30 13:41:38 +02:00
renovate[bot]
dabd0181bb Update dependency @extractus/oembed-extractor to v3.1.9 2023-05-30 12:28:56 +02:00
Peter Zimon
197c19e472 Added initials helper in AdminX
refs. https://github.com/TryGhost/Team/issues/3318
2023-05-30 12:16:38 +02:00
Daniel Lockyer
c604255ace
Updated list of supported locales
refs https://github.com/TryGhost/Team/issues/2795

- adds in Finnish and Albanian locales as they were added via merged PR earlier
2023-05-30 12:07:01 +02:00
Simon Backx
dbcdc8219d Added E2E tests for API in signup form
fixes https://github.com/TryGhost/Team/issues/3330
2023-05-30 11:58:39 +02:00
Peter Zimon
73e8e9837b Added clear bg to inputs in AdminX
refs. https://github.com/TryGhost/Team/issues/3328

We might want to use input fields, textareas and dropdowns without the grey background they have right now.
2023-05-30 11:50:06 +02:00
Peter Zimon
1709740dda Added clear bg option to textfields in AdminX
refs. https://github.com/TryGhost/Team/issues/3328
2023-05-30 11:44:42 +02:00
renovate[bot]
cb6825f1a3 Update sentry-javascript monorepo to v7.53.1 2023-05-30 10:51:52 +02:00
renovate[bot]
f4ac82fd3d Update storybook monorepo to v7.0.18 2023-05-30 10:51:42 +02:00
Endrit
066bd4f8df
Added Albanian translations (#16889)
refs https://github.com/TryGhost/Team/issues/2795
2023-05-30 10:33:28 +02:00
Yin Guobing
e13cbfa3e6
Updated Chinese translations (#16881)
refs https://github.com/TryGhost/Team/issues/2795
2023-05-30 10:17:12 +02:00
EchoBilisim
aba7794ef8
Updated Turkish Ghost translations (#16879)
refs https://github.com/TryGhost/Team/issues/2795
2023-05-30 10:13:52 +02:00
EchoBilisim
e253a446f0
Updated Turkish Portal translations (#16880)
refs https://github.com/TryGhost/Team/issues/2795
2023-05-30 10:11:22 +02:00
mrpuhis
3f9417ee2c
Added Finnish locale (#16887)
refs https://github.com/TryGhost/Team/issues/2795
2023-05-30 09:04:56 +02:00
renovate[bot]
087662fa02 Update dependency mailgun.js to v8.2.2 2023-05-30 06:54:20 +00:00
Ronald Langeveld
393055dd6c Bumped koenig related packages
no issue
2023-05-30 08:00:42 +02:00
Sodbileg Gansukh
7eaee22a75
Added a custom duration to the comp expirations (#16808)
refs https://github.com/TryGhost/Team/issues/1856

- adds a custom duration option with date picker to the complimentary plan when "Custom" is selected
- this allows customers to choose any date as expiration date

---------

Co-authored-by: Michael Barrett <mike@ghost.org>
2023-05-30 13:35:40 +08:00
Sanne de Vries
e55bb20140 Refined frontend styles for signup card
Refs https://github.com/TryGhost/Team/issues/3246
2023-05-29 20:21:51 +02:00
Djordje Vlaisavljevic
d5bd21a9c5 Added global TextArea component to Admin X DS
refs https://github.com/TryGhost/Team/issues/3328
2023-05-29 18:35:30 +01:00
Ronald Langeveld
5445e1d1b4 Bumped Koenig packages
no issue
2023-05-29 18:27:26 +02:00
renovate[bot]
d5db684aeb Update dependency vite to v4.3.9 2023-05-29 17:25:09 +02:00
Sanne de Vries
7f3f86a987 Updated signup card frontend styles
Refs https://github.com/TryGhost/Team/issues/3256
2023-05-29 16:44:29 +02:00
Peter Zimon
87e59112a7 Added static avatar to AdminX Design System
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-29 15:21:23 +02:00
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
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
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
Simon Backx
3504cc167b Updated signup-form to use latest major version
no issue
2023-05-24 17:25:34 +02:00
Peter Zimon
71eef69b96 Added static user detail modal in AdminX settings
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-24 17:05:21 +02:00
Peter Zimon
b47bfde51b Fixed linting error in AdminX
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-24 16:59:33 +02:00
Peter Zimon
a4c2c2ebcf Added backdrop interaction to modals in AdminX
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-24 16:51:04 +02:00
Peter Zimon
60154cfa89 Added basic modal to AdminX Design System
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-24 16:31:26 +02:00
Daniel Lockyer
09e11c6a29
Updated list of locales
refs https://github.com/TryGhost/Team/issues/2795

- adds Romanian and Serbian, which I merged earlier today
2023-05-24 16:13:14 +02:00
Simon Backx
8208f174f7 Fixed signup-form package.json formatting 2023-05-24 15:07:41 +02:00
Simon Backx
fd3393c562 Added Playwright tests to Signup Form
refs https://github.com/TryGhost/Team/issues/3298
2023-05-24 15:06:44 +02:00
Naz
258a562031
Fixed linting error
refs fdd73d01b7
2023-05-24 17:31:14 +07:00
Naz
4cb5cc9087
Added default collection values
refs https://github.com/TryGhost/Team/issues/3259

- For collection entity creation consistency have set defaults
2023-05-24 17:01:28 +07:00
Naz
b52ec948b0
Added property mapper to collections responses
closes https://github.com/TryGhost/Team/issues/3259

- API output mappers (soon to be serializers) are meant to work based on allowlist set of output properties. Having the allowlist early on will allow to track the API evolution consistently.
2023-05-24 17:01:28 +07:00
Naz
fdd73d01b7
Refactored collections entity logic
refs https://github.com/TryGhost/Team/issues/3294

- The factory method for the Collection and validations should live close together based on our latest architectural direction
2023-05-24 17:01:28 +07:00
Simon Backx
8fd2468995 Added testable production build for signup-form
fixes https://github.com/TryGhost/Team/issues/3297

This adds a new preview page to test the signup-form script as a production build, instead of using ESM.
2023-05-24 11:41:12 +02:00