diff --git a/frontend/src/components/forms/GroupManager.jsx b/frontend/src/components/forms/GroupManager.jsx
index f89c9228..edc04d20 100644
--- a/frontend/src/components/forms/GroupManager.jsx
+++ b/frontend/src/components/forms/GroupManager.jsx
@@ -12,11 +12,12 @@ import {
Alert,
Divider,
ScrollArea,
+ useMantineTheme,
} from '@mantine/core';
import {
SquarePlus,
SquarePen,
- Trash2,
+ SquareMinus,
Check,
X,
AlertCircle,
@@ -42,6 +43,8 @@ const GroupItem = React.memo(({
canEditGroup,
canDeleteGroup
}) => {
+ const theme = useMantineTheme();
+
const getGroupBadges = (group) => {
const usage = groupUsage[group.id];
const badges = [];
@@ -69,7 +72,7 @@ const GroupItem = React.memo(({
{editingGroup === group.id ? (
@@ -103,20 +106,22 @@ const GroupItem = React.memo(({
) : (
<>
onEdit(group)}
disabled={!canEditGroup(group)}
>
-
+
onDelete(group)}
disabled={!canDeleteGroup(group)}
>
-
+
>
)}
@@ -346,9 +351,39 @@ const GroupManager = React.memo(({ isOpen, onClose }) => {
{/* Create new group section */}
-
-
- Create New Group
+
+ {isCreating ? (
+
+ e.key === 'Enter' && handleCreate()}
+ autoFocus
+ />
+
+
+
+ {
+ setIsCreating(false);
+ setNewGroupName('');
+ }}>
+
+
+
+ ) : (
+ }
+ variant="light"
+ size="sm"
+ onClick={() => setIsCreating(true)}
+ >
+ Add Group
+
+ )}
+
+ {!isCreating && (
}
variant="light"
@@ -359,40 +394,8 @@ const GroupManager = React.memo(({ isOpen, onClose }) => {
>
Cleanup Unused
-
-
- {isCreating ? (
- <>
- e.key === 'Enter' && handleCreate()}
- autoFocus
- />
-
-
-
- {
- setIsCreating(false);
- setNewGroupName('');
- }}>
-
-
- >
- ) : (
- }
- variant="light"
- size="sm"
- onClick={() => setIsCreating(true)}
- >
- Add Group
-
- )}
-
-
+ )}
+
@@ -400,7 +403,7 @@ const GroupManager = React.memo(({ isOpen, onClose }) => {
- Existing Groups ({filteredGroups.length}{searchTerm && ` of ${sortedGroups.length}`})
+ Groups ({filteredGroups.length}{searchTerm && ` of ${sortedGroups.length}`})