-
Notifications
You must be signed in to change notification settings - Fork 58
[Announcement] Add new UI for block adding and editing #11073
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a nice improvement - thank you! one thing I noticed was that the validations code from your other PR (#11038) doesn't seem to have carried over:

just merged main into this PR and added the validation to display in the block modal - thanks for reminding me! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you!
Summary of the problem
The built-in browser modal for submitting data about blocks isn't great, and currently you can't edit the parameters of a block without removing it and adding it again. :(
Describe your changes
This PR adds custom modals to add/edit the data of a block, for now all except
DonationGoal
. To allow this, creating new announcements using a modal has been removed, as modals cannot be easily layered. Clicking on the create button will just direct to theannouncements/new
page.Some refactoring has also been done to the block database structure and Stimulus controllers to make rendering them in different contexts (like a turbo stream) easier and with less code.
Screencast.From.2025-07-23.15-21-23.mp4