From 0188f00a067b5b1fd6d6f222fce485eb47cad713 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 5 May 2026 06:26:48 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Palette:=20Add=20copy=20button?= =?UTF-8?q?=20to=20dashboard=20fallback=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Added a "Copy to Clipboard" button to the LivingDash fallback HTML. - Included CSS for hover and focus-visible states. - Added JavaScript to handle clipboard copying and provide visual success feedback (checkmark icon). - Improved accessibility with ARIA labels and hidden icons. Co-authored-by: jhweb <12529192+jhweb@users.noreply.github.com> --- braindrain/livingdash_sidecar.py | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/braindrain/livingdash_sidecar.py b/braindrain/livingdash_sidecar.py index 0b3fe57..4796ad7 100644 --- a/braindrain/livingdash_sidecar.py +++ b/braindrain/livingdash_sidecar.py @@ -904,6 +904,10 @@ def index(full_path: str): .cmd-label { position: absolute; top: -0.7rem; left: 1rem; background: var(--accent); color: var(--bg); font-size: 0.7rem; font-weight: 800; padding: 0.1rem 0.5rem; border-radius: 0.2rem; text-transform: uppercase; } code { color: #e2e8f0; display: block; white-space: pre-wrap; } .footer { margin-top: 2rem; font-size: 0.8rem; color: #ffffff20; } + .copy-btn { position: absolute; top: 0.75rem; right: 0.75rem; background: transparent; border: 1px solid #ffffff20; color: var(--muted); padding: 0.4rem; border-radius: 0.4rem; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; } + .copy-btn:hover { background: #ffffff10; color: var(--accent); border-color: var(--accent); } + .copy-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } + .copy-btn svg { width: 1.1rem; height: 1.1rem; } @@ -912,12 +916,37 @@ def index(full_path: str):

The dashboard UI build is not found. Run the following to generate it:

Quick Build - cd .ldash/ui + + cd .ldash/ui pnpm install pnpm run build
+ """