@lucashca/claudecontrol 0.3.24 → 0.3.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState, useRef, useEffect } from 'react';
|
|
2
2
|
import {
|
|
3
|
-
Plus, X, Wifi, WifiOff, Settings, RefreshCw, Shield, ShieldOff, Eye, EyeOff, Lock, Code2, Menu, Loader2, Bell, BellOff,
|
|
3
|
+
Plus, X, Wifi, WifiOff, Settings, RefreshCw, Shield, ShieldOff, Eye, EyeOff, Lock, Code2, Menu, Loader2, Bell, BellOff, Trash2,
|
|
4
4
|
} from 'lucide-react';
|
|
5
5
|
import { useAtomValue, useSetAtom } from 'jotai';
|
|
6
6
|
import { Logo } from '@/ui';
|
|
@@ -28,8 +28,8 @@ const PALETTE = [
|
|
|
28
28
|
'#ec4899','#06b6d4','#f97316','#c8ee44','#a78bfa',
|
|
29
29
|
];
|
|
30
30
|
|
|
31
|
-
function EditPopover({ wsId, wsName, wsColor, wsOrchestratorRole, isHidden, onToggleHidden, onClose, anchorEl }: {
|
|
32
|
-
wsId: string; wsName: string; wsColor: string; wsOrchestratorRole?: string; isHidden: boolean; onToggleHidden: () => void; onClose: () => void; anchorEl: HTMLElement | null;
|
|
31
|
+
function EditPopover({ wsId, wsName, wsColor, wsOrchestratorRole, isHidden, onToggleHidden, onDelete, onClose, anchorEl }: {
|
|
32
|
+
wsId: string; wsName: string; wsColor: string; wsOrchestratorRole?: string; isHidden: boolean; onToggleHidden: () => void; onDelete: () => void; onClose: () => void; anchorEl: HTMLElement | null;
|
|
33
33
|
}) {
|
|
34
34
|
const [name, setName] = useState(wsName);
|
|
35
35
|
const [color, setColor] = useState(wsColor);
|
|
@@ -96,6 +96,10 @@ function EditPopover({ wsId, wsName, wsColor, wsOrchestratorRole, isHidden, onTo
|
|
|
96
96
|
{isHidden ? 'Mostrar workspace' : 'Ocultar workspace'}
|
|
97
97
|
</Button>
|
|
98
98
|
<Button variant="primary" size="sm" onClick={save} className="w-full mt-2">Salvar</Button>
|
|
99
|
+
<Button variant="ghost" size="sm" onClick={onDelete}
|
|
100
|
+
className="w-full justify-start gap-2 mt-1 px-2 py-1.5 text-[11px] text-cc-error hover:bg-cc-error/10">
|
|
101
|
+
<Trash2 size={12} /> Excluir workspace
|
|
102
|
+
</Button>
|
|
99
103
|
</div>
|
|
100
104
|
);
|
|
101
105
|
}
|
|
@@ -203,6 +207,7 @@ export function Header() {
|
|
|
203
207
|
isHidden={hidden}
|
|
204
208
|
anchorEl={settingsAnchorRefs.current[w.id]}
|
|
205
209
|
onToggleHidden={() => { toggleHiddenWorkspace(w.id); setEditingWs(null); }}
|
|
210
|
+
onDelete={() => { api.deleteWorkspace(w.id).then(() => { closeWs(w.id); refresh(); }); setEditingWs(null); }}
|
|
206
211
|
onClose={() => setEditingWs(null)}
|
|
207
212
|
/>
|
|
208
213
|
)}
|
package/package.json
CHANGED
package/version.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"0.3.
|
|
1
|
+
{"version":"0.3.25","build":"2026-04-03T23:11:55.577Z"}
|