Commit Graph

17961 Commits

Author SHA1 Message Date
Simon Backx
498629d9a9 Fixed encoded html character in signup form success message translation
no issue
2023-06-02 14:38:54 +02:00
Simon Backx
258dc2f8f2 Added locale data option to signup form script
refs https://github.com/TryGhost/Team/issues/3307
2023-06-02 14:36:17 +02:00
Peter Zimon
82b56c319e Added cover image interaction to user details
refs. https://github.com/TryGhost/Team/issues/3351
2023-06-02 14:32:42 +02:00
Rishabh
3090fc6067 Fixed password reset button state in admin-x
refs https://github.com/TryGhost/Team/issues/3351

- the change password button label was not getting reset on saving
2023-06-02 18:01:20 +05:30
Rishabh
94882fd6c8 Wired password reset for non-owner users
refs https://github.com/TryGhost/Team/issues/3351

- adds password validation and reset for non-owner users
- password validation uses basic checks for now and will include more checks from current admin in future
2023-06-02 17:57:28 +05:30
Daniel Lockyer
8098f8c53e Updated Admin extensions script functionality
fixes https://github.com/TryGhost/Toolbox/issues/587

- this commit changes two things surrounding the extensions script:
  - moves the script tag from the nav menu to the application template
    so we always load the script irregardless of if the current page has
    a nav menu
  - opens up showing the script to all logged-in users and not just
    Owners as previous
2023-06-02 14:05:40 +02:00
Simon Backx
c27b488f3d Added async attribute to signup form script tag 2023-06-02 13:59:49 +02:00
Kevin Ansfield
ba6ae472c3
Renamed editor beta route
closes https://github.com/TryGhost/Team/issues/3369

- removes `lexical` from user-visible URL
- only renames path rather than renaming all associated files to keep changeset minimal prior to beta launch
2023-06-02 12:52:57 +01:00
Daniel Lockyer
cca81daa30
Updated Portal to v2.33
refs https://github.com/TryGhost/Team/issues/2795

- includes new locales and wrapping of more public-facing strings
2023-06-02 13:24:51 +02:00
Daniel Lockyer
a535f0f80b
Released Portal v2.33.0 2023-06-02 13:23:07 +02:00
Peter Zimon
244f15238f Added confirmation dialogs to user details
refs. https://github.com/TryGhost/Team/issues/3351
2023-06-02 13:12:21 +02:00
Peter Zimon
fb362ba3de Merged iconbutton to button component
refs. https://github.com/TryGhost/Team/issues/3351
2023-06-02 13:12:15 +02:00
Michael Barrett
108c7c38f6
Removed imageEditor flag (#16921)
refs https://github.com/TryGhost/Team/issues/3337

Removed `imageEditor` flag and moved gated logic to be behind the
`lexicalEditor` flag as part of the labs clean up
2023-06-02 12:07:31 +01:00
Simon Backx
806abf28e4 Added placeholder to member label input for signup form embed modal
refs https://github.com/TryGhost/Team/issues/3340
2023-06-02 12:28:58 +02:00
Peter Zimon
7535fc73fc Added click to menu items in AdminX
rers. https://github.com/TryGhost/Team/issues/3318
2023-06-02 12:21:30 +02:00
Djordje Vlaisavljevic
6e7f974e7e Added more padding to Menu stories
refs https://github.com/TryGhost/Team/issues/3351
2023-06-02 11:05:00 +01:00
Djordje Vlaisavljevic
c5ff9d182e Added labels for User Settings modal Menu
refs https://github.com/TryGhost/Team/issues/3351
2023-06-02 11:05:00 +01:00
Djordje Vlaisavljevic
ac68968524 Removed commented out fixed trigger button for Menu
refs https://github.com/TryGhost/Team/issues/3351
2023-06-02 11:05:00 +01:00
Peter Zimon
0fd415c1d7 Added global confirmation modal to AdminX
refs. https://github.com/TryGhost/Team/issues/3351
2023-06-02 12:01:40 +02:00
Daniel Lockyer
50618921c6
Configured Portal's dev output to be quieter
- this avoids noise in the CLI when you're developing, as we don't care
  what port the preview server has started on
2023-06-02 11:40:01 +02:00
Daniel Lockyer
b90f8708d3
Fixed style issues with Portal vite config
- minor code style issues that amazingly haven't cropped up yet
2023-06-02 11:40:01 +02:00
Peter Zimon
fb6c79906a Updated owner role box in user details
refs. https://github.com/TryGhost/Team/issues/3351
2023-06-02 11:30:11 +02:00
Peter Zimon
5386fc923f Added multiselect to Default Recipients
refs. https://github.com/TryGhost/Team/issues/3318
2023-06-02 11:13:35 +02:00
Daniel Lockyer
994e0b9b2e
Fixed translations encoding
- this slipped in but should be a normal space
2023-06-02 11:06:29 +02:00
Ronald Langeveld
4fcaabe563
Added initial i18n implementation for Signup-form (#16914)
closes https://github.com/TryGhost/Team/issues/3307

This commit includes several important updates to add internationalisation (i18n) support within the signup form package:

- Modified the translate script in `package.json` to include translations for the signup form.
- Added a new test for the signup form resources in `i18n.test.js`.
- Updated `tsconfig.json` to allow synthetic default imports.
- Made updates to `package.json`, including adding a prebuild command for `@tryghost/i18n` to ensure typescript declaration files get built.
- added `vite-plugin-commonjs` so we can bundle commonjs packages to be useable by the browser.
- In `App.tsx`, imported the `i18n` library and created an `i18n` instance for the `signup-form` namespace. This `i18n` instance's `t` function was added to the application context.
- Updated the `AppContextType` in `AppContext.ts` to include the `t` function from i18n​

Co-authored-by: Daniel Lockyer <hi@daniellockyer.com>
2023-06-02 11:02:52 +02:00
renovate[bot]
e13b7e723c Update dependency @sinonjs/fake-timers to v10.2.0 2023-06-02 11:01:51 +02:00
renovate[bot]
a1ab6737e1 Update dependency @embroider/macros to v1.11.0 2023-06-02 11:01:47 +02:00
renovate[bot]
3f764d0a0f Update dependency @types/nodemailer to v6.4.8 2023-06-02 11:01:12 +02:00
Peter Zimon
6900fd9eb0 Added multiselect to AdminX Design System
refs. https://github.com/TryGhost/Team/issues/3318
2023-06-02 10:54:25 +02:00
Kevin Ansfield
e9ed7dfb64
Bumped @tryghost/kg-lexical-html-renderer
refs https://github.com/TryGhost/Team/issues/3269

- fixes continuation of list sequence when a non-list-node separates list nodes bringing rendered output in line with editor depiction
2023-06-02 09:54:12 +01:00
Djordje Vlaisavljevic
307380a29e Removed L label next to Lexical posts in post list
refs https://github.com/TryGhost/Team/issues/3370
2023-06-02 09:42:52 +01:00
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
Sag
92e7c069f3 Added site title and description in the config for the Lexical editor
refs https://github.com/TryGhost/Team/issues/3282
2023-05-24 11:23:00 +02:00
renovate[bot]
de1d925c8c Update storybook monorepo to v7.0.15 2023-05-24 11:21:11 +02:00
Silviu
a7e17ce223
Added Romanian translations (#16834)
refs https://github.com/TryGhost/Team/issues/2795
2023-05-24 11:14:06 +02:00
Jono M
86499aaf01
Updated signup form options to react to changes (#16854)
refs https://github.com/TryGhost/Team/issues/3293
2023-05-24 11:08:02 +02:00
Daniel Lockyer
bed7479cc2 Fixed loading pt-br translations
fixes https://github.com/TryGhost/Ghost/issues/16805

* turns out i18next requires the country portal of the locale to be
  capitalized [1]
* this resolves that and moves the files to the correct casing

[1]: https://github.com/i18next/i18next/issues/1467#issuecomment-646305827
2023-05-24 10:27:49 +02:00
renovate[bot]
59a07e79ea Update dependency @playwright/test to v1.34.2 2023-05-24 09:34:52 +02:00
Cadoo
5a5853ca80
Added Serbian locale (#16814)
refs https://github.com/TryGhost/Team/issues/2795
2023-05-24 09:34:15 +02:00
Jono Mingard
03fb1b188c Tweaked type definitions in signup form 2023-05-24 15:53:04 +12:00
Djordje Vlaisavljevic
af907b70cb Fixed condition for displaying feedback form on Post published
refs #3252
2023-05-23 22:41:01 +01:00
Steve Larson
49687f73a6 Added handling for new paragraphs when clicking under cards
closes TryGhost/Team#3064
2023-05-23 14:16:18 -05:00
Steve Larson
284a7c2e77 Updated koenig package versions 2023-05-23 14:16:18 -05:00
Rishabh
8430bc1551 Wired default email recipients setting in admin-x
refs https://github.com/TryGhost/Team/issues/3151

- wires default email recipient and filter setting to site data
2023-05-23 22:07:02 +05:30
Peter Zimon
544f826315 Added basic Twitter card in AdminX Settings
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-23 17:22:30 +02:00
Peter Zimon
652be3f5fb Added basic Facebook settings in AdminX Settings
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-23 17:20:19 +02:00
Sag
4358f329d0 Fixed default Ghost url in dev environment
no issue
2023-05-23 17:11:04 +02:00
Peter Zimon
b580d6d22b Added basic version of Metadata AdminX settings
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-23 16:12:08 +02:00
Michael Barrett
81e160c8d3
🐛 Fixed member activity event filter (#16849)
closes https://github.com/TryGhost/Ghost/issues/16817

The member activity event filter was broken due to a recursion issue.
This commit changes the usage of a getter fn to a normal class method to
make the logic more performant and remove the recursion issue
2023-05-23 14:44:49 +01:00
Simon Backx
1f9818d9c8 Cleaned up signup-form package file and unused files 2023-05-23 14:59:27 +02:00
Simon Backx
4c2635670b
Added signup-form package (#16846)
fixes https://github.com/TryGhost/Team/issues/3275
fixes https://github.com/TryGhost/Team/issues/3279
fixes https://github.com/TryGhost/Team/issues/3278

This pull request adds a new signup form package to the Ghost core
repository. The signup form package is a React component, embeddable on
any site, that renders a form for users to subscribe to a Ghost site.
2023-05-23 14:58:33 +02:00
renovate[bot]
2a985d4c6f Update storybook monorepo to v7.0.14 2023-05-23 13:01:05 +02:00
Sanne de Vries
0e6d5f367d Fixed the signup card image background color on the frontend
Refs https://github.com/TryGhost/Team/issues/3246
2023-05-23 12:46:02 +02:00
Naz
cc4ff8c6d4 Added collections CRUD UI
refs https://github.com/TryGhost/Team/issues/3168

- This is basic scaffolding for collection resources UI in Admin. For the most part it's a copy-paste of tags code with slight modifications to fit the collections usecase
2023-05-23 17:26:47 +07:00
Sanne de Vries
533681373f Added swapped layout to signup card frontend
Refs https://github.com/TryGhost/Team/issues/3270
2023-05-23 12:15:13 +02:00
Peter Zimon
db8b223cd0 Updated sidebar navigation in AdminX Settings
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-23 12:07:38 +02:00
Peter Zimon
10e48d613c Refined content scrolling in AdminX Settings
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-23 11:54:42 +02:00
Peter Zimon
4a0e59487f Refined sidebar scrolling in AdminX Settings
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-23 11:48:02 +02:00
Peter Zimon
8e0e2c4f2c Updated AdminX Settings scrolling
refs. https://github.com/TryGhost/Team/issues/3150

The sidebar was `sticy` which meant that users had to scroll all the way down to see the bottom of the sidebar. This defeats the purpose of being able to quickly jump to a section.
2023-05-23 11:30:38 +02:00
renovate[bot]
d28eef5f4f Update storybook monorepo to v7.0.13 2023-05-23 09:54:57 +02:00
renovate[bot]
5f1e232a20 Update dependency @playwright/test to v1.34.1 2023-05-23 09:54:33 +02:00
Rishabh
47ed1c0b3e Fixed cancel button for access settings
refs https://github.com/TryGhost/Team/issues/3151

- access settings was missing cancel handling that resets settings when user exits the edit mode without save
2023-05-23 12:20:55 +05:30
Sag
2526bd627e
Simplified fetchLabels to return an array of label names (#16842)
refs https://github.com/TryGhost/Team/issues/3182
2023-05-23 08:48:14 +02:00
Peter Zimon
1139ed541b Textifeld component cleanup in AdminX DS
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-23 08:42:20 +02:00
Peter Zimon
acb0bda5e4 Refined input styles in AdminX Design System
refs. https://github.com/TryGhost/Team/issues/3150

The style of having only an underline for input textfields and dropdowns sounds good in theory (and we might be able to use it in other context), but in Settings these components were hard to scan.
2023-05-23 08:31:38 +02:00
Peter Zimon
48fa7bb0ca Updated static users setting group in AdminX
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-23 08:31:38 +02:00
Peter Zimon
65c288584d Added basic tabs to AdminX Design System
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-23 08:31:38 +02:00
Rishabh
2f6aec3551 Updated mailgun settings view mode in admin-x
refs https://github.com/TryGhost/Team/issues/3151

- updates view mode for when mailgun is setup in settings
2023-05-23 11:58:30 +05:30
Rishabh
a3e39ce61e Wired mailgun and analytics settings in admin-x
refs https://github.com/TryGhost/Team/issues/3151

- updates textfield to have password type
- updates wiring for mailgun settings
- updates wiring for analytics settings
- fixes local value read or useSettingGroup
2023-05-23 11:45:32 +05:30
Sodbileg Gansukh
282d385484 Added dark mode support to staff invitation modal popover
closes https://github.com/TryGhost/Team/issues/2951
2023-05-23 13:52:35 +08:00
Sodbileg Gansukh
03cded7e9e Added more context to the site description setting label
no issues
2023-05-23 12:37:06 +08:00
Rishabh
f5b9645b35 Updated wiring for admin-x settings
refs https://github.com/TryGhost/Team/issues/3151

- adds new hook for managing state/changes in a Settings Group
- updates existing settings to work with the new hook to clean the code
- wires membership access settings for read/write
- lint cleanup
2023-05-23 08:42:14 +05:30
Jono Mingard
c892f3a5e1 Added animated icon for signup form loading state
refs https://github.com/TryGhost/Team/issues/3256
2023-05-23 10:20:07 +12:00
Djordje Vlaisavljevic
4af604a04f Updated feedback form copy
refs #3252
2023-05-22 21:37:05 +01:00
Daniel Lockyer
3e12c0ea54
Split CI database tests into separate types
- this will allow us to see which set of tests are consuming the most
  amount of time in CI
- in order to split apart the commands, I've had to override the
  coverage thresholds for integration+regression tests in order to keep
  c8 happy
- also sprinkled some more labels into the workflows to make things
  clearer to read
2023-05-22 19:34:17 +02:00
Peter Zimon
60c102dc76 Rearranged Setting Group comps. in Admin DS
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-22 17:52:02 +02:00
Peter Zimon
8cab3a4a06 Fixed hover on list items in Admin Design System
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-22 17:30:26 +02:00
Peter Zimon
08039d0e62 Added static userlist to AdminX Settings
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-22 17:28:37 +02:00
Peter Zimon
950fc832e4 Added basic list to Admin Design System
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-22 16:57:09 +02:00
Steve Larson
2e0073f9ec Updated lexical editor dependencies
no refs
2023-05-22 09:07:29 -05:00
Daniel Lockyer
03122cde77
Added support to yarn dev for --announcement-bar
refs https://github.com/TryGhost/Toolbox/issues/584

- we should strive to provide a good development experience by keeping
  the number of "other" setup steps to a minimum
- this adds support for the Announcement Bar app to the dev script so a
  simple flag spins up the dev server too
2023-05-22 15:31:28 +02:00
renovate[bot]
cbc4859bbf Update dependency i18next to v22.5.0 2023-05-22 13:51:24 +02:00
renovate[bot]
193c89ae66 Update sentry-javascript monorepo to v7.52.1 2023-05-22 13:51:09 +02:00
Djordje Vlaisavljevic
ae91be348b Updated feedback form copy
refs #3264
2023-05-22 12:21:19 +01:00
Peter Zimon
e4cac91e19 Added basic documentation to Admin Design System
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-22 12:13:50 +02:00
Sanne de Vries
a6e534bba8 Updated split layout and subscribe form states for signup card frontend
Refs https://github.com/TryGhost/Team/issues/3246
2023-05-22 12:10:37 +02:00
Sodbileg Gansukh
f4bb135f9c Fixed typography inconsistency in the publish flow
refs https://github.com/TryGhost/Team/issues/2812
2023-05-22 17:31:18 +08:00
Peter Zimon
8f6d94cd5d Added separator to checkbox and radio buttons
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-22 10:53:24 +02:00
Peter Zimon
462f7a402b Added error message for checkbox in Admin DS
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-22 10:42:32 +02:00
Peter Zimon
b1ddc8b2f4 Added checkbox to Admin Design System
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-22 10:42:32 +02:00
Peter Zimon
6397be7bdd Spacing refinements in Admin Settings
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-22 10:42:32 +02:00
renovate[bot]
c9b2826c16 Update dependency @storybook/addon-styling to v1.0.8 2023-05-22 10:36:36 +02:00
Peter Zimon
d078ca6083 Added radio button to Admin Design System
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-22 10:12:11 +02:00
renovate[bot]
74d7c52ddf Update dependency vite to v4.3.8 2023-05-22 09:16:27 +02:00
Peter Zimon
28aa5c0cdc Admin X Settings minor refinements
refs. https://github.com/TryGhost/Team/issues/3150

Spacing between setting values, input fields and headings were a bit too loose.
2023-05-22 09:13:25 +02:00
Peter Zimon
950b59d81e Added optional prompt to dropdown in Admin X DS
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-22 09:04:42 +02:00
renovate[bot]
46c8863b7c Update dependency @playwright/test to v1.34.0 2023-05-22 08:53:05 +02:00
Sodbileg Gansukh
50c68dc5ad Fixed background color of the update banner in dark mode
refs https://github.com/TryGhost/Ghost/issues/16819
2023-05-22 14:13:59 +08:00
Sodbileg Gansukh
f052b78a77
Hid other plans link when there's no paid plan (#16822)
refs https://github.com/TryGhost/Team/issues/2841

- currently, the link to other plans is always shown regardless of
whether if there's any other paid plan or not
- this adds a check to show the link only when there are other plans
2023-05-22 13:20:46 +08:00
Jono Mingard
b74ee95240 Added basic styles for signup form states
refs: https://github.com/TryGhost/Team/issues/3256
2023-05-22 12:02:31 +12:00
Fabien "egg" O'Carroll
82acf85b29 Tested filtering visibility in Tiers Content API
refs https://github.com/TryGhost/Team/issues/3248

The current test fixtures didn't include any hidden Tiers, so I've added
a new fixture to test the filtering of hidden Tiers. It's not enabled by
default to avoid breaking the existing tests.
2023-05-19 13:12:33 -04:00
Rishabh
aa8f3ed5e2 Updated default boilerplate story in admin-x
refs https://github.com/TryGhost/Team/issues/3151
2023-05-19 21:44:55 +05:30
Rishabh
6e5e61d7cf Fixed naming of boilerplate stories
refs https://github.com/TryGhost/Team/issues/3151

- updates boilerplate story file to use standard .tsx extension
2023-05-19 21:26:52 +05:30
Rishabh
a588ace346 Updated Hint component for custom react node
refs https://github.com/TryGhost/Team/issues/3151

- updates hint to apply default styling to custom react nodes as well
- cleans up hint usage for publication language
- updates hint story to include new option
2023-05-19 21:19:29 +05:30
Daniel Lockyer
53ae2ecf4c
Merged v5.49.0 into main
v5.49.0
2023-05-19 17:13:01 +02:00
Ghost CI
bba46cdb19 v5.49.0 2023-05-19 15:09:58 +00:00
Peter Zimon
eee65f82d5 Added static form to mailgun settings
refs. https://github.com/TryGhost/Team/issues/3151
2023-05-19 17:03:44 +02:00
Peter Zimon
2cbae2ec6d Added static default recipients form in AdminX
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-19 16:47:57 +02:00
Peter Zimon
d08e22c0e5 Addedd static values to access in AdminX Settings
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-19 16:42:09 +02:00
Rishabh
05fc1ca810 Fixed lint 2023-05-19 20:10:25 +05:30
Rishabh
06ed1d70cb Wired social accounts setting to real site data
refs https://github.com/TryGhost/Team/issues/3151

- wires facebook and twitter url to real settings data in admin-x
- manages (de)serialisation of facebook/twitter users
- todo: error handling for invalid urls is
2023-05-19 20:03:55 +05:30
Rishabh
3ee39d458b Updated hint for admin-x publication language UI
refs https://github.com/TryGhost/Team/issues/3151

- updates hint to take both string and custom react node
- allows adding custom/more complex hints to text fields
2023-05-19 20:03:55 +05:30
Djordje Vlaisavljevic
b489986edc Updated feedback widget design on Post published
refs #3244
2023-05-19 15:06:29 +01:00
Djordje Vlaisavljevic
b99a9299cc Removed wordcount and Lexical badge, added help icon
refs #3254, #3253, #3242
2023-05-19 15:06:29 +01:00
Aileen Nowak
462073b452 🎉 Moved Substack migrator app to GA under beta features 2023-05-19 09:58:41 -04:00
Aileen Nowak
307a25f765 Moved migrate app labs flag to Beta features 2023-05-19 09:58:41 -04:00
Naz
e302f8cc1d Added DELETE /collections/id to Admin API
refs https://github.com/TryGhost/Team/issues/3167

- This is part of scaffolding for collections API. Allows to delete collection resource
2023-05-19 20:42:46 +07:00
Naz
e82fcbfc5e Added GET /collections/:id to Admin API
refs https://github.com/TryGhost/Team/issues/3167

- This is part of scaffolding for collections API. Allows to read a collection resource by id
2023-05-19 20:42:46 +07:00
Naz
735edf5f87 Fixed editing unexistent collection behavior
refs https://github.com/TryGhost/Team/issues/3167

- When editing collection that does not exist the API should be returning a 404 instead of creating a new collection
2023-05-19 20:42:46 +07:00
Naz
7d926dd30b Refactored collections unit test suite
refs https://github.com/TryGhost/Team/issues/3167

- Duplicate service initialization was getting annoying
2023-05-19 20:42:46 +07:00
Naz
f3f3d58acf Added PUT /collections/id to Admin API
refs https://github.com/TryGhost/Team/issues/3167

- This is part of scaffolding for collections API. Allows to edit collection resource
2023-05-19 20:42:46 +07:00
Naz
d3a8aad319 Added POST /collections to Admin API
refs https://github.com/TryGhost/Team/issues/3167

- This is part of scaffolding for collections API. Allows to add new collection records
2023-05-19 20:42:46 +07:00
Naz
606bd383f1 Extended getAll method with paging metadata
refs https://github.com/TryGhost/Team/issues/3167

- Having paging metadata is part of every API response and was missing from initial implementation
- The getAll method has all of the values as "static" as there's nothing to page on.
2023-05-19 20:42:46 +07:00
Naz
2d1eb881fc Extended save method to return saved collection data
refs https://github.com/TryGhost/Team/issues/3167

- The core client (API) needs a way to pass in information without an ID when creating a new entity, handling it on service/repository layer makes the most sense.
- Used "require" syntax to import tpl/errors modules, otherwise TS compiler was complaining about type compatibility issues, this works as a temporary workaround and is tracked and an issue to improve in the future.
2023-05-19 20:42:46 +07:00
Naz
36eff3a481 Added GET /collections to Admin API
refs https://github.com/TryGhost/Team/issues/3167

- This is scaffolding for collections API. Contains wiring for service wrapper, e2e test, and a browse endpoint
- Adds basic implementation of the GET /collections endpoint to build up upon
- Note, there are no permissions in this version as they will be added in later stages of development with migrations etc
2023-05-19 20:42:46 +07:00
Naz
d4a5dac758 Exposed in-memory collections repository
refs https://github.com/TryGhost/Team/issues/3167

- The repository is needed when initializing the collections service from the core
2023-05-19 20:42:46 +07:00
Sanne de Vries
6a9bd0478e Updated signup card frontent html
Refs https://github.com/TryGhost/Team/issues/3246
2023-05-19 15:19:14 +02:00
Rishabh
2e517b9f3b Wired read/write for publication language setting
refs https://github.com/TryGhost/Team/issues/3151

- wires real setting data read/write for publication language
2023-05-19 18:46:41 +05:30
Peter Zimon
3ef4a12c8d Fixed preflight for select in AdminX DS
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-19 15:14:04 +02:00
Peter Zimon
9d84bc257b Fixed onSave method in AdminX DS
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-19 15:04:22 +02:00
Daniel Lockyer
0fb35cf236
Added test:unit command to admin-x-settings
refs https://ghost.slack.com/archives/C02G9E68C/p1684496945687519?thread_ts=1684496771.857689&cid=C02G9E68C

- this will run a build of the package upon testing, which can reveal
  issues with code if the typescript compiler isn't happy
2023-05-19 14:56:08 +02:00
Rishabh
12871e6a77 Fixed lint error for unused event type
refs https://github.com/TryGhost/Team/issues/3150
2023-05-19 18:23:56 +05:30
Rishabh
7dd8628b40 Wired Timezone settings to use real data
refs https://github.com/TryGhost/Team/issues/3150

- wires Timezone setting to read list of timezones and allow editing/saving new value
- handles read/write of real timezone setting from settings context
- uses `@tryghost/timezone-data` to fetch list of all timezones
- adds typings.d.ts to handle missing types for @tryghost/timezone-data
2023-05-19 18:23:34 +05:30
Rishabh
a420adf684 Added default option for global Dropdown component
refs https://github.com/TryGhost/Team/issues/3150

- updates Dropdown component to allow a default selected option on first render
2023-05-19 18:14:03 +05:30
Sanne de Vries
50f5aef902 Added styles for signup card frontend html
Refs https://github.com/TryGhost/Team/issues/3246
2023-05-19 14:18:02 +02:00
Peter Zimon
9f84b6d9d4 Added static analytics inputs to AdminX Settings
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-19 13:39:29 +02:00
Peter Zimon
6f4fa691ad Added static input fields to pw protection
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-19 13:39:29 +02:00
Djordje Vlaisavljevic
26086d7140 Added dark mode design for feedback forms
refs https://github.com/TryGhost/Team/issues/3250
2023-05-19 12:19:26 +01:00
naz
320c659a1e
Added forced debug output for EmailRecipients fetching (#16823)
refs TryGhost/Team#3229

- The issue we are observing that even though the returned amount of email recipients should not ever accede the max batch size (1000 in case of MailGun), there are rare glitches when this number is doubled and we fetch 2000 records instead.
- The fix takes it's best guess in de-duping data in the batch and then truncates it if the amount of records is still above the threshold. This ensures we at least end up sending the emails out to some of the recipients instead of none.
2023-05-19 17:57:24 +07:00
renovate[bot]
a1dc3d4f33 Update dependency typescript to v5.0.4 2023-05-19 12:39:23 +02:00
Peter Zimon
cce150d04e Added toggle component to AdminX design system
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-19 12:29:42 +02:00
renovate[bot]
b373c8911e Update storybook monorepo to v7.0.12 2023-05-19 12:04:46 +02:00
renovate[bot]
39453b678b Update dependency vitest to v0.31.1 2023-05-19 11:50:49 +02:00
Michael Barrett
19f3700ae8
Fixed update check due to tiers service changes (#16832)
refs https://github.com/TryGhost/Team/issues/3234

The update check was failing to run due to recent changes in the tiers
service. This service now needs initialising before the update check can
be run.
2023-05-19 10:27:33 +01:00
Elena Baidakova
ca46308abe
Added logic for showing feedback form in Labs (#16831)
refs TryGhost/Team#3247
- The feedback form UI is hidden by default
- Enabling “Lexical editor” doesn’t show the feedback form
- Disabling “Lexical editor” shows the feedback form below this lab item
and user can send the feedback
- Refreshing the page or navigating to some other page and then back to
Labs → the form is hidden again
2023-05-19 13:15:25 +04:00
Daniel Lockyer
58539c355b
Added --adminX functionality to yarn dev
fixes https://github.com/TryGhost/Toolbox/issues/581

- this adds support for spinning up AdminX within the `yarn dev` script
  with zero other steps needed
2023-05-19 10:34:06 +02:00
Peter Zimon
0c85012bdc Merged components in Admin X Settings
refs. https://github.com/TryGhost/Team/issues/3150

Setting group values and Setting group inputs components were practically the same.
2023-05-19 09:17:26 +02:00
Peter Zimon
5800b63221 Added static values to Admin X Settings
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-19 08:12:21 +02:00
Peter Zimon
25ac93e7ca Removed state variable from setting SettingGroup
refs. https://github.com/TryGhost/Team/issues/3150

The state variable in the global setting group component in Admin X was unnecessary.
2023-05-19 07:46:54 +02:00
Peter Zimon
da9c004aa6 Added static social account settings in Admin X
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-19 07:38:45 +02:00
Peter Zimon
ea42f97ae7 Added text based settings in Admin X Settings
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-19 07:18:29 +02:00
Sodbileg Gansukh
c7b6a72a49 Separated tiers group to active and archived
refs https://github.com/TryGhost/Team/issues/1403

- currently, all tiers are grouped together in dropdowns with list of tiers
- this separates them into active and archived groups, so that the status of the tiers is clear when making choices
2023-05-19 11:59:44 +07:00
Peter Zimon
61e5068081 Fixed type antipattern in Admin X Settings
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-19 06:13:57 +02:00
Ghost CI
1914605705 Merged v5.48.1 into main 2023-05-18 17:31:39 +00:00
Ghost CI
4511fa3996 v5.48.1 2023-05-18 17:31:38 +00:00
Kevin Ansfield
e80fb5e20f
🐛 Fixed tiers not appearing on custom signup pages (#16828)
refs https://github.com/TryGhost/Team/issues/3248

- API queries for tiers are now using the TiersRepository with internal caching
- the repository had a bug with it's `toPrimitive()` method which meant the cached tier objects had very few properties
  - the Tier object has all properties as private getters except for standard `events` property which meant the spread operator didn't have anything to spread into the object resulting in all tiers having a shape like `{events: [], active: true, type: 'paid', id: 'abcd'}`
- the `getAll()` method uses nql to match against the cached tier objects but with them not being fully populated it wasn't able to match and so returned an empty array

---

- changing the spread to use `tier.toJSON()` means we're populating all of the tier data properly allowing filter matches to work
2023-05-18 18:13:20 +01:00
Djordje Vlaisavljevic
06331a89c4 Updated feedback widget design in Labs
refs https://github.com/TryGhost/Team/issues/3245
2023-05-18 16:17:24 +01:00
Djordje Vlaisavljevic
f8f1a66d77 Updated feedback widget design on Post published
refs https://github.com/TryGhost/Team/issues/3244
2023-05-18 16:17:24 +01:00
Nick Moreton
14ce57fa2b
Added trackEvent util for sending events to Plausible (#16824) 2023-05-18 14:32:50 +01:00
Peter Zimon
c0be5c91f7 Re-set auto time update in Admin X Settings
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-18 13:44:37 +02:00
Peter Zimon
9285bc2e52 View/edit interaction in Admin Settings
refs. https://github.com/TryGhost/Team/issues/3150

There was an opportunity to make a reusable interaction within the Setting Group component so that switching between different states are implicitly handled. With this change it's possible to just add a Setting Group component without the need to build the logic over and over again. The component expects only the "contents" (ie. values in view state or input fields in edit state) as its children. There's a built in header with Edit/Cancel/Save buttons which is overridable with the `customButtons` parameter. A completely custom header can be used via the `customHeader` parameter.

See `TitleAndDescription.tsx` for a working example.
2023-05-18 13:06:13 +02:00
Michael Barrett
cde30eb469
🐛 Fixed issue where single letter product slugs cause 500 error (#16821)
refs https://github.com/TryGhost/Team/issues/3224

When a product has a slug that is a single letter, checking if a user
had access to view a post associated with that product would cause a 500
error. The underlying cause of this issue is
https://github.com/TryGhost/NQL/issues/20 This fix circumvents this
issue by providing a value that the nql lexer will not error out on
2023-05-18 09:38:30 +01:00
Rishabh
9bdbe92183 Released Admin-x-settings v0.0.6 2023-05-18 02:22:47 +05:30
Rishabh
9af3714d8c Wired site settings to admin-x components
refs https://github.com/TryGhost/Team/issues/3151

- wires real setting value for a site to general settings UI in admin-X
2023-05-18 02:13:07 +05:30
Rishabh
5b0eba9b1f Added new provider to manage settings for admin-x
refs https://github.com/TryGhost/Team/issues/3151

- adds new settings provider that fetches settings for a site and allows saving them
- adds new helpers for making admin api calls and fetching setting values
2023-05-18 02:03:14 +05:30
Peter Zimon
cfbcd6fc1a Added static settings in Admin X Settings
refs. https://github.com/TryGhost/Team/issues/3151
2023-05-17 19:37:52 +02:00
Peter Zimon
07919f2fbe Hide save button in setting groups in Admin X
refs. https://github.com/TryGhost/Team/issues/3150

Save button is not necessary until a value is changed.
2023-05-17 19:15:27 +02:00
Peter Zimon
ece42c7e26 Component fixes in Admin X DS
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-17 19:09:09 +02:00
Peter Zimon
f0ef0cd54f Refinements in Admin X DS
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-17 19:01:01 +02:00
Peter Zimon
b2cf7704d5 Added design docs to headings in Admin X DS
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-17 18:50:14 +02:00
Peter Zimon
a3dc651397 Refined spacing in Admin X DS
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-17 18:24:08 +02:00
Peter Zimon
2e42454f13 Fixed Storybook arg types in Admin X DS
refs. https://github.com/TryGhost/Team/issues/3150

We are using ReactNode type parameters which can't be set directly in Storybook.
2023-05-17 18:15:21 +02:00
Ronald
3c7dd63ec4 Bumped portal version in config
ref https://ghost.slack.com/archives/C02G9E68C/p1684339356308719
2023-05-17 18:04:36 +02:00
Ronald
46cbf92dcb Released Portal v2.32.0 2023-05-17 17:56:28 +02:00
Peter Zimon
f3886028df Removed outline from dropdowns in Admin X DS
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-17 17:47:34 +02:00
Peter Zimon
9cdc31350d Added basic dropdown component to Admin X DS
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-17 17:40:20 +02:00
Peter Zimon
e6d289da4a Fixed typography in Admin X DS
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-17 16:12:57 +02:00
Peter Zimon
e880cae1d2 Added auto focus to input field in Admin X DS
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-17 16:11:07 +02:00
Ronald
d7cf8f0a65 Updated kg dependencies
no issue
2023-05-17 15:58:51 +02:00
Ronald
72ba157987 Revert "Bumped kg-default-nodes"
This reverts commit ab5b6c7b84661f6ce5387ae4ec9b4962790b3f43.
2023-05-17 15:58:51 +02:00
Ronald
6bf6fde7e2 Bumped kg-default-nodes
no issue
2023-05-17 15:58:51 +02:00
Peter Zimon
2978b4752b Added dynamic properties to settings in AdminX DS
refs. https://github.com/TryGhost/Team/issues/3150

- Setting group values were taking their input parameters statically which meant that it didn't auto-extend as new props have been added
2023-05-17 15:42:23 +02:00
Peter Zimon
0b4fc8d591 Added button disabled state in Admin design system
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-17 15:39:44 +02:00
Peter Zimon
0bcfdbd7ce Added static state handling to Admin Settings
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-17 15:39:44 +02:00
Djordje Vlaisavljevic
933b4bb4cb Removed autofocus from inline feedback forms
refs https://github.com/TryGhost/Team/issues/3231
2023-05-17 13:58:28 +01:00
Ronald
f0d0e8eb7a Released Portal v2.31.2 2023-05-17 14:34:07 +02:00
Elena Baidakova
6512edcbd2 Disabled feedback button if textarea is empty
no issue
2023-05-17 16:11:35 +04:00
Peter Zimon
9e9200022c Fixed button bug in Admin design system
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-17 14:02:19 +02:00
Peter Zimon
d1c96dd9c8 Fixed Admin design system bug
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-17 13:54:07 +02:00
Peter Zimon
82999ee144 Added setting group input component to Admin X DS
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-17 13:35:54 +02:00
Peter Zimon
347f331d63 Added static input field to Admin X Design System
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-17 13:08:09 +02:00
Elena Baidakova
29c440743c Disabled feedback dropdown closing on outside click
no issue
2023-05-17 15:06:37 +04:00
Ghost CI
945628c830 v5.48.0 2023-05-17 11:01:09 +00:00
Michael Barrett
93599315ab
Move duplicate post functionality out of labs (#16812)
no issue

Removed the labs check for the duplicate post functionality making it
available for everybody
2023-05-17 11:44:07 +01:00
Peter Zimon
d8b1a715b4 Added setting group view mode to Admin X DS
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-17 12:36:15 +02:00
Peter Zimon
f58b9d3499 Storybook cleanup in Admin X design system
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-17 12:08:33 +02:00
Peter Zimon
a789c84530 Added setting group value component to AdminX DS
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-17 12:03:18 +02:00
Rishabh
6630fd1cb4 Updated font handling for admin-x settings
refs https://github.com/TryGhost/Team/issues/3151

- splits font loading between css files that are loaded locally for storybook/demo app vs the exported App
- uses local Inter font for exported App vs local asset for demo
2023-05-17 15:23:55 +05:30
Peter Zimon
bfd6581696 Added setting value to AdminX design system
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-17 11:34:56 +02:00
Peter Zimon
83749ae181 Cleaned up headings in Admin design system
refs. https://github.com/TryGhost/Team/issues/3150
2023-05-17 11:21:38 +02:00
Michael Barrett
94c863f189
Implemented post slug update on duplicated post title update (mobiledoc) (#16811)
no issue

Updated the slug generation logic so that when a mobiledoc post is
duplicated and the title is edited, the slug gets updated to reflect the
new title of the post. See lexical implementation here:
https://github.com/TryGhost/Ghost/pull/16802
2023-05-17 10:11:01 +01:00