Connection: dynamic logo and tooltip in users list#49093
Conversation
…te icon Replace the hardcoded jetpack-icon.svg in the users list "Connected" status with the dynamic logo from Jetpack_Connector::get_connector_logo_url(), which adapts based on connected plugin families (Woo, A4A, default). Also move the SSO warning icon before the "Send invite" link text and align it with the connected logo layout using inline-flex. Co-authored-by: Cursor <cursoragent@cursor.com>
… plugins Adapt the tooltip text to mention WooCommerce and/or Automattic for Agencies when those plugin families are using the connection, matching the dynamic logo behavior. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
|
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 🤖 Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! |
Avoid duplicating the plugin family detection logic between Jetpack_Connector and Users_Connection_Admin by extracting it into a public static method on Jetpack_Connector. Co-authored-by: Cursor <cursoragent@cursor.com>
Code Coverage SummaryCoverage changed in 3 files.
Full summary · PHP report · JS report If appropriate, add one of these labels to override the failing coverage check:
Covered by non-unit tests
|
Use a 31px-wide container that centers both the connector logo and the SSO warning dashicon. Logos scale to fill the slot width (two-logo combo renders at ~31x18px, square multi-logo combos at ~31x31px). Text starts at the same horizontal position across all rows. Co-authored-by: Cursor <cursoragent@cursor.com>
Test all variants (default, jetpack-only, woo, a4a, both) and simplify the existing call_get_connector_logo_url() helper now that the method is public. Co-authored-by: Cursor <cursoragent@cursor.com>
Proposed changes
jetpack-icon.svgin the users list "Connected" status with the dynamic connector logo (Jetpack_Connector::get_connector_logo_url()), which adapts based on connected plugin families (Woo, A4A, default).Builds on #48951.
Other information
Does this pull request change what data or activity we track or use?
No.
Testing instructions
Made with Cursor