Skip to content

Commit cba18d9

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/project-thread-u74sqa
2 parents b011bdf + 7d0b47c commit cba18d9

45 files changed

Lines changed: 800 additions & 104 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
'@objectstack/spec': minor
3+
'@objectstack/lint': patch
4+
'@objectstack/runtime': patch
5+
'@object-ui/fields': patch
6+
---
7+
8+
feat(spec): an action param's `helpText` takes an inline locale map, so an inline action can write its param hint per locale
9+
10+
Clause-②: yes (widening)
11+
Metadata-protocol: added
12+
13+
- **`@objectstack/spec`: `ActionParamSchema.helpText`** accepts an inline locale map (`{ en: 'Why the account is paused', 'zh-CN': '暂停该账户的原因' }`) beside the bare sentence and the `{ dialect: 'template', source }` envelope, the same three forms `description`, `confirmText`, `successMessage` and each `outcomeMessages` entry already take. It reaches every action that carries params: a registered action (`ActionSchema.params`) and a page button's inline `action` (`InlineActionSchema`). A registered action's hint is still translated through the bundle at `objects.<object>._actions.<action>.params.<param>.helpText`; the map is the form for an inline action, which no bundle reaches. Before, a page that wrote its dialog's title, line, option labels and toast as locale maps had to leave the hint out or show it in one language. Every value that parsed before parses to the same thing. A map key that is not a language tag is refused with the slot's own sentence.
14+
- **`@objectstack/lint`:** `os validate`, `compile` and the publish gate judge each entry of a `helpText` map as a sentence, named at `params[N].helpText.<locale>`, the way they judge a `description` map: a blank entry, a `${…}` or single-brace token, a hole over a root the dialog does not bind (`record` only), logic in a hole or an unknown formatter is an error. `os i18n extract` records the map as authored text (its locales count as covered, a locale it omits is reported) and scaffolds no bundle row for it.
15+
- **`@objectstack/runtime`:** the agent-facing tool schema (`summarizeActionParams`, read by the MCP action tools) reads a `helpText` map's source-language entry (`en`, then `default`, then any entry) instead of falling back to the bound field's description.
16+
- **`@object-ui/fields`:** `resolveActionParams` resolves a `helpText` map for the active language with the same order as `label`, so the param dialog draws the viewer's language. A map no longer falls through to the field's help line; an envelope with no `source` still does.
17+
18+
Callers that read `helpText` and may now see a map: the console's `resolveActionParams` (handled here), the runtime's `summarizeActionParams` (handled here), the lint copy door and the i18n walk (handled here), and the server-side `translateAction`, which overlays a bundle sentence when one exists and otherwise passes the authored value through unchanged, as it does for a `description` map.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
docs(skills): objectstack-ui carries the view and action judgment the hosted build agent learned — a view added beside the list, the empty board over a just-added group field, an operation is an action whose body writes, the view kind the request names
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
Card 1 of the cloud#3659 ruling A split, the `objectstack-ui` port (the last of three) — the judgment the schema cannot express and the published skill did not yet state. `rules/list-views.md`: "add a kanban / calendar / gallery / gantt view" is a NEW `listViews` entry whose key encodes its kind, the default `list` untouched; a view's kind changes in place only on an explicit ask; a board grouped by a field added in the same change opens with every existing record in the trailing `Uncategorized` lane, and the hand-over says so — with the correction that on a SQL datasource a literal `defaultValue` is emitted as the added column's DEFAULT, so there existing rows read it. `SKILL.md`: an operation on a record is `defineAction` metadata, never a view; a write button's body must call `ctx.api.object(OBJ).update` with `language: 'js'` and `api.write` — a body that only returns the new values writes nothing; a named view kind (gallery, gantt, kanban) is kept, never downgraded to `grid`. The two Chinese fragments left in `rules/navigation.md` and `rules/record-page.md` are English now: the shipped skill text is English-only. Three eval cases pin the teachings (views-apps-actions-pages 13–15).
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
'@objectstack/spec': patch
3+
'@objectstack/service-settings': patch
4+
'@object-ui/console': patch
5+
---
6+
7+
feat: a settings `map` specifier's column headers can be translated, and Data Lifecycle's three map tables ship translated headers
8+
9+
Clause-②: yes (widening)
10+
Metadata-protocol: none
11+
12+
- `PlatformTranslationDataSchema` (`@objectstack/spec/system`): the platform bundle's `settings.<namespace>.keys.<key>` entry gains two optional groups, spelled as the `map` specifier spells its headers. `keyColumn` translates the key column and `columns.<name>` each value column, keyed by the column's `name`. Each carries `label` (the header) and `help` (the column's `description`, shown as the header's hover text), and is strict like its siblings: an undeclared leaf is refused, with `description` → `help` and `title` → `label` named, and `headers` / `columnLabels` → `columns`, `keyHeader` → `keyColumn` named on the setting entry. A bundle written before this change parses exactly as it did. `settings` stays platform-only, so no application bundle can write these groups.
13+
- `@objectstack/service-settings`: every shipped non-English bundle (zh-CN, zh-Hant, ja-JP, ko, es-ES, pt-BR, fr, de, ru, ar) translates the five headers of `lifecycle.retention_overrides`, `lifecycle.quotas` and `lifecycle.quota_defaults` (`Object`, `Keep rows for`, `Expire rows after`, `Max rows`, `Lifecycle class`). The settings translation coverage test now holds each `map` header to the same per-locale coverage as the setting's label, and refuses header copy for a setting that is not a map or a column the map does not declare.
14+
- `@object-ui/console`: the Settings page's map table reads the two groups. A header with no translation keeps the manifest's text, as every other settings string does. The key column now shows its declared `description` as hover text, as the value columns already did.
15+
- Stored values, the save door and the manifest shape do not change.

‎.claude/skills/checklist-test/SKILL.md‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ QA-source: #运行记录号 · area.item · 条款
234234
单 —— 与跨仓联动同一纪律:第一产者是接受座位。安全加固没有卡:落地它的 PM 会话自
235235
己重跑该项,⛔ 不在任何卡上点名它。
236236
3. **维护者点名目标**。
237-
4. **常驻回归**(维护者所定,§6)⇒ 每周回归与发版后 npm 冒烟。
237+
4. **常驻回归**(维护者所定,§6)⇒ 例行回归与发版后 npm 冒烟。
238238

239239
⛔ 其它一切都不是重测触发:凭手感「再跑一遍」只增加收口债,不增加覆盖。
240240

@@ -244,16 +244,16 @@ QA-source: #运行记录号 · area.item · 条款
244244

245245
## 6. 常驻回归 —— 两次发版之间也重跑
246246

247-
维护者所定的两条例行(裁定评论 6501246005)归 QA 席 `qa#1`(pm-dispatch `lanes/qa.md`);其定时任务
248-
由维护者为该席建,⛔ 不是仓库代码,也不是合并门禁。
247+
维护者所定的两条例行(裁定评论 6501246005)归 QA 席 `qa#1`;何时开轮只见 pm-dispatch `lanes/qa.md`,
248+
⛔ 本节不另写节奏;例行不是仓库代码,也不是合并门禁。
249249

250-
- **每周回归**,对 `main` HEAD,四张 `qa-run` 记录,一个选择器一张:
250+
- **例行回归**,对 `main` HEAD,四张 `qa-run` 记录,一个选择器一张:
251251
- 欠测清单:标题选择器写 `owed:weekly`(⛔ 不带冒号的词会被读成区),清单里每个 id
252252
按 §0 裸 id 逐项解析;
253-
- `touched:<上周 touched 记录的 subject sha>`;首周取最近一张发版全量重跑记录的 subject;
253+
- `touched:<上轮 touched 记录的 subject sha>`;首轮取最近一张发版全量重跑记录的 subject;
254254
- `priority:P0` 与 `surface:api`。
255-
§5 的 Supersede 让每条例行至多开着一张:选择器周周相同的三张直接适用;`touched:` 的 sha
256-
每周都变,本周那张照样 supersede 上周那张,判定结转照 §5。
255+
§5 的 Supersede 让每条例行至多开着一张:选择器轮轮相同的三张直接适用;`touched:` 的 sha
256+
每轮都变,本轮那张照样 supersede 上轮那张,判定结转照 §5。
257257
- **发版后 npm 冒烟**:每次发布后跑 `smoke:npm-<版本>`,形状照上一张同类记录;上一轮冒烟抽出
258258
的修复卡在这里重判(它们的溯源行见 §5 的冒烟例外)。
259259
- **欠测清单**由 `node scripts/qa/retest-owed.mjs` 只读算出(⛔ 不写 GitHub):

‎.claude/skills/pm-dispatch/references/lanes/qa.md‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,26 @@
44
## 座位与唤醒
55

66
- 席位 `qa#N`,首席 `qa#1`;签名、座位贴、信箱同他席;无 `domain:*` 标签、无 `pm:queue`。
7-
- Routine 席:维护者在 Routines UI 建每周 fire,发版后敲一轮;⛔ 本席不自建、不改频率。
7+
- 维护者说一波开发完了才开一轮,发版后另敲一轮冒烟;⛔ 本席不自启、不建定时任务。
88
- 发版只认维护者一句或总监席摘要的新 tag 族读数;⛔ 不自判发版。
9-
- 开席首轮:先 `retest-owed.mjs`,再立第一张 `owed:weekly` 记录;此后每 fire 一轮。
109

1110
## 每轮
1211

13-
- 首动作 `node scripts/qa/retest-owed.mjs`(只读);欠测 id 即本轮 `owed:weekly` 记录的范围。
14-
- 每周回归照 §6 四张:`owed:weekly`、`touched:` 上周 subject、`priority:P0`、`surface:api`。
12+
- 先 `retest-owed.mjs`,再照 §6 四张:`owed:weekly`、`touched:` 上轮 subject、`priority:P0`、`surface:api`。
1513
- 发版后 `smoke:npm-<版本>` 照 §6;上轮冒烟抽出的修复卡在此重判。
14+
- 场景半边跑 `docs/qa/scenarios` 的 `starter` 卡:`--modes scratch --packages workspace`(开发波未发布)。
15+
- 一卡一命令 `--only ID`(后台限 2 小时),每容器至多两条并行;照 `packages/qa/scenarios/README.md`。
16+
- 其〈Running the cards in a Claude Code cloud session〉:订阅 `oauth_token` 登录、无 API 变量、非 Auto。
17+
- 计分卡进轮次记录(非 `qa-run`);失败半边判为产品缺陷 ⇒ 照 `fail` 抽卡,`QA-source:` 指本轮。
1618
- 执行照 checklist-test 与 RUNNER;本席即派 runner 的会话,runner 的安全复现私报本席。
17-
- 每张记录当轮照 §5 收口:四分法处置、收口评论机器行、抽取卡带 `QA-source:` 行。
18-
- 收口完即关记录 `completed`,一行指向收口评论;遗留项留在各自卡上,⛔ 不为等修复开着。
19-
- 新记录覆盖旧地面 ⇒ 先结转、再关旧记录,照 §5 Supersede 协议。
19+
- 每张 `qa-run` 记录当轮照 §5 收口、关闭与 Supersede;⛔ 不为等修复开着。
2020
- 轮末 `node scripts/qa/qa-rollup.mjs` 读开着的 `qa-run` 数;非零逐张点名欠什么,进轮次记录。
21-
- 每轮记花费行(环境准备与测试墙钟、runner 花费);三周读数进座位贴,频率由维护者定。
21+
- 每轮记花费行(环境准备与测试墙钟、runner 与场景半边花费);三轮读数进座位贴。
2222

2323
## 边界
2424

2525
- ⛔ 不派 `os-dev`、不改产品代码、不开 PR;§3 清单修订同断言缺陷立卡交该项车道。
2626
- 抽出的缺陷卡照常进分诊首触,⛔ 不定级、不入队;安全发现只照 `../security-findings.md`。
27-
- 波次(发版候选全量、维护者点名目标)仍由维护者手动触发;本席只跑 §6 两条例行。
27+
- QA 波次(发版候选全量、维护者点名目标)另由维护者触发;本席只跑 §6 例行与场景半边。
2828
- 技能文本归 `domain:skills`、RUNNER 归 `domain:devx`;本席见文本问题以 `finding` 报,⛔ 不自改。
2929
- GitHub 写只走 checklist-test §4 写入门;推维护者只限需其出手,⛔ 无周报聊天表。

‎.claude/skills/pm-dispatch/references/lanes/skills.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
- finding 归分诊首触,自分诊见 `triage-duties.md`;可附证据与「Instruments serve the fleet」答案。
2323
- 「Instruments serve the fleet」答不出的 finding ⇒ 建议 p3 或不做,⛔ 不自入队;定级归分诊。
2424
- 内部指令面中文,机器判据恒英文;认领前重读全线程;标签写 read-modify-write 加回读。
25-
- QA 波次由维护者手动触发,⛔ 不自启;checklist-test §6 两条例行按期由 `qa#1` 跑,不是波次。
25+
- QA 波次由维护者手动触发,⛔ 不自启;`qa#1` 的 §6 例行与场景半边逐开发波跑,不是波次。
2626

2727
## 席内判断
2828

‎content/docs/protocol/objectui/actions.mdx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,8 @@ params:
516516

517517
`ActionParam` fields: `name`, `field`, `objectOverride`, `label`, `type`, `required` (default `false`), `options`, `placeholder`, `helpText`, `defaultValue`, `defaultFromRow`, `visible` (CEL predicate — the dialog omits the param when false), `requiresFeature` (capability gate, lowered into `visible` — see [Capability gates](#capability-gates-requiresfeature)).
518518

519+
A param's `helpText` is the hint under its input. Write it as a sentence, translated at `objects.<object>._actions.<action>.params.<param>.helpText` (`globalActions.<action>.params.<param>.helpText` for an action with no `objectName`), or as an inline locale map (`helpText: { en: 'Why the account is paused', 'zh-CN': '暂停该账户的原因' }`), the same two forms `label` takes. A page button's inline `action` has no translation key, so the locale map is the way to translate its hint. Either form may hold `{{ record.* }}` holes.
520+
519521
### Naming the submit button: `submitText`
520522

521523
An action with `params` collects them in a dialog whose submit button says **Confirm**. `submitText` gives that button the action's own verb, so a send-email action can say **Send** and a log-call action **Log Call**. The dialog's other copy stays where it was: the title is the action's `label`, and the line under it is `description`.

0 commit comments

Comments
 (0)