Repository navigation
Dash Item: remove the inert status and statusText props - #52405
Conversation
DashItem's status prop stopped being read when PR #52058 removed the unreachable module="manage" branch, its last consumer. Remove the prop and the values every At-a-Glance card computed only to feed it. Backups also drops isVaultPressInstalled: it existed only to compute one of those status values. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Declared in propTypes, read nowhere in the component, and never set by any call site in _inc/client. Separate from the status prop removed in the previous commit, which became inert for a different reason. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! Jetpack plugin: The Jetpack plugin has different release cadences depending on the platform:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
Code Coverage SummaryThis PR did not change code coverage! That could be good or bad, depending on the situation. Everything covered before, and still is? Great! Nothing was covered before? Not so great. 🤷 |
There was a problem hiding this comment.
🟢 Approval recommended
No unresolved review issues were identified.
Pull request overview
Removes unused DashItem status props and obsolete data flow without changing rendered behavior.
Changes:
- Removes inert props, call-site plumbing, tests, and documentation.
- Cleans up unused Backups VaultPress state.
- Records the internal cleanup in the changelog.
File summaries
| File | Summary |
|---|---|
projects/plugins/jetpack/changelog/jetpack-2550-dash-item-status |
Records the cleanup. |
projects/plugins/jetpack/_inc/client/components/dash-item/test/component.jsx |
Removes obsolete test props. |
projects/plugins/jetpack/_inc/client/components/dash-item/README.md |
Updates component documentation. |
projects/plugins/jetpack/_inc/client/components/dash-item/index.jsx |
Removes unused prop declarations. |
projects/plugins/jetpack/_inc/client/at-a-glance/videopress.jsx |
Removes unused status plumbing. |
projects/plugins/jetpack/_inc/client/at-a-glance/search.jsx |
Removes unused status plumbing. |
projects/plugins/jetpack/_inc/client/at-a-glance/scan.jsx |
Removes obsolete status data while retaining live VaultPress logic. |
projects/plugins/jetpack/_inc/client/at-a-glance/protect.jsx |
Removes unused status plumbing. |
projects/plugins/jetpack/_inc/client/at-a-glance/photon.jsx |
Removes unused status plumbing. |
projects/plugins/jetpack/_inc/client/at-a-glance/monitor.jsx |
Removes unused status plumbing. |
projects/plugins/jetpack/_inc/client/at-a-glance/backups.jsx |
Removes status flow and orphaned VaultPress state. |
projects/plugins/jetpack/_inc/client/at-a-glance/akismet.jsx |
Removes unused status plumbing. |
Review details
- Files reviewed: 12/12 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Fixes JETPACK-2550
Proposed changes
DashItemdeclares two props it never reads. This removes both, and the data flow that existed only to feed them.statusstopped being read when #52058 removed the unreachablemodule="manage"branch, its last consumer. Eight At-a-Glance cards still computed values for it:akismet,monitor,photon,videopressandprotectpassed literals, whilebackups,scanandsearchforwarded it through arenderCard()helper fed by object literals.statusTextis inert for a different reason and from a different history — declared inpropTypes, read nowhere in the component, and never set by any call site in_inc/client.Removing
statusorphaned one prop upstream:backups.jsx'sisVaultPressInstalledexisted only to choose between'pro-inactive'and'pro-uninstalled'. With the status line gone it has no reader, so itspropTypes,defaultProps,getVPContent()destructure,connect()selector entry and the now-unusedisPluginInstalledimport go with it.scan.jsxhas an identically-namedisVaultPressInstalledprop that is live — it drives a real branch — and is left alone.No user-facing change: none of these values reached the rendered output.
Related product discussion/links
statusinertDoes this pull request change what data or activity we track or use?
No.
Testing instructions
The change is a removal of values that were never rendered, so the test is that At a Glance is unchanged.
admin.php?page=jetpack#/dashboard) on a connected site.pnpm jetpack test js plugins/jetpackpasses: 932 extensions tests, 493 + 509 admin-page tests (2 pre-existing skips).🤖 Generated with Claude Code