收口智能创作过程空态

creative-agent 过程面板空态改用 PlatformEmptyState 承接共享空态外观
同步更新工作台空态测试断言与收口计划文档
补充 Hermes 验证记录保持后续组件收口路径一致
This commit is contained in:
2026-06-10 15:36:44 +08:00
parent 53abf94635
commit ebf181d53b
4 changed files with 12 additions and 15 deletions

View File

@@ -1,11 +1,11 @@
import {
CheckCircle2,
CircleDot,
Clock3,
Loader2,
TriangleAlert,
} from 'lucide-react';
import { PlatformEmptyState } from '../common/PlatformEmptyState';
import { PlatformIconBadge } from '../common/PlatformIconBadge';
import { PlatformPillBadge } from '../common/PlatformPillBadge';
import { PlatformSubpanel } from '../common/PlatformSubpanel';
@@ -45,18 +45,13 @@ export function CreativeAgentProcessPanel({
if (visibleItems.length === 0) {
return (
<PlatformSubpanel
title="过程"
titleClassName="tracking-[0.16em]"
actions={
<Clock3 className="h-4 w-4 text-[var(--platform-text-soft)]" />
}
radius="lg"
<PlatformEmptyState
surface="subpanel"
size="compact"
className="rounded-[1.35rem] font-semibold"
>
<div className="mt-3 text-sm font-semibold text-[var(--platform-text-base)]">
</div>
</PlatformSubpanel>
</PlatformEmptyState>
);
}

View File

@@ -288,7 +288,7 @@ test('switching creative session clears pending template config dialog', () => {
expect(screen.queryByRole('dialog', { name: '确认拼图模板' })).toBeNull();
});
test('creative agent empty workspace uses shared empty state chrome', () => {
test('creative agent empty workspace uses shared empty states', () => {
render(
<CreativeAgentWorkspace
session={createSession({
@@ -310,11 +310,11 @@ test('creative agent empty workspace uses shared empty state chrome', () => {
const emptyMessagePanel = screen
.getByText('发一句想法,或加一张参考图。')
.closest('div');
const processPanel = screen.getByText('等待新的创作输入').closest('section');
const processPanel = screen.getByText('等待新的创作输入').closest('div');
expect(emptyMessagePanel?.className).toContain('platform-empty-state');
expect(emptyMessagePanel?.className).toContain('rounded-[1.35rem]');
expect(processPanel?.className).toContain('platform-subpanel');
expect(processPanel?.className).toContain('platform-empty-state');
expect(processPanel?.className).toContain('rounded-[1.35rem]');
});