Skip to content

feat(campaign-stats): add estimated campaign cost - #257

Merged
ajohn25 merged 2 commits into
mainfrom
feat-estimate-calculator
Sep 3, 2026
Merged

feat(campaign-stats): add estimated campaign cost#257
ajohn25 merged 2 commits into
mainfrom
feat-estimate-calculator

Conversation

@boba1007

@boba1007 boba1007 commented Aug 31, 2026

Copy link
Copy Markdown

Description

  • Calculates the estimate from outbound SMS segments and MMS messages.
  • Uses default rates of $0.013 per SMS segment and $0.0325 per MMS message.
  • Allows rates to be overridden with SMS_SEGMENT_COST and MMS_MESSAGE_COST.
  • Opens a breakdown dialog with usage, rates, subtotals, total estimate, and a billing disclaimer.

Motivation and Context

Closes #256.

How Has This Been Tested?

This was tested locally

Screenshots (if appropriate):

Campaign cost stat Campaign cost breakdown dialog

Documentation Changes

Checklist:

  • My change requires a change to the documentation.
  • I have included updates for the documentation accordingly.

@boba1007
boba1007 marked this pull request as ready for review August 31, 2026 10:09
@boba1007
boba1007 requested a review from ajohn25 August 31, 2026 14:44

@ajohn25 ajohn25 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

props for making 7 stats look good 🥳

@ajohn25

ajohn25 commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

@boba1007 gonna merge this to staging for a client preview!

@ajohn25
ajohn25 merged commit e3b082b into main Sep 3, 2026
7 checks passed
@ajohn25
ajohn25 deleted the feat-estimate-calculator branch September 3, 2026 18:50
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.

Add estimated campaign cost to campaign stats

2 participants