收口创作代理聊天面板组件
creation-agent 工作台聊天区外壳改用 PlatformSubpanel 工作台测试断言消息列表接入公共子面板外壳 补充 PlatformUiKit 收口文档和 Hermes 决策记录
This commit is contained in:
@@ -85,6 +85,11 @@ test('creation agent workspace keeps initial chat progress at zero percent', ()
|
||||
'creation-agent-progress-label',
|
||||
);
|
||||
expect(progressbar.className).toContain('platform-progress-track');
|
||||
expect(
|
||||
screen
|
||||
.getByTestId('creation-agent-message-list')
|
||||
.closest('.platform-subpanel')?.className,
|
||||
).toContain('rounded-[1.5rem]');
|
||||
expect(
|
||||
(progressbar.firstElementChild as HTMLElement | null)?.style.width,
|
||||
).toBe('0%');
|
||||
|
||||
@@ -562,7 +562,12 @@ export function CreationAgentWorkspace({
|
||||
|
||||
<CreationAgentOperationBanner operation={activeOperation} />
|
||||
|
||||
<div className="min-h-0 flex-1 overflow-hidden rounded-[1.6rem] border border-[var(--platform-subpanel-border)] bg-[var(--platform-subpanel-fill)]">
|
||||
<PlatformSubpanel
|
||||
as="div"
|
||||
radius="xl"
|
||||
padding="none"
|
||||
className="min-h-0 flex-1 overflow-hidden"
|
||||
>
|
||||
<div className="flex h-full min-h-0 flex-col">
|
||||
<div
|
||||
ref={messageListRef}
|
||||
@@ -704,7 +709,7 @@ export function CreationAgentWorkspace({
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</PlatformSubpanel>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user