From 70b7f7a4a103dac3c3e936dcf4f618608e504e46 Mon Sep 17 00:00:00 2001 From: iYukay Date: Fri, 12 Jun 2026 15:58:07 +0100 Subject: [PATCH 01/24] updated create-pool and implementd bulk addMember --- .../CreatePool/PoolConfiguration.tsx | 3 + .../pool-configs/MembersSection.tsx | 33 ++++++++- .../CommunityPool/SelectCollectiveType.tsx | 13 ++-- .../src/components/CommunityPool/Welcome.tsx | 68 +++++++------------ .../hooks/useCreatePool/CreatePoolContext.tsx | 31 ++++++++- .../usePoolConfigurationValidation.ts | 36 ++++++++++ 6 files changed, 132 insertions(+), 52 deletions(-) diff --git a/packages/app/src/components/CommunityPool/CreatePool/PoolConfiguration.tsx b/packages/app/src/components/CommunityPool/CreatePool/PoolConfiguration.tsx index d7f43bad..325c0d4b 100644 --- a/packages/app/src/components/CommunityPool/CreatePool/PoolConfiguration.tsx +++ b/packages/app/src/components/CommunityPool/CreatePool/PoolConfiguration.tsx @@ -113,9 +113,12 @@ const PoolConfiguration = () => { setMaximumMembers={setMaximumMembers} joinStatus={joinStatus} setJoinStatus={setJoinStatus} + poolRecipients={poolRecipients} + setPoolRecipients={setPoolRecipients} onValidate={handleValidate} errors={{ maximumMembers: errors.maximumMembers, + poolRecipients: errors.poolRecipients, }} /> diff --git a/packages/app/src/components/CommunityPool/CreatePool/pool-configs/MembersSection.tsx b/packages/app/src/components/CommunityPool/CreatePool/pool-configs/MembersSection.tsx index 38474e3b..ea2007ff 100644 --- a/packages/app/src/components/CommunityPool/CreatePool/pool-configs/MembersSection.tsx +++ b/packages/app/src/components/CommunityPool/CreatePool/pool-configs/MembersSection.tsx @@ -1,13 +1,16 @@ -import { Box, FormControl, Input, Radio, Text, VStack, WarningOutlineIcon } from 'native-base'; +import { Box, FormControl, Input, Radio, Text, TextArea, VStack, WarningOutlineIcon } from 'native-base'; interface MembersSectionProps { maximumMembers: number; setMaximumMembers: (value: number) => void; joinStatus: 'closed' | 'open'; setJoinStatus: (value: 'closed' | 'open') => void; + poolRecipients: string; + setPoolRecipients: (value: string) => void; onValidate: () => void; errors: { maximumMembers?: string; + poolRecipients?: string; }; } @@ -16,6 +19,8 @@ const MembersSection = ({ setMaximumMembers, joinStatus, setJoinStatus, + poolRecipients, + setPoolRecipients, onValidate, errors, }: MembersSectionProps) => { @@ -85,6 +90,32 @@ const MembersSection = ({ + + {/* Initial Members */} + + + + Initial Members (optional) + + + + Add wallet addresses separated by commas or new lines. + + +