Commit Graph

997 Commits

Author SHA1 Message Date
javayhu
e78a992dd6 chore: vercel ai gateway demo 2025-08-22 10:20:55 +08:00
javayhu
7f4a7a61a2 refactor: enhance captcha handling in login and register forms with reset functionality 2025-08-22 01:12:13 +08:00
javayhu
a6a5d92dc1 refactor: implement batch processing for expired credits in credit cron job 2025-08-22 00:39:17 +08:00
javayhu
63a5e4f328 refactor: remove subscription and lifetime credits logic from credit stats and balance card 2025-08-22 00:04:40 +08:00
javayhu
19120ee7f1 refactor: replace password card logic with useHasCredentialProvider hook 2025-08-21 23:54:28 +08:00
javayhu
d644611afd refactor: remove TANSTACK_QUERY_REFACTOR.md 2025-08-21 10:04:27 +08:00
javayhu
8cc16a898c
Merge pull request #81 from MkSaaSHQ/dev/tanstack-query
feat: add tanstack query to optimize performance
2025-08-21 09:55:45 +08:00
javayhu
cf8a7f1242 refactor: optimize credits balance card logic after successful payment 2025-08-21 09:50:40 +08:00
javayhu
1fb89a2a05 refactor: enhance credit balance and stats hooks with improved error handling and logging 2025-08-21 01:48:40 +08:00
javayhu
13c23dab56 refactor: migrate state management from Zustand to TanStack Query for improved data fetching and caching across components 2025-08-21 00:54:40 +08:00
javayhu
ac8d4dee4b refactor: replace usePayment hook and store with useCurrentPlan for improved payment state management 2025-08-21 00:50:12 +08:00
javayhu
ff1e72df13 refactor: replace useCredits hook with custom hooks for credit balance, consumption, and transactions management 2025-08-21 00:27:26 +08:00
javayhu
d153ca655e refactor: implement custom hooks for user management and ban/unban user 2025-08-20 23:52:06 +08:00
javayhu
c00223c79a refactor: replace server actions with custom hooks for newsletter management and improve loading/error handling 2025-08-20 22:39:20 +08:00
javayhu
d59be1044a feat: add QueryProvider to manage React Query client and wrap Providers component 2025-08-20 22:37:52 +08:00
javayhu
5431160d62 chore: add @tanstack/react-query-devtools 2025-08-20 22:37:39 +08:00
javayhu
73baf946bd chore: add @tanstack/react-query and @tanstack/eslint-plugin-query 2025-08-20 22:04:19 +08:00
javayhu
978f13a368 refactor: remove unnecessary Skeleton component in billing and credits balance cards 2025-08-20 00:18:02 +08:00
javayhu
779493965c chore: remove images in about page 2025-08-20 00:13:26 +08:00
javayhu
3ae0411a44 chore: remove bg div in features section 2025-08-19 23:25:28 +08:00
javayhu
ccf064b0d5 chore: optimize pricing card badge 2025-08-19 23:09:41 +08:00
javayhu
7c0e6a5131 chore: enhance error handling and optimize database queries in user credit functions 2025-08-18 00:58:46 +08:00
javayhu
d86f89e3de fix: update URL routing in credits balance card component after successful payment 2025-08-18 00:45:51 +08:00
javayhu
9800b1d842 refactor: update CardFooter in credits balance card component 2025-08-18 00:42:53 +08:00
javayhu
9db52f352b refactor: adjust spacing in credits page layout and comment out button in credits balance card 2025-08-18 00:36:42 +08:00
javayhu
90757475ac refactor: implement credits page with balance and transactions tabs 2025-08-18 00:29:56 +08:00
javayhu
904dceec44 refactor: update billing and credits pages & move credit balance and packages to credits page 2025-08-18 00:19:35 +08:00
javayhu
f1d02720d0 refactor: restructure credit distribution logic and enhance user credit handling 2025-08-17 23:26:10 +08:00
javayhu
bade6b620e refactor: enhance error handling in credit balance retrieval 2025-08-16 23:08:16 +08:00
javayhu
d1928575b3 refactor: replace createSafeActionClient with userActionClient for improved session handling across multiple actions 2025-08-16 23:00:21 +08:00
javayhu
262228d6e9 feat: add session validation for admin access in getUsersAction 2025-08-16 22:03:01 +08:00
javayhu
57b92cfe85 feat: add script of listing users emails 2025-08-16 13:51:12 +08:00
javayhu
9f2fd58eb0 feat: optimize loading state in login and register forms 2025-08-16 10:48:58 +08:00
javayhu
9f71c9942a chore: optimize the colors of componnets in home page 2025-08-16 01:39:11 +08:00
javayhu
e99d6da45c chore: update blog card category bg 2025-08-16 00:39:43 +08:00
javayhu
debbb5abf5 feat: support disable storage module 2025-08-15 22:51:48 +08:00
javayhu
c5dfaafe61 chore: optimize distributing credits when user sign up 2025-08-15 22:40:59 +08:00
javayhu
df3f3aa895 feat: support disable newsletter module 2025-08-15 22:39:29 +08:00
javayhu
a1ae6ca384 feat: support disable docs module 2025-08-15 22:23:28 +08:00
javayhu
866988d73c feat: support disable blog module 2025-08-15 22:20:15 +08:00
javayhu
46fd529390 refactor: add isDemo function 2025-08-15 22:10:01 +08:00
javayhu
fbb9a1b053 chore: update size of youtube video component 2025-08-15 20:25:37 +08:00
javayhu
f6a2df402e fix: fix rate limit for newsletter subscription when sign up 2025-08-15 00:37:30 +08:00
javayhu
335c3b46d6 fix: fix build error in newsletter form validation 2025-08-15 00:06:28 +08:00
javayhu
f2b5bae866 feat: upgrade react-hook-form & zod & @hookform/resolvers
fix zod validation errors in form submission
2025-08-14 23:12:44 +08:00
javayhu
a1b54d7518 chore: update env example 2025-08-11 07:41:29 +08:00
javayhu
064576f48e refactor: streamline user payment retrieval by utilizing a subquery for latest active payments 2025-08-10 15:54:46 +08:00
javayhu
0be53d3251 feat: optimize credit distribution by batching user processing and enhancing database queries 2025-08-10 14:26:53 +08:00
javayhu
564efbd3e2 feat: increase maxDuration for API functions in vercel.json from 60 to 300 seconds 2025-08-10 14:02:49 +08:00
javayhu
2814f87578 feat: update user last refresh time and refine user selection criteria 2025-08-10 13:53:48 +08:00