javayhu
|
a8c76d3249
|
refactor: integrate useMounted hook to fix hydration error in BillingCard and CreditsBalanceCard
|
2025-07-13 22:59:26 +08:00 |
|
javayhu
|
49b39ad9dd
|
refactor: update credit checkout session callback param name
|
2025-07-13 22:40:20 +08:00 |
|
javayhu
|
1adf3d5dc3
|
refactor: simplify success toast handling and refresh logic in CreditsBalanceCard
|
2025-07-13 22:39:28 +08:00 |
|
javayhu
|
5e877bf45e
|
refactor: update cache duration to 2 minutes
|
2025-07-13 21:43:15 +08:00 |
|
javayhu
|
4277970074
|
refactor: enhance logging in StripeProvider to improve security and clarity by hiding sensitive information
|
2025-07-13 15:44:03 +08:00 |
|
javayhu
|
b27d8cc505
|
refactor: add retry functionality for payment and credits data fetching with improved user experience
|
2025-07-13 15:15:44 +08:00 |
|
javayhu
|
2d2a85cd26
|
refactor: enhance fetch logic in useCredits and usePayment hooks for improved clarity and consistency
|
2025-07-13 14:31:35 +08:00 |
|
javayhu
|
c960738133
|
refactor: streamline session handling in payment and credits providers
|
2025-07-13 14:25:56 +08:00 |
|
javayhu
|
bf8993ca96
|
refactor: update payment renewal logic to enhance credit handling
|
2025-07-13 09:40:46 +08:00 |
|
javayhu
|
a89910489a
|
refactor: rename addSubscriptionRenewalCredits to addSubscriptionCredits for clarity
|
2025-07-13 09:26:16 +08:00 |
|
javayhu
|
368644b434
|
Merge pull request #64 from MkSaaSHQ/dev/credits-v2
[feat] support credits v2
|
2025-07-13 00:57:08 +08:00 |
|
javayhu
|
f5e639bbc7
|
refactor: improve plan filtering in credits logic
|
2025-07-13 00:53:31 +08:00 |
|
javayhu
|
52aeb2d61c
|
refactor: rename functions to remove 'IfNeed' suffix for clarity and consistency
|
2025-07-13 00:37:01 +08:00 |
|
javayhu
|
7af313868c
|
refactor: rename resetState to resetCreditsState and remove unused updateBalanceOptimistically method
|
2025-07-13 00:36:02 +08:00 |
|
javayhu
|
4313e32471
|
refactor: conditionally render credits-related components based on configuration
|
2025-07-13 00:09:05 +08:00 |
|
javayhu
|
31116cbf8b
|
refactor: remove unused Stripe dependency and update credit expiration logic
|
2025-07-12 23:41:50 +08:00 |
|
javayhu
|
8a08dfdf3b
|
refactor: update feature labels and standardize FAQ component naming in zh.json
|
2025-07-12 22:42:03 +08:00 |
|
javayhu
|
141b562307
|
refactor: improve loading state management in billing page
|
2025-07-12 22:36:17 +08:00 |
|
javayhu
|
9fcfb3bdf7
|
refactor: update credit and transaction messages
|
2025-07-12 22:14:04 +08:00 |
|
javayhu
|
8be9f6c775
|
style: update text colors in billing and credits balance cards for improved visibility
|
2025-07-12 21:32:29 +08:00 |
|
javayhu
|
ac02ea780a
|
feat: add credit statistics in credits balance card
|
2025-07-12 21:29:28 +08:00 |
|
javayhu
|
e3aa8eab55
|
feat: add support for free plan users in credit packages and update billing card layout
|
2025-07-12 20:23:23 +08:00 |
|
javayhu
|
72e0a14fc9
|
refactor: improve layout consistency in settings pages by adjusting grid structures
|
2025-07-12 19:46:27 +08:00 |
|
javayhu
|
0f79ed14f0
|
refactor: standardize string quotes and improve formatting in components
|
2025-07-12 19:29:47 +08:00 |
|
javayhu
|
ee341522f5
|
feat: enhance billing and credits management with new components and improved layout
|
2025-07-12 19:29:21 +08:00 |
|
javayhu
|
b4e8585929
|
chore: add credits when subscription renewal and lifetime payment
|
2025-07-12 17:27:35 +08:00 |
|
javayhu
|
b5997ded4c
|
feat: add payment success message and improve billing card layout
|
2025-07-12 17:03:16 +08:00 |
|
javayhu
|
367965e41f
|
feat: ensure handler session id only once in credit package
|
2025-07-12 12:46:57 +08:00 |
|
javayhu
|
c7a1ec69bb
|
feat: add ConsumeCreditCard component for credit consumption
|
2025-07-12 11:08:28 +08:00 |
|
javayhu
|
4160305a67
|
chore: update env.example with Inngest keys
|
2025-07-12 09:59:30 +08:00 |
|
javayhu
|
a5c6c8b493
|
feat: display user email and customer ID in UserDetailViewer
|
2025-07-12 08:10:31 +08:00 |
|
javayhu
|
4abca022aa
|
feat: restrict access to current user's transactions
|
2025-07-12 00:59:06 +08:00 |
|
javayhu
|
765f5e1e39
|
feat: add register gift and monthly refresh credits to new user
|
2025-07-12 00:55:27 +08:00 |
|
javayhu
|
9f3c5e80c2
|
feat: add daily credit distribution function and integrate with existing credits logic
|
2025-07-12 00:37:49 +08:00 |
|
javayhu
|
997c362ac9
|
chore: add inngest package and update client initialization
|
2025-07-11 23:53:46 +08:00 |
|
javayhu
|
bda2571a78
|
chore: invoke function from code in inngest
|
2025-07-11 23:31:54 +08:00 |
|
javayhu
|
788fbe2f18
|
chore: inngest explore
|
2025-07-11 23:31:45 +08:00 |
|
javayhu
|
f45bcad110
|
feat: update UsersTable component to enhance column sizing and loading state handling
|
2025-07-11 22:24:02 +08:00 |
|
javayhu
|
75db5e85a7
|
feat: enhance sorting functionality in tables by implementing dropdown menus
|
2025-07-11 22:10:04 +08:00 |
|
javayhu
|
9711d13804
|
refactor: optimize user fetching logic in UsersPageClient component by using useCallback for fetchUsers function
|
2025-07-11 01:38:54 +08:00 |
|
javayhu
|
9d4fcbe36d
|
refactor: remove useCreditTransactionStore and related logic from credits components, streamline useCredits integration
|
2025-07-11 01:35:31 +08:00 |
|
javayhu
|
e6663b013d
|
refactor: replace getCreditBalanceAction with useCredits hook in credits-related components
|
2025-07-11 01:10:43 +08:00 |
|
javayhu
|
5cb8b0048d
|
feat: add CreditsProvider and credits store for managing user credits
|
2025-07-11 00:19:20 +08:00 |
|
javayhu
|
0b6f81aca6
|
refactor: replace useTransactionStore with useCreditTransactionStore in credit-related components
|
2025-07-10 23:27:43 +08:00 |
|
javayhu
|
6cf9d4db9c
|
refactor: improve credit transaction filtering in processExpiredCredits and consumeCredits functions
|
2025-07-10 22:53:04 +08:00 |
|
javayhu
|
59c7c807db
|
refactor: rename PURCHASE to PURCHASE_PACKAGE in transaction types
|
2025-07-10 22:52:26 +08:00 |
|
javayhu
|
de1ccca27b
|
feat: implement consume credits action and get credit balance action, update credits balance references
|
2025-07-10 22:00:33 +08:00 |
|
javayhu
|
263440742a
|
feat: add CreditDetailViewer component and enhance credit transaction details in English and Chinese
|
2025-07-10 21:43:43 +08:00 |
|
javayhu
|
b75e9eb282
|
refactor: initialize sorting state with default value in UsersPage and CreditTransactionsPage components
|
2025-07-10 19:40:08 +08:00 |
|
javayhu
|
2aeb027e2f
|
feat: add subscription renewal and lifetime monthly messages in English and Chinese
|
2025-07-10 19:34:06 +08:00 |
|