feat: dockview new ui (#219)

This commit is contained in:
Carlos Florêncio
2026-02-13 00:00:04 +00:00
committed by GitHub
parent 11ac58d3e0
commit 813bfd1215
42 changed files with 3422 additions and 962 deletions
+4 -3
View File
@@ -43,7 +43,8 @@ import { getLocalStorage, setLocalStorage } from '@/lib/local-storage';
import { STORAGE_KEYS } from '@/lib/settings/constants';
import { linkToSession } from '@/lib/links';
import { getExecutorIcon } from '@/lib/executor-icons';
import { useLayoutStore } from '@/lib/state/layout-store';
import { usePanelActions } from '@/hooks/use-panel-actions';
interface TaskCreateDialogProps {
open: boolean;
@@ -1032,9 +1033,9 @@ export function TaskCreateDialog({
};
// Access layout/UI store for plan mode creation
const openDocument = useLayoutStore((state) => state.openDocument);
const setActiveDocument = useAppStore((state) => state.setActiveDocument);
const setPlanMode = useAppStore((state) => state.setPlanMode);
const { addPlan } = usePanelActions();
const handleCreateInPlanMode = async () => {
if (!workspaceId || !boardId) return;
@@ -1095,7 +1096,7 @@ export function TaskCreateDialog({
// Set document panel state before navigation
if (newSessionId) {
setActiveDocument(newSessionId, { type: 'plan', taskId: newTaskId });
openDocument(newSessionId);
addPlan();
setPlanMode(newSessionId, true);
router.push(linkToSession(newSessionId));
} else {