收口平台入口恢复提示面板

平台入口恢复和详情读取提示改用 PlatformSubpanel

补充 PlatformUiKit 收口文档和 Hermes 决策记录
This commit is contained in:
2026-06-10 13:01:51 +08:00
parent 2bc76f0558
commit 6841b686d9
3 changed files with 31 additions and 10 deletions

View File

@@ -1375,7 +1375,12 @@ function CreationResultRecoveryPanel({
}) {
return (
<div className="flex h-full min-h-0 items-center justify-center px-3 py-6">
<div className="platform-subpanel w-full max-w-sm rounded-[1.5rem] p-5 text-center">
<PlatformSubpanel
as="div"
radius="xl"
padding="none"
className="w-full max-w-sm p-5 text-center"
>
<div className="text-base font-black text-[var(--platform-text-strong)]">
{title}
</div>
@@ -1389,7 +1394,7 @@ function CreationResultRecoveryPanel({
>
{actionLabel}
</PlatformActionButton>
</div>
</PlatformSubpanel>
</div>
);
}
@@ -14629,9 +14634,14 @@ export function PlatformEntryFlowShellImpl({
exit={{ opacity: 0, y: -12 }}
className="flex h-full min-h-0 items-center justify-center"
>
<div className="platform-subpanel rounded-2xl px-5 py-4 text-sm text-[var(--platform-text-base)]">
<PlatformSubpanel
as="div"
radius="sm"
padding="none"
className="px-5 py-4 text-sm text-[var(--platform-text-base)]"
>
{publicWorkDetailError || '正在读取作品详情...'}
</div>
</PlatformSubpanel>
</motion.div>
)}
@@ -14685,9 +14695,14 @@ export function PlatformEntryFlowShellImpl({
>
{detailNavigation.isDetailLoading || !selectedDetailEntry ? (
<div className="flex h-full items-center justify-center">
<div className="platform-subpanel rounded-2xl px-5 py-4 text-sm text-[var(--platform-text-base)]">
<PlatformSubpanel
as="div"
radius="sm"
padding="none"
className="px-5 py-4 text-sm text-[var(--platform-text-base)]"
>
{detailNavigation.detailError || '正在读取作品详情...'}
</div>
</PlatformSubpanel>
</div>
) : selectedDetailEntry.visibility !== 'draft' ? (
<PlatformWorkDetailView
@@ -14826,12 +14841,17 @@ export function PlatformEntryFlowShellImpl({
/>
) : (
<div className="flex h-full items-center justify-center">
<div className="platform-subpanel rounded-2xl px-5 py-4 text-sm text-[var(--platform-text-base)]">
<PlatformSubpanel
as="div"
radius="sm"
padding="none"
className="px-5 py-4 text-sm text-[var(--platform-text-base)]"
>
{sessionController.isLoadingAgentSession
? '正在准备 Agent 共创工作区...'
: sessionController.agentWorkspaceRestoreError ||
'正在恢复创作工作区...'}
</div>
</PlatformSubpanel>
</div>
)}
</UnifiedCreationPage>