diff --git a/api/package.json b/api/package.json index 6150ff0d1..b8ad91b4e 100644 --- a/api/package.json +++ b/api/package.json @@ -1,5 +1,5 @@ { - "version": "0.8.0-beta.11", + "version": "0.8.1-canary.3", "name": "@fiberplane/studio", "description": "Local development debugging interface for Hono apps", "author": "Fiberplane", diff --git a/packages/types/package.json b/packages/types/package.json index 22c1ce09b..e811dc113 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,7 +1,7 @@ { "name": "@fiberplane/fpx-types", "description": "Shared types and schemas for fpx", - "version": "0.0.5", + "version": "0.0.6", "type": "module", "exports": { ".": "./dist/index.js" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 34dd9143f..29a996f9f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -317,6 +317,9 @@ importers: '@radix-ui/react-label': specifier: ^2.1.0 version: 2.1.0(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@radix-ui/react-menubar': + specifier: ^1.1.1 + version: 1.1.1(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-popover': specifier: ^1.0.7 version: 1.1.1(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -2466,6 +2469,19 @@ packages: '@types/react-dom': optional: true + '@radix-ui/react-menubar@1.1.1': + resolution: {integrity: sha512-V05Hryq/BE2m+rs8d5eLfrS0jmSWSDHEbG7jEyLA5D5J9jTvWj/o3v3xDN9YsOlH6QIkJgiaNDaP+S4T1rdykw==} + peerDependencies: + '@types/react': '*' + '@types/react-dom': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + '@types/react-dom': + optional: true + '@radix-ui/react-popover@1.1.1': resolution: {integrity: sha512-3y1A3isulwnWhvTTwmIreiB8CF4L+qRjZnK1wYLO7pplddzXKby/GnZ2M7OZY3qgnl6p9AodUIHRYGXNah8Y7g==} peerDependencies: @@ -9168,6 +9184,24 @@ snapshots: '@types/react': 18.3.3 '@types/react-dom': 18.3.0 + '@radix-ui/react-menubar@1.1.1(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + dependencies: + '@radix-ui/primitive': 1.1.0 + '@radix-ui/react-collection': 1.1.0(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@radix-ui/react-compose-refs': 1.1.0(@types/react@18.3.3)(react@18.3.1) + '@radix-ui/react-context': 1.1.0(@types/react@18.3.3)(react@18.3.1) + '@radix-ui/react-direction': 1.1.0(@types/react@18.3.3)(react@18.3.1) + '@radix-ui/react-id': 1.1.0(@types/react@18.3.3)(react@18.3.1) + '@radix-ui/react-menu': 2.1.1(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@radix-ui/react-primitive': 2.0.0(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@radix-ui/react-roving-focus': 1.1.0(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@radix-ui/react-use-controllable-state': 1.1.0(@types/react@18.3.3)(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + optionalDependencies: + '@types/react': 18.3.3 + '@types/react-dom': 18.3.0 + '@radix-ui/react-popover@1.1.1(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@radix-ui/primitive': 1.1.0 diff --git a/studio/package.json b/studio/package.json index 4b2b56c15..44f3c98b0 100644 --- a/studio/package.json +++ b/studio/package.json @@ -30,6 +30,7 @@ "@radix-ui/react-hover-card": "^1.1.1", "@radix-ui/react-icons": "^1.3.0", "@radix-ui/react-label": "^2.1.0", + "@radix-ui/react-menubar": "^1.1.1", "@radix-ui/react-popover": "^1.0.7", "@radix-ui/react-radio-group": "^1.1.3", "@radix-ui/react-separator": "^1.0.3", diff --git a/studio/src/App.tsx b/studio/src/App.tsx index 59afa0aac..e0e2539d8 100644 --- a/studio/src/App.tsx +++ b/studio/src/App.tsx @@ -1,12 +1,6 @@ import { QueryClientProvider, queryClient } from "@/queries"; import { TooltipProvider } from "@radix-ui/react-tooltip"; -import { type ReactNode, useEffect } from "react"; -import { - Route, - BrowserRouter as Router, - Routes, - useNavigate, -} from "react-router-dom"; +import { Route, BrowserRouter as Router, Routes } from "react-router-dom"; import { Layout } from "./Layout"; import { Toaster } from "./components/ui/toaster"; import { RequestDetailsPage } from "./pages/RequestDetailsPage/RequestDetailsPage"; @@ -20,7 +14,6 @@ export function App() { - } /> } /> } /> - } /> - } - /> + } /> + } /> @@ -45,12 +35,3 @@ export function App() { } export default App; - -function Redirect({ to = "/requestor" }: { to?: string }): ReactNode { - const navigate = useNavigate(); - useEffect(() => { - navigate(to); - }, [to, navigate]); - - return null; -} diff --git a/studio/src/Layout/FloatingSidePanel.tsx b/studio/src/Layout/FloatingSidePanel.tsx index 4e7f0c31b..7d3c252b9 100644 --- a/studio/src/Layout/FloatingSidePanel.tsx +++ b/studio/src/Layout/FloatingSidePanel.tsx @@ -18,9 +18,9 @@ import { useRequestorStore } from "../pages/RequestorPage/store"; import { cn } from "../utils"; export function FloatingSidePanel() { - const { sidePanelOpen, setSidePanelOpen } = useRequestorStore( - "sidePanelOpen", - "setSidePanelOpen", + const { sidePanel, togglePanel } = useRequestorStore( + "sidePanel", + "togglePanel", "path", ); @@ -28,7 +28,10 @@ export function FloatingSidePanel() { return (