summaryrefslogtreecommitdiffhomepage
path: root/src/app/App.svelte
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-06-22 16:09:56 +0900
committerAdam Malczewski <[email protected]>2026-06-22 16:09:56 +0900
commita112715908ac9dba05148ca239531b5a1e878e97 (patch)
tree5a1b1776ffb9ef1facecb0f3fd4899cbe9d06af8 /src/app/App.svelte
parent56c6ed01f12d94439065258f8d0c3a46d4efd58d (diff)
downloaddispatch-web-a112715908ac9dba05148ca239531b5a1e878e97.tar.gz
dispatch-web-a112715908ac9dba05148ca239531b5a1e878e97.zip
feat: double-click tab to rename (PUT /conversations/:id/title)
Double-click a tab's title to enter inline edit mode. Enter or click away (blur) saves; Escape cancels. The rename is optimistic — the local tab updates immediately and PUT /title fires in the background. 683 tests green.
Diffstat (limited to 'src/app/App.svelte')
-rw-r--r--src/app/App.svelte1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/app/App.svelte b/src/app/App.svelte
index ae09bd5..9225cc7 100644
--- a/src/app/App.svelte
+++ b/src/app/App.svelte
@@ -309,6 +309,7 @@
onSelect={(id) => store.selectTab(id)}
onClose={(id) => store.closeTab(id)}
onNewDraft={() => store.newDraft()}
+ onRename={(id, title) => store.renameTab(id, title)}
/>
<span
class="shrink-0 select-none px-1 font-mono text-[10px] leading-none text-base-content/30"