mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
feat(frontend): open session details from the header
Pressing the session title opens a details sheet with server, project, branch and directory and inline rename. Linked-server sessions show a server icon and their branch, child sessions show a parent session pill, a banner marks paused live updates while the stream reconnects, and the header context indicator is removed now that usage lives on the model pill.
This commit is contained in:
1 parent
52162d5c4a
commit
d99fcc268e
20 files changed
+732
-418
No files matched your search
@@ -1,8 +1,9 @@
|
||||
import { useNavigate, useParams, useSearchParams } from 'react-router-dom'
|
||||
import { useQuery } from '@tanstack/react-query'
|
||||
import { FolderGit2, GitBranch, Loader2, Plus, Server } from 'lucide-react'
|
||||
import { getVcsInfo, listProjects } from '@/api/opencode'
|
||||
import { listProjects } from '@/api/opencode'
|
||||
import { useCreateSession } from '@/hooks/useOpenCode'
|
||||
import { useVcsInfo } from '@/hooks/useVcsInfo'
|
||||
import { useOpenCodeServers } from '@/hooks/useOpenCodeServers'
|
||||
import { useSettingsDialog } from '@/hooks/useSettingsDialog'
|
||||
import { useSSE } from '@/hooks/useSSE'
|
||||
@@ -50,12 +51,7 @@ function RemoteProjectContent({ serverId, directory }: { serverId: string; direc
|
||||
retry: false,
|
||||
})
|
||||
|
||||
const vcsQuery = useQuery({
|
||||
queryKey: [...serverScopedKey(['opencode', 'vcs', directory ?? ''], serverId), 'info'],
|
||||
queryFn: () => getVcsInfo(directory ?? '', serverId),
|
||||
enabled: isReady,
|
||||
retry: false,
|
||||
})
|
||||
const vcsQuery = useVcsInfo(directory, serverId, { enabled: isReady })
|
||||
|
||||
useSSE(directory)
|
||||
|
||||
|
||||
Reference in new issue
Block a user