fix: restore supervision feedback sidebar layout

Replace unstyled full-width pin and refresh controls with shared icon buttons in the feedback header. Show conversation and task titles instead of raw IDs, with responsive spacing and keyboard focus coverage.

Release note: 修复任务中心监督反馈按钮样式和布局,显示会话或任务名称,并改善窄侧栏下的阅读与操作体验。
This commit is contained in:
mesalogo
2026-09-23 21:52:36 +08:00
parent bf8ff7f78e
commit b16fc900bb
7 changed files with 153 additions and 17 deletions
+11 -2
View File
@@ -1,6 +1,7 @@
// Simulated visual fixture only. No preload, user database, or model is used.
import { createRoot } from 'react-dom/client'
import { HeartbeatCenter } from '../../src/renderer/src/HeartbeatCenter'
import { SupervisionCard } from '../../src/renderer/src/RightAssistantSidebar'
import { PageShell } from '../../src/renderer/src/WorkspacePrimitives'
import { UiLocaleProvider } from '../../src/renderer/src/i18n/UiLocaleProvider'
import type { SupervisionGraphView } from '../../src/shared/supervision-contracts'
@@ -202,6 +203,7 @@ createRoot(document.getElementById('root')!).render(
color: 'var(--text-secondary)',
display: 'flex',
flexWrap: 'wrap',
overflowWrap: 'anywhere',
gap: 'var(--space-3)'
}}
>
@@ -212,7 +214,14 @@ createRoot(document.getElementById('root')!).render(
</a>
))}
</div>
<PageShell variant="supervisor">
{params.has('sidebar') ? <div className="assistant-sidebar__section task-center">
<SupervisionCard
target={{ type: 'conversation', conversationId: 'simulated-conversation-uuid' }}
conversationTitle={'模拟会话:核对项目交付清单与阶段回顾'.repeat(3)}
pinned
onTogglePinned={() => {}}
/>
</div> : <PageShell variant="supervisor">
<HeartbeatCenter
configs={[]}
runs={[]}
@@ -231,7 +240,7 @@ createRoot(document.getElementById('root')!).render(
onUseFollowUpTask={() => {}}
onRetryLoad={noop}
/>
</PageShell>
</PageShell>}
</div>
</UiLocaleProvider>
)