Skip to content

Conversation

@MK-codes365
Copy link
Contributor

issue: #197

  1. Yearly Normalization: Added logic to automatically convert all subscription types (Monthly, Weekly, Yearly) into a consolidated annual spend total.
  2. Logic Reuse: Optimized the implementation by reusing the existing monthly normalization helper, ensuring perfectly consistent math across all metrics.
  3. API Extension: Enhanced the GET /api/subscriptions response to include a yearlySpend field within the meta block for a more comprehensive financial overview.
  4. Validation Suite: Verified the new logic through an updated test script, covering various mixed-billing scenarios and edge cases.
Screenshot 2026-01-15 141925 Screenshot 2026-01-15 142135 Screenshot 2026-01-15 142325 Screenshot 2026-01-15 145326

@OpenGitBot
Copy link

Hey @MK-codes365

Thanks for opening this PR 🚀. Mentor will review your pull request soon and till then, keep contributing and stay calm.

Thanks for contributing in OpenCode'25 ✨✨!

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