fix: refresh custom world publish gate diagnostics

This commit is contained in:
2026-04-24 12:42:43 +08:00
parent 5050ce4ff8
commit 49a79aee54
5 changed files with 321 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
import { useMemo, useState } from 'react';
import { useMemo, useState } from 'react';
import type { Character, CustomWorldProfile } from '../../types';
import {
@@ -201,6 +201,23 @@ export function RpgCreationResultView({
{error}
</div>
) : null}
{!error && compactAgentResultMode && previewSourceLabel ? (
<div className="platform-banner platform-banner--info mt-3 rounded-2xl text-sm leading-6">
{previewSourceLabel}
</div>
) : null}
{!error && compactAgentResultMode && publishBlockers.length > 0 ? (
<div className="platform-banner platform-banner--warning mt-3 rounded-2xl text-sm leading-6">
{publishReady
? '当前世界已满足发布门槛。'
: `当前还有 ${publishBlockers.length} 个发布阻断项,请先补齐后再进入世界。`}
{!publishReady ? (
<div className="mt-2 text-xs text-[var(--platform-text-muted)]">
</div>
) : null}
</div>
) : null}
{!error &&
compactAgentResultMode &&
publishBlockers.length <= 0 &&