Skip to content

Convert Add to Calendar block to new block standards #1064

@mauteri

Description

@mauteri

Is your enhancement related to a problem? Please describe.

This is an effort to make GatherPress blocks more flexible for the end user. We have already done this with the RSVP and RSVP Response blocks, which essentially are "parent" blocks that house inner blocks. The parent block is what directs functionality, but its the inner blocks that allow flexibility and styling with a mixture of core blocks and block components.

The Add to Calendar block will follow suit. It will be rewritten to utilize inner blocks including the new dropdown block and icon block which area also used in the RSVP Response block. Essentially, we will recreate the look and feel of the current block with the new component that are available since 0.32.0. Calendar links will be dynamically generated with custom anchors much like we see in the RSVP block with login and registration.

There is also need to redo the calendar endpoints as well. That is not part of this ticket, but will be a follow up to be done either in this version of GatherPress or a future version. The scope of this ticket is to update the block itself.

Lastly, this will require a migration in GatherPress Alpha to convert the old block to the new one. Similarly to what we did with the RSVP and RSVP Response blocks in 0.32.0.

Designs

No response

Describe alternatives you've considered

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions