-
Notifications
You must be signed in to change notification settings - Fork 148
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
Try using blocks for block content #270
base: trunk
Are you sure you want to change the base?
Conversation
I suppose the question is whether we would eventually iterate to a point where Do any other benefits of blockifying exist here?
I don't think requiring a build process is a true drawback here, in fact if we move the CSS to |
At this point I don't have a good grasp on how much work this would require, but my understanding is that we're not going to be iterating on this much in the near future.
I don't think so, these functions are just returning non-interactive content and require no extra CSS. They already use block markup for styles. Seems like the previously mentioned pros and cons are actually both pros. For the small amount of effort required maybe it's worth doing just for these and to set us up for the future. |
Replace functions which return block content with blocks. Includes dependencies and scripts for building blocks
dd499df
to
d5c6efc
Compare
I've now migrated from |
d5c6efc
to
c4cf92f
Compare
I don't see the reward in making this change unless it comes with tangible benefits for our users. I don't think it makes the developer experience much better, if at all, nor does it future-proof the code based on my understanding of what's being proposed. |
My motivation was mostly coming from a best practice/devex angle, so if no-one else finds the current solution too unpleasant we can leave as is. |
One nice devex improvement with the wp-scripts build is that the CSS sourcemaps work, unlike the current one. I haven't spent the time to fix that, didn't seem worth it. |
in fact just this build change is worth doing IMO. Replacing the old grunt build removes tech debt and brings devex consistency. |
Replace wporg_support_get_forums_list() in functions.php which returns block content, with a server rendered block.
This follows the approach we took with Developer Resources.
There are several more functions which do the same, if we decide this approach is beneficial we can convert them too.
Includes dependencies and scripts for building blocks.
Pros: feels less hacky to have this code which converts bbPress templates into blocks, contained in blocks, rather than output from functions.php
Cons: requires a build process
Is this worth doing?