Refactor WorkspacesLayout (#2052)

* init refactor

* changes context

* wip

* logs context

* workspaces layout context breakdown

* sidebar context

* move diffs to workspace context

* compress workspaces layout

* refactors

* types

* always show archived
This commit is contained in:
Louis Knight-Webb
2026-01-14 22:07:00 +00:00
committed by GitHub
parent 4071993561
commit ea5954c8f5
32 changed files with 1303 additions and 1369 deletions

View File

@@ -3,7 +3,7 @@ import { TerminalIcon, WrenchIcon } from '@phosphor-icons/react';
import { cn } from '@/lib/utils';
import { ToolStatus } from 'shared/types';
import { ToolStatusDot } from './ToolStatusDot';
import { useLogNavigation } from '@/contexts/LogNavigationContext';
import { useLogsPanel } from '@/contexts/LogsPanelContext';
interface ChatScriptEntryProps {
title: string;
@@ -23,7 +23,7 @@ export function ChatScriptEntry({
onFix,
}: ChatScriptEntryProps) {
const { t } = useTranslation('tasks');
const { viewProcessInPanel } = useLogNavigation();
const { viewProcessInPanel } = useLogsPanel();
const isRunning = status.status === 'created';
const isSuccess = status.status === 'success';
const isFailed = status.status === 'failed';