Skip to content

Commit b09dc55

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/project-thread-393bw7
2 parents 905e423 + ff60149 commit b09dc55

113 files changed

Lines changed: 4466 additions & 344 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: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
'@objectstack/formula': minor
3+
'@objectstack/spec': minor
4+
---
5+
6+
fix(formula)!: a flow condition that does date arithmetic on `record.FIELD` or `previous.FIELD` is now refused, as the bare field name already was
7+
8+
Clause-②: no (narrowing)
9+
Metadata-protocol: narrowed
10+
11+
<!-- adr-0087: registered flow-condition-record-date-arithmetic-refused -->
12+
13+
**BREAKING** accept-set narrowing. In a flow condition (a start, edge or `decision` branch condition) the run binds the record's fields under their bare names and also as `record`, with the row before the write as `previous`. The date-arithmetic check judged only the bare name: `due_date + 1 > 5` over a `date` field was refused, but `record.due_date + 1 > 5` passed `os validate` and the publish door. The flow then failed on every run, because a date field reaches the run as its `YYYY-MM-DD` text and the evaluator cannot add a number to it.
14+
15+
- **The verdict.** A `record.FIELD` / `previous.FIELD` read of a `date` or `datetime` field in arithmetic against a number now gets the verdict its bare name gets, with the same code and outcome arm (`date-arithmetic-run-fails` on a record-triggered flow or a sweep of the typed object, `date-arithmetic-run-may-fail` elsewhere). A root read keeps the row's arm where bare names are unproven or a flow variable shadows the bare name. The message names the read as written and prescribes `daysBetween(a, b)` or `addDays(d, n)`.
16+
- **Where.** `os validate` / `os build` (`validateStackExpressions`) report an `error`, and the flow publish door refuses the publish with `INVALID_METADATA` (422). `registerFlow` logs it as an advisory, as it does for the bare name, and still registers the flow, so a stored flow keeps its run-time behaviour until it is next published.
17+
- **Not refused.** An ordering of the field (`record.due_date < today()`), `daysBetween` / `addDays` over it, and the date-text shapes, which keep their own verdicts. Formula fields and validation rules read `record.FIELD` already and were refused before. The run-time evaluator is unchanged.
18+
19+
## FROM → TO
20+
21+
| FROM | TO |
22+
|:---|:---|
23+
| `record.due_date + 1 > 5` | `daysBetween(record.due_date, today()) > 5` (days past due) or `addDays(record.due_date, 1) < today()` (a shifted date) |
24+
| `previous.due_date - 7 < today()` | `addDays(previous.due_date, -7) < today()` |
25+
26+
One-line fix: in a flow condition, never add or subtract a number on a date field read through `record` or `previous`; use `daysBetween(a, b)` for a span and `addDays(d, n)` to shift a date.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@object-ui/plugin-detail': patch
3+
---
4+
5+
fix(plugin-detail): a record Overview body table keeps the totals of the summed columns it leaves out for width
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
On the record page's Overview, a master-detail body table draws only the leading columns that fit whole and leaves the rest behind 「全部列」 / All columns. A summed column left out that way also lost its total, so an amount such as a line total vanished from the Overview only because its column did not fit. The table now draws a line under itself with the total of every summed column it left out, each labelled with the column's name and formatted as that column's own total is (the page record's currency for a line amount that follows its parent). The drawn columns keep their totals in the table's last row, unchanged; when every summed column is left out, that row (which would read 「合计」 over empty cells) is not drawn and the line carries the totals. A table that leaves no summed column out shows no added line. No string is added: the line reuses the existing `form.masterDetail.total` label and the columns' own names.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
---
4+
5+
fix(console): a view settings save is pinned to the draft it opened, so it can no longer be published by someone else's Save to this view
6+
7+
Clause-②: yes (widening) — `ViewConfigPanel`'s `onSave` host prop gains an optional second parameter, the panel's draft-version guard (`saveDraft`), which the panel always passes; a host that takes one argument is called as before; nothing removed or renamed
8+
Metadata-protocol: none
9+
10+
**Save to this view** on a shared view writes a draft and then publishes it. A save from the view settings panel that landed between the two used to overwrite that draft unpinned, and the publish then made the settings panel's unreviewed change live for everyone.
11+
12+
- The view settings panel now sends its draft save pinned to the draft it opened: `If-Match` with the version its load read, or `If-None-Match: *` when the view had no draft. After a save lands, the next one is pinned to that save's receipt. A save over a draft that changed since (another admin's settings save, or a Save to this view in flight) is refused by the server, and the panel opens the Studio editors' draft conflict dialog: reload the saved version, overwrite it after a second confirmation, or keep editing. The edit stays in the panel until the author chooses.
13+
- Creating a view (the Create View dialog, the panel's create mode, Save as view) sends the first-write pin, `If-None-Match: *`, so a create over a name that already holds a pending draft is refused instead of writing over it.
14+
- A host of `ViewConfigPanel` that writes through the guard it receives gets the pin and the dialog; a host that ignores it saves unpinned, as before.
15+
16+
No metadata key, value or default changes.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
---
4+
5+
fix(console): favorites, recent items, the last app and the pinned list view are kept per organization in the browser
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
A person's favorites, recent items, last app and flow palette recents are saved on the server per organization, but the console's browser copy of them was kept per user only. A person in two organizations who switched from A to B saw A's favorites, recent items and last app on B's first paint, and the nav pins set in A were merged into B's saved favorites. The browser copy is now kept per user and organization, under the organization the console stamps on its requests, so B paints and saves only B's own lists.
11+
12+
The pinned list view of an object (the 📌 in the list title's view switcher) was one browser slot per object, so a view pinned in A, which may be a personal view that exists only in A, was read in B and pinned over by B. It is now kept per organization as well: a pin set in A is still there on return to A, and B holds its own. The other per-browser list preferences (column widths, row height, tab order) are unchanged.
13+
14+
Nothing a person has is lost: the first organization that reads its copy takes over the copy kept before this change (once, after which the old copy is removed), so a person in a single organization keeps their favorites, recents, last app and pins as they were. A deployment without organizations keeps the per-user copy it always had.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
'@object-ui/plugin-detail': patch
3+
'@object-ui/i18n': patch
4+
---
5+
6+
feat(console): on the record page's field list an empty field you can edit reads 「设置{字段名}」 and one click fills it in; an editable value offers the copy icon too
7+
8+
Clause-②: yes (widening)
9+
Metadata-protocol: none
10+
11+
The synthesized record page's field area (the side preview, the phone's 「详情」 tab, the wide page's pinned left column and a full page alone):
12+
13+
- **Empty editable fields read 「设置」 plus their label.** An empty value the reader can edit is drawn as light text, 「设置」 plus the field's label (`Set Phone` in English), and a single click on it opens the field's editor, as a click on any editable value already does. A read-only field, a field the caller may not write and a record that is not inline-editable keep the shared 「—」 placeholder. Empty fields still fold into the list's one 「显示 N 个空字段」 row; shown, they read 「设置…」 instead of 「—」.
14+
- **An editable value can be copied without editing.** Its copy icon is drawn on hover or keyboard focus at the value's right, as a read-only value's is; it copies the value and does not enter edit. A touch screen draws none, as before for read-only values. The keyboard's way into edit (the pencil, drawn on focus only) is unchanged.
15+
- Authored record pages and every other DetailView keep their faces: an empty field there reads 「—」 and an editable row keeps its double-click and pencil.
16+
17+
`@object-ui/i18n` widens: one new key in every pack, `detail.setField` (`Set {{field}}` / `设置{{field}}`).
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@object-ui/plugin-detail': patch
3+
---
4+
5+
fix(plugin-detail): the record overlay names a field by its label in save refusals and conflict rows
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
In the record overlay (`RecordDetailPanel`, the quick look of kanban, calendar, gantt and tree), a refused save and a conflict dialog's rows named a field by its machine name (`loss_reason`), because the overlay hands `InlineEditSaveBar` no `fieldLabelFor`. The bar now names a field by one rule wherever it names one — the refusal summary, the conflict rows and the fill-in dialog: the host's `fieldLabelFor` when it gives a label, otherwise the field's translated label from the record context's object, then its declared label, and only then its name. A field that declares no label still reads by its name, and the record page, which passes `fieldLabelFor`, reads as before.
11+
12+
A refusal that names a field the object declares with a label is now presented as that field's, labelled, even when the record does not carry the field, as on the record page.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/i18n': patch
4+
---
5+
6+
feat(console): 「Edit app」 turns on a design mode in the running app instead of opening Studio
7+
8+
Clause-②: yes (widening)
9+
Metadata-protocol: none
10+
11+
An administrator who may design the app (a workspace admin holding `manage_metadata`, on a writable package: the gate 「Edit app」 always had) now presses 「Edit app」 in the page header to turn on the app's design mode, in place. A bar across the top of the window says 「Design mode」 and offers 「Cancel」 and 「Save」, and nothing else. The mode stays on from page to page of the app and goes off when the app changes; it is never on a phone. While it is on, the sidebar shows the app's own menu without the person's Favorites.
12+
13+
The mode is the extension point the next design-mode surfaces (menu editing, the page header's pinned actions) stage their changes through: 「Save」 writes every staged change and leaves the mode, 「Cancel」 drops them all. 「Save」 is off while nothing is staged. While a change is staged, closing or reloading the tab, a link out of the app and the app switcher ask first; a link to another page of the app does not. This release stages nothing yet.
14+
15+
A read-only package's app keeps its 「Open APP in Studio」 entry unchanged. New `@object-ui/i18n` keys: `designMode.title`, `designMode.leaveUnsaved`, `designMode.saveFailed`.

‎.changeset/sec2-ggfh.md‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
'@objectstack/plugin-auth': patch
3+
'@objectstack/platform-objects': patch
4+
---
5+
6+
fix(plugin-auth)!: deleting an SSO provider ends the sessions a sign-in through it opened and removes its projected grants
7+
8+
Clause-②: no (narrowing)
9+
Metadata-protocol: none
10+
Skills-docs: none — no published skill teaches deleting an SSO provider, its sessions or its projected grants; the rule is documented in `content/docs/permissions/sso.mdx` ("Deleting an SSO provider")
11+
12+
<!-- adr-0087: not-required (no-migration-prescription) No authorable key, value or export is added, removed, renamed or re-shaped. `sys_session` gains a system-managed, read-only column the platform writes itself, and what changes is which sessions and projected grants stay live once an SSO provider is gone: no stored metadata row, registry key or authored value moves, so there is nothing for a migration to rewrite. -->
13+
14+
**BREAKING** for a session a sign-in through an SSO provider opened: deleting that provider ends the session, and its next request is answered as signed out. Sessions opened any other way are not touched.
15+
16+
- **Sessions.** Each session an SSO sign-in opens records the provider it was signed in through, in the new read-only `sys_session.sso_provider_id` column. `POST /api/v1/auth/sso/delete-provider` revokes the live sessions that record the deleted provider (`revoke_reason: 'sso_provider_deleted'`). A session signed in any other way (a password, another provider) is left as it is, and a delete the vendor refuses ends nothing.
17+
- **The answer.** A successful delete's `data` carries `revokedSessions`, the number of live sessions it ended, beside the other counts, and its `message` says so.
18+
- **Projected grants.** A permission-set grant projected by an SSO provider's group mapping exists only while that provider does: the delete removes them, as before, and at every boot the grants whose `reason` names a provider with no `sys_sso_provider` row are removed too, as are live sessions recording such a provider. The boot does not remove the provider's group mappings (delete each with **Delete Mapping**, or `POST /api/v1/auth/admin/scim/delete-group-mapping`); it logs at `info` what it removed, and at `error`, with the remedy, when it could not. Several servers sweeping at once each remove what is left, and none reports the others' removals as a failure.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,11 +354,11 @@ model: opus
354354
- 同 PR 改,正文点名裁决 id,落地欠达档 L2 记录;⛔ 永不自行翻转裁决,与之相左仍停手。
355355
- 两种读法通向两种架构时同此;⛔ 不写投机代码。
356356
- 返回 `status: "needs_decision"`,每个问题带选项、真实代价与工作量、推荐,写进 `open_questions`。
357-
- 需维护者裁的事 dev ⛔ 不直接问他:报 `needs_decision`,席位转天花板档决策线程。
357+
- 需维护者裁的事 dev ⛔ 不直接问他:报 `needs_decision`,席位转决策线程。
358358
- 派发词标只读读数 ⇒ 不 commit、不开 PR,`status: "reading"` 贴决策卡;要实测才建闭包跑测。
359359
- 框架唯一副本在 pm-dispatch SKILL.md 〈升级与决策〉;派发词逐字粘贴,dev ⛔ 不留副本。
360360
- 每个方案逐轴分析,推荐也按那些轴给理由;派发词没带,停下向 PM 索取,⛔ 不自拟一套轴。
361-
- 卡线程或区:派发令缺档位或 effort 的推导 ⇒ 不开工,退回席位;⛔ 不凭记忆补档位。
361+
- 线程或区:派发令缺档位/effort 推导 ⇒ 退回席位不开工;取值照 `execution-duties.md`,⛔ 不凭记忆。
362362
- `main` 碎了、依赖未合并、CI 基础设施故障 ⇒ 报 `blocked` 附证据,重试到排除你的改动。
363363
- 报 `blocked` 须写明卡的哪部分不等阻塞可先做;只挡一部分 ⇒ 席位把等待部分拆成单卡。
364364

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Tier 1 批量清掉,剩下的预算才对得起 Tier 2。
104104
⛔ 不凭记忆(floor sonnet · default opus · ceiling fable);每个给:该项 JSON、RUNNER.md、dogfood 技
105105
能、自己的端口/DB、结果不进仓规则(§4)。
106106
- **effort 按卡形状定,派发写明,⛔ 不留空。** runner 卡(Tier 1 pin 批、手工 API/CLI 与浏览器
107-
组、P0 冒烟、UX 走查)与争议判定的对抗复核 `high`;`xhigh` 只照 pm-dispatch `execution-duties.md`。
107+
组、P0 冒烟、UX 走查)与争议判定的对抗复核 `high`;更高只照 pm-dispatch `execution-duties.md`。
108108
- **按后端传档。** `Agent` 子代理显式传 `effort`(本条即传参的依据)。云卡(`create_session`)不收
109109
effort,卡的会话记录也不带 `effort_level`,跑在哪档读不回(实测):派发记录写「未指定」并附
110110
发起会话 `get_session` 读到的档位;它高于卡形状时照 pm-dispatch `dispatch-runbook.md`

0 commit comments

Comments
 (0)