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] Enable build from monorepo #14188

Conversation

ceyhun
Copy link
Contributor

@ceyhun ceyhun commented May 26, 2020

Description

This PR adds the necessary changes for building WordPress-iOS using the new Gutenberg/Gutenberg-Mobile Monorepo setup.

Related PR's:

Gutenberg Monorepo PR's for fixing WPiOS build

To test:

PR submission checklist:

  • I have considered adding unit tests where possible.
  • I have considered adding accessibility improvements for my changes.
  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

@peril-wordpress-mobile
Copy link

peril-wordpress-mobile bot commented May 26, 2020

You can trigger an installable build for these changes by visiting CircleCI here.

@ceyhun ceyhun requested review from cameronvoell and Tug May 26, 2020 12:56
@ceyhun ceyhun added the Gutenberg Editing and display of Gutenberg blocks. label May 26, 2020
@peril-wordpress-mobile
Copy link

peril-wordpress-mobile bot commented May 26, 2020

You can trigger optional UI/connected tests for these changes by visiting CircleCI here.

@peril-wordpress-mobile
Copy link

peril-wordpress-mobile bot commented May 29, 2020

Warnings
⚠️ This PR is tagged with 'DO NOT MERGE'.

Generated by 🚫 dangerJS

@Tug Tug marked this pull request as ready for review June 1, 2020 09:55
@Tug Tug added this to the Someday milestone Jun 1, 2020
@chipsnyder
Copy link
Contributor

chipsnyder commented Jun 15, 2020

Regression Testing progress:

DarkMode-1

  • Gallery block - Dark mode - steps
  • Shortcode block - Dark mode - steps
  • Media Text block - Dark mode - steps

DarkMode-2

  • Spacer block - Dark mode - steps
  • Buttons block - Dark mode - steps
  • Group - Dark mode - steps
  • Columns - Dark mode - steps

Group-1

  • Group - AppenderButton is rendered - steps
  • ❌ Group - Deep nesting is possible (iOS only) - steps
  • Group - Check if Group placeholder is visible for the unselected state - steps
  • Group - Check if Group placeholder is render in nested structure - steps
  • Group - Nested block have proper border styling - steps
  • Group - Nested block have proper margins values - steps
  • Group - Breadcrumbs on FloatingToolbar is properly displayed - steps

Group-2

  • Group - Navigation up button works as expected - steps
  • Group - Navigation down works according to parent-first approach - steps
  • ❓ Group - Cross navigation between blocks works as expected - steps
  • Group - Ungroup button works as expected - steps
  • Group - Check if in DarkMode all components gets proper colors - steps
  • Group - Check if nested Placeholder block can be replaced - steps

Spacer-1

  • Spacer block - Spacer is rendered without crash - steps
  • Spacer block - Settings: Control spacer height using the slider - steps
  • Spacer block - Settings: Control spacer height using the text input - steps

Spacer-2

  • Spacer block - Settings: Available height range is correct - steps
  • Spacer block - Settings: Height range extends if Spacer comes from the web is higher than 500px - steps
  • Spacer block - Spacer in horizontal layout works as expected - steps

Buttons-1

  • Buttons block - Buttons block is added with focused Button with gray background color and white text color - steps
  • Buttons block - Buttons inline appender - steps
  • Buttons block - Add another Button inside Buttons using inserter - steps

Buttons-2

  • Buttons block - Removing Button along with Buttons block - steps
  • Buttons block - Removing exactly one Button (when Buttons contain more of them) - steps

Buttons-3

  • Buttons block - Wrapping Buttons - steps
  • Buttons block - Buttons alignment options - steps

Buttons-4

  • Buttons block - Render custom text color - steps
  • Buttons block - Render custom background color - steps
  • Buttons block - Render gradient background color - steps
  • Buttons block - Check if selection / caret color matches font color - steps
  • Buttons block - The newly created Buttons has set background color to the theme-default color in preview - steps

Button-5

  • Buttons block - Edit text styles - steps
  • Buttons block - Fallback to default colors in case theme colors are used - steps
  • Buttons block - Settings: Change Button border radius - steps

Button-6

  • Buttons block - Settings: Open in new tab - steps
  • Buttons block - Settings: Link rel - steps
  • Buttons block - Settings: Link URL - steps
  • Buttons block - Settings: Remove link - steps
  • Buttons block - Settings: Synchronize with button options - steps

Button-7

  • Buttons block - Link from the clipboard is automatically added into the empty URL field in link settings and button options - steps
  • Buttons block - Toolbar link button is active when Button has link - steps

@github-actions
Copy link

github-actions bot commented Jun 18, 2020

Warnings
⚠️ This PR is labelled with 'DO NOT MERGE'. Please don't merge it.

Generated by 🚫 dangerJS against 567a30a

@chipsnyder
Copy link
Contributor

chipsnyder commented Jun 18, 2020

This might be a bit random: While running from 36da2018e8a47fdba91396e60350db21891f1c2d with a metro server running Gutenberg-Mobile from try/after-monorepo => 81e4828b410a2f1d46ea6f5455a35f04e86154ff

I noticed that the title gets prepopulated with "Welcome to gutenberg for WP Apps!" for a new post.
Not sure if this is an intentional change or not but I don't see this in develop.

@SergioEstevao SergioEstevao self-requested a review June 19, 2020 12:26
@ceyhun
Copy link
Contributor Author

ceyhun commented Jun 19, 2020

This might be a bit random: While running from 36da2018e8a47fdba91396e60350db21891f1c2d with a metro server running Gutenberg-Mobile from try/after-monorepo => 81e4828b410a2f1d46ea6f5455a35f04e86154ff

I noticed that the title gets prepopulated with "Welcome to gutenberg for WP Apps!" for a new post.
Not sure if this is an intentional change or not but I don't see this in develop.

It's intentional for the demo apps as mentioned here:

When running the "enhanced" gutenberg mobile you should see "Welcome to gutenberg for WP apps" as the post title while it should just display "Welcome to gutenberg" for the core version.

but shouldn't be the case for WP apps, it's probably because we're missing a check in the gutenberg-mobile PR, in this file: https://github.com/wordpress-mobile/gutenberg-mobile/pull/2172/files#diff-1fdf421c05c1140f6d71444ea2b27638R23

I'll fix it and update the gutenberg-mobile ref here 👍

@ceyhun
Copy link
Contributor Author

ceyhun commented Jun 19, 2020

@chipsnyder Can you please try again with this new gutenberg-mobile ref

@chipsnyder
Copy link
Contributor

@chipsnyder Can you please try again with this new gutenberg-mobile ref

That fixed it. Thanks @ceyhun :)

@chipsnyder
Copy link
Contributor

chipsnyder commented Jun 19, 2020

@ceyhun I came across an error when testing
Group - Deep nesting is possible (iOS only) - steps

Following those steps I have:

  • Group 1
    • Paragraph
    • Paragraph
    • Image
    • Group 2
      • Paragraph
      • Group 3

Trying to add to group 3 pops the error here:

Update: Tested this against develop and the issues still exist there. Opened up a new issue wordpress-mobile/gutenberg-mobile#2410

@chipsnyder
Copy link
Contributor

chipsnyder commented Jun 19, 2020

While testing Buttons block - The newly created Buttons has set background color to the theme-default color in preview - steps I ran into an issue where the preview is hanging for one of my test sites (verified that this is working on a 15.1 test build)

Update: Tested this against develop and the issues still exist there. Opened up a new issue wordpress-mobile/gutenberg-mobile#2411

@mchowning mchowning changed the base branch from develop to gutenberg/integrate_release_1.31.0 June 23, 2020 20:14
….0' into gutenberg/try-enabling-build-from-monorepo
Copy link
Contributor

@mchowning mchowning left a comment

Choose a reason for hiding this comment

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

Did a quick sanity check and everything looks good to me.

Copy link
Contributor

@SergioEstevao SergioEstevao left a comment

Choose a reason for hiding this comment

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

Looking good! I smoke test the GB editor writing flow, and all is looking correct.

@mchowning mchowning merged commit 95f2f1a into gutenberg/integrate_release_1.31.0 Jun 23, 2020
@mchowning mchowning deleted the gutenberg/try-enabling-build-from-monorepo branch June 23, 2020 21:49
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. [Status] DO NOT MERGE
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants