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

[RNMobile] fork master before richtext selection state change #15399

Conversation

hypest
Copy link
Contributor

@hypest hypest commented May 2, 2019

Description

This PR contains a "stripped" down version of master that only contains the RNMobile merges, and leaving out all web-side work since this PR: #14640 which is causing a breakage to the native mobile side.

This PR should not be merged. Instead, it serves for tracking the work on this special branch and will be used for the next native mobile code freeze.

How has this been tested?

Manually against gutenberg-mobile develop.

Types of changes

Removes all web-side merged commits after (and including) #14640

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.

pinarol and others added 10 commits May 2, 2019 16:40
* Add accessibilityLabel to post title

* Update accessibilityLabel

* Update accessibilityLabel

* Remove unnecessary line

* Import sprintf from i18n
* Adding accessibility properties to MediaPlaceholder and ImageEdit

* Fix lint issues

* Fix typo

* Better accessibility labels

* Disable lists. (#14844)

* Fix scroll with VoiceOver ON.

For some reason, VoiceOver wouldn't scroll down the block list.
The breaking change was located at the removal of this css property `font-family: $default-regular-font;` on the nextpage block.

Addinb back that property to be able to scroll the blocks list again using VoiceOver.

* Setting accessibilityStates properly to avoid Android crash

* Remove vscode settings file (added by mistake)

* Fix lint issues

* Update accessibility labels to use sprintf

* Fix lint issues
… of the editor (#15055)

* Do not reset the content in onSelectionChange

* Make sure there are changes made to the content before upgrading it upward

* Refactor: Introduce a local variable and DRY the code a bit

* Fix lint
* Add accessibility label for unselected state

* Improve accessibility handling
* Enhance accessibility on toolbar buttons

* Add accessibilityLabel for Image

* Add accessibility on caption

* Remove unnecessary hints

* Update accessibility labels

* Remove unnecessary hint
* Make a11y string properly localizable

* Remove extra . after the content

* Add `accessibility text` to the translators comment

* Fix the wrong parameter

* Change the position of translator comments
* Make accessibility labels properly localizable

* Fix indentation

* Fix image block accessibility labels
* RNMobile: Add ability to send extra props (i.e. props needed just for mobile) to the list block.

* Adding onCaretVerticalPositionChange to RichText via context

* Passing onCaretVerticalPositionChange via context to RichText for all RichText based blocks

This makes it not necessary to pass onCaretVerticalPositionChange as a prop directly to RichText from the block component.

* Update jest snapshot for block-edit
* If text already changed, don't modify it

* Able to not lose content

* Use a flag to signal Aztec-originated changes

And assume that when that flag is false, component changes need to get
sent/reflected down to Aztec.

* Differentiate Android and iOS since assumptions diverged

The iOS side still expects to just check against `this.lastContent` to
force the change into Aztec.

* Force Aztec update if "Enter" fired before text change

* Need to specify firedAfterTextChanged on all Aztec events

* Fix lint issues

* chore: Fix: Lint error that makes unit tests (and CI tests) fail. (#15073)

* Trivial change to trigger Travis

* Revert "Trivial change to trigger Travis"

This reverts commit e22ffde.

* Just use onFormatChange which now defaults to "force"

* Have Aztec delete the detected Enter key for paragraphs

Aztec-Android doesn't swallow the Enter key (like the list handling does) so,
instruct Aztec to delete it for the paragraph block.

* Don't force Aztec update on format button toggles

Doing this by reverting onFormatChange's behavior back to assuming
doUpdateChild is false by default.
@hypest hypest changed the title Rnmobile/master fork before richtext selection state change [RNMobile] fork master before richtext selection state change May 2, 2019
@nerrad nerrad added the Mobile Web Viewport sizes for mobile and tablet devices label May 6, 2019
* Add safety check to image url before calling indexOf

* Set attributes.id to null when an image upload is cancelled

* Add console.warn and comments to help track WordPress-Android issue #9768

* Fix lint errors
@gziolo gziolo added the Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change) label Sep 26, 2019
@gziolo
Copy link
Member

gziolo commented Sep 26, 2019

Is it sill necessary? It has been a while since it was created.

@gziolo gziolo added the [Status] Stale Gives the original author opportunity to update before closing. Can be reopened as needed. label Sep 26, 2019
@gziolo gziolo removed the Mobile Web Viewport sizes for mobile and tablet devices label Oct 10, 2019
@etoledom
Copy link
Contributor

Closing since it's not needed anymore

@etoledom etoledom closed this Nov 22, 2019
@etoledom etoledom deleted the rnmobile/master-fork-before-richtext-selection-state-change branch November 22, 2019 15:26
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] Stale Gives the original author opportunity to update before closing. Can be reopened as needed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants