Skip to content
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

Adds explanatory text to view.js template #53870

Merged

Conversation

mburridge
Copy link
Contributor

What?

Adds some explanatory text to the view.js template in the create-block package.

Why?

This file, namely view.js, was recently added to projects created with @wordpress/create-block, I believe due to the implementation of the Interactivity API (correct me if I'm wrong). For many people it's not clear what this file is for so some explanatory text has been added as a comment in the template file to clarify its purpose and usage.

@mburridge mburridge added [Tool] Create Block /packages/create-block Developer Experience Ideas about improving block and theme developer experience labels Aug 22, 2023
@mburridge mburridge added the [Type] Developer Documentation Documentation for developers label Aug 22, 2023
Copy link
Contributor

@ryanwelcher ryanwelcher left a comment

Choose a reason for hiding this comment

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

LGTM! Just thinking we could simplify the text a little. I've left suggestions but feel free to make your own changes.

mburridge and others added 2 commits August 22, 2023 15:22
Accepting Ryan's suggestion

Co-authored-by: Ryan Welcher <[email protected]>
Accepting Ryan's suggestion

Co-authored-by: Ryan Welcher <[email protected]>
@mburridge mburridge requested a review from ryanwelcher August 22, 2023 14:23
Copy link
Contributor

@ryanwelcher ryanwelcher left a comment

Choose a reason for hiding this comment

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

I looks like an extra line was left in. Let's remove that and we're good to go!

@ryanwelcher
Copy link
Contributor

Looks like there is a failing test that needs to be addressed as well - https://github.com/WordPress/gutenberg/actions/runs/5940139652/job/16108070444?pr=53870

@mburridge mburridge requested a review from ryanwelcher August 22, 2023 16:03
@mburridge mburridge enabled auto-merge (squash) August 23, 2023 08:46
@mburridge mburridge disabled auto-merge August 23, 2023 09:13
@mburridge mburridge merged commit b10e33a into WordPress:trunk Aug 23, 2023
@github-actions github-actions bot added this to the Gutenberg 16.6 milestone Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Developer Experience Ideas about improving block and theme developer experience [Tool] Create Block /packages/create-block [Type] Developer Documentation Documentation for developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants