Commit Graph

294 Commits

Author SHA1 Message Date
Peter Zimon
f48dc5a847 Added inner scrolling for Design sidebar in AdminX
refs. https://github.com/TryGhost/Team/issues/3354
2023-06-07 17:30:07 +02:00
Peter Zimon
20eaff9e5c Updated sticky footer component in AdminX
refs. https://github.com/TryGhost/Team/issues/3354
2023-06-07 13:06:26 +02:00
Peter Zimon
76704d05c6 Added global sticky footer component in AdminX
refs. https://github.com/TryGhost/Team/issues/3354
2023-06-07 11:53:51 +02:00
Peter Zimon
ef096d9c87 Cleaned up classname properties in AdminX
refs. https://github.com/TryGhost/Team/issues/3354
2023-06-07 10:48:33 +02:00
Peter Zimon
f05b6a6037 Added unstyled property to image uploads AdminX
refs. https://github.com/TryGhost/Team/issues/3354
2023-06-07 10:29:03 +02:00
Peter Zimon
9faf2cafbe Got rid of modal folders in AdminX
refs. https://github.com/TryGhost/Team/issues/3354
2023-06-07 09:53:20 +02:00
Peter Zimon
a3cba13381 Broke down design settings in AdminX
refs. https://github.com/TryGhost/Team/issues/3354
2023-06-07 09:40:56 +02:00
Peter Zimon
d7e5661a35 Fixed preview modal size bug in AdminX
refs. https://github.com/TryGhost/Team/issues/3354
2023-06-07 09:10:16 +02:00
Peter Zimon
2e2a96c741 User modal refinements in AdminX
refs. https://github.com/TryGhost/Team/issues/3351
2023-06-06 15:17:05 +02:00
Peter Zimon
2fc3336dd2 Fixed modal padding bug
refs. https://github.com/TryGhost/Team/issues/3351
2023-06-06 15:08:04 +02:00
Peter Zimon
19dfd28946 Added sticky footer option to modals in AdminX
refs. https://github.com/TryGhost/Team/issues/3351
2023-06-06 14:58:55 +02:00
Peter Zimon
f5415a25ad Added backDropClick param. to modals in AdminX
refs. https://github.com/TryGhost/Team/issues/3351
2023-06-06 14:58:55 +02:00
Rishabh
695857ae96 Wired save and error handling for user details modal
refs https://github.com/TryGhost/Team/issues/3351

- updates user state on suspend/delete actions to show the latest
- shows errors for email and url on user detail screen
2023-06-06 15:08:44 +05:30
Rishabh
fbfb1d0008 Fixed user cover and profile image upload issues
refs https://github.com/TryGhost/Team/issues/3351

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

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

- allows owners/admins to delete users based on their permission level
- allows admins to be made owner users only if owner is logged in
2023-06-06 09:20:45 +05:30
Jono Mingard
885531b345 Added e2e tests for most simple AdminX settings 2023-06-06 15:50:07 +12:00
Jono M
089a3f7aaf
Added playwright config to admin-x-settings (#16941)
no issue
2023-06-06 11:29:28 +12:00
Peter Zimon
ae6a2ba0cc Added notification to user invitations
refs. https://github.com/TryGhost/Team/issues/3351
2023-06-05 17:54:53 +02:00
Peter Zimon
e0dca2e0c7 Cleanup test code from AdminX
refs. https://github.com/TryGhost/Team/issues/3351
2023-06-05 17:33:20 +02:00
Peter Zimon
5ad8e71cba Added toasters to AdminX Design System
refs. https://github.com/TryGhost/Team/issues/3351
2023-06-05 17:31:25 +02:00
Peter Zimon
ffe5cd765a Updated user role in AdminX settings
refs. https://github.com/TryGhost/Team/issues/3351
2023-06-05 11:53:06 +02:00
Peter Zimon
c6a5ada5cc Updated user cover and profile image position
refs. https://github.com/TryGhost/Team/issues/3351
2023-06-05 11:48:56 +02:00
Peter Zimon
2fe6ccbc22 Wired up user cover and profile image actions
refs. https://github.com/TryGhost/Team/issues/3351
2023-06-05 11:45:47 +02:00
Rishabh
c2371b4841 Wired suspend user action on user detail modal in adminX
refs https://github.com/TryGhost/Team/issues/3351

- wires Suspend/Un-suspend user action on user detail modal
- adds running state for task buttons in modal
- adds api to delete and suspend/un-suspend users
2023-06-05 10:09:37 +05:30
Rishabh
2b0a6bc454 Wired user invite modal in admin-x
refs https://github.com/TryGhost/Team/issues/3351

Allows logged in user to send invites to new users, with allowed roles that can be invited restricted based on the role of logged in user.
2023-06-04 15:49:34 +05:30
Djordje Vlaisavljevic
187c62145c Updated Twitter and FB card edit mode spacing
refs https://github.com/TryGhost/Team/issues/3318
2023-06-02 15:15:47 +01:00
Peter Zimon
2c0b5e61c5 Refined invites user list in AdminX Settings
refs. https://github.com/TryGhost/Team/issues/3351
2023-06-02 15:49:09 +02:00
Djordje Vlaisavljevic
f5e81c9b16 Removed className prop from ImageUpload
refs https://github.com/TryGhost/Team/issues/3318
2023-06-02 14:47:56 +01:00
Djordje Vlaisavljevic
e9caf73175 Fixed lint error
refs https://github.com/TryGhost/Team/issues/3318
2023-06-02 14:47:09 +01:00
Djordje Vlaisavljevic
d7ecc4b33e Moved CSS for ImageUpload to prop
refs https://github.com/TryGhost/Team/issues/3318
2023-06-02 14:47:09 +01:00
Djordje Vlaisavljevic
449ce994f4 Moved ImageUpload labels from props to children
refs https://github.com/TryGhost/Team/issues/3318
2023-06-02 14:47:09 +01:00
Djordje Vlaisavljevic
091b3acd61 Updated Twitter and FB card edit mode design
refs https://github.com/TryGhost/Team/issues/3318
2023-06-02 14:47:09 +01:00
Djordje Vlaisavljevic
bbb09523ce Added bg-transparent to clearBg variants of TextField and TextArea
refs https://github.com/TryGhost/Team/issues/3318
2023-06-02 14:47:09 +01:00
Djordje Vlaisavljevic
10f987ad24 Added className prop to ImageUpload
refs https://github.com/TryGhost/Team/issues/3318
2023-06-02 14:47:09 +01:00
Djordje Vlaisavljevic
8a8561fc94 Added FB and Twitter social icons
refs https://github.com/TryGhost/Team/issues/3318
2023-06-02 14:47:09 +01:00
Rishabh
b307c59d54 Wired invites list in admin-x settings
refs https://github.com/TryGhost/Team/issues/3351

- adds api to get list of all invites on the site
- wires invite list with Revoke/Resend option on the User settings group
2023-06-02 18:41:09 +05:30
Peter Zimon
1a0c1c0cd2 Minor UX fix on password change
refs. https://github.com/TryGhost/Team/issues/3351
2023-06-02 15:09:48 +02:00
Peter Zimon
d1c0ea6c57 Added avatar image uploader in AdminX
refs. https://github.com/TryGhost/Team/issues/3351
2023-06-02 15:00:36 +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
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
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
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
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
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
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
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
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
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
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
renovate[bot]
2a739cf248 Update dependency vitest to v0.31.4 2023-06-01 13:41:39 +02: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
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
renovate[bot]
2edaf2c42c Update dependency vitest to v0.31.2 2023-06-01 09:44:15 +02: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
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
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
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
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
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
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