mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-19 00:03:13 +03:00
fix(app): clarify worktree breadcrumbs
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user