feat: Redesign the designer layout using a grid system, adding explicit left, center, and right panels with collapse functionality.

This commit is contained in:
2026-02-02 15:48:17 -05:00
parent 89c44efcf7
commit 0ec63b3c97
8 changed files with 203 additions and 142 deletions

View File

@@ -2,6 +2,7 @@
import React, { useMemo, useState, useCallback } from "react";
import { Tabs, TabsList, TabsTrigger, TabsContent } from "~/components/ui/tabs";
import { Button } from "~/components/ui/button";
import { cn } from "~/lib/utils";
import { useDesignerStore } from "../state/store";
@@ -18,6 +19,7 @@ import {
AlertTriangle,
GitBranch,
PackageSearch,
PanelRightClose,
} from "lucide-react";
/**
@@ -47,6 +49,11 @@ export interface InspectorPanelProps {
* Called when user changes tab (only if activeTab not externally controlled).
*/
onTabChange?: (tab: "properties" | "issues" | "dependencies") => void;
/**
* Collapse state and handler
*/
collapsed?: boolean;
onCollapse?: (collapsed: boolean) => void;
/**
* If true, auto-switch to "properties" when a selection occurs.
*/
@@ -68,6 +75,8 @@ export function InspectorPanel({
onTabChange,
autoFocusOnSelection = true,
studyPlugins,
collapsed,
onCollapse,
}: InspectorPanelProps) {
/* ------------------------------------------------------------------------ */
/* Store Selectors */