diff --git a/frontend/src/components/Buckets/CreateBucketDialog.tsx b/frontend/src/components/Buckets/CreateBucketDialog.tsx index 776c5c2..d77b106 100644 --- a/frontend/src/components/Buckets/CreateBucketDialog.tsx +++ b/frontend/src/components/Buckets/CreateBucketDialog.tsx @@ -119,10 +119,13 @@ const CreateBucketDialog: React.FC = ({ if (data.createUser) { // Create bucket with user (like the script) + // This operation can take longer as it creates bucket, user, and policy await api.post('/buckets/with-user', { bucketName: data.bucketName, username: data.username!, password: data.password!, + }, { + timeout: 60000, // 60 seconds timeout for this complex operation }); setCredentials({ username: data.username!, @@ -300,7 +303,7 @@ const CreateBucketDialog: React.FC = ({ {credentials && ( - User Credentials + MinIO User Credentials Save these credentials securely. They won't be shown again. @@ -309,27 +312,36 @@ const CreateBucketDialog: React.FC = ({ - Username: {credentials.username} + Access Key (Username): {credentials.username} copyToClipboard(credentials.username)} + title="Copy access key" > - Password: {credentials.password} + Secret Key (Password): {credentials.password} copyToClipboard(credentials.password)} + title="Copy secret key" > + + + Use these credentials to connect via MinIO Client: + + + mc alias set myminio http://your-minio-server:9000 {credentials.username} {credentials.password} + )} diff --git a/frontend/src/components/Dashboard/QuickStartWizard.tsx b/frontend/src/components/Dashboard/QuickStartWizard.tsx index c400481..1769efa 100644 --- a/frontend/src/components/Dashboard/QuickStartWizard.tsx +++ b/frontend/src/components/Dashboard/QuickStartWizard.tsx @@ -123,7 +123,9 @@ const QuickStartWizard: React.FC = ({ try { // Step 1: Create bucket - await api.post('/buckets', { name: setupData.bucketName }); + await api.post('/buckets', { name: setupData.bucketName }, { + timeout: 30000, // 30 seconds timeout + }); // Step 2: Create user await userService.createUser({ @@ -165,7 +167,7 @@ const QuickStartWizard: React.FC = ({ }; const handleCopyCredentials = () => { - const credentials = `MinIO Credentials\n\nBucket: ${completedSetup.bucket}\nUsername: ${completedSetup.user}\nPassword: ${completedSetup.password}\nPolicy: ${completedSetup.policy}`; + const credentials = `MinIO Credentials\n\nBucket: ${completedSetup.bucket}\nAccess Key: ${completedSetup.user}\nSecret Key: ${completedSetup.password}\nPolicy: ${completedSetup.policy}\n\nConnection Example:\nmc alias set myminio http://your-minio-server:9000 ${completedSetup.user} ${completedSetup.password}`; navigator.clipboard.writeText(credentials); }; @@ -335,14 +337,16 @@ const QuickStartWizard: React.FC = ({ + + + } /> @@ -371,17 +375,17 @@ const QuickStartWizard: React.FC = ({ - Your Credentials + Your MinIO Credentials Bucket: {completedSetup.bucket} - Username: {completedSetup.user} + Access Key: {completedSetup.user} - Password: {completedSetup.password} + Secret Key: {completedSetup.password} Policy: {completedSetup.policy} diff --git a/frontend/src/components/Reports/Reports.tsx b/frontend/src/components/Reports/Reports.tsx index e030f41..d05a6a1 100644 --- a/frontend/src/components/Reports/Reports.tsx +++ b/frontend/src/components/Reports/Reports.tsx @@ -311,14 +311,16 @@ const Reports: React.FC = () => { {scheduleInfo && ( <> - - Status:{' '} + + + Status:{' '} + - + Schedule: {scheduleInfo.schedule} diff --git a/frontend/src/services/userService.ts b/frontend/src/services/userService.ts index 213f96f..8e27f4d 100644 --- a/frontend/src/services/userService.ts +++ b/frontend/src/services/userService.ts @@ -39,7 +39,10 @@ class UserService { async createUser(userData: CreateUserRequest): Promise { try { - await axios.post(`${this.baseURL}/users`, userData, { + await axios.post(`${this.baseURL}/users`, { + username: userData.accessKey, + password: userData.secretKey, + }, { headers: getAuthHeaders(), }); } catch (error) {