diff options
| author | Adam Malczewski <[email protected]> | 2026-06-04 21:21:20 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-04 21:21:20 +0900 |
| commit | 394f1ed37ce860da6fdc385769bf29f9737105cd (patch) | |
| tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /packages/frontend/src/lib/components/DebugPanel.svelte | |
| parent | 81a9cdbadf8c9d940d4fe9a2a0de607dee1f5f1a (diff) | |
| download | dispatch-394f1ed37ce860da6fdc385769bf29f9737105cd.tar.gz dispatch-394f1ed37ce860da6fdc385769bf29f9737105cd.zip | |
chore: genesis — remove all files to rebuild from scratch (arch rewrite)
Diffstat (limited to 'packages/frontend/src/lib/components/DebugPanel.svelte')
| -rw-r--r-- | packages/frontend/src/lib/components/DebugPanel.svelte | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/packages/frontend/src/lib/components/DebugPanel.svelte b/packages/frontend/src/lib/components/DebugPanel.svelte deleted file mode 100644 index aea1ccb..0000000 --- a/packages/frontend/src/lib/components/DebugPanel.svelte +++ /dev/null @@ -1,35 +0,0 @@ -<script lang="ts"> -import { tabStore } from "../tabs.svelte.js"; - -let copyLabel = $state("Copy conversation"); - -function resetCopyLabel(): void { - copyLabel = "Copy conversation"; -} - -async function handleCopy(): Promise<void> { - const text = tabStore.copyConversation(); - try { - await navigator.clipboard.writeText(text); - copyLabel = "Copied"; - } catch { - copyLabel = "Failed"; - } - setTimeout(resetCopyLabel, 1500); -} -</script> - -<div class="flex flex-col gap-3"> - <div class="text-xs font-semibold text-base-content/50 uppercase tracking-wide">Debug</div> - - <div class="flex flex-col gap-2"> - <p class="text-xs text-base-content/70">Conversation</p> - <p class="text-xs text-base-content/40"> - Copy a structured plain-text dump of the active tab's conversation - (chunk shape included) for bug reports. - </p> - <button type="button" class="btn btn-sm btn-primary w-full" onclick={handleCopy}> - {copyLabel} - </button> - </div> -</div> |
