fix(app): clarify worktree breadcrumbs

This commit is contained in:
usrnk1
2026-10-20 12:07:58 +02:00
Unverified
parent 4646c07e23
commit 310f50495d
2 changed files with 9 additions and 1 deletions
@@ -153,6 +153,8 @@ test.describe("location", () => {
await openSession(page, workspace)
await expect(trigger(page).locator('[data-slot="session-location-project"]')).toHaveText("Location")
await expect(trigger(page).locator('[data-slot="session-location-worktree"]')).toHaveText("quiet-falcon")
await expect(trigger(page).getByText("/", { exact: true })).toBeVisible()
await expect(trigger(page).locator('svg:has(use[href="#opencode-v2-icon-outline-worktree"])')).toBeVisible()
await trigger(page).click()
const card = page.locator('[data-slot="session-location-card"]')
await expect(card.locator('[data-slot="session-location-path"]')).toHaveText(worktree)
@@ -163,7 +163,13 @@ export function SessionLocation(props: {
<Show when={!props.compact && worktree()}>
{(name) => (
<>
<Icon name="chevron-right" class="-mx-1 shrink-0 text-v2-icon-icon-faint" />
<span
class="shrink-0 ps-1 pe-0.5 text-[11px] font-medium text-v2-text-text-faint"
aria-hidden="true"
>
/
</span>
<Icon name="outline-worktree" class="shrink-0 text-v2-icon-icon-muted" />
<bdi dir="auto" data-slot="session-location-worktree" class="min-w-12 shrink-[1000] truncate">
{name()}
</bdi>