收口单按钮已读状态弹窗
新增 PlatformAcknowledgeStatusDialog 统一承接单按钮已读状态壳层 迁移大鱼结果页与个人中心支付结果复用共享已读状态弹窗 迁移 RPG 编辑器与平台入口提示链路复用共享已读状态弹窗 迁移自定义世界实体目录阻断提示复用共享已读状态弹窗 补充共享组件测试并更新 PlatformUiKit 收口文档与决策记录
This commit is contained in:
@@ -363,10 +363,10 @@ import {
|
||||
} from '../../services/wooden-fish/woodenFishClient';
|
||||
import type { CustomWorldProfile } from '../../types';
|
||||
import { useAuthUi } from '../auth/AuthUiContext';
|
||||
import { PlatformAcknowledgeStatusDialog } from '../common/PlatformAcknowledgeStatusDialog';
|
||||
import { PlatformActionButton } from '../common/PlatformActionButton';
|
||||
import { PlatformDangerConfirmDialog } from '../common/PlatformDangerConfirmDialog';
|
||||
import { PlatformFieldLabel } from '../common/PlatformFieldLabel';
|
||||
import { PlatformStatusDialog } from '../common/PlatformStatusDialog';
|
||||
import { PlatformStatusMessage } from '../common/PlatformStatusMessage';
|
||||
import { PlatformSubpanel } from '../common/PlatformSubpanel';
|
||||
import { PublishShareModal } from '../common/PublishShareModal';
|
||||
@@ -16997,7 +16997,7 @@ export function PlatformEntryFlowShellImpl({
|
||||
}}
|
||||
/>
|
||||
) : null}
|
||||
<PlatformStatusDialog
|
||||
<PlatformAcknowledgeStatusDialog
|
||||
open={Boolean(draftGenerationPointNotice)}
|
||||
status="error"
|
||||
title={draftGenerationPointNotice?.title ?? '泥点提示'}
|
||||
@@ -17013,14 +17013,9 @@ export function PlatformEntryFlowShellImpl({
|
||||
? undefined
|
||||
: 'bg-amber-100/80 text-amber-600'
|
||||
}
|
||||
action={{
|
||||
label: '知道了',
|
||||
onClick: () => setDraftGenerationPointNotice(null),
|
||||
surface: 'platform',
|
||||
}}
|
||||
>
|
||||
{draftGenerationPointNotice?.message}
|
||||
</PlatformStatusDialog>
|
||||
</PlatformAcknowledgeStatusDialog>
|
||||
<PublishShareModal
|
||||
open={Boolean(publishSharePayload)}
|
||||
payload={publishSharePayload}
|
||||
@@ -17038,7 +17033,7 @@ export function PlatformEntryFlowShellImpl({
|
||||
overlayClassName={`platform-theme ${platformThemeClass} !items-center`}
|
||||
panelClassName="platform-remap-surface rounded-[1.5rem]"
|
||||
/>
|
||||
<PlatformStatusDialog
|
||||
<PlatformAcknowledgeStatusDialog
|
||||
open={Boolean(workNotFoundRecoveryDialog)}
|
||||
status="error"
|
||||
title="作品不可用"
|
||||
@@ -17048,14 +17043,9 @@ export function PlatformEntryFlowShellImpl({
|
||||
closeOnBackdrop
|
||||
overlayClassName={`platform-theme ${platformThemeClass} !items-center`}
|
||||
panelClassName="platform-remap-surface rounded-[1.75rem]"
|
||||
action={{
|
||||
label: '知道了',
|
||||
onClick: confirmWorkNotFoundRecovery,
|
||||
surface: 'platform',
|
||||
}}
|
||||
>
|
||||
{workNotFoundRecoveryDialog?.message}
|
||||
</PlatformStatusDialog>
|
||||
</PlatformAcknowledgeStatusDialog>
|
||||
<PlatformDangerConfirmDialog
|
||||
open={Boolean(pendingDeleteCreationWork)}
|
||||
title="删除作品"
|
||||
@@ -17083,7 +17073,7 @@ export function PlatformEntryFlowShellImpl({
|
||||
animate={{ opacity: 1 }}
|
||||
exit={{ opacity: 0 }}
|
||||
>
|
||||
<PlatformStatusDialog
|
||||
<PlatformAcknowledgeStatusDialog
|
||||
status="error"
|
||||
title="未找到结果"
|
||||
description="公开编号搜索"
|
||||
@@ -17093,14 +17083,9 @@ export function PlatformEntryFlowShellImpl({
|
||||
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>
|
||||
</PlatformAcknowledgeStatusDialog>
|
||||
</motion.div>
|
||||
) : searchedPublicUser ? (
|
||||
<motion.div
|
||||
|
||||
Reference in New Issue
Block a user