Skip to content

Forms: Polish integration modal style and copy #43252

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

Merged
merged 2 commits into from
Apr 28, 2025

Conversation

dhasilva
Copy link
Contributor

@dhasilva dhasilva commented Apr 25, 2025

Fixes FORMS-6

Proposed changes:

  • Multiple small tweaks

Other information:

  • Have you written new tests for your changes, if applicable?
  • Have you checked the E2E test CI results, and verified that your changes do not break them?
  • Have you tested your changes on WordPress.com, if applicable (if so, you'll see a generated comment below with a script to run)?

Jetpack product discussion

Does this pull request change what data or activity we track or use?

Testing instructions:

  • Go to the block editor and add a contact form
  • Go to the form integrations modal
  • Check that the issues listed here are fixed

Screenshot from 2025-04-25 20-42-03
Screenshot from 2025-04-25 20-41-44
Screenshot from 2025-04-25 20-41-20

@dhasilva dhasilva added [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it [Status] Needs Review This PR is ready for review. I don't care about code coverage for this PR Use this label to ignore the check for insufficient code coveage. labels Apr 25, 2025
@dhasilva dhasilva requested a review from a team April 25, 2025 23:52
@dhasilva dhasilva self-assigned this Apr 25, 2025
Copy link
Contributor

github-actions bot commented Apr 25, 2025

Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.

  • To test on WoA, go to the Plugins menu on a WoA dev site. Click on the "Upload" button and follow the upgrade flow to be able to upload, install, and activate the Jetpack Beta plugin. Once the plugin is active, go to Jetpack > Jetpack Beta, select your plugin (Jetpack), and enable the update/forms-integration-modal-polishing branch.
  • To test on Simple, run the following command on your sandbox:
bin/jetpack-downloader test jetpack update/forms-integration-modal-polishing

Interested in more tips and information?

  • In your local development environment, use the jetpack rsync command to sync your changes to a WoA dev blog.
  • Read more about our development workflow here: PCYsg-eg0-p2
  • Figure out when your changes will be shipped to customers here: PCYsg-eg5-p2

Copy link
Contributor

Thank you for your PR!

When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:

  • ✅ Include a description of your PR changes.
  • ✅ Add a "[Status]" label (In Progress, Needs Review, ...).
  • ✅ Add a "[Type]" label (Bug, Enhancement, Janitorial, Task).
  • ✅ Add testing instructions.
  • ✅ Specify whether this PR includes any changes to data or privacy.
  • ✅ Add changelog entries to affected projects

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:

  1. Ensure all required checks appearing at the bottom of this PR are passing.
  2. Make sure to test your changes on all platforms that it applies to. You're responsible for the quality of the code you ship.
  3. You can use GitHub's Reviewers functionality to request a review.
  4. When it's reviewed and merged, you will be pinged in Slack to deploy the changes to WordPress.com simple once the build is done.

If you have questions about anything, reach out in #jetpack-developers for guidance!

Copy link

Code Coverage Summary

This PR did not change code coverage!

That could be good or bad, depending on the situation. Everything covered before, and still is? Great! Nothing was covered before? Not so great. 🤷

Full summary · PHP report · JS report

Coverage check overridden by I don't care about code coverage for this PR Use this label to ignore the check for insufficient code coveage. .

Copy link
Contributor

@edanzer edanzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lots of small details here. Looks good to me. Thanks @dhasilva!

Copy link
Contributor

@CGastrell CGastrell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As per issue checklist:

Use #F0F0F0 (scales/gray-100 from the design system). If not available, use the lightest gray available in the current palette

Should we consider this instead of the fixed #f0f0f0?:

border-bottom: 1px solid var(--jp-gray-5, #f0f0f0);

Move badges 10px closer to the header.

Albeit a bit ambiguous, I think just removing the margin-left on the badge should suffice? ie no need to increase the gap on __title-row to 10px (which falls outside of our multiple-of-8 usual units)

@@ -26,7 +26,7 @@
&__title-row {
display: flex;
align-items: center;
gap: 8px;
gap: 10px;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to increase to 10px if we remove the margin-left from the __connected-badge

@CGastrell CGastrell self-requested a review April 28, 2025 17:48
@dhasilva
Copy link
Contributor Author

Good points, Christian. I'll merge as-is to do a single deploy with the other PR and we can check with @ilonagl about those points.
About the spacing, you are right about the 8px standard. Figma, however, shows 10px, so we need to check if this is intentional or not.
And the border color, I found that --jp-gray-5 is too light, and since the card component comes from the WorPress components package and already uses a light gray color, then maybe that is the "correct" one?

Both questions deal with use of standards, and that is something we should probably discuss going forward, so thanks for bringing this to our attention.

@dhasilva dhasilva merged commit fed7eb5 into trunk Apr 28, 2025
71 checks passed
@dhasilva dhasilva deleted the update/forms-integration-modal-polishing branch April 28, 2025 18:58
@github-actions github-actions bot removed the [Status] Needs Review This PR is ready for review. label Apr 28, 2025
@ilonagl
Copy link

ilonagl commented Apr 28, 2025

Sorry for being late to the party!

I left a comment in Slack, but in general, let's stick with the standards! You're both absolutely right. 🙌 The Figma designs and comments should be disregarded in that case (I tried to use the standard equivalent in design, but it seems it differs from Figma to code).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Contact Form Form block (also see Contact Form label) [Feature] Contact Form I don't care about code coverage for this PR Use this label to ignore the check for insufficient code coveage. [Package] Forms [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants