From 2ac933b599428c3b1ee9f36ff4bff0232a9e090a Mon Sep 17 00:00:00 2001 From: Arunavo Ray Date: Tue, 17 Jun 2025 14:26:52 +0530 Subject: [PATCH] refactor: streamline layout and improve tooltip descriptions in OrganizationConfiguration component --- .../config/OrganizationConfiguration.tsx | 263 +++++++----------- 1 file changed, 102 insertions(+), 161 deletions(-) diff --git a/src/components/config/OrganizationConfiguration.tsx b/src/components/config/OrganizationConfiguration.tsx index 38d9f32..eabf12d 100644 --- a/src/components/config/OrganizationConfiguration.tsx +++ b/src/components/config/OrganizationConfiguration.tsx @@ -45,178 +45,119 @@ export const OrganizationConfiguration: React.FC + {/* First row - Organization inputs with consistent layout */}
- {strategy === "single-org" ? ( - <> - {/* Destination Organization - Left Column */} -
- - onDestinationOrgChange(e.target.value)} - placeholder="github-mirrors" - className="" - /> -

- Organization for consolidated repositories -

-
- - {/* Starred Repositories Organization - Right Column */} -
- - onStarredReposOrgChange(e.target.value)} - placeholder="starred" - className="" - /> -

- Keep starred repos organized separately -

-
- - ) : ( - <> - {/* Starred Repositories Organization - Left Column */} -
- - onStarredReposOrgChange(e.target.value)} - placeholder="starred" - className="" - /> -

- Keep starred repos organized separately -

-
- - {/* Organization Visibility - Right Column */} -
- -
- {visibilityOptions.map((option) => { - const Icon = option.icon; - const isSelected = visibility === option.value; - return ( - - ); - })} -
-
- - )} -
- - {/* Organization Visibility - Full width when single-org is selected */} - {strategy === "single-org" && ( -
-
); -}; \ No newline at end of file +}; +