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
javayhu
0500617803
style: adjust padding in dashboard header actions
2025-07-10 19:21:09 +08:00
javayhu
3872a9d422
refactor: remove session_id from URL parameters in CreditPackages component
2025-07-10 19:20:11 +08:00
javayhu
2e0a195a2a
refactor: update URL handling in CreditPackages component
2025-07-10 16:48:29 +08:00
javayhu
95bd256bc7
chore: remove onPaymentIntentSucceeded in stripe
2025-07-10 16:31:57 +08:00
javayhu
6c1a4685cd
refactor: add disabled to credits config
2025-07-10 16:30:56 +08:00
javayhu
bbae584c88
fix: update DashboardHeaderand update credits label in CreditsBalanceMenu to use translations
2025-07-10 15:56:15 +08:00
javayhu
f649db26ae
feat: add CreditsBalanceButton and CreditsBalanceMenu components
2025-07-10 15:41:11 +08:00
javayhu
1c7848f6b0
refactor: change getAllCreditPackagesInServer to getAllCreditPackages
2025-07-10 15:06:58 +08:00
javayhu
5c213d014a
refactor: 'popular' instead of 'recommended' for price plan
2025-07-10 14:54:07 +08:00
javayhu
861502c28f
feat: implement credit distribution for all users based on subscription status
2025-07-10 14:52:23 +08:00
javayhu
737bd7f80f
feat: enhance credits management with subscription renewal and lifetime monthly credits
2025-07-10 14:42:36 +08:00
javayhu
74d7cf44a1
Merge branch 'dev/credits-v2' of https://github.com/MkSaaSHQ/mksaas-template into dev/credits-v2
2025-07-10 10:54:10 +08:00
javayhu
e011d09803
feat: enhance CreditPackages component with loading indicator
2025-07-10 10:54:07 +08:00
javayhu
50c500deb5
refactor: streamline credit handling in StripeProvider
...
- Updated StripeProvider to retrieve priceId from session metadata instead of line items.
- Introduced credit package retrieval to include expiration information when adding credits.
- Enhanced logging to reflect credit expiration details during credit addition.
- Removed obsolete code related to priceId retrieval for improved clarity and maintainability.
2025-07-10 10:15:42 +08:00
javayhu
cd710bb9ed
feat: support register gift credits
2025-07-10 09:58:48 +08:00
javayhu
04f7f891a4
feat: update credit expiration handling and configuration
...
- Added expireDays property to credit packages and related configurations in website.tsx for better management of credit expiration.
- Modified addCredits function to handle expireDays more flexibly, allowing for undefined values.
- Updated functions for adding register gift and monthly free credits to utilize the new expireDays configuration.
- Enhanced type definitions for credits to include optional expireDays for improved clarity.
- Removed obsolete creditExpireDays from the credits configuration to streamline the codebase.
2025-07-10 01:12:11 +08:00
javayhu
c67b804f4f
Merge branch 'cloudflare' of https://github.com/MkSaaSHQ/mksaas-template into cloudflare
2025-07-10 00:48:21 +08:00