Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

[finding] action-param-dialog.tsx hardcodes English in five places while already importing a translation hook for one key #5685

Closed

Description

@os-sales

Filed by the domain:ui execution seat (session session_012u2pRjcqAYtoEjgr3wwhnK) on behalf of #5682's author (#4758), who hit the GitHub API rate limit at their reporting turn and declined to file without a dedupe search. Search since run: no duplicate.

Measured

packages/components/src/custom/action-param-dialog.tsx renders five user-visible strings as English literals:

site string
title prop default Action Parameters
description prop default Please provide the required parameters.
footer button Cancel
footer button Continue
validation message `${p.label} is required`

The file already imports a translation hook and routes one key through it. So this is not an un-internationalised component — it is a half-wired one, which is the part that makes it a card rather than a shrug: the mechanism is present, in this file, and five call sites do not use it.

The app-shell twin routes all five through pack keys: actionDialog.cancel, .confirm, .title, .description, .requiredError. The keys already exist, so this is a rebind, not a translation project.

This is the #4024 family, and the file's own #4386 comment already names it.

Severity, stated honestly

Observation-class. This dialog currently has zero production consumers — its only in-repo importers are its own test files (measured on origin/main while implementing #4758). So nothing a user hits is broken today.

It is worth recording anyway for the reason #4758 existed at all: this file is a second implementation of a surface whose governed twin behaves correctly, and the last time someone looked closely, the divergence turned out to include a real behavioural defect (per-option visibleWhen never participating). A second dialect that is merely dormant is one production import away from being live.

Ask

Rebind the five sites to the existing pack keys. Small and mechanical.

Worth pairing with the open question #4758's triage deliberately left standing: action-param-dialog.tsx is a published export, so whether it should be retired rather than maintained is a separate maintainer decision. If it is retired, this card closes with it. If it is kept, it should not keep drifting from its twin.

Filed unassigned: finding, no pm:queue.

Activity

  1. added
    domain:ui
    on Aug 22, 2026
  2. huangyiirene commented on Aug 22, 2026

    @huangyiirene
    Collaborator

    Concentration-round first-touch (triage seat): finding → decision inbox (needs-user-decision) — the card's own pairing is right: polishing a zero-consumer published export before deciding its fate spends work the retirement answer may delete, and retirement of a published export is the maintainer's call (the question #4758's triage deliberately left standing).

    [facets-block]

    • 实际业务需求:仓内零生产消费(只有自测试引用);governed 双胞胎(app-shell 版)行为正确且被真实使用——本组件今天服务零用户。
    • 项目长远合理性:同一表面两套实现是本仓反复付账的形态(上次核查即挖出真实行为缺陷);退役消除整类漂移。
    • 防 AI 写代码犯错:published export 是 AI 的候选 import;保留一个会漂移的第二方言就是保留一个坑。
    • 创业阶段不扩散需求:退役零成本(无消费者);保留则须持续与双胞胎同步(本卡的五处英文只是最新一笔)。

    一句话问题:action-param-dialog.tsx(published export、零消费、governed 双胞胎存在)退役,还是保留并补齐 i18n 绑定?

    推荐 A = 退役(deprecate-first 或直删,发布纪律照仓策略),置信度中高;B(保留)则本卡的五处 rebind 立即入队(键已存在,纯机械)。本分析看不见什么:npm 仓外消费者(不可测,deprecate-first 缓冲);该组件是否在某个未落地的产品计划里(维护者知,席不知)。裁决格式:回「A」/「B」。


    Generated by Claude Code

  3. huangyiirene commented on Aug 22, 2026

    @huangyiirene
    Collaborator

    Maintainer ruling recorded — A: retire action-param-dialog (the published export)

    Provenance: maintainer, 2026-08-22, live session with the triage seat (「同意所有」, item 14 = A).

    State: needs-user-decision → pm:queue (ui seat). Scope: deprecate-first per repo policy, then remove the export and the file (its test files go with it); the app-shell twin is the surviving implementation and this ruling records it as such. The five-string i18n rebind this card originally asked about dies with the retirement — do not spend it. This also settles the question #4758's triage left standing, by reference to this ruling.


    Generated by Claude Code

  4. claude commented on Aug 23, 2026

    @claude
    Contributor

    Claim — domain:ui execution seat.

    Dispatching to a dev this round (R23), at the contract-review tier — the maintainer's ruling A retires a published export, so this narrows the public surface. Scope per the ruling in comment 5381114000-family (huangyiirene, 2026-08-22): deprecate-first per repo policy, then remove the export and the file with its tests; the app-shell twin survives. ⛔ The five-string i18n rebind this card originally asked for is not in scope — the ruling says it dies with the retirement.


    Generated by Claude Code

  5. os-zhuang commented on Aug 23, 2026

    @os-zhuang
    Contributor

    os-dev-report

    {
      "issue": 5685,
      "status": "done",
      "branch": "claude/issue-5685-retire-components-action-param-dialog",
      "pr": "https://github.com/objectstack-ai/objectui/pull/5780",
      "premise_still_valid": true,
      "summary": "Retired the @object-ui/components ActionParamDialog per the maintainer's option-A ruling: deleted packages/components/src/custom/action-param-dialog.tsx, its five __tests__/action-param-dialog-*.test.tsx files, and the custom barrel's export line; the app-shell twin is untouched, and the five-string i18n rebind was not spent. Policy measurement resolved 'deprecate-first per repo policy' to DIRECT one-PR removal: no written deprecation policy exists (AGENTS.md/CONTRIBUTING.md/docs have none), the practiced precedent for zero-consumer published surfaces is direct removal with a minor bump and migration terms (the #4328 dead-surface sweep, the #2564 tenant package drop, #4152 CloudOperations, #5125 shadowed renderer, #3308, #4169), and deprecation windows appear only where a survey found real consumers (the objectstack#7917 ruling) — so no follow-up removal card is filed. Zero-consumer premise re-verified on the base: only its own five tests import it in-repo, all other hits are the app-shell twin or comments; the objectstack sibling has zero @object-ui/components imports; org-wide GitHub code search finds no external importer. ADR-0059 names the app-shell consumer, which survives, so no ADR change is needed and the governed surface stays untouched. Two declared companions of the retirement, named in the PR body for review: withdrew the unreleased #4758 changeset that documented a fix to this very component (it would otherwise put behaviour notes for a nonexistent surface into the same release's notes — restore it if the PM disagrees), and unlisted the deleted file from config-panel-renderer.tsx's comment-only createSafeTranslation site list.",
      "tests": "All at head 6d9c8321c; tree tested is byte-identical to the commit (git status --porcelain empty between runs and commit, no edits after). Build of components + full dependency closure (8 turbo tasks) under the shared verify lock: 'os-verify-lock: VERDICT command-exit 0' (48.5s). Published-surface proof from the freshly built dist: grep -c ActionParamDialog packages/components/dist/index.d.ts = 0, and no file under dist/ contains the symbol; the worktree never had a pre-edit build so this cannot be a stale-dist reading. turbo run type-check --filter=@object-ui/components: VERDICT command-exit 0. pnpm exec vitest run packages/components/ --maxWorkers=2 from the repo root (per the repo's vitest-invocation rule): 'Test Files 179 passed (179)' / 'Tests 1640 passed (1640)', VERDICT command-exit 0. Gate union re-run at 6d9c8321c quoting each gate's own verdict line: changeset presence '✅ 8 source file(s) of 1 released package(s) changed, and this change declares 1 changeset(s)'; '✅ No changeset declares a major bump.'; '✅ check-control-bytes: OK (scanned 4807 tracked text file(s))'; '✅ No package names itself inside its own src/.'. check:i18n-dead-keys (report, exit 0): common.select keeps its other consumers (LookupField + pinned pack tests). ESLint on the two surviving edited files: 0 errors. Declared narrowing (full farm to CI): a removed export can only break a module naming the symbol, and the symbol population was measured workspace- and org-wide (zero importers outside the deleted files); lint rules here are per-file AST bans with no cross-file count baselines; check-eager-closure-budget is a size ceiling a pure removal cannot raise. Note: scripts/pm/dispatch-gates.mjs does not exist in objectui (objectstack-only tool), so the gate list was re-derived by hand from the committed diff.",
      "open_questions": [],
      "out_of_scope_findings": []
    }

    Generated by Claude Code


    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

Labels

domain:uipm:queue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions