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

Reorganize the structure of block-validation directory #6022

Merged
merged 3 commits into from
Mar 30, 2021

Conversation

delawski
Copy link
Collaborator

Summary

The two entry points: block-validation and block-editor are both used in the context of the block editor. Potentially they could share the same entry point so that code re-usability would be better.

This is the first step of the process. With this PR the directory structure of the block-validation is more organized and matches the structure of the block-editor folder.

This change will also allow us to cleanly migrate the amp-toggle plugin from block-editor to block-validation. With #5997, the plugin would logically belong better to block-validation since it renders AMP status notification that in turn is based on the AMP validation results.

Relates to #5997

Checklist

  • My code is tested and passes existing tests.
  • My code follows the Engineering Guidelines (updates are often made to the guidelines, check it out periodically).

The two entry points: `block-validation` and `block-editor` are both used in the context of the block editor. Potentially they could share the same entry point so that code re-usability would be better.

This is the first step of the process. The directory structure of the `block-validation` is now more organized and should match the structure of the `block-editor` folder.

This change will also allow us to cleanly migrate the `amp-toggle` plugin from `block-editor` to `block-validation`. With #5997, this plugin logically belongs to `block-validation` since it renders AMP status notification that in turn is based on the AMP validation status.
@delawski delawski self-assigned this Mar 25, 2021
Copy link
Contributor

@pierlon pierlon left a comment

Choose a reason for hiding this comment

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

Great work! Components and the plugin for block-validation are now organized in a structured and easy to follow manner.

@pierlon pierlon added this to the v2.1 milestone Mar 26, 2021
@pierlon pierlon added the WS:UX Work stream for UX/Front-end label Mar 26, 2021
@delawski
Copy link
Collaborator Author

Thanks for the review, @pierlon!

@delawski delawski marked this pull request as ready for review March 26, 2021 12:45
@github-actions
Copy link
Contributor

github-actions bot commented Mar 26, 2021

Plugin builds for ba1301a are ready 🛎️!

@westonruter westonruter merged commit 7450147 into develop Mar 30, 2021
@westonruter westonruter deleted the add/5997-editor-sidebar-notifications branch March 30, 2021 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WS:UX Work stream for UX/Front-end
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants