-
Notifications
You must be signed in to change notification settings - Fork 50
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
1337 add a meetings block for wp block themes #1383
base: main
Are you sure you want to change the base?
Conversation
…files - Removed @tinypixelco/laravel-mix-wp-blocks & @wordpress/dependency-extraction-webpack-plugin dependencies - Added @wordpress/scripts dependency - Moveed render.php to block directory (best practice) - Set .gitignore, webpack.mix.js & mix-manifest.json back to original content
}, | ||
"message": { | ||
"type": "string", | ||
"default": "There are no upcoming meetings today. Please check back tomorrow." |
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.
is this text accurate? this seems like it applies more to the Upcoming Meetings widget?
if this block embeds TSML UI it should probably say something like "TSML UI could not be embedded" - not sure what scenario this wouldn't show…
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 config value the user can change in the block settings when there are no upcoming meetings listed. It only shows up in the block config for that block, but needs a starting value.
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.
{label: 'Meetings UI', value: 'tsml_ui'}, | ||
{label: 'Next Meetings', value: 'tsml_next_meetings'}, | ||
{label: 'Types List', value: 'tsml_types_list'}, | ||
{label: 'Regions List', value: 'tsml_regions_list'} |
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.
do these options show up anywhere? i don't see them in the block editor but i might be looking in the wrong place?
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.
left a few minor questions
this seems great, i was able to embed the block
i then struggled mightily trying to get it to go wider in 2024 and couldn't, but i don't think that can be helped by us, right? there's no way to make it easier to go wider?
it would be great if we could make a loom or other short screencast video showing how to make the block wider and link it from the description, but that can be in a future PR
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.
oh ok i see your response - i'd like to discuss this a little before merging
I think we should. What I did, eliminates the extra files generated by Mix, but adds a build step so we may want to discuss that in addition to whatever you'd like to discuss. |
- Use tabs insotead of spaces in block.json for consistency
What theme are you using? 2024? I think themes have to declare support for those options. It may be that we can declare that support in TSML. I can check. |
I didn't realize I should have added support for alignWide in the block.json. Hopefully the latest commit fixes the issue with the alignment toolbar. |
Renders all TSML shortcodes as Gutenberg blocks.
Currently, this PR generates 2 files in the plugin root when running
npx mix --production
ornpx mix watch
(undefined.js & undefined.asset.php). These are unnecessary, and were added to the .gitignore as a stop gap, but this is not ideal. Hoping to get some assistance on finding a better way to compile assets or to fix the anomalous files being generated.`