This commit is contained in:
2026-08-03 14:06:06 +09:00
parent 107ccd151e
commit 99cfef1004
37 changed files with 3273 additions and 356 deletions
+7 -7
View File
@@ -33,7 +33,7 @@ export default function Sidebar({
runningSessions?: Array<{ id: string; title: string; startedAt?: string | null; endsAt?: string | null; dotClassName?: string }>
canReleaseControl?: boolean
onOpenSession?: (sessionId?: string) => void
onDisconnectSession?: () => void
onDisconnectSession?: (sessionId?: string) => void
onReleaseControl?: () => void
}): React.JSX.Element {
const [sessionPopoverOpen, setSessionPopoverOpen] = useState(false)
@@ -133,7 +133,7 @@ export default function Sidebar({
>
{!collapsed && (
<div className="session-scrollbar grid max-h-[286px] gap-2 overflow-y-auto pr-1">
{visibleRunningSessions.map((session, index) => (
{visibleRunningSessions.map((session) => (
<div key={session.id} className="relative">
<button
type="button"
@@ -152,13 +152,13 @@ export default function Sidebar({
)}
</span>
</button>
{sessionStatus === 'running' && index === 0 && (
{sessionStatus === 'running' && (
<button
type="button"
className="absolute right-2.5 top-1/2 grid h-8 w-8 -translate-y-1/2 shrink-0 cursor-pointer place-items-center rounded-md text-white/55 transition hover:bg-white/[0.08] hover:text-white"
onClick={(event) => {
event.stopPropagation()
onDisconnectSession?.()
onDisconnectSession?.(session.id)
}}
aria-label="세션 연결종료"
title="연결종료"
@@ -183,7 +183,7 @@ export default function Sidebar({
{collapsed && sessionPopoverOpen && (
<div className="absolute bottom-0 left-[62px] z-20 w-[240px] rounded-md border border-white/10 bg-[#111520] py-1.5 shadow-[18px_0_42px_rgba(0,0,0,0.22)]">
<div className="session-scrollbar max-h-[286px] overflow-y-auto pr-1">
{visibleRunningSessions.map((session, index) => (
{visibleRunningSessions.map((session) => (
<div key={session.id} className="relative border-b border-white/10 last:border-b-0">
<button
type="button"
@@ -205,14 +205,14 @@ export default function Sidebar({
)}
</span>
</button>
{sessionStatus === 'running' && index === 0 && (
{sessionStatus === 'running' && (
<button
type="button"
className="absolute right-2.5 top-1/2 grid h-8 w-8 -translate-y-1/2 shrink-0 cursor-pointer place-items-center rounded-md text-white/55 transition hover:bg-white/[0.08] hover:text-white"
onClick={(event) => {
event.stopPropagation()
setSessionPopoverOpen(false)
onDisconnectSession?.()
onDisconnectSession?.(session.id)
}}
aria-label="세션 연결종료"
title="연결종료"