拆分规则阻断与搜索未命中状态弹窗

CustomWorldEntityCatalog 改用共享状态弹窗承接 minimum-playable 提示
PlatformEntryFlowShellImpl 将公开编号搜索未命中分支改用共享状态弹窗
保留命中用户摘要弹层布局并补充相关测试与文档记录
This commit is contained in:
2026-06-10 21:32:00 +08:00
parent a076faf652
commit a33914aa5a
5 changed files with 63 additions and 35 deletions

View File

@@ -17079,7 +17079,32 @@ export function PlatformEntryFlowShellImpl({
{pendingDeleteCreationWork?.detail}
</UnifiedConfirmDialog>
<AnimatePresence>
{searchedPublicUser || publicSearchError ? (
{publicSearchError ? (
<motion.div
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
>
<PlatformStatusDialog
status="error"
title="未找到结果"
description="公开编号搜索"
onClose={closePublicSearchResult}
showHeader
showCloseButton
closeLabel="关闭搜索结果"
overlayClassName={`platform-theme ${platformThemeClass} !items-center bg-black/45 !p-4`}
panelClassName="platform-remap-surface rounded-[1.6rem]"
action={{
label: '知道了',
onClick: closePublicSearchResult,
surface: 'platform',
}}
>
{publicSearchError}
</PlatformStatusDialog>
</motion.div>
) : searchedPublicUser ? (
<motion.div
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
@@ -17087,7 +17112,7 @@ export function PlatformEntryFlowShellImpl({
>
<UnifiedModal
open
title={publicSearchError ? '未找到结果' : '命中用户'}
title="命中用户"
description="公开编号搜索"
onClose={closePublicSearchResult}
closeOnBackdrop={false}
@@ -17097,26 +17122,20 @@ export function PlatformEntryFlowShellImpl({
overlayClassName={`platform-theme ${platformThemeClass} !items-center bg-black/45 !p-4`}
panelClassName="platform-remap-surface rounded-[1.6rem]"
>
{publicSearchError ? (
<PlatformStatusMessage tone="neutral" surface="platform" size="md">
{publicSearchError}
</PlatformStatusMessage>
) : searchedPublicUser ? (
<PlatformSubpanel
as="section"
surface="flat"
radius="sm"
padding="md"
title={searchedPublicUser.displayName}
titleVariant="strong"
bodyClassName="mt-3"
>
<PlatformFieldLabel></PlatformFieldLabel>
<div className="mt-1 text-sm font-semibold text-[var(--platform-text-base)]">
{searchedPublicUser.publicUserCode}
</div>
</PlatformSubpanel>
) : null}
<PlatformSubpanel
as="section"
surface="flat"
radius="sm"
padding="md"
title={searchedPublicUser.displayName}
titleVariant="strong"
bodyClassName="mt-3"
>
<PlatformFieldLabel></PlatformFieldLabel>
<div className="mt-1 text-sm font-semibold text-[var(--platform-text-base)]">
{searchedPublicUser.publicUserCode}
</div>
</PlatformSubpanel>
</UnifiedModal>
</motion.div>
) : null}