Skip to content

action:menu / action:group / action:icon render a non-string label raw (action:menu throws on a locale map) #37266

Backlog

Description

@objectstack-fleet

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Found by the seat L1 on PR #37262 (#36717), comment 7157997155, Acceptance note. This is the same family as #36717: #37262 guards action:button's label reads through renderableLabel, but its three sibling renderers are outside that card's surface.

维护者速读

  • 问题: 按钮的名称如果写成多语言对象(比如 { en: 'Approve', zh: '批准' }),菜单、按钮组、图标按钮三种动作控件会直接显示 [object Object] 或空白。菜单控件遇到这种写法会整块崩溃。
  • 影响: 应用作者或 AI 写出这种名称时,用户看到的是乱码或报错,而不是按钮名。
  • 改法: 沿用 fix(components): action:button renders no text for a non-string label instead of crashing the page #37262 给普通按钮加的同一层显示保护,不新增写法、不改规格。每个控件补一个测试。

What (read at origin/main)

  • ui/packages/components/src/renderers/action/action-group.tsx: 187 {action.label}, 314 and 451 schema.label.
  • ui/packages/components/src/renderers/action/action-icon.tsx: 112, 175, 301, 314 (schema.label?.charAt(0), which throws on an object), 324, 331 and 337.
  • ui/packages/components/src/renderers/action/action-menu.tsx: its label reads. On a locale map it throws (L1 7157997155).

Re-check: git grep -n "schema.label\|action.label" origin/main -- ui/packages/components/src/renderers/action/

Done when

Notes

Activity

  1. added
    bug
    priority:p2
    pm:blocked
    domain:ui
    on Nov 25, 2026
  2. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    First touch 2026-11-25T09:21Z. Confirmed as filed: area:ux · domain:ui · Bug · p2 · S, and pm:blocked on #36717 (PR #37262). It inherits ruling A on #36717 (a render guard only). It goes to seat 4 zone a4-U on unlock. Line form below, so the unlock scan reads it.

    Blocked-by: #36717

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:uxbugdomain:uipm:blockedpriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions