Add dashboard Activity widget#78552
Conversation
Extracted from update/dashboard-widget-render-suspense for standalone review.
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Widgets are discovered from widgets/ via the build registry, same as hello-world.
|
Size Change: 0 B Total Size: 8.04 MB ℹ️ View Unchanged
|
make date and datetime fields sortable so the stream renders newest-first
apply decodeEntities to post titles and comment author names
replace inline min-height with a stylesheet and set explicit Stack direction
add content-bleed presentation and a local package.json manifest
replace the combined content field; render comment content as plain text
fetch up to perPage of each source and size the page to the merged set
|
Pushed a few refinements on top of this branch: correctness fixes, leaning fully on the DataViews API, and a small config attribute. The activity stream wasn't actually ordering. The view's For rendering, I replaced the hand-rolled There's also a new The rest is hygiene: inline styles moved into a CSS module with an explicit Known trade-off: posts have no description, so the layout reserves an empty description slot beneath the title. Leaving it as-is for now. |
Summary
core/activitydashboard widget (recent posts, scheduled posts, and comments).load.phpso the dashboard import map can lazy-load it.Split from dashboard widgets work for standalone review.
Test plan
gutenberg-dashboard-widgetsexperiment.npm run buildand verify the widget module builds without errors.