Skip to content

Forms: Fix wp-build dashboard rendering after dependency update - #46652

Merged
simison merged 6 commits into
trunkfrom
fix/forms-wp-build-dashboard-build-update
Jan 20, 2026
Merged

simison merged 6 commits into
trunkfrom
fix/forms-wp-build-dashboard-build-update

Conversation

@dhasilva

@dhasilva dhasilva commented Jan 16, 2026 •

Copy link
Copy Markdown
Contributor

Fixes an issue introduced in #46647 due to dependency update

See changelog

Proposed changes:

  • Updates the built file name and function name to render the dashboard

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:

  • Enable the forms alpha flag
  • Go to Jetpack > Forms (WP-Build)
  • Check that the dashboard is rendered

@dhasilva
dhasilva requested a review from a team January 16, 2026 22:44
@dhasilva dhasilva self-assigned this Jan 16, 2026
@dhasilva dhasilva added Bug When a feature is broken and / or not performing as intended [Status] Needs Review This PR is ready for review. labels Jan 16, 2026
Copilot AI review requested due to automatic review settings January 16, 2026 22:45
@github-actions

github-actions Bot commented Jan 16, 2026 •

Copy link
Copy Markdown
Contributor

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 fix/forms-wp-build-dashboard-build-update branch.
  • To test on Simple, run the following command on your sandbox:
bin/jetpack-downloader test jetpack fix/forms-wp-build-dashboard-build-update

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

@github-actions

Copy link
Copy Markdown
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 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!

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes the Forms wp-build dashboard rendering that was broken after a dependency update in PR #46647. The changes update the file path and function name to match the new build output format.

Changes:

  • Updated built file reference from index.php to build.php
  • Updated render function name to include gutenberg_ prefix
  • Added changelog entry for the fix

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
projects/packages/forms/src/dashboard/class-dashboard.php Updates the wp-build file path and function name to match the new build output after dependency update
projects/packages/forms/changelog/fix-forms-wp-build-dashboard-build-update Adds changelog entry describing the bug fix

Significance: patch
Type: fixed

Forms: Fix wp-build dashboard rendering after dependency update

Copilot AI Jan 16, 2026

Copy link

Choose a reason for hiding this comment

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

The changelog entry includes the package name 'Forms:' as a prefix, but according to the coding guidelines, entries in a package's changelog should not use the package name as a prefix. Remove 'Forms: ' from the entry.

Copilot generated this review using guidance from repository custom instructions.
@jp-launch-control

jp-launch-control Bot commented Jan 16, 2026 •

Copy link
Copy Markdown

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

@enejb

enejb commented Jan 17, 2026

Copy link
Copy Markdown
Member

This didn't work for me, I ended up with a black screen. No PHP errors.

simison
simison previously approved these changes Jan 19, 2026
@simison simison mentioned this pull request Jan 19, 2026
3 tasks
@simison

simison commented Jan 19, 2026 •

Copy link
Copy Markdown
Member

Build itself worked:

Before, build/index.php:

📄 Generating PHP registration files...

   ✔ Generated build/modules.php
   ✔ Generated build/modules/index.php
   ✔ Generated build/scripts.php
   ✔ Generated build/scripts/index.php
   ✔ Generated build/styles.php
   ✔ Generated build/styles/index.php
   ✔ Generated build/version.php
   ✔ Generated build/routes.php
   ✔ Generated build/pages.php
   ✔ Generated build/pages/jetpack-forms-responses/page.php
   ✔ Generated build/pages/jetpack-forms-responses/page-wp-admin.php
   ✔ Generated build/index.php

Now, build/build.php:

📄 Generating PHP registration files...

   ✔ Generated build/build.php
   ✔ Generated build/modules.php
   ✔ Generated build/modules/registry.php
   ✔ Generated build/scripts.php
   ✔ Generated build/scripts/registry.php
   ✔ Generated build/styles.php
   ✔ Generated build/styles/registry.php
   ✔ Generated build/constants.php
   ✔ Generated build/routes.php
   ✔ Generated build/pages.php
   ✔ Generated build/pages/jetpack-forms-responses/page.php
   ✔ Generated build/pages/jetpack-forms-responses/page-wp-admin.php

...but actually yeah now I see the black screen too.

@simison
simison force-pushed the fix/forms-wp-build-dashboard-build-update branch from 97984a8 to 41cc9c4 Compare January 19, 2026 13:08
Copilot AI review requested due to automatic review settings January 19, 2026 13:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

Significance: patch
Type: fixed

Forms: Fix wp-build dashboard rendering after dependency update

Copilot AI Jan 19, 2026

Copy link

Choose a reason for hiding this comment

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

The changelog entry should end with a period according to the project's changelog guidelines.

Copilot generated this review using guidance from repository custom instructions.
@simison

simison commented Jan 19, 2026 •

Copy link
Copy Markdown
Member

Solved blank screen by adding name to package.json (Convo p1768603517831589-slack-C052XEUUBL4), docs added in WordPress/gutenberg#74741

@simison
simison force-pushed the fix/forms-wp-build-dashboard-build-update branch from 8049e4c to 2d26295 Compare January 20, 2026 10:09
Copilot AI review requested due to automatic review settings January 20, 2026 10:09
@simison
simison force-pushed the fix/forms-wp-build-dashboard-build-update branch from cdbc8f7 to 318f20a Compare January 20, 2026 10:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

@simison
simison merged commit e44d8e3 into trunk Jan 20, 2026
68 checks passed
@simison
simison deleted the fix/forms-wp-build-dashboard-build-update branch January 20, 2026 10:28
@github-actions github-actions Bot removed the [Status] Needs Review This PR is ready for review. label Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug When a feature is broken and / or not performing as intended [Feature] Forms [Package] Forms

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants