Skip to content

Refactor core blocks to have save and transforms in their own files (part 1)#14882

Merged
gziolo merged 1 commit intomasterfrom
update/block-library-file-extraction
Apr 12, 2019
Merged

Refactor core blocks to have save and transforms in their own files (part 1)#14882
gziolo merged 1 commit intomasterfrom
update/block-library-file-extraction

Conversation

@gziolo
Copy link
Copy Markdown
Member

@gziolo gziolo commented Apr 9, 2019

Description

Part of aligning block library to Block Registration API RFC #13693.

It's all about moving save and transforms to their own file to follow the proposal drafted in RFC. There might be some additional fields moved to their own files if I noticed that they were missed or introduced recently.

Updated blocks:

  • Archives
  • Audio
  • Block
  • Button
  • Calendar
  • Categories
  • Classic
  • Code
  • Column
  • Columns
  • Cover

How has this been tested?

npm test
npm run test-e2e

Manually tested whether all blocks load as before.

@gziolo gziolo added [Package] Block library /packages/block-library [Feature] Block Directory Related to the Block Directory, a repository of block plugins labels Apr 9, 2019
@gziolo gziolo self-assigned this Apr 9, 2019
@jorgefilipecosta jorgefilipecosta force-pushed the update/block-library-file-extraction branch from 8b577b5 to 3262f10 Compare April 12, 2019 08:07
Copy link
Copy Markdown
Member

@jorgefilipecosta jorgefilipecosta left a comment

Choose a reason for hiding this comment

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

I applied a rebase to make sure the tests execute attending to the last master changes.
Locally tests execute with success this is a case where packages/e2e-tests/specs/block-transforms.test.js is very useful.
The changes seem correct to me 👍
Feel free to merge after we get the green light.

@gziolo
Copy link
Copy Markdown
Member Author

gziolo commented Apr 12, 2019

Locally tests execute with success this is a case where packages/e2e-tests/specs/block-transforms.test.js is very useful.

I love them as well. They are super useful in this context. I hope that in the future we have at least one test for each block where test updates all block (non-media) attributes using keyboard interactions :)

Thank you for testing and rebase.

@gziolo gziolo merged commit b355b4f into master Apr 12, 2019
@gziolo gziolo deleted the update/block-library-file-extraction branch April 12, 2019 08:27
@gziolo gziolo added this to the 5.5 (Gutenberg) milestone Apr 12, 2019
@Soean Soean mentioned this pull request Apr 12, 2019
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Feature] Block Directory Related to the Block Directory, a repository of block plugins [Package] Block library /packages/block-library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants