-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat: GutenbergKit supports mentions and cross-posts #22109
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
Conversation
Project dependencies changeslist! Upgraded Dependencies
org.wordpress.gutenbergkit:android:v0.8.0-alpha.0, (changed from v0.7.0) tree +--- project :libs:editor
-| \--- org.wordpress.gutenbergkit:android:v0.7.0
+| \--- org.wordpress.gutenbergkit:android:v0.8.0-alpha.0
-\--- org.wordpress.gutenbergkit:android:v0.7.0 (*)
+\--- org.wordpress.gutenbergkit:android:v0.8.0-alpha.0 (*) |
|
App Name | ![]() |
|
Flavor | Jalapeno | |
Build Type | Debug | |
Version | pr22109-61b7b58 | |
Commit | 61b7b58 | |
Direct Download | wordpress-prototype-build-pr22109-61b7b58.apk |
|
App Name | ![]() |
|
Flavor | Jalapeno | |
Build Type | Debug | |
Version | pr22109-61b7b58 | |
Commit | 61b7b58 | |
Direct Download | jetpack-prototype-build-pr22109-61b7b58.apk |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## trunk #22109 +/- ##
==========================================
+ Coverage 5.37% 39.43% +34.06%
==========================================
Files 10 2149 +2139
Lines 335 101872 +101537
Branches 45 15604 +15559
==========================================
+ Hits 18 40177 +40159
- Misses 317 58126 +57809
- Partials 0 3569 +3569 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR integrates GutenbergKit's autocompleter functionality to support @mentions and cross-post suggestions in the WordPress Android app. The implementation leverages GutenbergKit's onAutocompleterTriggered
event and appendTextAtCursor
method to provide a consistent autocomplete experience.
Key changes:
- Updated GutenbergKit dependency to a development branch version that includes the autocompleter features
- Implemented autocompleter listener in GutenbergKitEditorFragment to handle @mention and +cross-post triggers
- Added XPosts capability configuration that respects site permissions and user capabilities
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
gradle/libs.versions.toml | Updates GutenbergKit dependency to development branch version with autocompleter support |
GutenbergKitEditorFragment.kt | Implements autocompleter functionality with listeners for mentions and cross-posts |
EditPostActivity.kt | Configures XPosts capability based on site and user permissions |
WordPress/src/main/java/org/wordpress/android/ui/posts/editor/GutenbergKitEditorFragment.kt
Show resolved
Hide resolved
025812c
to
06c7f02
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great!
|
Description
Close CMM-455. Dependent upon wordpress-mobile/GutenbergKit#165.
Leverage GutenbergKit's
onAutocompleterTriggered
event andappendTextAtCursor
method for displaying and inserting@mention
and+cross-post
suggestions.Testing instructions
Explore
@mention
and+cross-post
autocompletion. Try inserting triggers at various locations to verify expected behavior:<line-start>@<cursor>
@text<cursor>
text@<cursor>
text @<cursor>more
text more@<cursor>