Skip to content

Forms: Add file upload dropzone block #43114

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

Open
wants to merge 56 commits into
base: update/migrate-form-fields-to-inner-blocks
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
99456a6
Add base form field blocks
aaronrobertshaw Mar 12, 2025
ac3d031
changelog
aaronrobertshaw Apr 1, 2025
f73f219
Fix issues with style syncing hook:
aaronrobertshaw Apr 7, 2025
5c64dce
Prevent style syncing when blocks are reused in previews
aaronrobertshaw Apr 7, 2025
bd3d97e
Ensure label is editable after being emptied and placeholder shows
aaronrobertshaw Apr 8, 2025
faaa499
Opt out of block gap spacing for Options block
aaronrobertshaw Apr 14, 2025
1e85007
Migrate form field blocks to use new base blocks
aaronrobertshaw Apr 3, 2025
c4cf917
changelog
aaronrobertshaw Apr 1, 2025
d27ed64
Fix CSS linting issues
aaronrobertshaw Apr 7, 2025
036a769
Make select dropdown field's edit component more robust
aaronrobertshaw Apr 7, 2025
679b37b
First pass at updating form variations
aaronrobertshaw Apr 9, 2025
278cdcf
Quick clean up of form variations
aaronrobertshaw Apr 9, 2025
b5672e6
Pass required block toolbar control through to Option block for check…
aaronrobertshaw Apr 9, 2025
d26787b
Clean up form field and inner block attributes
aaronrobertshaw Apr 9, 2025
352db0d
Remove lodash dependency from dropdown field edit component
aaronrobertshaw Apr 9, 2025
692886c
Remove remaining lodash uses in new or updated form blocks
aaronrobertshaw Apr 9, 2025
c876d17
Remove TODO as Dropdown fields didn't use option styles
aaronrobertshaw Apr 9, 2025
2b937a2
Fix default styling for Consent field option label
aaronrobertshaw Apr 9, 2025
ede1447
Clean up unrequired TODO item
aaronrobertshaw Apr 9, 2025
6edc230
Clean some more TODOs
aaronrobertshaw Apr 9, 2025
aaf1178
Restore empty string defaults for input, option, and label blocks
aaronrobertshaw Apr 10, 2025
959c240
Revert use sync style hook to previous version retaining undo stack fix
aaronrobertshaw Apr 10, 2025
7a61233
Fix typo
aaronrobertshaw Apr 10, 2025
57431f8
Update form field style syncing (#43004)
talldan Apr 11, 2025
c8029b2
Fix linting error in editor.scss
aaronrobertshaw Apr 10, 2025
349e044
Attempt to fix warnings about PhanUndeclaredTypeParameter for WP_Block
andrewserong Apr 11, 2025
04545ad
Fix linting issue in class-contact-form.php
andrewserong Apr 11, 2025
a65e8c2
Forms: Prevent errors when synced attribute context is not available …
aaronrobertshaw Apr 11, 2025
9d597bf
For html_entity_decode, use ENT_COMPAT since we only care about doubl…
andrewserong Apr 11, 2025
efc2552
Remove is_array and empty check as we now will always have at least o…
andrewserong Apr 11, 2025
d5e69a2
Add transforms for new inner blocks based fields
aaronrobertshaw Apr 11, 2025
96cba66
Clean up standalone checkbox inner blocks template
aaronrobertshaw Apr 11, 2025
e5abf68
Clean up dropdown field inner blocks template
aaronrobertshaw Apr 11, 2025
0426e05
Add example definitions for field block types
aaronrobertshaw Apr 11, 2025
44a3783
Allow default checked status for standalone option fields
aaronrobertshaw Apr 11, 2025
dde7826
Fix choice field deprecation edge case
aaronrobertshaw Apr 14, 2025
480e316
Fix handling of required and width attributes for Textarea field.
aaronrobertshaw Apr 14, 2025
9aaab9a
Fix label block's placeholder fallbacks
aaronrobertshaw Apr 14, 2025
04b842d
Fix form undo redo issues (#43036)
talldan Apr 14, 2025
294819b
Forms: Add PHP unit tests for Migrate form fields to inner blocks JET…
ramonjd Apr 14, 2025
d915f25
Clean up TODO as the important style for Outlined form style can not …
aaronrobertshaw Apr 14, 2025
ee13dd7
Remove extraneous hook dependency
aaronrobertshaw Apr 14, 2025
24b2c88
Remove useFormWrapper audit TODO - all fields use it
aaronrobertshaw Apr 14, 2025
21dbe79
Remove TODOs already captured by issues
aaronrobertshaw Apr 14, 2025
3c1ccd9
Remove unused ids from consent, checkbox, single choice and multiple …
talldan Apr 14, 2025
d373c5b
Fix saving and display of dropdown field placeholder
aaronrobertshaw Apr 15, 2025
d20aa1d
Fix dropdown field placeholder default
aaronrobertshaw Apr 15, 2025
649998d
Fix style linting error
aaronrobertshaw Apr 15, 2025
7d0210e
Form inner blocks: supplement existing PHP unit tests (#43076)
ramonjd Apr 15, 2025
4f7e79c
Allow default checked status for standalone option fields (#43077)
aaronrobertshaw Apr 15, 2025
d1ba887
Fix date picker field incorrect classname (#43059)
talldan Apr 15, 2025
9b57279
Revert "Remove deprecated covers annotations in line with #42902"
aaronrobertshaw Apr 15, 2025
075be3a
Forms: move @covers to class level in PHP unit tests (#43081)
ramonjd Apr 15, 2025
a74b3db
Fix field block examples (#43096)
talldan Apr 16, 2025
ee86fa0
Add dropzone block to refactor branch
edanzer Apr 16, 2025
1299b13
Fix image block validation error
edanzer Apr 16, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: added

Adding block supports checks for new inner blocks, and radio field unit test coverage
4 changes: 4 additions & 0 deletions projects/packages/forms/changelog/add-new-form-field-blocks
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: added

Add label, input, option, and options blocks for improving form fields
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: added

Added tests for migration of form fields to inner blocks
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: changed

Migrate form field blocks to use new inner label, input, option, and options blocks
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Hoisting `@cover` annotation in PHP unit tests to class level.
Loading