Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
a5d6772
Add stats block with server-side sharepic image generation
pfefferle Apr 1, 2026
f48ed8c
Add demo stats seeder for testing the stats block
pfefferle Apr 1, 2026
ec9a567
Improve stats block and sharepic image
pfefferle Apr 1, 2026
0ac09d9
Merge branch 'trunk' into add/sharepic
pfefferle Apr 1, 2026
00054d9
Add tests and fix PHPCS issues for stats block
pfefferle Apr 1, 2026
14a9fb5
Remove demo stats seeder, use CLI commands instead
pfefferle Apr 1, 2026
db0c41b
Extract image generation into Cache\Stats_Image class
pfefferle Apr 1, 2026
bdf1eee
Handle missing GD library gracefully
pfefferle Apr 1, 2026
13beb32
Skip image attachment when stats are unavailable for the selected user
pfefferle Apr 1, 2026
68f359a
Fix stats image tests: skip without GD, seed stats data
pfefferle Apr 1, 2026
12033fb
Add JS tests for stats block editor helpers
pfefferle Apr 1, 2026
79b26d1
Fix PHP 8.5 imagedestroy deprecation and test assertions
pfefferle Apr 1, 2026
543e419
Add changelog
matticbot Apr 1, 2026
423564b
Fix CSS injection and null user_id in stats block
pfefferle Apr 1, 2026
cddda79
Address code review suggestions
pfefferle Apr 1, 2026
4c3705b
Refactor Stats_Image to extend File cache base class
pfefferle Apr 1, 2026
f163d90
Replace hardcoded theme font paths with dynamic glob search
pfefferle Apr 1, 2026
0b934e0
Address Copilot review feedback
pfefferle Apr 1, 2026
6b1cce3
Address security audit findings
pfefferle Apr 1, 2026
7661edf
Replace inline namespace references with use imports
pfefferle Apr 1, 2026
45cfd7f
Use WP_Style_Engine for border style sanitization
pfefferle Apr 1, 2026
8f8396c
Add shadow support to stats block
pfefferle Apr 1, 2026
d3e53fc
Fix double shadow in editor by resetting boxShadow on wrapper
pfefferle Apr 1, 2026
b109044
Merge branch 'trunk' into add/sharepic
pfefferle Apr 2, 2026
033d910
Address review feedback from jeherve
pfefferle Apr 2, 2026
1fd63e4
Fix /undefined/actors/ 404s when namespace is not yet loaded
pfefferle Apr 2, 2026
d30c3a2
Move stats backfill trigger to unreleased migration block
pfefferle Apr 2, 2026
53df480
Collect all months when CLI --year is provided without --month
pfefferle Apr 2, 2026
2827910
Keep stats image as PNG for sharing compatibility
pfefferle Apr 2, 2026
de7f26a
Pass block color overrides to stats image generation
pfefferle Apr 2, 2026
8100c65
Revert "Pass block color overrides to stats image generation"
pfefferle Apr 2, 2026
f9b4ae2
Remove color supports and add cache cleanup for stats images
pfefferle Apr 2, 2026
5ebbc0a
Merge branch 'trunk' into add/sharepic
pfefferle Apr 3, 2026
cd6274d
Fix review issues in stats block
pfefferle Apr 9, 2026
a7261df
Rebuild JS assets
pfefferle Apr 9, 2026
d80136a
Merge branch 'trunk' into add/sharepic
pfefferle Apr 10, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/changelog/3126-from-description
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: added

Add a stats block that displays annual Fediverse statistics as a card on the site and as a shareable image on the Fediverse, with automatic color and font adoption from the site's theme.
1 change: 1 addition & 0 deletions activitypub.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ function rest_init() {
( new Rest\Admin\Actions_Controller() )->register_routes();
( new Rest\Admin\Statistics_Controller() )->register_routes();
( new Rest\Application_Controller() )->register_routes();
( new Rest\Stats_Image_Controller() )->register_routes();
( new Rest\Collections_Controller() )->register_routes();
( new Rest\Comments_Controller() )->register_routes();
( new Rest\Followers_Controller() )->register_routes();
Expand Down
5 changes: 5 additions & 0 deletions build/app/feed-content.399329db.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading