Skip to content

Reorganize the structure of block-validation directory#6022

Merged
westonruter merged 3 commits intodevelopfrom
add/5997-editor-sidebar-notifications
Mar 30, 2021
Merged

Reorganize the structure of block-validation directory#6022
westonruter merged 3 commits intodevelopfrom
add/5997-editor-sidebar-notifications

Conversation

@delawski
Copy link
Copy Markdown
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 requested review from pierlon and westonruter March 25, 2021 19:42
@delawski delawski self-assigned this Mar 25, 2021
Copy link
Copy Markdown
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
Co-authored-by: Pierre Gordon <16200219+pierlon@users.noreply.github.com>
@delawski
Copy link
Copy Markdown
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
Copy Markdown
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