GatherPress / gatherpress

Powering our community's event management needs.
https://wordpress.org/plugins/gatherpress/
GNU General Public License v2.0
83 stars 31 forks source link

NEW Event Date block #684

Closed carstingaxion closed 1 week ago

carstingaxion commented 3 months ago

Is your enhancement related to a problem? Please describe.

A new or updated Event Date block should …:

With that in place one could easily create many different layouts using one or multiple instances of the Event Date block within a singular or archive template, or even within a query block.

The UI for both dates should be merged into one, because people will probably ever want to define an end date, after they defined a start date. This should the save two-clicks for closing start- and opening end-date-fields.

Designs

The existing core/post-date has the most of what is needed, but is not prepared well to create block-variations from. Maybe GatherPress can re-use some of its components.

Fixing the variation-problem in the source at Gutenberg, would be best.

Describe alternatives you've considered

No response

Code of Conduct

mauteri commented 3 months ago

NOTES: https://github.com/WordPress/gutenberg/issues/60971

MervinHernandez commented 3 months ago

✅ Viewed 684 - Event Date Block - Mike has it

MervinHernandez commented 3 months ago

✅ Reviewed June 22 - Mike has it

mauteri commented 1 month ago

This will need to be a custom block as a block variation does not appear to be possible. I can still explore a bit, but I think the translations aspects of this make it pretty much impossible. We can still explore ways of replicating things done in the Post Date block to improve our current block.

https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/post-date

mauteri commented 1 week ago

This is done.