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

Xpost Suggestions for Gutenberg #15139

Merged
merged 7 commits into from
Dec 24, 2020
Merged

Conversation

guarani
Copy link
Contributor

@guarani guarani commented Oct 20, 2020

Addresses wordpress-mobile/gutenberg-mobile#2602
Related PRs:

This PR adds to Gutenberg the ability to xpost to another site.

To test

What you'll need: A WordPress.com site that is capable of xposting to one or more other sites

  • Make sure some of the destination sites have a blavatar photo (site photo) set
  • The ability to verify that the destination sites were successfully xpost'ed to

Note: https://wordpress.com/p2/ can be used to create xpost-capable sites.

Xpost in Gutenberg

  • Open the block editor
  • In a Paragraph or any other rich text block, type + and verify that the list of suggestions is shown
  • Make sure that the blavatar images load for sites which have a blavatar image
  • Select one of the suggestions to add it to the post
  • Expect the site name (not its URL) to be added to the post
  • Publish the post
  • Verify that the destination site received the xpost

Please note: There are improvements coming to the Xpost feature before it will be shipped, this PR aims to bring Xposts the same level of functionality Mentions currently has, nothing more, nothing less. (Improvements include a request throttle, prefetching, analytics, etc.)

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 Oct 20, 2020

You can test the changes on this Pull Request by downloading it from AppCenter here with build number: 39794. IPA is available here. If you need access to this, you can ask a maintainer to add you.

@guarani guarani changed the base branch from develop to gutenberg/prepare-suggestions-for-xposts October 20, 2020 22:10
@guarani guarani added Gutenberg compatibility Gutenberg Editing and display of Gutenberg blocks. labels Oct 20, 2020
@guarani guarani changed the title Gutenberg/implement xpost suggestions Implement xpost suggestions in Gutenberg Oct 20, 2020
@guarani guarani force-pushed the gutenberg/prepare-suggestions-for-xposts branch from 667db2f to 4329539 Compare October 20, 2020 22:21
@peril-wordpress-mobile
Copy link

peril-wordpress-mobile bot commented Oct 20, 2020

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

@guarani guarani force-pushed the gutenberg/prepare-suggestions-for-xposts branch from 4329539 to 6966f0d Compare October 21, 2020 12:29
Base automatically changed from gutenberg/prepare-suggestions-for-xposts to develop October 21, 2020 18:08
@guarani guarani force-pushed the gutenberg/implement-xpost-suggestions branch from 57802f6 to 7e6df8e Compare October 21, 2020 19:03
@guarani guarani force-pushed the gutenberg/implement-xpost-suggestions branch from b5bfdee to f1ba787 Compare November 30, 2020 18:48
@guarani guarani changed the base branch from develop to gutenberg/after_1.42.0 November 30, 2020 18:49
Base automatically changed from gutenberg/after_1.42.0 to develop December 1, 2020 19:50
@guarani guarani force-pushed the gutenberg/implement-xpost-suggestions branch from 720304f to ef2f349 Compare December 2, 2020 00:18
- Add xpost support to Gutenberg in `GutenbergViewController`
- Extend `SuggestionsTableView` to support xposts
- Extend `SuggestionService` to support xposts
- Make filtering suggestions (both for xposts and @-mentions) case insensitive and diacritic insensitive)
- Add a 60 second throttle to both xpost and @-mention network calls
- Make `UserSuggestion` conform to `Decodable`
@guarani guarani force-pushed the gutenberg/implement-xpost-suggestions branch from ef2f349 to a51eaef Compare December 2, 2020 01:21
@guarani guarani added this to the 16.5 milestone Dec 16, 2020
@guarani guarani changed the title Implement xpost suggestions in Gutenberg Xpost Suggestions for Gutenberg Dec 16, 2020
@guarani guarani force-pushed the gutenberg/implement-xpost-suggestions branch 2 times, most recently from 00be286 to 0705d94 Compare December 23, 2020 18:43
@guarani guarani force-pushed the gutenberg/implement-xpost-suggestions branch from 0705d94 to 4ad27f6 Compare December 23, 2020 21:21
@guarani guarani marked this pull request as ready for review December 23, 2020 21:25
@guarani guarani requested a review from antonis December 24, 2020 01:17
Copy link

@antonis antonis left a comment

Choose a reason for hiding this comment

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

Great work @guarani 👍
The code is consistent and clean and the app performs as expected (tested on iPhone SE 2020 / iOS 14.2) 🎉
I only left a minor comment which I don't consider blocking.

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.

3 participants