Skip to content

Fix analytics dashboard zeroes by syncing subscription data#300

Merged
bokelley merged 4 commits intomainfrom
bokelley/fix-analytics-zeroes
Dec 12, 2025
Merged

Fix analytics dashboard zeroes by syncing subscription data#300
bokelley merged 4 commits intomainfrom
bokelley/fix-analytics-zeroes

Conversation

@bokelley
Copy link
Copy Markdown
Contributor

Summary

The analytics dashboard was showing zero revenue and MRR because the subscription_amount field on organizations was not being populated during backfill. This fix updates the backfill-revenue endpoint to sync active subscription data from Stripe for each linked customer.

What Changed

  • Enhanced /api/admin/backfill-revenue to retrieve and store subscription details (amount, interval, current_period_end)
  • Updated frontend to display how many subscriptions were synced
  • All tests pass and types are clean

Impact

Admin users can now click "Sync from Stripe" and see populated MRR and customer health metrics in the analytics dashboard.

🤖 Generated with Claude Code

bokelley and others added 4 commits December 12, 2025 11:58
…ckfill

The analytics dashboard was showing zero revenue and MRR because the
subscription_amount field on organizations was not being populated. The backfill
endpoint now syncs active subscription data from Stripe for each linked customer,
populating subscription_amount, interval, and current_period_end needed for MRR
calculation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@bokelley bokelley merged commit 9ccbcc1 into main Dec 12, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant