Skip to content

modal target 的失败诊断三处文案不一致 —— console 用户实际看到的两处仍指 type:'script',不指 type:'form' #4767

Description

@yinlianghui

发现于 #3925 的实施(PR #4764),按派发边界回传立单。XS。

事实

PR #4764 让 useActionModal.modalHandler 的拒绝诊断点名 target 并指向 type: 'form' —— 但该消息只在 ActionProvider onModal 路径可达。console 用户实际看到的是另外两处:

  • packages/app-shell/src/hooks/useConsoleActionRuntime.tsx:600
  • packages/app-shell/src/views/RecordDetailView.tsx:883

两处仍是旧文案 names no page or object to open 且只指 type: 'script',从不提 type: 'form' —— 在 object fallback 已退役后,「or object」半句也成了错话。

待做

三处文案统一为 PR #4764 的形态(点名 target + 指向 type:'form');优先提取为一处共享常量/构造器防再漂移。行号以实测为准。

参考

Activity

  1. self-assigned this
    on Aug 16, 2026
  2. yinlianghui commented on Aug 16, 2026

    @yinlianghui
    CollaboratorAuthor

    Claim: 批次 9(座位 repo:objectui,session_01GTRjn8xBqp75dk7kFupVRt,batch:5)
    Branch: claude/issue-4767-modal-diagnostic-unify
    File surface: packages/app-shell/src/hooks/useConsoleActionRuntime.tsx(:600 邻域)、packages/app-shell/src/views/RecordDetailView.tsx(:883 邻域)+ 共享文案落点 + 测试;⛔ 不动 DashboardView(#4766 在飞)、不动 useActionModal 的判定逻辑(只对齐文案,优先提取共享构造器)。


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions