diff options
| author | Adam Malczewski <[email protected]> | 2026-06-27 17:23:40 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-27 17:23:40 +0900 |
| commit | 5bd0b63a7f0cafd53fbd4ba287f8e2cf2b59a4a1 (patch) | |
| tree | ba0a6fb8ffa84c3fc86c250f8309018c79f74682 /src/app/App.svelte | |
| parent | e1f6986c32767fea445eedffece488f10a73b3d2 (diff) | |
| download | dispatch-web-5bd0b63a7f0cafd53fbd4ba287f8e2cf2b59a4a1.tar.gz dispatch-web-5bd0b63a7f0cafd53fbd4ba287f8e2cf2b59a4a1.zip | |
feat(sidebar-tabs): add dashboard home button + same-tab workspace open
Diffstat (limited to 'src/app/App.svelte')
| -rw-r--r-- | src/app/App.svelte | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/src/app/App.svelte b/src/app/App.svelte index f8e6e5f..5822725 100644 --- a/src/app/App.svelte +++ b/src/app/App.svelte @@ -82,7 +82,7 @@ import { createLocalStore } from "../adapters/local-storage"; import { untrack } from "svelte"; - let { store }: { store: AppStore } = $props(); + let { store, onNavigate }: { store: AppStore; onNavigate: (path: string) => void } = $props(); // The backend's conversation-scoped cache-warming surface. Referenced by id at // the composition root (sanctioned discovery-by-id) to give it a dedicated view @@ -445,6 +445,32 @@ > {topBarTitle} </span> + <a + href="/" + class="btn btn-ghost btn-sm shrink-0 px-2" + aria-label="Back to dashboard" + title="Back to dashboard" + onclick={(e) => { + e.preventDefault(); + onNavigate("/"); + }} + > + <svg + xmlns="http://www.w3.org/2000/svg" + fill="none" + viewBox="0 0 24 24" + stroke-width="2" + stroke="currentColor" + class="size-4" + aria-hidden="true" + > + <path + stroke-linecap="round" + stroke-linejoin="round" + d="m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.5a.75.75 0 0 0 .75.75h4.5a.75.75 0 0 0 .75-.75V15a.75.75 0 0 1 .75-.75h3a.75.75 0 0 1 .75.75v5.25a.75.75 0 0 0 .75.75h4.5a.75.75 0 0 0 .75-.75V9.75M8.25 21h8.25" + /> + </svg> + </a> <span class="shrink-0 select-none px-1 font-mono text-[10px] leading-none text-base-content/30" title="Build version (git short hash)" |
