Commit Graph

372 Commits

Author SHA1 Message Date
2db77b80a5 Merge branch 'main' into front-end 2024-11-04 11:41:40 +07:00
Pattadon
7535afef67 Refactor ProjectSection and Invest components for improved type safety and formatting 2024-11-04 11:09:33 +07:00
3beb6e2c72 fix: fix build error on calendar ui 2024-11-04 09:50:48 +07:00
b316f5470c chore: add shadcn expansion datepicker ui 2024-11-04 09:22:40 +07:00
949dcd448e fix: increase pagination size for deals page 2024-11-04 00:20:32 +07:00
520bee2e18 feat: add dataroom overview page 2024-11-04 00:19:52 +07:00
02a3d4092b feat: only approve user can access dataroom 2024-11-04 00:19:33 +07:00
3bc6159618 feat: add dataroom manage page for business account 2024-11-03 17:58:13 +07:00
d0d9c7a0f8 feat: add dataroom files page 2024-11-03 14:38:40 +07:00
5636abc609 refactor: redirect when no project data 2024-11-03 00:41:11 +07:00
5f1c99cb00 feat: render business badge + can only edit own profile 2024-11-03 00:40:31 +07:00
e183d3ddeb feat: add loading, error, not found page 2024-11-03 00:39:13 +07:00
e29eeab868 Merge branch 'back-end' of https://github.com/Sosokker/B2D-Ventures into back-end 2024-11-02 19:00:34 +07:00
Naytitorn Chaovirachot
a5dea77001 fix no default carousel image 2024-11-01 23:19:53 +07:00
Naytitorn Chaovirachot
b25895e5ad connect image carousel to database 2024-11-01 23:12:15 +07:00
Naytitorn Chaovirachot
71d1d3c1fc connect deal data of detail page to database 2024-11-01 22:28:01 +07:00
Naytitorn Chaovirachot
c15e451912 refactor totalDealAmount function and change undefined deal value to empty array 2024-11-01 18:07:55 +07:00
Pattadon
475c6eb9c2 Refactor RecentFunds component to display only the first two characters of the deal name in the AvatarFallback 2024-11-01 15:25:44 +07:00
Pattadon
2188d2b33f Refactor RecentFunds component to display only the first two characters of the deal name in the AvatarFallback 2024-11-01 15:25:23 +07:00
Pattadon
bca431ee26 Refactor unauthorized alert component and add user authorization check to portfolio page 2024-11-01 15:23:50 +07:00
Pattadon
7356831e2e Refactor portfolio hook and page components
- Add functions to calculate total investment and get latest investment
- Update graph data calculations for overall and four-year graphs
- Update recent funds component to display latest investment deals
- Minor code formatting and error handling improvements
2024-11-01 14:32:33 +07:00
Naytitorn Chaovirachot
e0ddbbc50d connect some detail number component to database 2024-11-01 01:36:32 +07:00
Pattadon
22fe709ce8 Refactor profileBar component to fix notification count display 2024-10-31 15:19:06 +07:00
Pattadon
7d60a209fa Refactor profileBar component to wrap Github buttons in a div for improved styling 2024-10-31 14:59:54 +07:00
Pattadon
1a719a3aa7 Refactor profileBar component to add link to user's portfolio page 2024-10-31 14:43:27 +07:00
Pattadon
426bb46ad8 Refactor investment check to fix formatting issue in ProjectDealPage component 2024-10-31 14:26:26 +07:00
Pattadon
753603420c Refactor Portfolio component layout for improved responsiveness; adjust card widths and container padding 2024-10-31 14:22:34 +07:00
Pattadon
8792a94b6b Refactor Portfolio component layout for improved responsiveness; adjust card widths and container padding 2024-10-31 13:56:45 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
8c5c4076fc Refactor Portfolio component layout for improved responsiveness; adjust card widths and container padding 2024-10-30 22:29:25 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
9182b168e1 Enhance Portfolio component with new card layout and tooltips for business investment insights; update QuestionMarkIcon for better accessibility 2024-10-30 22:14:15 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
e8de157612 Refactor investment check to use dynamic user ID; enhance Portfolio component with new card layout and add QuestionMarkIcon component 2024-10-30 22:03:03 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
8cf2a031ca Add investment check and value counting functions; update Portfolio component to utilize new features 2024-10-30 21:42:41 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
ad1114088c Refactor business ID retrieval functions to improve error handling and rename for clarity 2024-10-30 20:56:08 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
bbee901bce Add business ID and type retrieval functions; integrate into Portfolio component 2024-10-30 20:44:25 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
6298abe0c9 Refactor ApplyBusiness component and fetch user data on page load 2024-10-30 15:07:42 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
ca895bd605 Refactor ApplyBusiness component and BusinessForm component 2024-10-30 15:07:13 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
2fba56288d Refactor portfolio/[uid]/hook.ts and portfolio/[uid]/page.tsx 2024-10-30 15:04:01 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
16a171db3c Refactor Portfolio component and add data aggregation hooks 2024-10-30 14:52:20 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
62e20c282a Refactor projectTag function and add PieChart component 2024-10-30 14:30:00 +07:00
Pattadon
209d6f1f73 Refactor generalApi.ts and portfolio/[uid]/page.tsx 2024-10-30 12:07:59 +07:00
Pattadon
f4a1c287c1 Refactor dependencies and add PieChart component 2024-10-30 11:41:35 +07:00
Pattadon
8b9663f0f2 Refactor dependencies and add PieChart component 2024-10-30 10:04:38 +07:00
573b2b92de feat: add indicator for business account 2024-10-30 01:45:55 +07:00
7cacc78412 refactor: remove unuse nav link 2024-10-30 01:45:35 +07:00
71d49ffd70 feat: add admin page to list businesses 2024-10-30 01:22:36 +07:00
0bc45f18d0 fix: use objects as params for multiple props 2024-10-30 01:22:22 +07:00
93fb407bd9 refactor: move directory 2024-10-30 01:21:47 +07:00
dcc15a0e70 feat: render admin button for admin role 2024-10-30 01:21:07 +07:00
3027a9978b fix: not insert investment data and missing session after success invest 2024-10-30 00:48:17 +07:00
1c58bbc8cf feat: add admin page for project application 2024-10-29 19:39:40 +07:00
76a288f509 fix: allow approve/reject only on pending application 2024-10-29 19:39:09 +07:00
Pattadon
44a389c488 Refactor date filtering and data aggregation in Portfolio component 2024-10-29 13:03:45 +07:00
Pattadon
42b47aa4e8 Refactor file upload path and add loading animation to ApplyProject component 2024-10-29 11:24:40 +07:00
10b0d23ce2 fix: wrap suspense around findContent 2024-10-28 21:55:59 +07:00
4730c086b2 refactor: add null handling in projectCard 2024-10-28 21:48:30 +07:00
d85803107d refactor: import module and log error of serverComponentClient 2024-10-28 21:28:41 +07:00
247d27721f feat: add error handling 2024-10-28 21:23:42 +07:00
d1872386ca refactor: apply prettier and remove unused var 2024-10-28 21:23:30 +07:00
2221b5be69 refactor: remove unuse variable and import missing module 2024-10-28 21:16:33 +07:00
bf46b2f765 refactor: remove option ( unused ) + add eslintignore 2024-10-28 21:13:46 +07:00
376071a9c3 refactor: remove unused variable and import 2024-10-28 21:11:21 +07:00
441a344d03 refactor: remove unused variable and add key for iterator 2024-10-28 21:08:56 +07:00
ce68ab6b20 refactor: remove unused import 2024-10-28 21:06:12 +07:00
5ec07e1454 refactor: add condition rendering for project data 2024-10-28 21:06:02 +07:00
3c528771ab chore: eslint ignore followShareButton 2024-10-28 20:58:27 +07:00
6afa6443c6 feat: add pagination 2024-10-28 20:55:24 +07:00
60118ee310 fix: data fetch error in deals and find page 2024-10-28 00:48:59 +07:00
a260cdd313 feat: separate business application by status in admin page 2024-10-27 23:07:30 +07:00
40f2557de4 Merge branch 'main' into back-end 2024-10-27 22:59:33 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
fd911a722d completed the business's apply page 2024-10-27 21:31:09 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
82bfbe95a9 Refactor file upload path and add loading animation to ApplyProject component 2024-10-27 21:29:16 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
a0030e39c0 completed project's apply 2024-10-27 21:20:40 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
fa40037682 Refactor ApplyProject component to update file upload path and add Lottie animation for loading 2024-10-26 22:41:57 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
d32b8c5845 Refactor uploadFile function to improve folder management and error handling 2024-10-26 22:30:20 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
87f8e13f37 Refactor uploadFile function to remove userID parameter and update folder path 2024-10-26 21:24:50 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
0cfb93efac Refactor ApplyProject component to update file upload path and add Lottie animation for loading 2024-10-26 20:47:40 +07:00
Pattadon
f9aa1c586f Refactor ApplyProject component to update file upload path and add Lottie animation for loading 2024-10-24 15:50:40 +07:00
Pattadon
4b5be49874 Refactor package dependencies and update ApplyProject component 2024-10-24 15:14:09 +07:00
446f8cce48 feat: add admin page with reject/approve functionalities 2024-10-23 16:18:12 +07:00
3fecafcf77 fix: logo not load 2024-10-23 00:29:57 +07:00
a763b9491a chore: add shadcn ui - command 2024-10-23 00:29:37 +07:00
c70e327438 feat: add edit profile functionality 2024-10-23 00:29:20 +07:00
Pattadon
29be79f6e8 Refactor ApplyBusiness component to update file upload path 2024-10-22 14:47:46 +07:00
Pattadon
6da89cc38b Refactor AlertDialog component to remove unused code and optimize imports 2024-10-22 13:02:12 +07:00
Pattadon
94368983d6 Refactor ApplyBusiness component to set success state and update loader component 2024-10-22 13:00:57 +07:00
Pattadon
7764e4ea0b Refactor ApplyBusiness component to add Lottie animation for loading 2024-10-22 12:55:17 +07:00
Pattadon
4935225350 Refactor ApplyBusiness component to fetch user data on page load 2024-10-22 11:15:27 +07:00
Pattadon
a225189a24 Refactor ApplyBusiness component to upload files to Supabase storage and update file upload path 2024-10-22 11:13:14 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
24f452ae70 Refactor ApplyBusiness component to update bucket name for file uploads 2024-10-21 21:48:02 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
fd3930f306 Refactor ApplyBusiness component to update bucket name for file uploads 2024-10-21 21:28:59 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
f70c3a5573 Refactor ApplyBusiness component to upload files to Supabase storage and clear existing files 2024-10-21 20:22:18 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
729da7112f Refactor ApplyBusiness component to upload files to Supabase storage and add user application check 2024-10-21 20:15:01 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
121418ed25 Refactor ApplyBusiness component to upload files to Supabase storage 2024-10-21 19:52:39 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
31f80b0af6 Refactor ApplyBusiness component to upload files to Supabase storage 2024-10-21 19:38:11 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
dde6d0ab69 Merge branch 'front-end' of https://github.com/Sosokker/B2D-Ventures into front-end 2024-10-21 19:07:33 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
886fc659d5 Refactor ApplyBusiness component to upload files to Supabase storage 2024-10-21 19:07:24 +07:00
Naytitorn Chaovirachot
070077f7f3 refactor some json query + restructure recent funds json + make amount show in recent funds tab 2024-10-21 17:36:31 +07:00
Naytitorn Chaovirachot
f65fc2a696 connect recent funded people to database 2024-10-21 14:52:54 +07:00
Pattadon
8f5d7859c8 Refactor ProjectForm component to fix tag overflow handling 2024-10-21 11:35:45 +07:00
Pattadon
df9e810d94 Refactor ProjectForm component to add tag overflow handling 2024-10-21 11:23:45 +07:00
Pattadon
cbe387172a Refactor ApplyBusiness page and ProjectForm component
- Refactor ApplyBusiness page to update the layout and add introductory text.
- Refactor ProjectForm component to improve tag functionality and display selected tags.
2024-10-21 11:17:27 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
2e1a58bbc8 Refactor ProjectForm component to add tag functionality 2024-10-20 18:25:28 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
40c45ed8d4 Refactor package.json to add @radix-ui/react-popover dependency 2024-10-20 18:05:32 +07:00
Naytitorn Chaovirachot
0150b4840b Merge branch 'back-end' of https://github.com/Sosokker/B2D-Ventures into back-end 2024-10-20 13:03:51 +07:00
Naytitorn Chaovirachot
f6461cb62c link graph overview to database: 2024-10-20 13:03:41 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
f2be32fbd7 Merge branch 'front-end' into back-end 2024-10-20 09:39:07 +07:00
Naytitorn Chaovirachot
616a357e21 extract dashboard page.tsx hook to hook.ts 2024-10-19 23:54:02 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
bc6439822c Refactor BusinessForm component to fetch industry data from Supabase and countries data from a REST API 2024-10-19 17:48:10 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
0e25a210fe Refactor projectFormSchema in application.schema.ts 2024-10-19 17:32:56 +07:00
Naytitorn Chaovirachot
a41e028bdc connect total funds raised to database 2024-10-19 17:21:05 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
d6c967f0b4 Refactor ProjectForm 2024-10-19 16:57:06 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
581c8c9023 Refactor package.json and package-lock.json to add sweetalert2 dependency 2024-10-19 16:36:52 +07:00
Naytitorn Chaovirachot
7f885008f8 Merge branch 'back-end' of https://github.com/Sosokker/B2D-Ventures into back-end 2024-10-19 00:19:27 +07:00
Naytitorn Chaovirachot
24155a1c59 setup query for deals 2024-10-19 00:19:19 +07:00
Pattadon
e44774f1cd Refactor DualOptionSelector layout in BusinessForm component 2024-10-17 15:21:14 +07:00
Pattadon
7c2b42e116 Refactor form submission logic in Apply page and BusinessForm component 2024-10-17 15:11:30 +07:00
Pattadon
47baae84fb Refactor package.json and package-lock.json to add @types/react-select-country-list dependency 2024-10-17 13:07:12 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
327bf34267 Refactor dualSelector component to add top margin in DualOptionSelector 2024-10-17 10:10:09 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
dca9af5e3b Refactor form submission logic in BusinessForm component 2024-10-17 09:39:07 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
3a9f3faa48 Refactor form submission logic in Apply page and BusinessForm component 2024-10-16 22:52:06 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
25a9f37b19 Refactor dualSelector and multipleSelector components 2024-10-16 22:18:22 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
01afc6c6fb Refactor application schema to add validation for project and business forms 2024-10-16 20:11:49 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
428f42383d Merge branch 'main' into back-end 2024-10-16 20:02:14 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
afc83cce5d chore: Add @types/next package to package.json 2024-10-16 19:59:29 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
ca894212ef Merge branch 'main' into front-end 2024-10-14 22:48:31 +07:00
0783ff5d64 fix: error on multiple files upload 2024-10-14 22:31:32 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
f5b4d99f4b Refactor Apply page component to adjust left margin for company information section and simplify project photo handling 2024-10-14 21:24:15 +07:00
912c05d1da fix: foreign_key error on project status inner join 2024-10-14 18:37:28 +07:00
ba6a785c71 feat: retrive profile base on user_id 2024-10-14 18:36:57 +07:00
398ef2fe25 refactor: chanage raise_to_date to money_raised_to_date 2024-10-14 18:33:59 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
e58e954991 Refactor Apply page component to adjust left margin for company information section and add support for project pitch file 2024-10-14 17:53:35 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
ec17305e16 Refactor Apply page component to adjust left margin for company information section and simplify pitchDeckSchema validation 2024-10-14 17:46:40 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
bb27bc108e Merge branch 'front-end' 2024-10-14 16:19:53 +07:00
Naytitorn Chaovirachot
a079900756 connect apply application to database 2024-10-14 15:51:00 +07:00
Naytitorn Chaovirachot
0d9a0821c0 Merge branch 'back-end' of https://github.com/Sosokker/B2D-Ventures into back-end 2024-10-14 01:05:16 +07:00
Naytitorn Chaovirachot
a13a6112f9 finalize json format, still not put to database 2024-10-14 01:04:50 +07:00
fc6368f54e refactor: update investor_id retrieve logic + snake case db atr 2024-10-14 00:29:01 +07:00
0d14e15d13 refactor: rename all database field to snake_case 2024-10-14 00:12:41 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
9675a1c491 Refactor Apply page component to adjust left margin for company information section and simplify pitchDeckSchema validation 2024-10-13 21:57:12 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
7c042c6b3c Refactor Apply page component to adjust left margin for company information section and simplify pitchDeckSchema validation 2024-10-13 21:46:52 +07:00
d8a2f13d6c feat: store investment statement in database 2024-10-13 21:18:32 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
f5c946f167 Refactor Apply page component to adjust left margin for company information section and simplify pitchDeckSchema validation 2024-10-13 16:47:46 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
3370b0f61c Refactor Apply page component to adjust left margin for company information section 2024-10-13 16:34:30 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
847af65dbc Refactor Apply page component to adjust left margin for company information section 2024-10-12 18:57:57 +07:00
THIS ONE IS A LITTLE BIT TRICKY KRUB
6a69edf57e Refactor Apply page component to simplify pitchDeckSchema validation 2024-10-12 18:56:08 +07:00
Naytitorn Chaovirachot
fc1dd4b4d9 add base code for fetching input data to JSON 2024-10-11 23:19:20 +07:00
1c9eaa8577 feat: add payment + dynamic invest route 2024-10-11 14:42:58 +07:00
Pattadon
e9ce0714b3 Refactor Apply page component to handle yes/no choices with DualOptionSelector and Selector components, and update form field change handling 2024-10-11 14:37:57 +07:00
Pattadon
5fea323938 Refactor Apply page component to handle yes/no choices with DualOptionSelector and Selector components, and update form field change handling 2024-10-11 13:56:29 +07:00
Pattadon
a3573c5c9a Refactor Apply page component to use DualOptionSelector component for handling yes/no choices 2024-10-11 11:43:06 +07:00