收口智能创作首页空态

将智能创作首页抽屉空态迁移到 PlatformEmptyState

将智能创作首页错误提示迁移到 PlatformStatusMessage

删除智能创作首页本地空态和错误提示 chrome

新增 CreativeAgentHome 公共组件断言

更新 PlatformUiKit 文档和 Hermes 决策记录
This commit is contained in:
2026-06-10 14:26:41 +08:00
parent 9b36903021
commit 694b2fa209
5 changed files with 66 additions and 21 deletions

View File

@@ -14,7 +14,9 @@ import {
import { useMemo, useState } from 'react';
import type { CreativeAgentInputPart } from '../../../packages/shared/src/contracts/creativeAgent';
import { PlatformEmptyState } from '../common/PlatformEmptyState';
import { PlatformIconButton } from '../common/PlatformIconButton';
import { PlatformStatusMessage } from '../common/PlatformStatusMessage';
import type { CreationWorkShelfItem } from '../custom-world-home/creationWorkShelf';
import { RpgEntryBrandLogo } from '../rpg-entry/RpgEntryBrandLogo';
import { CreativeAgentInputComposer } from './CreativeAgentInputComposer';
@@ -252,7 +254,9 @@ function CreativeAgentDrawer({
</section>
))
) : (
<div className="creative-agent-drawer__empty"></div>
<PlatformEmptyState surface="subpanel" size="inline">
</PlatformEmptyState>
)}
</div>
@@ -366,7 +370,14 @@ export function CreativeAgentHome({
</div>
{error ? (
<div className="creative-agent-home__error">{error}</div>
<PlatformStatusMessage
tone="error"
surface="platform"
size="md"
className="creative-agent-home__error font-semibold"
>
{error}
</PlatformStatusMessage>
) : null}
</main>