From 01647445f2ecf34f0681819fb1891db28cfcea8a Mon Sep 17 00:00:00 2001 From: Arunavo Ray Date: Tue, 17 Jun 2025 12:48:38 +0530 Subject: [PATCH] Improved layout in larger screens --- .../config/OrganizationStrategy.tsx | 246 ++++++++++++------ 1 file changed, 160 insertions(+), 86 deletions(-) diff --git a/src/components/config/OrganizationStrategy.tsx b/src/components/config/OrganizationStrategy.tsx index 3ffab31..5c5d599 100644 --- a/src/components/config/OrganizationStrategy.tsx +++ b/src/components/config/OrganizationStrategy.tsx @@ -284,7 +284,7 @@ export const OrganizationStrategy: React.FC = ({ -
+
{(Object.entries(strategyConfig) as [MirrorStrategy, typeof strategyConfig.preserve][]).map(([key, config]) => { const isSelected = strategy === key; const Icon = config.icon; @@ -319,11 +319,6 @@ export const OrganizationStrategy: React.FC = ({

{config.title}

- {isSelected && ( - - Selected - - )}

{config.description} @@ -375,99 +370,178 @@ export const OrganizationStrategy: React.FC = ({

+
+ {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" && ( -
-