Skip to content

Conversation

@ecapuano
Copy link
Collaborator

This pull request introduces version 1.6.0 of the project, focusing on comprehensive billing features for backtest/replay workflows, including cost estimation, improved warnings, and enhanced billing details. The update also includes new styles for cost estimation displays and updates the changelog accordingly.

Billing and Cost Estimation Features:

  • Added cost estimation functionality, including a new "Estimate Cost" button that performs dry runs to calculate estimated costs before running backtests, with warnings about possible underestimation.
  • Billing warnings are now persistent and shown every time a backtest exceeds the 30-day free period.
  • Enhanced billing details are displayed, including a breakdown of the billed vs free period and the specific timeframe beyond the free period.
  • Real-time display of billed and free events, with actual cost calculations, is now shown during backtesting.
  • Cost estimates are persistently displayed beneath the Run Backtest button and are automatically invalidated if parameters change.
  • Cost estimates are tracked alongside actual costs in results and markdown exports for comparison.
  • A new "Estimate Cost First" option is available in the billing warning modal to allow users to estimate costs before proceeding.

User Interface and Styling:

  • Added new styles for the cost estimation display, including layout, colors, and a fade-in animation for improved user experience.

Other Updates:

  • Changed the "Last 30 Days" preset to "Last 29 Days" to provide a safety buffer against accidental billing.
  • Enhanced markdown reports to prominently display cost estimates and actual costs at the top of the summary.
  • Minor CSS fix for the .install-button color property.
  • Bumped the package version to 1.6.0 in package.json.
  • Updated the changelog to reflect all new features and changes for version 1.6.0.

- Display n_billed and n_free event counts in backtest results UI
- Add billing stats to overall summary and per-organization views
- Include billing information in markdown export summary
- Update interfaces to support billing fields from API responses
- Show billing details in test result statistics when available
- Add cost estimation with dry run capability (warns about 2-5x underestimation)
- Implement persistent billing warnings that show every time for >30 day backtests
- Display specific timeframe info and days beyond free period in warnings
- Add 'Estimate Cost First' button option in billing warning modal
- Show estimated cost range beneath Run Backtest button when valid
- Track whether estimates were used for each backtest
- Include estimate vs actual cost comparison in results and exports
- Display billing stats (n_billed, n_free) with cost calculations
- Change 'Last 30 Days' preset to 'Last 29 Days' for safety buffer
- Add recommendation to run cost estimate before proceeding with paid backtests
- Update markdown reports to show Cost Estimate and Actual Cost prominently
Bumps version to 1.6.0 and updates the changelog with comprehensive billing features for backtest/replay, including cost estimation, persistent warnings, detailed billing breakdowns, and improved cost tracking and reporting.
@ecapuano ecapuano merged commit d284067 into main Aug 14, 2025
1 check passed
@ecapuano ecapuano deleted the release/v1.6.0 branch August 14, 2025 04:56
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.

2 participants