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:
committed by
GitHub
parent
4071993561
commit
ea5954c8f5
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user