mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 21:04:23 +01:00
fix(navigation): show Assistant sessions in the sidebar and repo switcher (#368)
This commit is contained in:
1 parent
a1b7f58aae
commit
e80016cc22
11 files changed
+69
-26
No files matched your search
@@ -243,7 +243,7 @@ describe('RepoQuickSwitchSheet', () => {
|
||||
})
|
||||
})
|
||||
|
||||
it('does not show assistant as a repo option', async () => {
|
||||
it('shows assistant as the first repo option', async () => {
|
||||
vi.mocked(listRepos).mockResolvedValue([
|
||||
{
|
||||
id: ASSISTANT_REPO_ID,
|
||||
@@ -276,7 +276,8 @@ describe('RepoQuickSwitchSheet', () => {
|
||||
expect(screen.getByText('repo1')).toBeInTheDocument()
|
||||
})
|
||||
|
||||
expect(screen.queryByText('Assistant')).not.toBeInTheDocument()
|
||||
const repoNames = screen.getAllByText(/^(Assistant|repo1)$/).map((node) => node.textContent)
|
||||
expect(repoNames).toEqual(['Assistant', 'repo1'])
|
||||
})
|
||||
|
||||
it('navigates on repo click and closes sheet', async () => {
|
||||
|
||||
Reference in new issue
Block a user