Skip to content

Commit f84fe54

Browse files
authored
Merge pull request #3227 from bluewave-labs/fix/plugin-management-ui-tweaks
UI: clean up plugin management page
2 parents 30e55cd + 1d5a9b5 commit f84fe54

File tree

4 files changed

+9
-43
lines changed

4 files changed

+9
-43
lines changed

Clients/src/presentation/components/PluginCard/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,15 +246,15 @@ const PluginCard: React.FC<PluginCardProps> = ({
246246
sx={(theme) => ({
247247
color: theme.palette.text.secondary,
248248
fontSize: '13px',
249-
mb: 0.5,
249+
mb: "8px",
250250
})}
251251
>
252252
{plugin.description}
253253
</Typography>
254254

255255
{/* Framework Type Badge */}
256256
{plugin.frameworkType && (
257-
<Box sx={{ display: 'flex', alignItems: 'center', gap: 0.5, mt: 2 }}>
257+
<Box sx={{ display: 'flex', alignItems: 'center', gap: "8px", mb: "8px" }}>
258258
<Chip
259259
size="small"
260260
icon={
@@ -291,7 +291,7 @@ const PluginCard: React.FC<PluginCardProps> = ({
291291
)}
292292

293293
{/* Plugin Features */}
294-
<Box sx={{ display: 'flex', flexWrap: 'wrap', gap: 0.5, mt: 2 }}>
294+
<Box sx={{ display: 'flex', flexWrap: 'wrap', gap: "8px" }}>
295295
{plugin.features.slice(0, 2).map((feature, index) => (
296296
<Chip
297297
key={index}

Clients/src/presentation/pages/Plugins/PluginManagement/index.tsx

Lines changed: 4 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ import {
2828
FileSpreadsheet as FileSpreadsheetIcon,
2929
Package as PackageIcon,
3030
Database as DatabaseIcon,
31-
Globe as GlobeIcon,
32-
Building2 as BuildingIcon,
33-
Layers as LayersIcon,
34-
BookOpen as BookOpenIcon,
3531
} from "lucide-react";
3632
import { PageBreadcrumbs } from "../../../components/breadcrumbs/PageBreadcrumbs";
3733
import PageHeader from "../../../components/Layout/PageHeader";
@@ -93,26 +89,6 @@ const PluginManagement: React.FC = () => {
9389

9490
const isAdmin = userRoleName === "Admin";
9591

96-
// Helper function to get flag emoji from region
97-
const getRegionFlag = (region?: string): string => {
98-
if (!region) return "🌐";
99-
const regionFlags: Record<string, string> = {
100-
"European Union": "🇪🇺",
101-
"United States": "🇺🇸",
102-
"United Kingdom": "🇬🇧",
103-
"Canada": "🇨🇦",
104-
"Australia": "🇦🇺",
105-
"Brazil": "🇧🇷",
106-
"Singapore": "🇸🇬",
107-
"Japan": "🇯🇵",
108-
"South Korea": "🇰🇷",
109-
"China": "🇨🇳",
110-
"India": "🇮🇳",
111-
"Global": "🌐",
112-
};
113-
return regionFlags[region] || "🌐";
114-
};
115-
11692
// Check if plugin is a compliance/framework plugin
11793
const isFrameworkPlugin = plugin?.category === "compliance";
11894

@@ -463,33 +439,23 @@ const PluginManagement: React.FC = () => {
463439
<Divider />
464440
<Box>
465441
<Typography variant="subtitle2" fontWeight={600} fontSize={14} mb={2}>
466-
<Box sx={{ display: "flex", alignItems: "center", gap: 1 }}>
467-
<BookOpenIcon size={16} color="#13715B" />
468-
Framework Details
469-
</Box>
442+
Framework Details
470443
</Typography>
471444
<Box sx={frameworkDetailsGrid}>
472445
{/* Region */}
473446
<Box sx={frameworkDetailItem}>
474447
<Box component="span" sx={frameworkDetailLabel}>
475-
<Box component="span" sx={{ display: "flex", alignItems: "center", gap: 0.5 }}>
476-
<GlobeIcon size={12} />
477-
Region
478-
</Box>
448+
Region
479449
</Box>
480450
<Box component="span" sx={frameworkDetailValue}>
481-
<span style={{ fontSize: "18px" }}>{getRegionFlag(plugin.region)}</span>
482451
{plugin.region || "Global"}
483452
</Box>
484453
</Box>
485454

486455
{/* Framework Type */}
487456
<Box sx={frameworkDetailItem}>
488457
<Box component="span" sx={frameworkDetailLabel}>
489-
<Box component="span" sx={{ display: "flex", alignItems: "center", gap: 0.5 }}>
490-
{plugin.frameworkType === "organizational" ? <BuildingIcon size={12} /> : <LayersIcon size={12} />}
491-
Framework Type
492-
</Box>
458+
Framework Type
493459
</Box>
494460
<Box>
495461
<MuiChip
@@ -651,7 +617,7 @@ const PluginManagement: React.FC = () => {
651617
{/* Configuration Card - Only show for installed plugins that require configuration */}
652618
{plugin.installationStatus === PluginInstallationStatus.INSTALLED && plugin.requiresConfiguration !== false && (
653619
<Card sx={cardStyles.base(theme)}>
654-
<CardContent sx={{ p: 3 }}>
620+
<CardContent sx={{ p: "16px" }}>
655621
<Stack spacing={3}>
656622
{/* Configuration Header */}
657623
<Box sx={{ display: "flex", alignItems: "center", gap: 1.5 }}>

Clients/src/presentation/pages/Plugins/PluginManagement/style.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export const frameworkDetailItem: SxProps<Theme> = {
131131
display: "flex",
132132
flexDirection: "column",
133133
gap: 0.5,
134-
p: 2,
134+
p: "16px",
135135
backgroundColor: "#f9fafb",
136136
borderRadius: "8px",
137137
border: "1px solid #eaecf0",

Clients/src/presentation/pages/Plugins/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ const Plugins: React.FC = () => {
264264
/>
265265

266266
<TabContext value={activeTab}>
267-
<Box sx={{ borderBottom: 1, borderColor: "#d0d5dd" }}>
267+
<Box>
268268
<TabBar
269269
tabs={[
270270
{ label: "Marketplace", value: "marketplace", icon: "Store" },

0 commit comments

Comments
 (0)