From cc015ba955db36e839b412e917db3799677a6a33 Mon Sep 17 00:00:00 2001 From: b7216309-jpg Date: Fri, 20 Mar 2026 13:49:30 +0100 Subject: [PATCH] feat: add playground launcher popover in editor menu bar Add a Play button to the editor menu bar that opens a popover with quick links to the React and Vanilla playground dev servers. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../components/editor-shell/EditorMenuBar.tsx | 41 ++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/apps/editor/src/components/editor-shell/EditorMenuBar.tsx b/apps/editor/src/components/editor-shell/EditorMenuBar.tsx index 2ccd51e8..95828703 100644 --- a/apps/editor/src/components/editor-shell/EditorMenuBar.tsx +++ b/apps/editor/src/components/editor-shell/EditorMenuBar.tsx @@ -1,4 +1,4 @@ -import { Bot, Gauge } from "lucide-react"; +import { Bot, Gauge, Play } from "lucide-react"; import type { ReactNode } from "react"; import { Button } from "@/components/ui/button"; import { @@ -9,6 +9,11 @@ import { MenubarShortcut, MenubarTrigger } from "@/components/ui/menubar"; +import { + Popover, + PopoverContent, + PopoverTrigger +} from "@/components/ui/popover"; import { TridentIcon } from "@/components/editor-shell/icons"; import type { ViewportQuality } from "@/state/ui-store"; @@ -165,6 +170,40 @@ export function EditorMenuBar({ {viewportQuality.toFixed(2)} + + + + + } + /> + + + + +