收口智能创作工作台空消息
creative-agent 工作台空消息改用 PlatformEmptyState 承接共享空态外观 更新工作台空消息测试断言与收口计划文档记录 补充 Hermes 验证说明保持后续收口路径一致
This commit is contained in:
@@ -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 platform subpanels', () => {
|
||||
test('creative agent empty workspace uses shared empty state chrome', () => {
|
||||
render(
|
||||
<CreativeAgentWorkspace
|
||||
session={createSession({
|
||||
@@ -312,7 +312,7 @@ test('creative agent empty workspace uses platform subpanels', () => {
|
||||
.closest('div');
|
||||
const processPanel = screen.getByText('等待新的创作输入').closest('section');
|
||||
|
||||
expect(emptyMessagePanel?.className).toContain('platform-subpanel');
|
||||
expect(emptyMessagePanel?.className).toContain('platform-empty-state');
|
||||
expect(emptyMessagePanel?.className).toContain('rounded-[1.35rem]');
|
||||
expect(processPanel?.className).toContain('platform-subpanel');
|
||||
expect(processPanel?.className).toContain('rounded-[1.35rem]');
|
||||
|
||||
@@ -11,6 +11,7 @@ import type {
|
||||
PuzzleCreativeTemplateSelection,
|
||||
} from '../../../packages/shared/src/contracts/puzzleCreativeTemplate';
|
||||
import { PlatformActionButton } from '../common/PlatformActionButton';
|
||||
import { PlatformEmptyState } from '../common/PlatformEmptyState';
|
||||
import { PlatformIconBadge } from '../common/PlatformIconBadge';
|
||||
import { PlatformMediaFrame } from '../common/PlatformMediaFrame';
|
||||
import { PlatformPillBadge } from '../common/PlatformPillBadge';
|
||||
@@ -236,13 +237,13 @@ export function CreativeAgentWorkspace({
|
||||
))}
|
||||
</div>
|
||||
) : (
|
||||
<PlatformSubpanel
|
||||
as="div"
|
||||
radius="lg"
|
||||
className="text-sm font-semibold text-[var(--platform-text-base)]"
|
||||
<PlatformEmptyState
|
||||
surface="subpanel"
|
||||
size="compact"
|
||||
className="rounded-[1.35rem] font-semibold"
|
||||
>
|
||||
发一句想法,或加一张参考图。
|
||||
</PlatformSubpanel>
|
||||
</PlatformEmptyState>
|
||||
)}
|
||||
|
||||
<CreativeAgentProcessPanel
|
||||
|
||||
Reference in New Issue
Block a user