Add aggregate stats dashboard and per-run stats to campaign/posts views #16

Closed
opened 2026-05-01 10:42:29 -07:00 by pyr0ball · 0 comments
Owner

Feature request

Two related improvements to surface posting performance in the UI:

1. Aggregate stats (dashboard or header bar)

A top-level overview across all campaigns and opportunities:

  • Total posts: success / failed / skipped
  • Opportunities: pending / approved / manual_posted / dismissed
  • Posts this week vs last week
  • Platform breakdown (reddit / lemmy)
  • Community breakdown (top 5 by post volume)

Could live as a stats bar at the top of the Campaigns or Posts view, or as its own /stats page.

2. Per-run stats on CampaignDetail / Posts view

When viewing a campaign or its post history, show stats scoped to each scheduler run:

  • Run timestamp
  • Subs targeted vs succeeded vs failed
  • Any error messages inline
  • Links to posted URLs where available

Currently the Posts view shows raw rows with no grouping by run or summary counts.

Acceptance criteria

  • Aggregate stats visible without drilling into a specific campaign
  • Posts view or CampaignDetail groups posts by run (triggered_at or posted_at window)
  • Per-run success/fail count shown
  • Mobile-friendly layout for both
## Feature request Two related improvements to surface posting performance in the UI: ### 1. Aggregate stats (dashboard or header bar) A top-level overview across all campaigns and opportunities: - Total posts: success / failed / skipped - Opportunities: pending / approved / manual_posted / dismissed - Posts this week vs last week - Platform breakdown (reddit / lemmy) - Community breakdown (top 5 by post volume) Could live as a stats bar at the top of the Campaigns or Posts view, or as its own `/stats` page. ### 2. Per-run stats on CampaignDetail / Posts view When viewing a campaign or its post history, show stats scoped to each scheduler run: - Run timestamp - Subs targeted vs succeeded vs failed - Any error messages inline - Links to posted URLs where available Currently the Posts view shows raw rows with no grouping by run or summary counts. ## Acceptance criteria - [ ] Aggregate stats visible without drilling into a specific campaign - [ ] Posts view or CampaignDetail groups posts by run (triggered_at or posted_at window) - [ ] Per-run success/fail count shown - [ ] Mobile-friendly layout for both
Sign in to join this conversation.
No labels
bug
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Circuit-Forge/magpie#16
No description provided.