Skip to content

Implement calendar billing scheduling and API rate limiting#463

Merged
Smartdevs17 merged 2 commits into
Smartdevs17:mainfrom
Itodo-S:issue-367-369-combined
May 27, 2026
Merged

Implement calendar billing scheduling and API rate limiting#463
Smartdevs17 merged 2 commits into
Smartdevs17:mainfrom
Itodo-S:issue-367-369-combined

Conversation

@Itodo-S
Copy link
Copy Markdown
Contributor

@Itodo-S Itodo-S commented May 27, 2026

Description

This PR combines work for two issues to resolve merge conflicts.

#367 - Subscription Payment Scheduling with Calendar Billing

  • Calendar-based billing schedule visualization
  • One-time scheduled payments beyond recurring
  • Calendar export (iCal, Google Calendar, Outlook)
  • Schedule conflict detection
  • Schedule modification with prorated adjustment
  • Push notification for upcoming payments

#369 - API Rate Limiting and Usage Metering

  • Usage metering per API key with hourly/daily/monthly counters with automatic reset
  • Tier-based rate limits (free: 100/h, pro: 1000/h, enterprise: custom) with burst and concurrent limits
  • Soft limit warning at 80% and 95% usage thresholds
  • Hard limit enforcement with 429 response including retry-after headers
  • Usage analytics dashboard data with p95/p99 latency, error rates, and top endpoints
  • Automatic tier upgrade recommendation on sustained overuse

Files Changed

  • src/screens/CalendarIntegrationScreen.tsx - Calendar UI and integration screen
  • src/services/calendarService.ts - Core calendar service with export logic
  • src/store/calendarStore.ts - Calendar state management
  • src/types/calendar.ts - Calendar types and interfaces
  • src/types/subscription.ts - Added timezone field for calendar
  • backend/services/rateLimitingService.ts - Core rate limiting service
  • backend/services/index.ts - Service exports
  • src/types/rateLimiting.ts - Rate limiting types and constants

Closes #367
Closes #369

Itodo-S added 2 commits May 27, 2026 14:52
…t detection, and timezone support (Smartdevs17#367)

- Add iCal export functionality for subscription renewal events
- Implement schedule conflict detection across billing dates
- Add prorated adjustment calculations for schedule modifications
- Support one-time scheduled payments beyond recurring billing
- Add timezone handling with DST transition detection
- Add timezone selector to CalendarIntegrationScreen
- Add one-time payment management to calendar store
- Add conflict detection UI with per-day breakdown
@Smartdevs17 Smartdevs17 merged commit 4123132 into Smartdevs17:main May 27, 2026
3 of 20 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.

Implement subscription API rate limiting and usage metering Implement subscription payment scheduling with calendar billing

2 participants