-
Notifications
You must be signed in to change notification settings - Fork 800
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Social: Add new connection modal #37211
Conversation
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Once your PR is ready for review, check one last time that all required checks appearing at the bottom of this PR are passing or skipped. Jetpack plugin: The Jetpack plugin has different release cadences depending on the platform:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Social plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
{ <Icon icon={ chevronLeft } className={ styles[ 'chevron-back' ] } /> } | ||
</Button> | ||
<form className={ classNames( styles[ 'connect-form' ], { [ styles.small ]: isSmall } ) }> | ||
{ 'mastodon' === service.name ? ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For Mastodon we need to have the username as an input. We can handle that on the Button onClick event
...kages/publicize-components/src/components/add-connection-modal/connect-page/connect-page.tsx
Outdated
Show resolved
Hide resolved
projects/js-packages/publicize-components/src/components/add-connection-modal/constants.tsx
Show resolved
Hide resolved
projects/js-packages/publicize-components/src/components/add-connection-modal/index.tsx
Show resolved
Hide resolved
...kages/publicize-components/src/components/add-connection-modal/connect-page/connect-page.tsx
Outdated
Show resolved
Hide resolved
projects/js-packages/publicize-components/src/components/add-connection-modal/index.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR looks really good. Thank you.
I just have some minor suggestions for improvement.
Also, do we need the sharing buttons stuff to be shown in the modal?
projects/js-packages/publicize-components/src/components/add-connection-modal/constants.tsx
Outdated
Show resolved
Hide resolved
…onnection-modal/connect-page/style.module.scss Co-authored-by: Manzoor Wani <[email protected]>
…onnection-modal/style.module.scss Co-authored-by: Manzoor Wani <[email protected]>
…onnection-modal/style.module.scss Co-authored-by: Manzoor Wani <[email protected]>
…onnection-modal/style.module.scss Co-authored-by: Manzoor Wani <[email protected]>
…onnection-modal/constants.tsx Co-authored-by: Manzoor Wani <[email protected]>
projects/js-packages/publicize-components/src/components/add-connection-modal/index.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good now. We can fix the table a11y once the designs are revisited.
…onnection-modal/index.tsx Co-authored-by: Manzoor Wani <[email protected]>
* Add the constants * Chain down iconSize to SocialServiceIcon * changelog * Add the connection modal * Add the connect page component * Add assets * Add LinkedIn, Nextdoor, and Tumblr example * Add Mastodon * Hook up the modal * Fixup versions * Add aria-label to button * Update projects/js-packages/publicize-components/src/components/add-connection-modal/connect-page/style.module.scss Co-authored-by: Manzoor Wani <[email protected]> * Update projects/js-packages/publicize-components/src/components/add-connection-modal/style.module.scss Co-authored-by: Manzoor Wani <[email protected]> * Update projects/js-packages/publicize-components/src/components/add-connection-modal/style.module.scss Co-authored-by: Manzoor Wani <[email protected]> * Update projects/js-packages/publicize-components/src/components/add-connection-modal/style.module.scss Co-authored-by: Manzoor Wani <[email protected]> * Update projects/js-packages/publicize-components/src/components/add-connection-modal/constants.tsx Co-authored-by: Manzoor Wani <[email protected]> * Add connect button to main page as well * Fixup versions * Show `back` instead of chevronleft * Fix TS compile error for image imports in js-packages * Update projects/js-packages/publicize-components/src/components/add-connection-modal/index.tsx Co-authored-by: Manzoor Wani <[email protected]> --------- Co-authored-by: Manzoor Wani <[email protected]>
Fixes https://github.com/Automattic/jetpack-reach/issues/296
This changes adds the "Add new connection" modal to the plugin, which will be used with the connection management component that's being added in #37120
Proposed changes:
https://cloud.jetpack.com/jetpack-social/<SITE>
Other information:
Jetpack product discussion
https://github.com/Automattic/jetpack-reach/issues/296
Does this pull request change what data or activity we track or use?
No.
Testing instructions:
NOTE: The colors of the social icons is black, because the CSS variables from Calypso are not loaded properly. This will be fixed in this or a following change.
useAdminUiV1
defined.Add new connection
button in the connection list component. The modal window should open.Service selector page:
Examples of pre-connection pages: