mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +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
@@ -3,7 +3,6 @@ import { useQuery, useQueryClient } from '@tanstack/react-query'
|
||||
import { ArrowLeft, FileText, GitBranch, Loader2, RefreshCw } from 'lucide-react'
|
||||
import {
|
||||
getVcsDiff,
|
||||
getVcsInfo,
|
||||
listVcsStatus,
|
||||
type VcsFileDiff,
|
||||
type VcsFileStatus,
|
||||
@@ -16,6 +15,7 @@ import { cn } from '@/lib/utils'
|
||||
import { serverScopedKey } from '@/lib/serverScope'
|
||||
import { useRefreshOnOpen } from '@/hooks/useRefreshOnOpen'
|
||||
import { useMobile } from '@/hooks/useMobile'
|
||||
import { useVcsInfo } from '@/hooks/useVcsInfo'
|
||||
import { GIT_UI_COLORS } from '@/lib/git-status-styles'
|
||||
import type { GitFileStatus } from '@/types/git'
|
||||
|
||||
@@ -60,11 +60,7 @@ export function RemoteSourceControlContent({
|
||||
[directory, serverId],
|
||||
)
|
||||
|
||||
const infoQuery = useQuery({
|
||||
queryKey: [...vcsKey, 'info'],
|
||||
queryFn: () => getVcsInfo(directory, serverId),
|
||||
retry: false,
|
||||
})
|
||||
const infoQuery = useVcsInfo(directory, serverId)
|
||||
|
||||
const statusQuery = useQuery({
|
||||
queryKey: [...vcsKey, 'status'],
|
||||
|
||||
Reference in new issue
Block a user