Skip to content

Commit cab3213

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/project-thread-q7jqr4
2 parents c4d9657 + 0d15f89 commit cab3213

68 files changed

Lines changed: 1930 additions & 1219 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: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
'@object-ui/components': patch
3+
'@object-ui/plugin-grid': patch
4+
'@object-ui/plugin-list': patch
5+
'@object-ui/i18n': patch
6+
'@object-ui/app-shell': patch
7+
---
8+
9+
feat(ui)!: a record opened from a list opens in the drawer by default, and the split pane beside the list retires
10+
11+
Clause-②: yes (narrowing)
12+
Metadata-protocol: none
13+
14+
<!-- adr-0087: not-required (runtime-export-retired @object-ui/components#RECORD_SPLIT_MIN_CONTENT_PX, @object-ui/components#RecordListFaceProvider, @object-ui/components#useRecordListFace, @object-ui/components#recordListFaceFor, @object-ui/components#RECORD_LIST_CARD_FACE_BELOW_PX, @object-ui/components#RECORD_LIST_NARROW_COLUMN_COUNT, @object-ui/components#RecordListFace) the retired operands are a React context provider, a hook, a helper, two constants and a type of the split pane's narrowed list face, in a published ui package's entry; no packages/spec schema, no registered node type, no ADR-0087 conversion surface and no stored shape names them (the split mode already left `NavigationModeSchema`), so there is nothing for `objectstack migrate meta` to rewrite -->
15+
16+
**BREAKING** for a host that drew the split pane through `@object-ui/components`, read its narrowed list face, or passed the Display menu a `split` choice. The maintainer ruled 「默认改抽屉,分屏彻底退役,只留抽屉和整页」: a record opens in the drawer or as the full page, and the split pane is gone.
17+
18+
- **The Console.** A row click on a drawer-mode object opens the record in the non-modal drawer over the list, which keeps its full width and every view column. A click on another row swaps the record, ↑ ↓ step through the list, the drawer drags from 360 px to 60% of the window, and ⤢ maximizes it in place. A view that declares `navigation.mode: 'page'` and a phone still open the full page. No metadata changes: `navigation.mode` keeps its values.
19+
- **The reader's preference.** The Display menu's 「打开记录」 (Open records) offers Drawer and Full page only. The preference under `os:record-open-mode` is `drawer` or `page`; a stored `split` is an unknown value and reads as the default, the drawer, with no compatibility read.
20+
- **`@object-ui/components`.** `NavigationOverlay` draws the drawer for `mode: 'drawer'` and no longer has a `split` face: `NavigationOverlayMode` is `page | drawer | new_window | none`. Over a `mainContent` list the drawer is non-modal and undimmed, as before, and the list keeps its full width. The open-row store stays (`ActiveListRecordProvider`, `useIsActiveListRecord`, `ActiveListRow`, `useScrollActiveListRecordIntoView`, `listRecordIdOf`). The split pane's 「Close panel」 label is no longer drawn; the drawer's ✕ is 「Close」.
21+
- **`@object-ui/plugin-grid`.** The grid no longer narrows to three columns or to compact card rows beside a record pane; it draws every view column.
22+
- **`@object-ui/plugin-list`.** `ListView`'s record-count bar always prints its count. The `recordOpen` host prop offers two choices: its `preference` is `'drawer' | 'page'`, its `setPreference` takes either, and its `selectPage` member is gone (pass `setPreference('page')`).
23+
- **`@object-ui/i18n`.** `list.recordOpenSplit` leaves all ten packs.
24+
25+
What leaves, and what to write instead:
26+
27+
- FROM `RECORD_SPLIT_MIN_CONTENT_PX` TO nothing: the drawer has no width floor to fall back from.
28+
- FROM `RecordListFaceProvider` TO nothing: no list is narrowed any more, so there is no face to publish.
29+
- FROM `useRecordListFace` TO nothing: a list under the drawer draws its full face; read `useIsActiveListRecord` for the open row.
30+
- FROM `recordListFaceFor` TO nothing.
31+
- FROM `RECORD_LIST_CARD_FACE_BELOW_PX` TO nothing.
32+
- FROM `RECORD_LIST_NARROW_COLUMN_COUNT` TO nothing.
33+
- FROM `RecordListFace` TO nothing.
34+
35+
A host that passed `mode="split"` to `NavigationOverlay` passes `mode="drawer"` with the same `mainContent`. A host of the Display menu that passed `selectPage` drops it and lets `setPreference` receive `'page'`.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
'@objectstack/metadata-protocol': minor
3+
---
4+
5+
fix(metadata-protocol)!: a keyed seed whose `externalId` names no field of its object is refused at save and at publish, and the boot loader warns once for a keyed dataset whose every record keys empty (#28952)
6+
7+
Clause-②: no (narrowing) — the metadata save door (`saveMetaItem`, draft and publish mode), the publish promotion (`publishMetaItem`, `publishPackageDrafts`) and the restore doors refuse a `seed` in `upsert`, `update` or `ignore` mode whose `externalId` (each member of a composite; an undeclared one is the default `name`) is not a field of the seed's object, which they stored and published before. Nothing is widened.
8+
Metadata-protocol: narrowed
9+
10+
<!-- adr-0087: not-required (no-migration-prescription) No key of any schema is added, removed, renamed or re-shaped, and no export or type changes: the save and publish doors now judge an existing key, `externalId`, against the seed's object. A seed that names a field its object has saves as before; the fix for a refused one is to name a field the object declares, which no migration can choose for the author. -->
11+
12+
**BREAKING** accept-set narrowing at the metadata save and publish doors (`@objectstack/metadata-protocol`).
13+
14+
- **Before.** A seed with `mode: 'upsert'` and `externalId: 'no_such_field'` was saved (`_diagnostics.valid: true`) and published. The loader keys every existing row and every incoming record on that field, which none of them carries, so every key was empty and nothing matched: each publish answered `seedApplied {"success":true,"inserted":1,"updated":0}` and inserted every record again, with no probe issue and no log line.
15+
- **Now.** The save is refused with the save door's envelope for a body it judges (the one an object naming an unknown datasource gets), `422 INVALID_METADATA`, one finding per missing member at `externalId` (`externalId.N` for a composite member), naming the field and the object; nothing is stored. A seed draft stored before this change, or one whose object was still a draft at its save, is refused when it is published, before any seed row is written, and a package publish aborts on it. An object drafted in the same package batch is judged as it will be published.
16+
- **What counts as a field.** The object's fields as the engine registers them (extension fields included) and the columns the registry injects (`id`, the audit and tenant columns).
17+
- **Not judged.** `insert` and `replace` seeds, which never match by key; a draft seed whose object is itself still a draft (judged at its publish); a seed whose object is neither registered nor drafted (the load reports it); a `migrate-stored` re-save.
18+
- **The boot loader never refuses.** For a keyed dataset whose every record has no value for the key, it now logs one `warn` naming the object and the key, and loads exactly as before: a replay of such a stored seed still inserts every record again (`upsert`, `ignore`) or skips it (`update`).
19+
- **Who sees it.** A package author whose seed key names a field the object does not have (a typo, or a field since renamed). Measured: no seed shipped in this repository's examples or in hotcrm names such a key.
20+
21+
**The remedy.** Set `externalId` to a field the object declares, or use `mode: 'insert'` for rows with no natural key.

‎.claude/settings.json‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,33 +30,43 @@
3030
"Bash(agent-browser skills *)",
3131
"Bash(curl -sS -X POST https://api.github.com/repos/objectstack-ai/objectstack/issues/*/labels *)",
3232
"Bash(curl -sS -X POST https://api.github.com/repos/objectstack-ai/hotcrm/issues/*/labels *)",
33+
"Bash(curl -sS -X POST https://api.github.com/repos/objectstack-ai/mobile/issues/*/labels *)",
3334
"Bash(curl -sS -X GET https://api.github.com/rate_limit *)",
3435
"Bash(curl -sS -X GET https://api.github.com/repos/objectstack-ai/objectstack/issues?* *)",
3536
"Bash(curl -sS -X GET https://api.github.com/repos/objectstack-ai/objectui/issues?* *)",
3637
"Bash(curl -sS -X GET https://api.github.com/repos/objectstack-ai/hotcrm/issues?* *)",
38+
"Bash(curl -sS -X GET https://api.github.com/repos/objectstack-ai/mobile/issues?* *)",
3739
"Bash(curl -sS -X GET https://api.github.com/repos/objectstack-ai/objectstack/issues/* *)",
3840
"Bash(curl -sS -X GET https://api.github.com/repos/objectstack-ai/objectui/issues/* *)",
3941
"Bash(curl -sS -X GET https://api.github.com/repos/objectstack-ai/hotcrm/issues/* *)",
42+
"Bash(curl -sS -X GET https://api.github.com/repos/objectstack-ai/mobile/issues/* *)",
4043
"Bash(curl -sS -X GET https://api.github.com/repos/objectstack-ai/objectstack/issues/*/comments* *)",
4144
"Bash(curl -sS -X GET https://api.github.com/repos/objectstack-ai/objectui/issues/*/comments* *)",
4245
"Bash(curl -sS -X GET https://api.github.com/repos/objectstack-ai/hotcrm/issues/*/comments* *)",
46+
"Bash(curl -sS -X GET https://api.github.com/repos/objectstack-ai/mobile/issues/*/comments* *)",
4347
"Bash(curl -sS -X GET https://api.github.com/repos/objectstack-ai/objectstack/issues/*/labels* *)",
4448
"Bash(curl -sS -X GET https://api.github.com/repos/objectstack-ai/objectui/issues/*/labels* *)",
4549
"Bash(curl -sS -X GET https://api.github.com/repos/objectstack-ai/hotcrm/issues/*/labels* *)",
50+
"Bash(curl -sS -X GET https://api.github.com/repos/objectstack-ai/mobile/issues/*/labels* *)",
4651
"Bash(curl -sS -X GET https://api.github.com/repos/objectstack-ai/objectstack/pulls/* *)",
4752
"Bash(curl -sS -X GET https://api.github.com/repos/objectstack-ai/objectui/pulls/* *)",
4853
"Bash(curl -sS -X GET https://api.github.com/repos/objectstack-ai/hotcrm/pulls/* *)",
54+
"Bash(curl -sS -X GET https://api.github.com/repos/objectstack-ai/mobile/pulls/* *)",
4955
"Bash(curl -sS -X GET https://api.github.com/repos/objectstack-ai/objectstack/pulls/*/files* *)",
5056
"Bash(curl -sS -X GET https://api.github.com/repos/objectstack-ai/objectui/pulls/*/files* *)",
5157
"Bash(curl -sS -X GET https://api.github.com/repos/objectstack-ai/hotcrm/pulls/*/files* *)",
58+
"Bash(curl -sS -X GET https://api.github.com/repos/objectstack-ai/mobile/pulls/*/files* *)",
5259
"Bash(curl -sS -X GET https://api.github.com/repos/objectstack-ai/objectstack/pulls/*/commits* *)",
5360
"Bash(curl -sS -X GET https://api.github.com/repos/objectstack-ai/objectui/pulls/*/commits* *)",
5461
"Bash(curl -sS -X GET https://api.github.com/repos/objectstack-ai/hotcrm/pulls/*/commits* *)",
62+
"Bash(curl -sS -X GET https://api.github.com/repos/objectstack-ai/mobile/pulls/*/commits* *)",
5563
"Bash(curl -sS -X GET https://api.github.com/repos/objectstack-ai/objectstack/commits/*/check-runs* *)",
5664
"Bash(curl -sS -X GET https://api.github.com/repos/objectstack-ai/objectui/commits/*/check-runs* *)",
5765
"Bash(curl -sS -X GET https://api.github.com/repos/objectstack-ai/hotcrm/commits/*/check-runs* *)",
66+
"Bash(curl -sS -X GET https://api.github.com/repos/objectstack-ai/mobile/commits/*/check-runs* *)",
5867
"Bash(curl -sS -X PATCH https://api.github.com/repos/objectstack-ai/objectstack/pulls/* *)",
5968
"Bash(curl -sS -X PATCH https://api.github.com/repos/objectstack-ai/hotcrm/pulls/* *)",
69+
"Bash(curl -sS -X PATCH https://api.github.com/repos/objectstack-ai/mobile/pulls/* *)",
6070
"Bash(curl -sS -X POST https://api.github.com/repos/objectstack-ai/objectstack/pulls/*/ccr/ready_for_review *)",
6171
"Bash(curl -sS -X PUT https://api.github.com/repos/objectstack-ai/objectstack/pulls/*/ccr/auto_merge *)",
6272
"Bash(curl -sS -X POST https://api.github.com/repos/objectstack-ai/hotcrm/pulls/*/ccr/ready_for_review *)",
@@ -74,7 +84,8 @@
7484
"Bash(node scripts/pm/issue-transfer.mjs *)",
7585
"Bash(node --use-env-proxy scripts/pm/issue-transfer.mjs *)",
7686
"Bash(curl -sS -X PATCH https://api.github.com/repos/objectstack-ai/objectstack/issues/* *)",
77-
"Bash(curl -sS -X PATCH https://api.github.com/repos/objectstack-ai/hotcrm/issues/* *)"
87+
"Bash(curl -sS -X PATCH https://api.github.com/repos/objectstack-ai/hotcrm/issues/* *)",
88+
"Bash(curl -sS -X PATCH https://api.github.com/repos/objectstack-ai/mobile/issues/* *)"
7889
],
7990
"deny": [
8091
"mcp__github__issue_write",

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ PM 的工作是循环:选卡 → 认领 → 派发 → 收集 → 复核 → 报
6969
- 批 = 一个上下文里读完的 ≤5 张同族卡,是质量单位,⛔ 不是预算。
7070
- 班 = 一个会话的任期,只以交接或惰性回收结束。
7171
- 席位两形:Routine 席与项目席(会话是车队项目的线程);细则见 `references/seat-lifecycle.md`。
72-
- 项目席唤醒 = PR 订阅 + 每席一个自建自绑巡查 routine(总监席除外);⛔ 无 `send_later` 链。
72+
- 项目席唤醒 = PR 订阅 + 自建自绑巡查 routine(总监席与按需席除外);⛔ 无 `send_later` 链。
7373
- 探针先行:fire 的第一动作是一次最便宜的车道盘点查询,⛔ 在它之前不读任何长文本。
7474
- 队列空(逐卡表见 `references/seat-lifecycle.md`)+ 无在飞 + 无待复核 + 决策箱无新答复 ⇒ 自退。
75-
- 分诊席与车道席常驻,断粮即换账号重开该席与信箱;分诊席默认判断档;裁决归总监席。
75+
- 分诊席与车道席常驻(按需席除外),断粮换号重开席与信箱;分诊默认判断档;裁决归总监。
7676
- 子代理裁决逐份过转录核验采信。
7777

7878
## 阶段细则索引

‎.claude/skills/pm-dispatch/references/cross-repo-coordination.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# 多仓协调
22

3-
- 产品依赖方向固定:`objectstack`(后端与 `ui/` 前端,`packages/spec` 唯一契约)→ `cloud`、`hotcrm`。
3+
- 依赖方向固定:`objectstack`(后端与 `ui/`,`packages/spec` 唯一契约)→ `cloud`、`hotcrm`、`mobile`。
44
- 多车道仓 `objectstack`:中央分诊唯一生产 `domain:*`/type/定级,定级例外见 triage-duties 自分诊。
5-
- 单车道仓 `cloud`、`objectos`、`hotcrm`、`www.objectos.ai`;未来新仓默认此类。
5+
- 单车道仓 `cloud`、`objectos`、`hotcrm`、`mobile`、`www.objectos.ai`;未来新仓默认此类。
66
- 单车道仓 `repo:*` 席自理机械三务,⛔ 不产 `domain:*`;决策卡入本仓收件箱,不落 objectstack。
77
- 机械三务 = 自扫 sweep、自打 `type`、自做首触(含 `finding`;业务理由归召唤的总监席)。
88
- 新仓登记是一张清单:座位贴、标签、类别归属、门禁盘点、写身份锁移植(deny + hooks)。

‎.claude/skills/pm-dispatch/references/decision-analysis.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
## 应用仓推荐序特例
4545

46-
- 能力先建在平台(spec、objectstack 运行时与其 `ui/` 渲染器);应用仓(cloud、hotcrm)不自建替代。
46+
- 能力先建在平台(spec、运行时与 `ui/` 渲染器);应用仓(cloud、hotcrm、mobile)不自建替代。
4747
- 阻塞源是平台缺陷 ⇒ 恒荐等待;⛔ 不荐绕行(形状容错、复刻平台规则)、不荐劈半落地。
4848
- 过渡唯维护者明裁;应用仓临时扩展平台契约,仅当平台卡与移除卡同一裁决立出。
4949
- 应用仓裁决立出的平台卡取被裁卡优先级,⛔ 不降档。推论出处:cloud 2932 A、cloud 2924 A。

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
- 依赖是已发布的 `@objectstack/*` 包,逐包定版号,非 git pin。
4444
- ⇒ 平台侧修复必须先发版、再在此升版号才到得了展品。
4545
- 上游卡对本道的解锁判据是已发布,不是已合并。
46-
- pm 状态机词表五仓统一,幂等创建在 `scripts/pm/ensure-pm-labels.sh`,对 hotcrm 实跑是落地步骤。
46+
- pm 状态机词表各仓统一,幂等创建在 `scripts/pm/ensure-pm-labels.sh`,对 hotcrm 实跑是落地步骤。
4747

4848
## 席内判断
4949

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# 车道岗位说明:repo:mobile
2+
3+
见 cross-repo-coordination.md;本文是本席的岗位说明,现值状态恒在座位贴,⛔ 不迁入本文件。
4+
5+
## 形态
6+
7+
- 本席为姊妹仓执行座位:在 mobile 仓认领、派发、复核;落地窗口止于 ACCEPT 加交棒。
8+
- 按需席:维护者以指令行 `pm-dispatch mobile` 召唤;本席不建巡查 routine。
9+
- 退席按 SKILL.md 自退四件(队列空、无在飞、无待复核、决策箱无新答复)。
10+
- 信箱随召唤开、随退席关。
11+
- 前提:mobile 仓的原生壳改造已进其 `main`;之前 ⛔ 不召唤本席。
12+
- 座位贴住 mobile 仓,带 `pm:seat`;车队总表经 `fleet-roster.mjs` 默认仓列读到它。
13+
- 存根的巡查行写 `Patrol: none — 按需席`:表明无 routine,半状态巡查只核此行在不在。
14+
- ⛔ 不产 `domain:*`;机械三务(含首触定级)按 cross-repo-coordination.md 单车道仓条自理。
15+
16+
## 范围
17+
18+
- `objectstack-ai/mobile` 全仓:Expo 原生壳,在 WebView 中宿主平台 Console。
19+
- 边界:业务界面与元数据渲染恒在平台 `ui/` 实现。
20+
- ⛔ 永不在壳内原生重写 Console 已有的界面。
21+
- 壳只收原生能力:服务器选择、推送、桥接方法、系统集成、原生加载与兜底页。
22+
- 原生业务页只经仓内 `docs/HYBRID-SHELL.md` 的路由归属规则进入,该节四条前提缺一不收。
23+
- 移动端发现的 Console 缺陷,立普通平台卡到 objectstack(渲染器在其 `ui/`),待分诊。
24+
- 那是 file-at-destination、非缝卡;mobile 侧同笔挂 `pm:blocked` 加 `Blocked-by:` 回链。
25+
- 解锁判据是修复已进平台发行版、配置的服务器可升到它;⛔ 不是上游已合并。
26+
- ⛔ 永不在壳内绕行 Console 缺陷:绕行把平台缺口藏进壳,其余宿主从此拿不到修复。
27+
- 桥接契约单源在仓内 `docs/HYBRID-SHELL.md`。
28+
- 新桥接方法验收后,即在 objectstack 立 Console 消费卡。
29+
- mobile 自己的卡(含决策卡)都住 mobile 仓:issue 住在修复落地的仓,决策入本仓收件箱。
30+
- 无 `repo:mobile` 缝标签:今无具名读者。
31+
- 首张跨仓次序即实质的协调卡出现时,随该卡走词表 PR 增设。
32+
33+
## 常设承诺
34+
35+
- 半状态巡查在本仓无载体:无 `half-state-patrol.yml`,无 workflow 即无锚 issue。
36+
- ⇒ 手工半边:开新派发前整车道全交集读 open 卡。
37+
- 逐张核交付 PR 是否已合并或关闭,先处置半状态;⛔ 无锚不等于免检。
38+
- 壳不持 API 凭据、不调平台 API;⛔ 不重新引入 `@objectstack/*` 客户端依赖。
39+
- `main` 上的 push 跑 `eas-build.yml` 与 `eas-update.yml`;`eas-submit.yml` 手动触发即商店提交。
40+
- 三者皆按发布动作对待(AGENTS.md 发布条),⛔ 不由席位触发。
41+
- `EXPO_TOKEN` 是否配置席位读不到,恒按已配置。
42+
- ⇒ 本仓 PR 的合并恒归维护者;改 `.github/workflows/**` 的 PR 同此,不因触发方式改变而解除。
43+
- 设备验证无 CI 载体:需真机的验收项写进 PR `## 维护者速读` 的「需要你做的」。
44+
- ⛔ 未上真机的项不报已验。
45+
- 本仓有 `.changeset/` 而无 changeset 门禁:用户可见变更随 PR 带 changeset,席位复核时核对。
46+
- 不扩散需求:创业阶段聚焦原则全额适用;原生能力卡第一问恒为 Web 是否真做不到。
47+
- 框架单源在 SKILL.md 〈升级与决策〉,⛔ 不另抄。
48+
- pm 状态机词表各仓统一,幂等创建在 `scripts/pm/ensure-pm-labels.sh`,对 mobile 实跑是落地步骤。
49+
50+
## 席内判断
51+
52+
- 收卡第一问:原生能力还是业务界面。
53+
- 业务界面 ⇒ 转 objectstack 平台卡,本卡关 not planned 并回链。
54+
- 原生页面化提案进决策箱,附该路由的移动端用量与 Web 端性能读数;无读数不收。
55+
- 会话转移、桥接新增写能力、导航策略放行新来源,皆属安全边界,恒在人工地板。
56+
- 拿不准升决策箱,⛔ 不自裁。

0 commit comments

Comments
 (0)