Commit Graph

944 Commits

Author SHA1 Message Date
javayhu
ada95848f9 feat: support posthog analytics 2025-08-06 00:40:23 +08:00
javayhu
2b72570784 feat: support openrouter in ai text (not stable for now) 2025-08-03 11:17:39 +08:00
javayhu
3c3dcd5d2a feat: upgrade zod v4 & use error instead of message
https://zod.dev/v4/changelog?id=deprecates-message
2025-08-03 00:35:22 +08:00
javayhu
89fd7193ac feat: upgrade to zod v4 & fix z.url() and z.email()
https://zod.dev/v4/changelog?id=zstring-updates
2025-08-03 00:32:44 +08:00
javayhu
8b2f1848a8 feat: upgrade zod to v4 2025-08-02 01:00:15 +08:00
javayhu
d0ddc2b1b0 feat: upgrade ai sdk to v5
https://v5.ai-sdk.dev/docs/migration-guides/migration-guide-5-0
2025-08-02 00:54:34 +08:00
javayhu
6d4d316564 chore: remove google vertex ai 2025-08-02 00:22:02 +08:00
javayhu
7a61aa3dff chore: update google api key var name 2025-08-01 21:39:20 +08:00
javayhu
46ec614fd3 refactor: move CreditsProvider 2025-07-28 22:53:31 +08:00
javayhu
abb15de848 fix: reset enable update avatar by default 2025-07-26 22:52:34 +08:00
javayhu
ba2a2b5fb0 feat: support disable update avatar in settings 2025-07-26 22:50:53 +08:00
javayhu
2b8e0b9cb5 feat: add checks for Stripe environment variables in getActiveSubscriptionAction 2025-07-25 23:18:42 +08:00
javayhu
0b695cc4b2 feat: add credits configuration checks in hooks and provider 2025-07-24 01:16:55 +08:00
javayhu
3cb0911cf4 fix: ensure current user is only displayed when component is mounted 2025-07-24 01:14:53 +08:00
javayhu
0d04f6914e refactor: optimize credits rendering by memoizing and moving checks before hooks 2025-07-24 00:51:57 +08:00
javayhu
bc4578a3cd chore: remove credits disabled check in credits components 2025-07-24 00:04:42 +08:00
javayhu
971b0d65a0 chore: support google gemini and deepseek in ai text demo 2025-07-23 00:26:58 +08:00
javayhu
4384a1d43f feat: add session id to payment table & fix duplicate one time payment process 2025-07-20 14:38:20 +08:00
javayhu
7b9b7a0dd7 chore: handle internal docs link redirection for internationalization 2025-07-20 13:02:41 +08:00
javayhu
07ad39871f custom: support intl in a/card components of docs page 2025-07-20 12:56:06 +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