Repository navigation
Protect Dashboard: Link straight to a section's settings card - #53743
Merged
Merged
Conversation
Add a `section` search param that the Settings tab scrolls to and focuses, a Dashboard::get_settings_url() helper that builds those links, and point the Configure links of the five security modules at their card. The overview cards' own Configure links now land on their card too.
Contributor
|
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
Contributor
|
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! |
kraftbj
added this pull request to stack #53746
October 16, 2026 19:41
Code Coverage SummaryCoverage changed in 6 files. Only the first 5 are listed here.
|
…-section-links-JETPACK-2886 # Conflicts: # projects/packages/protect/routes/dashboard/sections/monitor/monitor-card.tsx
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.
Part of JETPACK-2886
Proposed changes
section, e.g.?tab=settings§ion=firewall. It scrolls the card in just below the sticky tab strip and moves focus to the card's heading. That happens once per arrival, so a later save doesn't pull the page back.Dashboard::get_settings_url( $section )builds those links.Dashboard::get_module_settings_urls()maps each security module (waf,protect,account-protection,sso,monitor) to its card, for the screens in the two PRs stacked on this one (PR 53744 and PR 53745).jetpack_module_configuration_url_*) point at their card. Firewall and Account protection get a Configure link they didn't have.Nothing changes with the
jetpack-protect-dashboardflag off.Related product discussion/links
Does this pull request change what data or activity we track or use?
No.
Testing instructions
On a connected site with the
jetpack-protect-dashboardflag on and theprotect-dashboardmodule active:wp-admin/admin.php?page=jetpack-protect&p=%2F%3Ftab%3Dsettings%26section%3Dmonitordirectly. Same result.admin.php?page=jetpack_modules). Firewall, Brute Force Protection, Account Protection, Downtime Monitor and Secure Sign On all have a Configure link that opens their card.Arriving from a link to the Monitor card: