Skip to content

Added RSVP Anonymous Checkbox block and updated functionality; fixed …#979

Merged
mauteri merged 4 commits intodevelopfrom
add-anonymous
Jan 5, 2025
Merged

Added RSVP Anonymous Checkbox block and updated functionality; fixed …#979
mauteri merged 4 commits intodevelopfrom
add-anonymous

Conversation

@mauteri
Copy link
Copy Markdown
Contributor

@mauteri mauteri commented Jan 5, 2025

…some random issues with guest blocks.

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 Jan 5, 2025

PR Summary

  • Enhancements to Guest Count Input Block:
    Revamped the mechanism that renders the guest count input by adding checks to prevent errors. We also made modifications to the structure of the HTML output for improved accessibility and removed unnecessary style variables, keeping only the CSS improvements for alignment.

  • Introduction of the RSVP Anonymous Checkbox Block:
    A new block has been added to allow users to choose anonymity when RSVPing to an event. The labels on this feature can be customized as desired. The display of this checkbox is based on certain conditions, checked via the post meta-data.

  • Handling Anonymity in RSVP Responses:
    We've made improvements to handle anonymous responses more effectively, including setting a default avatar when the user doesn't have editing permissions. In addition, we've added functionality to replace user identities with 'Anonymous' on RSVPs marked for anonymity.

  • Styling Updates:
    Made several CSS modifications to the guest count input and RSVP anonymous checkbox. These changes help to better align elements on the page, enhancing the overall user interface and experience.

  • Version Updates:
    For better consistency across the RSVP blocks, we've updated the version strings.


  • Updates to guest-count-input rendering and styling:
    The rendering logic now includes validation checks for the inputId attribute, ensuring it's not empty before rendering. We've improved the HTML structure for better accessibility and implemented styling changes to enhance layout.

  • New rsvp-anonymous-checkbox block:
    We introduced a new block with a configuration file, allowing settings like label and inputId to be modified as needed. The user interface for managing this element allows users to manage the checkbox label and input ID effectively. Additionally, we also deployed server-side PHP logic that handles the rendering of this new checkbox.

  • Updated rsvp-v2 view logic:
    Enhanced this view's logic to better handle RSVP anonymity based on user interactions with the new checkbox.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 5, 2025

Preview changes with Playground

You can preview the recent changes for PR#979 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 cdf1162 into develop Jan 5, 2025
@mauteri mauteri deleted the add-anonymous branch January 5, 2025 00:38
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