Skip to content

[Modal Layout Picker] Show toast messages after creating a new page#13085

Merged
antonis merged 17 commits intodevelopfrom
issue/2453-NewPageToast
Oct 16, 2020
Merged

[Modal Layout Picker] Show toast messages after creating a new page#13085
antonis merged 17 commits intodevelopfrom
issue/2453-NewPageToast

Conversation

@antonis
Copy link
Copy Markdown
Contributor

@antonis antonis commented Oct 8, 2020

Fixes: wordpress-mobile/gutenberg-mobile#2453

Related PRs:
Depends on: #13077
gutenberg-mobile wordpress-mobile/gutenberg-mobile#2697
gutenberg WordPress/gutenberg#25951

To test:

Layout Picker should show when creating a new page from My Site or Site Pages the Modal Layout Picker appears.

  • Start by navigating to the Modal Layout Picker

Page Created (with content)

  1. Select a Layout from the options in Modal Layout Picker
  2. Select "Create Page"
    Expect to see the info notice banner appear under the navigation bar with the text "Page created"
  • 🗒️ This is different than the mocks in the linked issue but aligns with the direction that was determined.

Blank Page Created

  1. Select "Create Blank Page"
    Expect to see the info notice banner appear under the navigation bar with the text "Blank page created"
  • 🗒️ This is different than the mocks in the linked issue but aligns with the direction that was determined.

Blog Post Created

  1. Create a new blog post
  • This should not display the notice bar

Open existing Page Created

  1. Open an existing page (either published or draft)
  • This should not display the notice bar

Screenshots

Blank page Page with layout
device-2020-10-08-152140 device-2020-10-08-152217

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
Copy Markdown

peril-wordpress-mobile bot commented Oct 8, 2020

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

@peril-wordpress-mobile
Copy link
Copy Markdown

peril-wordpress-mobile bot commented Oct 8, 2020

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

# Conflicts:
#	WordPress/src/main/java/org/wordpress/android/ui/main/WPMainActivity.java
#	WordPress/src/main/java/org/wordpress/android/ui/pages/PagesFragment.kt
#	WordPress/src/main/java/org/wordpress/android/viewmodel/mlp/ModalLayoutPickerViewModel.kt
#	build.gradle
Copy link
Copy Markdown
Contributor

@Tug Tug left a comment

Choose a reason for hiding this comment

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

LGTM 👍

# Conflicts:
#	WordPress/src/main/java/org/wordpress/android/ui/mlp/ModalLayoutPickerFragment.kt
#	WordPress/src/main/java/org/wordpress/android/viewmodel/mlp/ModalLayoutPickerViewModel.kt
#	build.gradle
@malinajirka malinajirka self-assigned this Oct 16, 2020
Copy link
Copy Markdown
Contributor

@malinajirka malinajirka left a comment

Choose a reason for hiding this comment

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

Thanks @antonis! I haven't tested the app (except of one specific scenario), since TUG has already tested it. I found one potential issue, let me know what you think.

Base automatically changed from issue/2445-ScaledThumb to develop October 16, 2020 07:37
Copy link
Copy Markdown
Contributor

@malinajirka malinajirka left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@antonis antonis merged commit 71d7c88 into develop Oct 16, 2020
@antonis antonis deleted the issue/2453-NewPageToast branch October 16, 2020 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants