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

Gutenberg: update to v1.20.0 #11052

Merged
merged 13 commits into from
Jan 10, 2020
Merged

Gutenberg: update to v1.20.0 #11052

merged 13 commits into from
Jan 10, 2020

Conversation

Tug
Copy link
Contributor

@Tug Tug commented Jan 7, 2020

Gutenberg mobile "master" PR: wordpress-mobile/gutenberg-mobile#1752

This PR updates the gutenberg-mobile reference to point to the latest release, v1.20.0. No wpandroid integration changes introduced.

The libs/gutenberg-mobile reference is currently pointing to the release/1.20.0 branch on https://github.com/wordpress-mobile/gutenberg-mobile.

When that gets merged to gutenberg-mobile master, I'll update the ref here to point to the merge commit.

Changes:

To test:
The block editor should work as normal.

Update release notes:

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

@Tug Tug added the Gutenberg Editing and display of Gutenberg blocks. label Jan 7, 2020
@Tug Tug added this to the 14.0 milestone Jan 7, 2020
@Tug Tug requested a review from hypest January 7, 2020 16:39
@Tug Tug self-assigned this Jan 7, 2020
@peril-wordpress-mobile
Copy link

peril-wordpress-mobile bot commented Jan 7, 2020

You can test the changes on this Pull Request by downloading the APK here.

@etoledom
Copy link
Contributor

I've found these two small issues so far:

1- The strikethrough icon is not highlighted when the cursor is over a strikethrough-ed text.
2- The Layout looks a bit messy on the Images source selection bottom sheet.

Tested on Device Mi A2 Lite, Android 9, using the APK from CircleCI

android

@Tug
Copy link
Contributor Author

Tug commented Jan 10, 2020

@etoledom it seems your strikethrough text is also underlined? I think that might be one of aztec<-> gutenberg limitations when formatting text, aztec might just produce other tags that the one gutenberg format-library supports.

2 is indeed a problem, and more generally for translated text that might be longer. I have also noticed on my older (iOS) device that we were showing the block selection bottom sheet on 2 columns which crops some of the blocks. So in my opinion screen sizes looks like a more general problem we should address, but probably not as part of this release, wdyt?

@etoledom
Copy link
Contributor

aztec might just produce other tags that the one gutenberg format-library supports.

Yes that's it! Aztec creates a <del> tag, and Gutenberg expects an <s> tag. 👍

@etoledom
Copy link
Contributor

About 2: I remember have seen this issue before, and @marecar3 fixed it (If I'm not being confused). I'm trying to find that ticket but haven't found it yet.

@marecar3 maybe you remember?

@etoledom
Copy link
Contributor

Just tested the version from the store (Beta) and it still happens there, so I guess is not a regression 👍

So in my opinion screen sizes looks like a more general problem we should address, but probably not as part of this release, wdyt?

Agreed!

@marecar3
Copy link
Contributor

About 2: I remember have seen this issue before, and @marecar3 fixed it (If I'm not being confused). I'm trying to find that ticket but haven't found it yet.

@marecar3 maybe you remember?

Hey @etoledom, I can't remember that I was working on that one 😕

@etoledom
Copy link
Contributor

Thank you @marecar3 ! I got confused then 👍

There's one more: Captions on Images and Gallery have issues with multiline when pressing enter.
@pinarol any idea? If this seems important enough, we might want to target the release branch with a hot-fix.

caption

@etoledom
Copy link
Contributor

Everything else seems to work well. I'm happy to ✅ if all the issues described are not blockers for this PR.

@Tug
Copy link
Contributor Author

Tug commented Jan 10, 2020

It's not a regression but it's still pretty serious as caption might have line breaks (at least it's possible on the web) and we might lose content when editing on mobile.

@etoledom
Copy link
Contributor

It's not a regression but it's still pretty serious as caption might have line breaks (at least it's possible on the web) and we might lose content when editing on mobile.

Tested on iOS and it works well. It might be related to Aztec Android?

@hypest
Copy link
Contributor

hypest commented Jan 10, 2020

The removal of the newlines in captions on Android is a known issue:
wordpress-mobile/gutenberg-mobile#1651

@hypest
Copy link
Contributor

hypest commented Jan 10, 2020

✅ Fix displaying placeholder for images in some cases when the image cannot be downloaded (wordpress-mobile/gutenberg-mobile#1631)
🆗 (not exposed to any user-facing UI yet) Introduce new Stepper UI component, used in the Spacer block to select the block's height (wordpress-mobile/gutenberg-mobile#1640)
✅ Add a testID to the inserter button so in can be used for AT (wordpress-mobile/gutenberg-mobile#1681)
🆗 (behind DEV flag still so, not exposed to user yet) Hide image size selection options when image is a url (wordpress-mobile/gutenberg-mobile#1669)
🆗 (behind DEV flag still so, not exposed to user yet) Add experimental page template selector (DEV) (wordpress-mobile/gutenberg-mobile#1576)
✅ Fix crash on undo (wordpress-mobile/gutenberg-mobile#1701)
✅ Style fixes on navigation UI (wordpress-mobile/gutenberg-mobile#1754)

@@ -1,5 +1,9 @@
14.0
-----
* Block Editor: Hide image size selection options when image is a url
Copy link
Contributor

Choose a reason for hiding this comment

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

The image size selector is still under dev flag, so this should not affect the release build.

Copy link
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.

The removal of the newlines in captions on Android is a known issue:
wordpress-mobile/gutenberg-mobile#1651

Since this is known issue, there's my ✅ 🎉

@pinarol
Copy link
Contributor

pinarol commented Jan 10, 2020

There's one more: Captions on Images and Gallery have issues with multiline when pressing enter.
@pinarol any idea? If this seems important enough, we might want to target the release branch with a hot-fix.

As @hypest said it is a known issue. We tried fixing that for the individual tiles but this time an interesting bug happens where the first word of caption can not be styled.
see First word not stylable

@hypest
Copy link
Contributor

hypest commented Jan 10, 2020

We tried fixing that for the individual tiles but this time an interesting bug happens where the first word of caption can not be styled.

Just to be sure @pinarol , do you mean that there's a new issue in this PR? Or was it an issue that happened in the attempts to fix the removing caption newlines issue?

@pinarol
Copy link
Contributor

pinarol commented Jan 10, 2020

Just to be sure @pinarol , do you mean that there's a new issue in this PR? Or was it an issue that happened in the attempts to fix the removing caption newlines issue?

The "First word not stylable" problem is currently reproducible only on individual Gallery tiles because it uses its own RichText and not the Caption component. The existing Caption component was suitable only for blocks so we couldn't use it on tiles. In this PR, newline issue does not exist on tiles because we solved it without noticing the "First word not stylable" regression.

We are about to merge a PR to develop that refactors Caption component to make it suitable for both tiles and blocks. After that one is merged, both blocks and tiles will be using the same Caption component so they will have the same bug which is the newline issue.

Copy link
Contributor

@hypest hypest left a comment

Choose a reason for hiding this comment

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

LGTM!

@hypest
Copy link
Contributor

hypest commented Jan 10, 2020

The strings update (1294de9) looks good to me.

@Tug Tug merged commit 69cfe28 into develop Jan 10, 2020
@Tug Tug deleted the gutenberg/integrate_release_1.20.0 branch January 10, 2020 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Gutenberg Editing and display of Gutenberg blocks.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants