Skip to content

Commit a7cd99e

Browse files
dhasilvamatticbot
authored andcommitted
Search: add the Activity Log page to the standalone plugin (#51222)
* Search: add the Activity Log page to the standalone plugin #48244 replaced My Jetpack's Cloud-redirect "Activity Log" item with a native wp-admin page from the automattic/jetpack-activity-log package, which is only wired into the Jetpack plugin. Standalone Jetpack Search lost its only wp-admin entry point to the Activity Log as a result. Add the package as a dependency and initialize it alongside My Jetpack. Jetpack_Activity_Log::initialize() is idempotent, so it no-ops when the Jetpack plugin already initialized the package on the same request. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * Add changelog entry Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/31715147595 Upstream-Ref: Automattic/jetpack@466dfdb
1 parent 832366c commit a7cd99e

38 files changed

Lines changed: 2511 additions & 0 deletions

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
This is an alpha version! The changes listed here are not final.
1111

1212
### Added
13+
- Add the Activity Log page to wp-admin, so it is available without the Jetpack plugin installed.
1314
- Search Blocks: add a No Results block so the search empty state can hold any blocks — links, images, buttons — instead of plain text. The Results List message settings are deprecated and keep rendering.
1415

1516
## [7.0.1] - 2026-07-22

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"type": "wordpress-plugin",
55
"license": "GPL-2.0-or-later",
66
"require": {
7+
"automattic/jetpack-activity-log": "^0.2.2",
78
"automattic/jetpack-autoloader": "^5.0.23",
89
"automattic/jetpack-composer-plugin": "^4.0.9",
910
"automattic/jetpack-config": "^3.1.3",
Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [0.2.2] - 2026-08-10
9+
### Changed
10+
- Update package dependencies. [#50509]
11+
12+
### Fixed
13+
- Restore PHP 7.2 compatibility for the Activity Log admin page. [#51078]
14+
15+
## [0.2.1] - 2026-08-03
16+
### Fixed
17+
- Load JS translation catalogs and stamp the package text domain on the wp-build dashboard bundle. [#50762]
18+
19+
## [0.2.0] - 2026-07-27
20+
### Changed
21+
- Build the Activity Log dashboard with wp-build (boot script modules) instead of webpack. [#50714]
22+
- Update dependencies. [#50719]
23+
- Update package dependencies. [#50751] [#50753]
24+
25+
### Fixed
26+
- Send analytics events for Activity Log dashboard interactions by loading the Tracks library. [#50714]
27+
28+
## [0.1.12] - 2026-07-20
29+
### Changed
30+
- Update package dependencies. [#50510] [#50529]
31+
32+
### Fixed
33+
- Register wp-build polyfills so the admin bundle loads on WordPress versions that don't provide the wp-theme script handle. [#50557]
34+
35+
## [0.1.11] - 2026-07-13
36+
### Added
37+
- Surface an actionable connection-error notice when the activity log fails to load due to a broken connection. [#50169]
38+
39+
### Changed
40+
- Update package dependencies. [#49272]
41+
- Update WPDS design tokens to the @wordpress/theme 0.16/0.17 names (see https://github.com/WordPress/gutenberg/blob/trunk/packages/theme/CHANGELOG.md#0160-2026-06-24 ). [#49272]
42+
43+
## [0.1.10] - 2026-07-06
44+
### Changed
45+
- Admin Menu: Move "Activity Log" above "Settings". [#50104]
46+
- Update package dependencies. [#50097] [#50183]
47+
48+
## [0.1.9] - 2026-06-29
49+
### Changed
50+
- Internal updates.
51+
52+
## [0.1.8] - 2026-06-25
53+
### Changed
54+
- Update package dependencies. [#49831]
55+
56+
## [0.1.7] - 2026-06-22
57+
### Changed
58+
- Update package dependencies. [#49631] [#49691] [#49757]
59+
60+
## [0.1.6] - 2026-06-15
61+
### Changed
62+
- Update package dependencies. [#49273] [#49492]
63+
64+
## [0.1.5] - 2026-06-08
65+
### Changed
66+
- Update dependencies. [#49354]
67+
68+
## [0.1.4] - 2026-06-01
69+
### Added
70+
- Notices: Add notice when the connection state prevents logs from showing. [#48858]
71+
72+
### Changed
73+
- Update package dependencies. [#48404]
74+
75+
## [0.1.3] - 2026-05-25
76+
### Changed
77+
- Update package dependencies. [#48405]
78+
79+
### Fixed
80+
- Fix upgrade prompt incorrectly shown to sites entitled to the full activity log. [#49067]
81+
82+
## [0.1.2] - 2026-05-19
83+
### Added
84+
- Add a "Performed by" filter for narrowing the log by actor, including MCP agents. Filtering is applied server-side so totals and pagination stay correct. [#48594]
85+
86+
### Changed
87+
- Update dependencies. [#48778]
88+
89+
## [0.1.1] - 2026-05-11
90+
### Changed
91+
- Activity Log: Open the Jetpack Cloud Backup restore flow from the "Manage backup" row action instead of showing a disabled placeholder. [#48531]
92+
- Activity Log: Refresh the free-tier upsell illustration to match Jetpack's branding. [#48531]
93+
- Activity Log: Rename the row action to "Restore backup" so the label matches what clicking it actually does. [#48531]
94+
- Components: Use Link from `@wordpress/ui` instead of ExternalLink. [#48529]
95+
96+
## [0.1.0] - 2026-05-04
97+
### Added
98+
- Initial release of the Activity Log package: Hosts the Activity Log UI and its REST endpoints directly in WP Admin. [#48244]
99+
100+
### Changed
101+
- Activity Log: Opt into `<AdminPage unwrapped>` so DataViews can fill the bounded content slot and scroll its table body internally. Header, date picker, and DataViews toolbar stay pinned on short viewports. [#48244]
102+
103+
### Fixed
104+
- Activity Log: Default the page to the Table layout, load the upsell-callout stylesheet from the main entry, and surface the disabled toolbar + disabled date-range picker on the free tier with upgrade tooltips. [#48418]
105+
106+
## 0.1.0-alpha - unreleased
107+
108+
Initial release.
109+
110+
[0.2.2]: https://github.com/Automattic/jetpack-activity-log/compare/v0.2.1...v0.2.2
111+
[0.2.1]: https://github.com/Automattic/jetpack-activity-log/compare/v0.2.0...v0.2.1
112+
[0.2.0]: https://github.com/Automattic/jetpack-activity-log/compare/v0.1.12...v0.2.0
113+
[0.1.12]: https://github.com/Automattic/jetpack-activity-log/compare/v0.1.11...v0.1.12
114+
[0.1.11]: https://github.com/Automattic/jetpack-activity-log/compare/v0.1.10...v0.1.11
115+
[0.1.10]: https://github.com/Automattic/jetpack-activity-log/compare/v0.1.9...v0.1.10
116+
[0.1.9]: https://github.com/Automattic/jetpack-activity-log/compare/v0.1.8...v0.1.9
117+
[0.1.8]: https://github.com/Automattic/jetpack-activity-log/compare/v0.1.7...v0.1.8
118+
[0.1.7]: https://github.com/Automattic/jetpack-activity-log/compare/v0.1.6...v0.1.7
119+
[0.1.6]: https://github.com/Automattic/jetpack-activity-log/compare/v0.1.5...v0.1.6
120+
[0.1.5]: https://github.com/Automattic/jetpack-activity-log/compare/v0.1.4...v0.1.5
121+
[0.1.4]: https://github.com/Automattic/jetpack-activity-log/compare/v0.1.3...v0.1.4
122+
[0.1.3]: https://github.com/Automattic/jetpack-activity-log/compare/v0.1.2...v0.1.3
123+
[0.1.2]: https://github.com/Automattic/jetpack-activity-log/compare/v0.1.1...v0.1.2
124+
[0.1.1]: https://github.com/Automattic/jetpack-activity-log/compare/v0.1.0...v0.1.1
125+
[0.1.0]: https://github.com/Automattic/jetpack-activity-log/compare/v0.1.0-alpha...v0.1.0
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?php
2+
/**
3+
* Main entry point for auto-generated asset registration.
4+
* Do not edit this file manually.
5+
*
6+
* @package jetpack_activity_log
7+
*/
8+
9+
// Load script module registration.
10+
$modules_file = __DIR__ . '/modules.php';
11+
if ( file_exists( $modules_file ) ) {
12+
require_once $modules_file;
13+
}
14+
15+
// Load script registration.
16+
$scripts_file = __DIR__ . '/scripts.php';
17+
if ( file_exists( $scripts_file ) ) {
18+
require_once $scripts_file;
19+
}
20+
21+
// Load style registration.
22+
$styles_file = __DIR__ . '/styles.php';
23+
if ( file_exists( $styles_file ) ) {
24+
require_once $styles_file;
25+
}
26+
27+
// Load routes registration.
28+
$routes_file = __DIR__ . '/routes.php';
29+
if ( file_exists( $routes_file ) ) {
30+
require_once $routes_file;
31+
}
32+
33+
// Load widgets registration.
34+
$widgets_file = __DIR__ . '/widgets.php';
35+
if ( file_exists( $widgets_file ) ) {
36+
require_once $widgets_file;
37+
}
38+
39+
// Load pages registration.
40+
$pages_file = __DIR__ . '/pages.php';
41+
if ( file_exists( $pages_file ) ) {
42+
require_once $pages_file;
43+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
/**
3+
* Plugin constants - Auto-generated by build process.
4+
* Do not edit this file manually.
5+
*
6+
* Returns an array of constants for use in other templates.
7+
*
8+
* @package jetpack_activity_log
9+
*/
10+
11+
return array(
12+
'version' => ',',
13+
'build_url' => plugin_dir_url( __FILE__ ),
14+
);
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"bundles": [
3+
"build/routes/dashboard/content.js"
4+
]
5+
}
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<?php
2+
/**
3+
* Script module registration - Auto-generated by build process.
4+
* Do not edit this file manually.
5+
*
6+
* @package jetpack_activity_log
7+
*/
8+
9+
/**
10+
* Register all script modules.
11+
*/
12+
function jetpack_activity_log_register_script_modules() {
13+
// Ensure this only runs once. wp_default_scripts can fire multiple times,
14+
// and each wp_deregister_script_module() call also dequeues the module.
15+
// If a module was enqueued between calls, repeated deregister/register
16+
// cycles would lose the enqueue state.
17+
static $already_registered = false;
18+
if ( $already_registered ) {
19+
return;
20+
}
21+
$already_registered = true;
22+
23+
// Load build constants
24+
$constants_file = __DIR__ . '/constants.php';
25+
if ( ! file_exists( $constants_file ) ) {
26+
return;
27+
}
28+
$build_constants = require $constants_file;
29+
$modules_dir = __DIR__ . '/modules';
30+
$modules_file = $modules_dir . '/registry.php';
31+
32+
if ( ! file_exists( $modules_file ) ) {
33+
return;
34+
}
35+
36+
$modules = require $modules_file;
37+
$base_url = $build_constants['build_url'] . 'modules/';
38+
39+
foreach ( $modules as $module ) {
40+
// WASM-only modules (e.g., vips worker) only have .min.js; use it even when SCRIPT_DEBUG is `true`.
41+
$extension = '.min.js';
42+
43+
$asset_path = $modules_dir . '/' . $module['asset'];
44+
$asset = file_exists( $asset_path ) ? require $asset_path : array();
45+
46+
// Deregister first to override any previously registered version
47+
// (e.g., Core's default modules when running as a plugin).
48+
wp_deregister_script_module( $module['id'] );
49+
50+
wp_register_script_module(
51+
$module['id'],
52+
$base_url . $module['path'] . $extension,
53+
$asset['module_dependencies'] ?? array(),
54+
$asset['version'] ?? false,
55+
array(
56+
'fetchpriority' => 'low',
57+
'in_footer' => true,
58+
)
59+
);
60+
}
61+
}
62+
63+
add_action( 'wp_default_scripts', 'jetpack_activity_log_register_script_modules' );
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?php return array('dependencies' => array('react', 'react-dom', 'react-jsx-runtime', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-primitives', 'wp-private-apis', 'wp-theme'), 'module_dependencies' => array(array('id' => '@wordpress/a11y', 'import' => 'static'), array('id' => '@wordpress/lazy-editor', 'import' => 'dynamic'), array('id' => '@wordpress/route', 'import' => 'static')), 'version' => '64bc50a6db7034e6');
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?php return array('dependencies' => array(), 'version' => 'c5259bff260d030cf301');

jetpack_vendor/automattic/jetpack-activity-log/build/modules/init/index.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)