From 84ded19f11d0c27b56c4816f7f92745f03b5cf40 Mon Sep 17 00:00:00 2001 From: kdletters Date: Thu, 11 Jun 2026 02:39:49 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=A7=E7=BB=AD=E6=94=B6=E5=8F=A3NPC?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=E4=B8=8E=E8=A7=92=E8=89=B2=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E7=A9=BA=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 统一 NPC 弹窗底部动作按钮与交易详情空态到共享组件 统一角色构筑详情空明细到 PlatformEmptyState 补充 PlatformUiKit 收口计划、共享决策记录与对应测试护栏 --- .hermes/shared-memory/decision-log.md | 1 + ...】PlatformUiKit弹窗组件收口计划-2026-06-08.md | 1 + src/components/CharacterInfoShared.test.tsx | 22 ++++ src/components/CharacterInfoShared.tsx | 12 +-- src/components/NpcModals.test.tsx | 43 ++++++++ src/components/NpcModals.tsx | 101 ++++++++---------- 6 files changed, 116 insertions(+), 64 deletions(-) diff --git a/.hermes/shared-memory/decision-log.md b/.hermes/shared-memory/decision-log.md index 87c8347e..c885295e 100644 --- a/.hermes/shared-memory/decision-log.md +++ b/.hermes/shared-memory/decision-log.md @@ -2081,6 +2081,7 @@ - 决策:`CustomWorldNpcVisualEditor.tsx` 的本地 `ActionButton` 和 `SkillEffectPreview.tsx` 的“重新预览”按钮也继续并入这条暗色按钮收口线,统一委托 `PlatformActionButton surface="editorDark"`;局部包装层只保留 `stopPropagation`、图标排布、`tone` 映射和极少量视觉微调。后续暗色编辑器里的局部动作按钮若只是普通 CTA,不再新增原生 ` - + @@ -560,17 +560,14 @@ export function NpcModals({ gameState, npcUi }: NpcModalsProps) { )}
- +
@@ -669,29 +666,23 @@ export function NpcModals({ gameState, npcUi }: NpcModalsProps) {
- - +
@@ -773,29 +764,23 @@ export function NpcModals({ gameState, npcUi }: NpcModalsProps) {
- - +