Skip to content

Updates and fixes to RSVP Template block.#970

Merged
mauteri merged 3 commits intodevelopfrom
update-rsvp-template-block
Dec 31, 2024
Merged

Updates and fixes to RSVP Template block.#970
mauteri merged 3 commits intodevelopfrom
update-rsvp-template-block

Conversation

@mauteri
Copy link
Copy Markdown
Contributor

@mauteri mauteri commented Dec 31, 2024

Description of the Change

Closes #

How to test the Change

Changelog Entry

Added - New feature
Changed - Existing functionality
Deprecated - Soon-to-be removed feature
Removed - Feature
Fixed - Bug fix
Security - Vulnerability

Credits

Props @username, @username2, ...

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 Dec 31, 2024

PR Summary

  • Updated Version Number
    The version number has been updated in a file called view.asset.php. This is useful for keeping track of changes and updates.

  • Modified Data Extraction Methods
    The method used to fetch data in view.js has been altered. It now uses a more effective approach (element.ref.textContent) to send block data, improving efficiency and reliability.

  • Enhanced Image Versioning
    In leaflet_css-rtl.css, the background image URLs now include hash identifiers. This ensures that different versions of images are distinct, reducing the risk of using outdated images.

  • Added Functionality for Dynamic Block Content
    A new method named generate_rsvp_template_block has been created in class-rsvp-template.php. The addition of this feature makes it possible to create dynamic block contents based on event responses, adding flexibility and responsiveness.

  • Adjusted Block Rendering Logic
    The logic for rendering blocks within class-rsvp-template.php has been adjusted to improve its performance and visual output.

  • Refined Block Registration Process
    The custom settings in class-block.php for block registration have been removed while retaining the registration call. This streamlines the block registration process, making it more straightforward and efficient.

  • Improved Validation for Block Data
    A validation callback for block_data has been introduced in class-event-rest-api.php. This ensures the data is validated properly, enhancing the overall data integrity.

  • Introduced New Validating Method
    A new method, validate_block_data, has been added to class-validate.php. It helps evaluate the structure and validity of block data received in the form of JSON, bolstering the data validation process.

@github-actions
Copy link
Copy Markdown
Contributor

Preview changes with Playground

You can preview the recent changes for PR#970 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 1d54cd4 into develop Dec 31, 2024
@mauteri mauteri deleted the update-rsvp-template-block branch December 31, 2024 17:51
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.

1 participant