Skip to content

Adds explanatory text to view.js template#53870

Merged
mburridge merged 4 commits intoWordPress:trunkfrom
mburridge:update/add-viewjs-description-create-block
Aug 23, 2023
Merged

Adds explanatory text to view.js template#53870
mburridge merged 4 commits intoWordPress:trunkfrom
mburridge:update/add-viewjs-description-create-block

Conversation

@mburridge
Copy link
Copy Markdown
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
Copy Markdown
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 <me@ryanwelcher.com>
Accepting Ryan's suggestion

Co-authored-by: Ryan Welcher <me@ryanwelcher.com>
@mburridge mburridge requested a review from ryanwelcher August 22, 2023 14:23
Copy link
Copy Markdown
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
Copy Markdown
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