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

Add title to gutenberg mobile #13199

Merged
merged 15 commits into from
Jan 24, 2019

Conversation

diegoreymendez
Copy link
Contributor

@diegoreymendez diegoreymendez commented Jan 4, 2019

Description

Adds post-title component support for mobile.

How has this been tested?

This PR should be tested through either of these branches:

gutenberg-mobile: wordpress-mobile/gutenberg-mobile#450
WPiOS: wordpress-mobile/WordPress-iOS#10794

titleinreactnative

Types of changes

Adds a .native.js file with the mobile-specific implementation of post-title.

To do:

Fix the build, which is failing for some reason. This shouldn't hold the reviews back, though.

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.
  • I've included developer documentation if appropriate.

@diegoreymendez diegoreymendez added [Status] In Progress Tracking issues with work in progress Mobile Web Viewport sizes for mobile and tablet devices Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change) labels Jan 4, 2019
@diegoreymendez diegoreymendez self-assigned this Jan 4, 2019

return {
clearSelectedBlock,
};
Copy link
Contributor

Choose a reason for hiding this comment

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

so this was the thing I was referring to by disptaching to store, just like this one we can also inject onUpdate to props and use editPost( { title } ) to update the post in the store, just like the web side here:

Copy link
Contributor

@pinarol pinarol left a comment

Choose a reason for hiding this comment

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

Thanks Diego for this! My tests passed all ok! 🎉
I think there's one last thing that needs to be addressed and I've added a comment about it but feel free to create an issue for it and handle that separately, at this time it is enough if we just don't forget about it.

…rnmobile/372-add-title-to-gutenberg-mobile

* 'master' of https://github.com/WordPress/gutenberg: (56 commits)
  Save package-lock.json file changes (#13481)
  Plugin: Deprecate gutenberg_add_responsive_body_class (#13461)
  Add speak messages to the feature toggle component. (#13385)
  Plugin: Deprecate gutenberg_kses_allowedtags (#13460)
  Plugin: Deprecate gutenberg_bulk_post_updated_messages (#13472)
  Plugin: Avoid calling deprecated gutenberg_silence_rest_errors (#13446)
  Plugin: Deprecate gutenberg_remove_wpcom_markdown_support (#13473)
  Fix: Categories block: add custom classes only to wrapper (#13439)
  is-shallow-equal: Use ES5 ruleset from eslint-plugin module (#13428)
  Update and Organize Contributors Guide per #12916 (#13352)
  Dismissible-notices: fix text overlapping icon (X) (#13371)
  Framework: Remove 5.0-merged REST API integrations (#13408)
  Plugin: Remove 5.0-merged block registration functions, integrations (#13412)
  Framework: Bump minimum required WP to 5.x (#13370)
  [Mobile] Improve keyboard hide button (#13415)
  Improve castError handling of non strings (#13315)
  Fix: File block add custom class (#13432)
  Consider making Fullscreen Mode effects visible only on larger screens (#13425)
  Update plugin version to 4.9.0 (#13436)
  DateTimePicker: fix prop warning for (#12933)
  ...
@diegoreymendez diegoreymendez merged commit ab0acc3 into master Jan 24, 2019
@diegoreymendez
Copy link
Contributor Author

Merging, but I'll be going through these PRs tomorrow to list any pending work.

Thanks for the feedback everyone.

@diegoreymendez diegoreymendez deleted the rnmobile/372-add-title-to-gutenberg-mobile branch January 24, 2019 21:46
@youknowriad youknowriad added this to the 5.0 (Gutenberg) milestone Feb 4, 2019
youknowriad pushed a commit that referenced this pull request Mar 6, 2019
* temporarily disable link formatting

* Make sure RichText resigns focus when unmounted (#13048)

* Implements a native version of post-title.

* Removes some unnecessary log calls.

* Submits a few lint fixes.

* Fixes a linting issue.

* When focusing the title, any focused block loses its focus.

* FocusOut is now wired for post-title for mobile.

* Removes unused some code.

* Added a file I failed to commit.

* Fixes a linting issue.
youknowriad pushed a commit that referenced this pull request Mar 6, 2019
* temporarily disable link formatting

* Make sure RichText resigns focus when unmounted (#13048)

* Implements a native version of post-title.

* Removes some unnecessary log calls.

* Submits a few lint fixes.

* Fixes a linting issue.

* When focusing the title, any focused block loses its focus.

* FocusOut is now wired for post-title for mobile.

* Removes unused some code.

* Added a file I failed to commit.

* Fixes a linting issue.
@gziolo gziolo removed the Mobile Web Viewport sizes for mobile and tablet devices label Oct 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change) [Status] In Progress Tracking issues with work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants