Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
376856b
feat(insights): audience and engagement UI with fixture mode (NPPD-1649)
kmwilkerson Jun 8, 2026
ccdfa3f
fix(insights): visual polish on audience/engagement tabs (NPPD-1649)
kmwilkerson Jun 8, 2026
f2d4fe3
refactor(insights): collapse tables and rename metrics (NPPD-1649)
kmwilkerson Jun 8, 2026
6b92dba
fix(insights): layout, spacing, and chart hover polish (NPPD-1649)
kmwilkerson Jun 8, 2026
bdfdaff
refactor(insights): trim scorecards, two-line new-vs-returning, 10-ro…
kmwilkerson Jun 8, 2026
24578ad
feat(insights): supporter-type pie, top-categories stub, IA consolida…
kmwilkerson Jun 8, 2026
304b76b
refactor(insights): trim reach/time-trends, collapse country column, …
kmwilkerson Jun 9, 2026
c54d7b7
test(insights): update audience orchestrator test for yes_composition…
kmwilkerson Jun 9, 2026
c948411
fix(insights): align table tops, three-slot pie cards, stacked traffi…
kmwilkerson Jun 9, 2026
39a6fca
fix(insights): connect banner links to localized settings URL (NPPD-1…
kmwilkerson Jun 9, 2026
984632d
feat(insights): directional arrow glyphs on scorecard deltas (NPPD-1649)
kmwilkerson Jun 9, 2026
f0dd458
fix(insights): wrap Top Campaigns table in matching card; replace geo…
kmwilkerson Jun 9, 2026
c1d5e3a
feat(insights): newsletter signups scorecard; reader segments as take…
kmwilkerson Jun 9, 2026
85f9c9e
fix(insights): composition caption copy — 'Who's reading your stories…
kmwilkerson Jun 9, 2026
5f0ebf8
refactor(insights): remove DateScope; pie + layout polish (NPPD-1649)
kmwilkerson Jun 9, 2026
3b93094
fix(insights): render degraded tables; EngagementTab tests + docs; cl…
kmwilkerson Jun 9, 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
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ public function permissions_check() {
* @return \WP_REST_Response|WP_Error
*/
public function get_audience_data( WP_REST_Request $request ) {
// Dev smoke-test path: serve canned fixture data so the UI renders
// without a GA4 connection. Never enable in production.
if ( defined( 'NEWSPACK_INSIGHTS_FIXTURE_MODE' ) && NEWSPACK_INSIGHTS_FIXTURE_MODE ) {
return rest_ensure_response( Audience_Metric::get_fixture() );
}

$tz = $this->site_timezone();

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ public function permissions_check() {
* @return \WP_REST_Response|WP_Error
*/
public function get_engagement_data( WP_REST_Request $request ) {
// Dev smoke-test path: serve canned fixture data so the UI renders
// without a GA4 connection. Never enable in production.
if ( defined( 'NEWSPACK_INSIGHTS_FIXTURE_MODE' ) && NEWSPACK_INSIGHTS_FIXTURE_MODE ) {
return rest_ensure_response( Engagement_Metric::get_fixture() );
}

$tz = $this->site_timezone();

try {
Expand Down
Loading
Loading