Commit Graph

925 Commits

Author SHA1 Message Date
javayhu
53a9fdd270 chore: move migrations and ignore in git 2025-07-19 17:46:12 +08:00
javayhu
3d4245e8bc feat: add indexes to database tables 2025-07-19 16:40:36 +08:00
javayhu
5912849fa7
Merge pull request #71 from MkSaaSHQ/dev/ai-text
feat: add ai text demo
2025-07-19 14:51:03 +08:00
javayhu
3075681dc8 feat: add ai text demo & scraping and analyzing the web content from URL 2025-07-19 14:41:12 +08:00
javayhu
757f1dc4ae feat: support crisp chat 2025-07-18 23:33:07 +08:00
javayhu
1be38e3e8d feat: support disable credential login 2025-07-18 22:04:39 +08:00
javayhu
716eac324f chore: add captcha validation to login form 2025-07-18 21:15:55 +08:00
javayhu
bd029eac2a chore: disable turnstile and credits by default, enable on demo website 2025-07-18 20:41:43 +08:00
javayhu
2c4db1e744 chore: update Captcha component 2025-07-18 20:37:59 +08:00
javayhu
cb7743fe07 refactor: remove scrollbar hiding styles and adjust overflow for scroll-locked state 2025-07-14 22:37:25 +08:00
javayhu
3a81a96316 refactor: add opennext and wrangler folder to the ignore patterns in biome.json 2025-07-14 22:27:22 +08:00
javayhu
d7077cb3d4 refactor: enable useEditorconfig option to biome.json
https://biomejs.dev/reference/configuration/#formatteruseeditorconfig
2025-07-14 22:19:31 +08:00
javayhu
0d5185a789 refactor: remove unused env NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY 2025-07-13 23:03:58 +08:00
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