Skip to content

Commit ede9a86

Browse files
committed
Remove redundant widget picker card details
1 parent 2513df9 commit ede9a86

3 files changed

Lines changed: 0 additions & 19 deletions

File tree

frontend/src/lib/layout/DashboardCustomizationSidebar.svelte

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
Search,
1414
} from '@lucide/svelte';
1515
import {
16-
DASHBOARD_GRID_COLUMNS,
1716
dashboardWidgetCategories,
1817
getDashboardWidgetsByCategory,
1918
} from '../services/dashboardWidgetRegistry.js';
@@ -62,11 +61,6 @@
6261
...widget,
6362
name: t(widget.nameKey),
6463
description: t(widget.descriptionKey),
65-
categoryLabel: t(`dashboard.customization.${widget.category}.name`),
66-
widthLabel: t('widgets.defaultWidth', {
67-
width: widget.defaultWidth,
68-
columns: DASHBOARD_GRID_COLUMNS,
69-
}),
7064
})),
7165
);
7266
</script>

frontend/src/lib/layout/WidgetCustomizationSidebar.svelte

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -89,17 +89,6 @@
8989
<div class="flex-1 min-w-0">
9090
<h3 class="text-sm font-medium" style="color: var(--ds-text);">{widget.name}</h3>
9191
<DescriptionText>{widget.description}</DescriptionText>
92-
<div class="flex items-center gap-2 mt-2">
93-
<span
94-
class="text-xs px-2 py-0.5 rounded"
95-
style="background-color: var(--ds-background-neutral); color: var(--ds-text-subtle);"
96-
>
97-
{widget.categoryLabel}
98-
</span>
99-
<span class="text-xs" style="color: var(--ds-text-subtlest);">
100-
{widget.widthLabel}
101-
</span>
102-
</div>
10392
</div>
10493
<div class="cursor-grab active:cursor-grabbing flex-shrink-0" style="color: var(--ds-text-subtlest);">
10594
<GripVertical class="w-5 h-5" />

frontend/src/lib/workspaces/WorkspaceCustomizationSidebar.svelte

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
...widget,
2828
name: t(widget.nameKey),
2929
description: t(widget.descriptionKey),
30-
categoryLabel: categories.find((category) => category.id === widget.category)?.name || widget.category,
31-
widthLabel: t('workspaceDashboard.customization.defaultWidth', { width: widget.defaultWidth }),
3230
})),
3331
);
3432
</script>

0 commit comments

Comments
 (0)