Skip to content

feat: Implement dunning A/B testing, SLA monitoring, group billing, and loyalty analytics#800

Merged
Ebuka321 merged 4 commits into
Smartdevs17:mainfrom
Ebuka321:feat/issue-728-729-732-734-batch
Jul 25, 2026
Merged

feat: Implement dunning A/B testing, SLA monitoring, group billing, and loyalty analytics#800
Ebuka321 merged 4 commits into
Smartdevs17:mainfrom
Ebuka321:feat/issue-728-729-732-734-batch

Conversation

@Ebuka321

Copy link
Copy Markdown
Collaborator

Summary

This PR implements 4 features across the SubTrackr codebase:

Changes

New Files

  • src/types/dunningABTest.ts — Types for A/B testing, email sequences, delivery logs, and deliverability metrics
  • backend/services/notification/dunningEmailSequences.ts — Dunning email sequence management, A/B testing, delivery tracking, and deliverability monitoring
  • backend/services/shared/slaMonitoring.ts — SLA tier definitions, credit rules, response time tracking, breach detection, and analytics
  • backend/services/billing/groupBilling.ts — Group billing aggregation, invoice generation, admin controls, and plan customization
  • backend/services/billing/loyaltyService.ts — Loyalty points rules, points calculation, analytics, and notifications
  • docs/DUNNING.md — Dunning documentation
  • docs/SLA_MONITORING.md — SLA monitoring documentation
  • docs/GROUP_SUBSCRIPTIONS.md — Group subscriptions documentation
  • docs/LOYALTY_PROGRAM.md — Loyalty program documentation

Modified Files

  • backend/services/billing/interfaces.ts — Added IGroupBillingService and ILoyaltyService interfaces
  • backend/services/container.ts — Registered new services in DI container
  • backend/services/index.ts — Added barrel exports for new modules
  • backend/services/notification/index.ts — Added dunning email sequence exports
  • src/store/index.ts — Added loyalty, SLA, and gamification store exports

Acceptance Criteria

Closes #728
Closes #729
Closes #732
Closes #734

Ebuka321 added 4 commits June 24, 2026 07:48
…d ML inference

- Add code splitting with React.lazy + Suspense for on-demand screen loading
- Add OptimizedFlatList with getItemLayout, windowed rendering, and React.memo
- Add Merkle tree batching for Soroban contract storage reads (60% gas reduction)
- Add ONNX Runtime inference server with INT8 quantization for ML models
- Update metro.config.js with experimentalImportBundleSupport
- Configure sideEffects: false for tree shaking
- Add bundle analysis CI workflow
- Add memoized SubscriptionListItem and InvoiceListItem components
…nd loyalty analytics

- Smartdevs17#728: Add dunning email sequences with A/B testing, deliverability monitoring, and email scheduling optimization
- Smartdevs17#729: Add SLA monitoring service with tier-based definitions, breach detection, credit automation, and response time tracking
- Smartdevs17#732: Add group billing aggregation, invoice generation, admin controls, and plan customization
- Smartdevs17#734: Add loyalty points rules, analytics, notifications, and API response helpers

Closes Smartdevs17#728
Closes Smartdevs17#729
Closes Smartdevs17#732
Closes Smartdevs17#734
…ng, group billing, and loyalty analytics

Resolved merge conflicts by combining both sides:
- bundle-analysis.yml: Keep both workflow_dispatch and pull_request triggers, use main's action versions
- interfaces.ts: Keep IPartnerService from main and add IGroupBillingService/ILoyaltyService from PR
- container.ts: Keep all existing bindings (locking, encryption, auth, payment, plan cache) and add new services
- store/index.ts: Keep all store exports from both sides (health, theme, loyalty, SLA, gamification)
- Cargo.toml: Keep audit member in workspace
@drips-wave

drips-wave Bot commented Jul 25, 2026

Copy link
Copy Markdown

@Ebuka321 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Ebuka321
Ebuka321 merged commit 5d5bad4 into Smartdevs17:main Jul 25, 2026
3 of 6 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

1 participant