From 2e740927434575953de3521a02048d2b4f5ef992 Mon Sep 17 00:00:00 2001 From: Suzumiya Date: Sun, 4 Oct 2026 17:58:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E5=B8=83=E7=89=88=E6=9C=AC=E6=96=87?= =?UTF-8?q?=E6=A1=88=E5=8E=BB=E8=AF=B1=E5=AF=BC=EF=BC=9A=E5=8D=A1=E9=9D=A2?= =?UTF-8?q?=E8=A7=92=E6=A0=87=E5=8F=AA=E5=86=99=E6=9C=80=E6=96=B0=EF=BC=8C?= =?UTF-8?q?=E9=9D=A2=E6=9D=BF=E5=86=99=E6=98=8E=E5=8F=91=E5=B8=83=E5=9B=BA?= =?UTF-8?q?=E5=AE=9A=E5=8F=96=E6=9C=80=E6=96=B0=E5=86=85=E9=83=A8=E7=89=88?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - resourceProjectionModel.ts:publicationTag 注释改为「值是内部版本序数(versions.length),也就是发布时会提交的那个标签」,并注明卡面只渲染中性的「最新」角标,不再写「发布标签 v{N}」 - GameDistributionPublishPanel.tsx:「项目版本」说明注释写明发布提交的标签是 versions.length(最新内部版本序数),不读任何「选中版本」;画布上的选中/「当前版本」只影响当前版本素材与运行播放哪一版 - index.tsx / styles.css:版本卡角标由「最新 · 发布标签 v{N}」改为中性的「最新」,并换用卡面既有的中性 pill 样式 - gameDistributionPublishPanel.test.tsx:同步旧的角标/文案断言 --- .../GameDistributionPublishPanel.tsx | 9 ++++++--- apps/ai-game-creator-shell/src/styles.css | 13 +++++++------ .../src/view/project-development/index.tsx | 12 +++++------- .../project-development/resourceProjectionModel.ts | 13 ++++++++----- .../tests/gameDistributionPublishPanel.test.tsx | 2 +- 5 files changed, 27 insertions(+), 22 deletions(-) diff --git a/apps/ai-game-creator-shell/src/components/game-distribution/GameDistributionPublishPanel.tsx b/apps/ai-game-creator-shell/src/components/game-distribution/GameDistributionPublishPanel.tsx index 8f32bb5b0..e8c103f7a 100644 --- a/apps/ai-game-creator-shell/src/components/game-distribution/GameDistributionPublishPanel.tsx +++ b/apps/ai-game-creator-shell/src/components/game-distribution/GameDistributionPublishPanel.tsx @@ -283,14 +283,17 @@ export function GameDistributionPublishPanel({ [manifest], ); /** - * 「项目版本」这一格的说明。标签只有一个来源(`versions[]` 条数),平台线上版本号是 - * 另一套事实:两句都要说清,且不在这里做第二份口径派生。 + * 「项目版本」这一格的说明。 + * + * 口径必须与取数一致:发布提交的标签是 `versions.length`(最新内部版本序数), + * **不读**任何"选中版本";资源画布上的选中/「当前版本」只影响「当前版本素材」与运行用哪版播放。 + * 所以这里直说"发布用最新",并写明暂不能指定版本,不用「发布标签」去暗示用户可以挑卡。 */ const projectVersionHint = useMemo(() => { const internalCount = manifest.versions?.length ?? 0; const label = internalCount > 0 - ? `本次发布标签 = 最新内部版本 v${projectVersion};agent 再改进一次后,下一次发布将是 v${projectVersion + 1}。` + ? `发布将使用最新内部版本 v${projectVersion}(标签 = 内部版本条数,暂不能指定其它版本);agent 再改进一次后,下一次是 v${projectVersion + 1}。` : `这个项目还没有内部版本,本次发布按首版 v${projectVersion}。`; const platform = latestVersionNumber > 0 diff --git a/apps/ai-game-creator-shell/src/styles.css b/apps/ai-game-creator-shell/src/styles.css index f5759223a..e6ae0f8c2 100644 --- a/apps/ai-game-creator-shell/src/styles.css +++ b/apps/ai-game-creator-shell/src/styles.css @@ -8169,15 +8169,16 @@ iframe.preview-frame { } /* - * 最新内部版本卡的发布标签角标。只出现在 `versions[]` 最后一条上:它就是发布面板 - * 「项目版本」取的那一张(标签 = 内部版本序数 = 版本条数),卡面直接写出 `v{N}`。 + * 最新内部版本卡的中性角标。只出现在 `versions[]` 最后一条上:不写「发布标签」, + * 因为发布固定取最新内部版本、不需要用户在卡上挑;选中态另有一套「当前版本素材」口径。 + * 形制沿用卡面既有的中性 pill(与 `.game-resource-card-engine-label` 同族)。 */ -.game-resource-card-version-publication-tag { +.game-resource-card-version-latest-tag { padding: 1px 7px; - border: 1px solid rgb(201 111 68 / 38%); + border: 1px solid rgb(139 91 69 / 28%); border-radius: 999px; - background: rgb(201 111 68 / 14%); - color: #a8492a; + background: rgb(255 255 255 / 72%); + color: #8b5b45; font-size: 9px; font-weight: 700; letter-spacing: 0.02em; diff --git a/apps/ai-game-creator-shell/src/view/project-development/index.tsx b/apps/ai-game-creator-shell/src/view/project-development/index.tsx index 15ce02568..8adbfc0d0 100644 --- a/apps/ai-game-creator-shell/src/view/project-development/index.tsx +++ b/apps/ai-game-creator-shell/src/view/project-development/index.tsx @@ -1291,16 +1291,14 @@ const ResourceCard = memo(function ResourceCard({ ); } if (kind === 'version') { - // 最新内部版本卡带上发布标签角标:它就是发布面板「项目版本」取的那一张, - // 卡面直接写出 `v{N}`,用户不必再靠位置或 `版本 N` 反推。 - const publicationTag = resource.version?.publicationTag; + // 角标只写「最新」:发布固定取最新内部版本,卡面不写「发布标签」; + // 否则用户会以为"挑中哪张卡就发哪张",而选中态只影响「当前版本素材」与运行用哪版播放。 + const isLatestVersion = resource.version?.publicationTag !== undefined; return (