Skip to content

Conversation

@rchlfryn
Copy link
Collaborator

@rchlfryn rchlfryn commented Nov 5, 2025

Description

Updates event blocks

Related Issues

Fixes #245

Key Changes

  • Fixes query params for event list block (should have been done in Events - change types and subtypes #637)
  • Adds thumbnails for blocks
  • Changes autosave on pages and posts to include save draft button and default time of 800ms
  • Fixes background color not working for events and posts blocks

Screenshots / Demo

Screenshot 2025-11-05 at 12 33 54 Screenshot 2025-11-05 at 12 34 28

Migration Explanation

yes but in #635

Future enhancements / Questions

@rchlfryn rchlfryn self-assigned this Nov 5, 2025
@rchlfryn rchlfryn marked this pull request as draft November 5, 2025 21:10
@rchlfryn rchlfryn linked an issue Nov 5, 2025 that may be closed by this pull request
@github-actions
Copy link

github-actions bot commented Nov 5, 2025

Preview deployment: https://events-blocks.preview.avy-fx.org

@rchlfryn rchlfryn requested a review from busbyk November 6, 2025 06:50
@rchlfryn rchlfryn marked this pull request as ready for review November 6, 2025 06:50
Copy link
Collaborator

@busbyk busbyk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're def getting some conflicts here with what I've been doing in #658 now 😬 because I removed sub types. Maybe it makes sense to pull those changes out into a separate PR to merge in first? Or I'm happy enough with this PR going in and then dealing with the merge conflicts in #658


return (
<div className={cn(wrapInContainer && bgColorClass)}>
<div className={cn(bgColorClass && `${bgColorClass}`)}>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, there's only space to show the background color if you're wrapping the component in a container. So I actually think we should keep this, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can keep wrapInContainer as the logic but that wasnt the problem here. It was just evaluating to whatever the boolean of wrapInContainer && bgColorClass was rather than assigning bgColorClass as a string. I have a follow up issue in #654

@rchlfryn
Copy link
Collaborator Author

rchlfryn commented Nov 7, 2025

We're def getting some conflicts here with what I've been doing in #658 now 😬 because I removed sub types. Maybe it makes sense to pull those changes out into a separate PR to merge in first? Or I'm happy enough with this PR going in and then dealing with the merge conflicts in #658

It seems like more work to remove them into a separate PR. Since in #658 removing subtypes is necessary, lets just resolve conflicts there (which hopefully will not be too difficult)

@rchlfryn
Copy link
Collaborator Author

rchlfryn commented Nov 7, 2025

I changed my mind - I will remove subtype in any of these files

@rchlfryn rchlfryn merged commit 353cc85 into events Nov 7, 2025
1 check failed
@rchlfryn rchlfryn deleted the events-blocks branch November 7, 2025 23:05
@rchlfryn rchlfryn mentioned this pull request Nov 21, 2025
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.

Blocks: Events listing

3 participants