Skip to content

Commit eae54db

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/issue-35727-sourced-list-one-condition-tag
2 parents 51f90c0 + 03bce5c commit eae54db

83 files changed

Lines changed: 2343 additions & 4127 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@object-ui/plugin-detail': patch
3+
'@object-ui/app-shell': patch
4+
'@object-ui/i18n': patch
5+
---
6+
7+
feat(record-page): dense field rows, one-line activity entries grouped by day, and one row per attachment
8+
9+
Clause-②: no
10+
Metadata-protocol: none
11+
12+
The record page now fits more on one screen: fields read as one row each with the label on the left, the activity feed shows one line per entry under a day heading with a one-line comment box, and each attachment is one file row with its actions in a ⋮ menu.
13+
14+
New locale keys in every pack: `detail.streamToday`, `detail.streamYesterday`, `detail.viewApproval`, `detail.replyToComment`, `detail.attachmentsDropHint`, `detail.attachmentsChooseFile`, `detail.attachmentActions`. `RecordActivityTimeline` takes an optional `onViewApprovals`; `RichTextCommentInput` takes an optional `compact`; `CommentBody` takes an optional `controlsClassName`. No metadata key, value or default changes.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@objectstack/plugin-approvals': patch
3+
---
4+
5+
fix(approvals): rejecting through the `approval_reject` action requires a reason
6+
7+
Clause-②: no (narrowing)
8+
Metadata-protocol: none
9+
10+
<!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export changes shape. What moves is one param declaration in this plugin's own object metadata: approval_reject's comment goes from optional to required, so a call to that action without a reason is refused. No stored row, registry key or authored value changes, so there is nothing for a migration to rewrite and no tombstone. -->
11+
12+
**BREAKING** for a caller of the `approval_reject` action on `sys_approval_request` that sends no `comment`: the call used to reject the request and is now refused before the approvals route runs. It ships `patch` because it is a non-protocol breaking change (AGENTS.md Post-Task Checklist step 3): the declaration belongs to this plugin, and nothing a metadata author writes changes, so `Metadata-protocol` is `none`.
13+
14+
`approval_reject` declares its `comment` param `required: true`, so a reject through `approval_reject` always carries its reason. The declared param contract judges the call before the target route runs, and it counts an empty or whitespace-only string as missing: the REST action door (`POST /api/v1/actions/sys_approval_request/approval_reject`) and MCP `run_action` answer `400` with the param contract's refusal naming `comment`, and the console's param dialog holds Confirm until a reason is typed. A reject with a reason runs as before. The action's AI tool description now says the reason is required. The `POST /api/v1/approvals/requests/:id/reject` route itself is unchanged.
15+
16+
Fix for a caller: send the reason as `params.comment` when you run `approval_reject`.

‎.changeset/35663-list-left-edge.md‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
'@object-ui/components': patch
3+
'@object-ui/plugin-grid': patch
4+
'@object-ui/plugin-list': patch
5+
'@object-ui/app-shell': patch
6+
'@object-ui/i18n': patch
7+
---
8+
9+
Clause-②: no
10+
Metadata-protocol: none
11+
12+
fix(list): the list page lines up on one 16px left edge; the checkbox column is 40px at any width; no row numbers
13+
14+
The list page drew five different left edges, and on a list with more columns than fit, the selection column was squeezed to the checkbox's own 16px, flush against the left of the page. Now the page bar's object icon, the view bar's view icon, the header's select-all box, every row's checkbox and the footer's record count all start 16px in, and the selection column is 40px (16px in, the 16px box, 8px before the first column) on a list that scrolls sideways, on one that fits, and after scrolling sideways and back. The view bar's last text trigger ends 16px in, where the page bar's button ends.
15+
16+
The grid no longer draws row numbers unless a host asks for them (`showRowNumbers`): each row's leading cell is its checkbox, shown at rest rather than on hover. This applies to every grid, the list page, related lists and the designers' grids among them. The list page's Options menu no longer offers a 行号 (Row numbers) switch, the 「已个性化」 (Personalized) marker no longer names row numbers, and `ListView` drops its `defaultRowNumbers` host prop; the `list.rowNumbers` and `console.objectView.personalizedParts.rowNumbers` keys leave every language pack.
17+
18+
A non-selectable grid with a row click drew a hover 「打开 ›」 (Open) button in its row-number cell; with row numbers off by default that button now appears only where a host opts into row numbers. Clicking the row, and Cmd/Ctrl-clicking it, still open the record.
19+
20+
Removed from `@object-ui/plugin-list`'s exports:
21+
- `ListViewProps.defaultRowNumbers`: `<ListView defaultRowNumbers={…}>` → delete the prop. Row numbers are off by default; a grid host that wants them passes `showRowNumbers` to `ObjectGrid`.
22+
- `'rowNumbers'` in `ListPersonalizationPart`: an `onPersonalizationChange` handler or a label map keyed on it → drop that entry; the list no longer reports it. A grid whose authored columns all fail to resolve now says it renders "NO data columns" in its console diagnostic, since it no longer draws a row-number column.

‎.claude/agents/os-dev.md‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,9 @@ model: opus
293293
- 两个读数缺一不可:被改文件的整文件 before/after,与整包 before/after(全部 SKILL.md 之和)。
294294
- 行数为准,姊妹门禁定义 token 计数后同报 token。
295295
- 净增预算装不下 ⇒ 按 `blocked` 报缺口;⛔ 不自行扩写或抬预算:预算归 PM,抬它归维护者。
296-
- 付行数棘轮的唯一合法货币是删内容:⛔ 不拿 re-wrap(折行合并)当筹行,新增以删减付账。
297-
- 密度优化只随净减内容的 PR;分界只问折行有没有为新增内容买行;不买者 ⛔ 不当筹行拒。
296+
- 付字节棘轮的唯一合法货币是删内容:新增以删减付账。
298297
- 删不出等量内容 ⇒ 报 `blocked`,⛔ 不自抬 ceiling;裁决记录下令写入者除外(见棘轮头部)。
299-
- 例外:派发令点名测量优先的零余量受管账本 ⇒ 落行、不动上限行、红着报实测行数。
298+
- 例外:派发令点名测量优先的零余量受管账本 ⇒ 落行、不动上限行、红着报实测字节数。
300299
- 发布面动了要 changeset;`skip-changeset` 判据是没动:已发布 = 各包 `files[]` 实际发运内容。
301300
- 快速通道:`docs/adr/**` · `.claude/**` · `scripts/pm/**` · 仓根配置 · 私有包 · 注释,不发布。
302301
- 其余实测:构建后 grep `files[]` 所列路径找符号,带正控;符号零命中、正控命中 ⇒ 不发布。

‎.claude/skills/pm-dispatch/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ PM 的工作是循环:选卡 → 认领 → 派发 → 收集 → L1 审核 →
296296

297297
| 守卫 | 一句话 |
298298
|:--|:--|
299-
| `scripts/pm/check-skill-line-ratchet.mjs` | 本文件行数只降不升(`pnpm check:pm-skill-ratchet`);抬上限凭下令写入的裁决记录:其评论 id 与实测行数增量引在 PR 正文,同 PR 移上限行至多增量;无裁决 id 即红;⛔ re-wrap 不得用作筹行,新增以删减付账;不买内容的密度修复允许 |
299+
| `scripts/pm/check-skill-line-ratchet.mjs` | 本文件字节数只降不升(`pnpm check:pm-skill-ratchet`);抬上限凭下令写入的裁决记录:其评论 id 与实测字节增量引在 PR 正文,同 PR 移上限行至多增量;无裁决 id 即红;新增以删减付账 |
300300
| `scripts/pm/check-skill-id-lint.mjs` | 本技能与 os-dev 定义的操作文本 ⛔ 不引用 issue 编号(`pnpm check:pm-skill-id-lint`) |
301301
| `scripts/pm/check-half-states.mjs` | label/assignee/PR 半状态的 report-only 巡查(含已过 L1 就绪却无人落地的孤儿 PR 检测) |
302302
| `scripts/pm/check-governed-merges.mjs` | governed 面合并清单的 report-only 审计(事后防线;本地枚举零 API,仅归因走查询) |

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
- 四维分析先于派发与 L1/L2 审核。
2424
- Tier H 受管 PR 恒 draft 等维护者的字;flip 或 arm 前跑 `check-governed-merges --pr N` 定档。
2525
- 档位从 `--tier` 推导引用;pm-dispatch 根恒契约审核档;条款②闸门照现行。
26-
- 棘轮逐行付账,⛔ re-wrap 筹行;砍点逐条核幸存,被砍内容若在别处无家,砍掉就是丢规则。
26+
- 棘轮以删减付账;砍点逐条核幸存,被砍内容若在别处无家,砍掉就是丢规则。
2727
- 「Instruments serve the fleet」答不出 ⇒ `Suggested-grade: p3` 或建议不做,⛔ 不自入队;级归分诊。
2828
- 内部指令面中文,机器判据恒英文;认领前重读全线程;标签写 read-modify-write 加回读。
2929
- QA 波次何时开轮只住 `qa.md`;`qa#1` 的 §6 例行与场景半边逐开发波跑,不是波次。

‎.claude/skills/pm-dispatch/references/triage-duties.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
- 新增维护面(协议键、元数据类型、门禁、依赖、服务、车道);≥3 卡串行或占槽超一日。
104104
- 不呈:实现细节、不升级类、记账类、p3 排序、CI 重跑、分支清理、patch 依赖、既裁执行。
105105
- 不呈四门同立:无产品可见行为变化、无契约变化、可回滚、有门禁兑底;呈裁卡注判据。
106-
- 例外一:`readings-*.md` 增量抬上限到落地行数,免决策卡,记 `ruledRaises` 引常设裁决。
106+
- 例外一:`readings-*.md` 增量抬上限到落地字节,免决策卡,PR 正文引本条与实测增量。
107107
- 例外二:AGENTS.md 报告态翻转,须①不删门不跳测;②同笔附两红 run 入下批待决;③否即翻回。
108108
- 条件:席位验收评论逐条核实、去重计数(候选/落地/已有/拒收)、一事一行、不计重排。
109109
- 请示纪律:方向性授权覆盖整条执行链一并做完,⛔ 不逐项回问。

‎content/docs/automation/approvals.mdx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,10 @@ renders and executes them wherever the object is surfaced — the **Approvals
934934
inbox** included — so a decision (comment, a file-upload for `attachments`, the
935935
reassign user-picker) is collected by the generic action dialog with **no
936936
per-action UI code**. New decision capabilities ship as backend metadata, not
937-
hand-written buttons.
937+
hand-written buttons. A reject through `approval_reject` carries its reason: the
938+
action declares its `comment` param required, so the action door, MCP `run_action` and the
939+
dialog refuse a reject whose `comment` is missing or blank (`400`, the declared
940+
param contract's `required` refusal).
938941

939942
On the record itself, a record with approval requests grows an **Approvals** tab
940943
beside Details and Related, with a request-count badge: the current step, decision

‎content/docs/ui/views.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ metadata is read-only. What you author (`sort`, filters, columns, `rowHeight`,
625625
- While a user's list differs from the view, a **Personalized** marker sits beside the list
626626
title (an icon alone on a phone). Opening it names what differs: filters, search, sort,
627627
grouping, column layout, hidden fields, density, and the Display panel's layout, row
628-
color, row numbers and inline editing. Its **Reset to view** is the one way back: it
628+
color and inline editing. Its **Reset to view** is the one way back: it
629629
drops the active view's stored state and cached search, and removes the list's `uf_*`
630630
parameters from the address bar, so the list is the view's own again after a reload too.
631631
Pinned views, favorites, how records open and a "View all" link's `filter[...]` scope are

0 commit comments

Comments
 (0)