mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 09:01:17 +00:00
Fix rebased Foundry typechecks
This commit is contained in:
parent
b224294b0e
commit
5e0516ff68
4 changed files with 10 additions and 4 deletions
|
|
@ -300,6 +300,7 @@ export function buildInitialTasks(): Task[] {
|
||||||
fileChanges: [],
|
fileChanges: [],
|
||||||
diffs: {},
|
diffs: {},
|
||||||
fileTree: [],
|
fileTree: [],
|
||||||
|
minutesUsed: 0,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "h1",
|
id: "h1",
|
||||||
|
|
|
||||||
|
|
@ -1053,7 +1053,7 @@ export function MockLayout({ workspaceId, selectedTaskId, selectedSessionId }: M
|
||||||
const activeOrg = activeMockOrganization(appSnapshot);
|
const activeOrg = activeMockOrganization(appSnapshot);
|
||||||
const navigateToUsage = useCallback(() => {
|
const navigateToUsage = useCallback(() => {
|
||||||
if (activeOrg) {
|
if (activeOrg) {
|
||||||
void navigate({ to: "/organizations/$organizationId/billing" as never, params: { organizationId: activeOrg.id } });
|
void navigate({ to: "/organizations/$organizationId/billing", params: { organizationId: activeOrg.id } });
|
||||||
}
|
}
|
||||||
}, [activeOrg, navigate]);
|
}, [activeOrg, navigate]);
|
||||||
const [projectOrder, setProjectOrder] = useState<string[] | null>(null);
|
const [projectOrder, setProjectOrder] = useState<string[] | null>(null);
|
||||||
|
|
@ -1457,7 +1457,9 @@ export function MockLayout({ workspaceId, selectedTaskId, selectedSessionId }: M
|
||||||
const onDragMouseDown = useCallback((event: ReactPointerEvent) => {
|
const onDragMouseDown = useCallback((event: ReactPointerEvent) => {
|
||||||
if (event.button !== 0) return;
|
if (event.button !== 0) return;
|
||||||
// Tauri v2 IPC: invoke start_dragging on the webview window
|
// Tauri v2 IPC: invoke start_dragging on the webview window
|
||||||
const ipc = (window as Record<string, unknown>).__TAURI_INTERNALS__ as { invoke: (cmd: string, args?: unknown) => Promise<unknown> } | undefined;
|
const ipc = ((window as unknown as Record<string, unknown>).__TAURI_INTERNALS__ ?? undefined) as
|
||||||
|
| { invoke: (cmd: string, args?: unknown) => Promise<unknown> }
|
||||||
|
| undefined;
|
||||||
if (ipc?.invoke) {
|
if (ipc?.invoke) {
|
||||||
ipc.invoke("plugin:window|start_dragging").catch(() => {});
|
ipc.invoke("plugin:window|start_dragging").catch(() => {});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ interface TerminalPaneProps {
|
||||||
isExpanded?: boolean;
|
isExpanded?: boolean;
|
||||||
onExpand?: () => void;
|
onExpand?: () => void;
|
||||||
onCollapse?: () => void;
|
onCollapse?: () => void;
|
||||||
onStartResize?: (e: React.PointerEvent) => void;
|
onStartResize?: React.PointerEventHandler<HTMLDivElement>;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ProcessTab {
|
interface ProcessTab {
|
||||||
|
|
@ -135,6 +135,7 @@ export function TerminalPane({ workspaceId, taskId, isExpanded, onExpand, onColl
|
||||||
setProcessTabs((prev) => {
|
setProcessTabs((prev) => {
|
||||||
const next = [...prev];
|
const next = [...prev];
|
||||||
const [moved] = next.splice(d.fromIdx, 1);
|
const [moved] = next.splice(d.fromIdx, 1);
|
||||||
|
if (!moved) return prev;
|
||||||
next.splice(d.overIdx!, 0, moved);
|
next.splice(d.overIdx!, 0, moved);
|
||||||
return next;
|
return next;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,9 @@ function DesktopDragRegion() {
|
||||||
const isDesktop = !!import.meta.env.VITE_DESKTOP;
|
const isDesktop = !!import.meta.env.VITE_DESKTOP;
|
||||||
const onDragMouseDown = useCallback((event: React.PointerEvent) => {
|
const onDragMouseDown = useCallback((event: React.PointerEvent) => {
|
||||||
if (event.button !== 0) return;
|
if (event.button !== 0) return;
|
||||||
const ipc = (window as Record<string, unknown>).__TAURI_INTERNALS__ as { invoke: (cmd: string, args?: unknown) => Promise<unknown> } | undefined;
|
const ipc = ((window as unknown as Record<string, unknown>).__TAURI_INTERNALS__ ?? undefined) as
|
||||||
|
| { invoke: (cmd: string, args?: unknown) => Promise<unknown> }
|
||||||
|
| undefined;
|
||||||
if (ipc?.invoke) {
|
if (ipc?.invoke) {
|
||||||
ipc.invoke("plugin:window|start_dragging").catch(() => {});
|
ipc.invoke("plugin:window|start_dragging").catch(() => {});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue