automattic/jetpack-scan-page

Scan UI for the Jetpack plugin in wp-admin.

Maintainers

Package info

github.com/Automattic/jetpack-scan-page

Language:JavaScript

Type:jetpack-library

pkg:composer/automattic/jetpack-scan-page

Statistics

Installs: 0

Dependents: 1

Suggesters: 0

Stars: 0

dev-trunk / 0.2.x-dev 2026-05-07 02:27 UTC

This package is auto-updated.

Last update: 2026-05-07 02:27:08 UTC


README

This package hosts the wp-admin Scan UI for the Jetpack plugin. It ports Calypso's Scan dashboard (client/dashboard/sites/scan/) onto a native wp-admin page so customers see active threats, scan history, and the fix / ignore / view-details flows without leaving their site.

The package mirrors the architecture of projects/packages/activity-log/ and projects/packages/backup/: a TanStack Query data layer, a hash router, an AdminPage shell, and @wordpress/dataviews lists.

Architecture

  • src/class-jetpack-scan.php — wp-admin submenu under Jetpack (?page=jetpack-scan), asset enqueue, REST registration.
  • src/class-initial-state.phpJPSCAN_INITIAL_STATE hydration global.
  • src/class-rest-controller.phpjetpack/v4/site/scan/* bridges proxied to WPCOM via the site's Jetpack connection.
  • src/js/admin.tsxcreateHashRouter + RouterProvider.
  • src/js/shell.tsxAdminPage chrome + HeaderActionsProvider + Outlet.
  • src/js/providers.tsxQueryClient + ThemeProvider.
  • src/js/gates.tsx — connection / capabilities gates with mock-mode short-circuit.

Mock mode

Append ?jps-mock=1 to the wp-admin URL to short-circuit every gate and render the overview against fixtures. No server requests are made.