feat(source-control): edge-anchored sidebar toggle, branches header cleanup, orange current-branch accents (#349)

* feat(source-control): edge-anchored sidebar toggle, branches header cleanup, orange current-branch accents

* feat(settings): sidebar navigation with per-tab two-column layouts and mobile menu landing

* fix(ui): re-measure prompt overlay after edit remount and anchor mobile stop button above input
This commit is contained in:
Chris Scott authored and GitHub committed 2026-09-09 10:57:35 -04:00
1 parent 47d57df628
commit 16f9f9c2ee
28 files changed
+1777 -918

No files matched your search

@@ -218,4 +218,22 @@ describe('OpenCodeConfigManager', () => {
resolveRefresh()
await waitFor(() => expect(screen.queryByText('Edit Config: default')).not.toBeInTheDocument())
})
it('renders host import collapsed after configurations until expanded', async () => {
const user = userEvent.setup()
renderWithQuery(<OpenCodeConfigManager />)
const importToggle = await screen.findByRole('button', { name: /Existing OpenCode Host Import/i })
expect(importToggle).toHaveAttribute('aria-expanded', 'false')
const importContent = document.getElementById(importToggle.getAttribute('aria-controls') ?? '')
expect(importContent).toHaveClass('hidden')
const configsTitle = screen.getByText('OpenCode Configurations')
expect(configsTitle.compareDocumentPosition(importToggle) & Node.DOCUMENT_POSITION_FOLLOWING).toBeTruthy()
await user.click(importToggle)
expect(importToggle).toHaveAttribute('aria-expanded', 'true')
expect(importContent).toHaveClass('block')
expect(await screen.findByRole('button', { name: /Import From Host/i })).toBeInTheDocument()
})
})