From a3c3ce4f5192bda6d049be836e563ef69c998962 Mon Sep 17 00:00:00 2001
From: Quang Tran <16215255+trmquang93@users.noreply.github.com>
Date: Mon, 27 Apr 2026 23:13:19 +0700
Subject: [PATCH] feat: copy screen ID to clipboard from Sidebar and
ScreensPanel
Surfaces screen IDs in the UI so users can grab them for AI agent prompts
without opening the .drawd JSON. The selected-screen Sidebar shows a
monospace ID chip under the screen name; clicking it copies the ID and
flips in place to "Copied!" for COPY_FEEDBACK_MS. The ScreensPanel
right-click menu also gains a "Copy Screen ID" entry as its first item,
so users can copy without selecting first. Both affordances are
read-only-safe (copying is non-mutating).
Mirrors the existing ShareModal clipboard pattern. No new hook/util.
Connections, hotspots, documents, and data-models are deferred per
backlog 5.2 scope decision (MVP-only-screens).
---
src/components/ScreensPanel.jsx | 25 ++++++++++++++++++
src/components/Sidebar.jsx | 46 +++++++++++++++++++++++++++++++--
src/pages/docs/userGuide.md | 10 +++++++
3 files changed, 79 insertions(+), 2 deletions(-)
diff --git a/src/components/ScreensPanel.jsx b/src/components/ScreensPanel.jsx
index 3e1610f..4990f12 100644
--- a/src/components/ScreensPanel.jsx
+++ b/src/components/ScreensPanel.jsx
@@ -465,6 +465,31 @@ export function ScreensPanel({
overflow: "hidden",
}}
>
+
+