Skip to content

Move AppContainer and MainScreen to @wordpress/edit-post as Editor and Layout#1171

Merged
Tug merged 5 commits intodevelopfrom
update/move-appcontainer-and-mainscreen
Jun 26, 2019
Merged

Move AppContainer and MainScreen to @wordpress/edit-post as Editor and Layout#1171
Tug merged 5 commits intodevelopfrom
update/move-appcontainer-and-mainscreen

Conversation

@Tug
Copy link
Copy Markdown
Contributor

@Tug Tug commented Jun 24, 2019

Step 8b of #958
This is a refactor PR, the goal is to move our remaining components to gutenberg.

Gutenberg PR WordPress/gutenberg#16260

Changes

  • App (src/app/App.js) -> included in RootComponent in src/index.js
  • AppContainer (src/app/AppContainer.js) -> renamed to Editor and moved to gutenberg/packages/edit-post/src/editor.native.js
  • MainScreen (src/app/MainScreen.js) -> renamed to Layout and moved to gutenberg/packages/edit-post/src/components/layout/index.native.js
  • src/app/App.test.js -> moved to src/index.test.js (cannot be moved to gutenberg at this point as it uses the initial-html as input)
  • src/app/AppContainer.test.js -> moved to gutenberg/packages/edit-post/src/test/editor.native.js
  • src/app/style.scss -> moved to gutenberg/packages/edit-post/src/components/layout/style.native.js
  • src/app/initial-html.js -> moved to src/initial-html.js

Testing Instructions

  • Boot the app on iOS and Android
  • Check that the app works as expected.
  • Test on WPAndroid and WPiOS
  • Check that the app can be translated
  • Check that the formatting works
  • Check everything ;)

Update release notes:

  • If there are user facing changes, I have added an item to RELEASE-NOTES.txt.

@Tug Tug added the [Type] Enhancement Improves a current area of the editor label Jun 24, 2019
@Tug Tug added this to the v1.8 milestone Jun 24, 2019
@Tug Tug self-assigned this Jun 24, 2019
@koke koke mentioned this pull request Jun 24, 2019
10 tasks
@Tug Tug marked this pull request as ready for review June 25, 2019 08:43
@Tug Tug requested review from SergioEstevao, etoledom and hypest June 25, 2019 08:43
Copy link
Copy Markdown
Contributor

@etoledom etoledom left a comment

Choose a reason for hiding this comment

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

Looks and works great! 🎉

Tested on iOS and Android

There are a couple of errors when I run yarn flow locally. Weird since the CI is ✅
Most probably is some local state of mine.

Great job!

@Tug Tug merged commit e83c7d8 into develop Jun 26, 2019
@Tug Tug deleted the update/move-appcontainer-and-mainscreen branch June 26, 2019 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Enhancement Improves a current area of the editor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants