Skip to content

GP-1090: Added RSVP Form block.#1106

Merged
mauteri merged 54 commits intodevelopfrom
GP-1090
Jun 19, 2025
Merged

GP-1090: Added RSVP Form block.#1106
mauteri merged 54 commits intodevelopfrom
GP-1090

Conversation

@mauteri
Copy link
Copy Markdown
Contributor

@mauteri mauteri commented May 24, 2025

Description of the Change

Creates the RSVP Form and Form Field blocks for Open RSVP feature. Blocks minimally function at the moment and will be fully completed in #1087. In this PR, the 2 blocks exist and render correctly. The form field block is has a lot of styling options and field types.

Screenshot 2025-06-16 at 10 33 26 AM

https://www.loom.com/share/8ba52f2a12994d42b10bbe4a114972ed

Closes #1090

How to test the Change

Changelog Entry

Added - New feature

Credits

Props @mauteri

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

@what-the-diff
Copy link
Copy Markdown

what-the-diff bot commented May 24, 2025

PR Summary

  • New RSVP Form Feature

    • The PR introduces a piece of code that handles the feature of RSVP form. This RSVP form is functional, that is, it can collect responses from users and integrate those responses with the WordPress comment system.
  • Including New RSVP Form in System

    • The newly created RSVP form has been registered in the system, ensuring that it is instantiated (created as instances) and readily available in the WordPress system for use.
  • Improvement in RSVP Submissions

    • The PR has made an improvement to the way RSVP submissions are handled: now, comments related to RSVP submissions aren't nested under other comments (their parent comment IDs are set to zero), which makes the comment management cleaner and less confusing.
  • Metadata Defined for New RSVP Form

    • The PR has created a metadata file for this new RSVP form, including details such as its name, description, version, and support features. This helps users better understand the functionality of this form block and how to use it.
  • Editing and Saving Behavior for RSVP Form

    • The PR has added new files that allow for the editing of the RSVP Form block directly in the block editor, with support for inner blocks. It has also specified how the block is saved after editing, thereby making the form block easier for admins to use and configure.
  • Initial Content Structure for RSVP Form

    • The PR has provided an initial content structure (already containing a paragraph) for the RSVP Form block, which simplifies the block's usage for admins.
  • Test Inclusion for New RSVP Form

    • The PR has updated unit tests in the system to accommodate the newly introduced RSVP Form block. This helps in ensuring the block's functionality is correct and doesn’t introduce breaking changes.
  • Note: This PR effectively adds a new form block for RSVP handling, including all necessary backend functionality and front-end components, along with necessary testing. This provides better handling and representation of RSVP responses in the WordPress comment system.

@mauteri mauteri marked this pull request as ready for review June 16, 2025 14:40
@github-actions
Copy link
Copy Markdown
Contributor

Preview changes with Playground

You can preview the recent changes for PR#1106 with the following PHP versions:

PHP Version 8.3

PHP Version 7.4

Download .zip with build changes

Made with 💙 from GatherPress & a little bit of WordPress Playground. Changes will not persist between sessions.

@mauteri mauteri merged commit 7436714 into develop Jun 19, 2025
16 checks passed
@mauteri mauteri deleted the GP-1090 branch June 19, 2025 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create a Configurable Form Input Block

1 participant