Add analytics tracking to wordpress-rs post list and settings#22763
Open
Add analytics tracking to wordpress-rs post list and settings#22763
Conversation
Track post list events (tab changes, search, author filter, item selection, menu actions, create post) in PostRsListViewModel and post settings events (visibility, password, slug, excerpt, format, schedule, categories, tags) in PostRsSettingsViewModel to match the legacy implementations. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Collaborator
Generated by 🚫 Danger |
Contributor
|
|
Contributor
|
|
Add the missing analyticsTracker parameter to PostRsListViewModelTest and PostRsSettingsViewModelTest after the constructor change. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## trunk #22763 +/- ##
==========================================
+ Coverage 37.40% 37.42% +0.01%
==========================================
Files 2320 2320
Lines 123674 123743 +69
Branches 16791 16801 +10
==========================================
+ Hits 46256 46306 +50
- Misses 73707 73721 +14
- Partials 3711 3716 +5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Description
Adds analytics tracking to the wordpress-rs post list (
PostRsListViewModel) and post settings (PostRsSettingsViewModel) to achieve parity with the legacy implementations.Post list events (
PostRsListViewModel):POST_LIST_TAB_CHANGED— when the user swipes or taps a tabPOST_LIST_CREATE_POST_TAPPED— when the FAB is tappedPOST_LIST_SEARCH_ACCESSED— when search mode is openedPOST_LIST_AUTHOR_FILTER_CHANGED— when the author filter changesPOST_LIST_ITEM_SELECTED— when a post is tapped to editPOST_LIST_BUTTON_PRESSED— when a post menu action is tappedPost settings events (
PostRsSettingsViewModel):EDITOR_POST_VISIBILITY_CHANGED,EDITOR_POST_PASSWORD_CHANGED,EDITOR_POST_SCHEDULE_CHANGED,EDITOR_POST_CATEGORIES_ADDED,EDITOR_POST_TAGS_CHANGED— viatrackPostSettings()(addsvia=settings)EDITOR_POST_SLUG_CHANGED,EDITOR_POST_EXCERPT_CHANGED,EDITOR_POST_FORMAT_CHANGED— via directtrack()All settings events only fire when the value actually changes, matching legacy behavior.