stack/packages/template/src/components-page
Aman Ganapathy 1de8a17183
Payments bulldozer txn rework (#1315)
### Object of this PR
This PR is NOT a monolithic series of fixes for the payments suite + a
complete rework. Its aims were
a) introducing and robustly testing the bulldozer db system 
b) reworking the payments underlying architecture to use bulldozer for
correctness and scalability
c) Achieving parity with the old payments system excepting a few changes
like ensuring correctness of the ledger algo
There may still be some work to do with handling refunds, decoupling the
concepts of purchases from that of products, and some other things.

### Ledger Algorithm
This has been tuned and fixed. Item removals i.e negative item quantity
changes will apply to the soonest expiring item grant i.e positive item
quantity change. This is what is best for the user. Item grants can also
expire, and when they expire we obviate whatever is left of their
original capacity (meaning after all the removals that were applied to
it). Our ledger algo is applied via Bulldozer, so automatic
re-computation is handled when a new grant/ removal is inserted in the
middle of the existing ones.

### Things we got rid of 
* No more automatic support for default products. You can use $0 plan
provisions to accomplish the same effect but it's manual
* Negative item quantity changes (i.e item removals) no longer can have
expiries



<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Enhanced payment processing pipeline with improved data consistency
and state management.
  * Advanced refund handling with comprehensive transaction tracking.
* Better tracking and management of customer item quantities and owned
products.
* Improved subscription lifecycle management including period-end
handling.

* **Bug Fixes**
  * Fixed payment data integrity verification.
  * Improved handling of edge cases in refund scenarios.

* **Chores**
  * Updated cSpell configuration with additional words.
  * Expanded developer documentation for linting workflows.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Konstantin Wohlwend <n2d4xc@gmail.com>
Co-authored-by: Aadesh Kheria <kheriaaadesh@gmail.com>
Co-authored-by: Mantra <87142457+mantrakp04@users.noreply.github.com>
2026-04-17 22:11:21 +00:00
..
account-settings Payments bulldozer txn rework (#1315) 2026-04-17 22:11:21 +00:00
account-settings.tsx account payments tab fix (#1147) 2026-02-02 15:22:19 -08:00
auth-page.tsx Update sign-in page to redirect to onboarding when needed 2026-04-09 12:19:08 -07:00
cli-auth-confirm.tsx feat: add anonRefreshToken to CLI auth flow and enhance session management (#1303) 2026-04-14 02:09:35 +00:00
email-verification.tsx No more instanceof KnownError 2025-05-15 12:13:19 -07:00
error-page.tsx Better error message when user info fetching fails 2026-04-13 11:10:32 -07:00
forgot-password.tsx Fix sign in button in forgot password page (#538) 2025-03-15 02:35:49 +01:00
magic-link-callback.tsx No more instanceof KnownError 2025-05-15 12:13:19 -07:00
mfa.tsx feat: add OTP/MFA page to auth flow (#571) 2025-06-23 14:55:37 -07:00
oauth-callback.tsx Better error message when user info fetching fails 2026-04-13 11:10:32 -07:00
onboarding.tsx Sign up rules (#1138) 2026-02-03 11:08:24 -08:00
password-reset.tsx Support React 18 (#980) 2025-11-06 11:42:23 -08:00
section.tsx UI refactoring (#616) 2025-04-10 19:49:42 +02:00
sign-in.tsx New docs (#698) 2025-06-20 13:30:01 -07:00
sign-out.tsx Support React 18 (#980) 2025-11-06 11:42:23 -08:00
sign-up.tsx Vanilla JS client library (#408) 2025-02-08 02:31:03 +01:00
stack-handler-client.tsx Fix dashboard loading bug 2026-03-29 12:49:40 -07:00
stack-handler.tsx Improve comment 2025-12-03 09:27:30 -08:00
team-creation.tsx React SDK (#462) 2025-02-27 01:55:45 +01:00
team-invitation.tsx Onboarding app & restricted users (#1069) 2026-01-11 17:22:14 -08:00