Skip to content

feat(ui): a timesheet list view, an editable row × weekday entry grid - #34925

Merged
os-zhuang merged 21 commits into
mainfrom
claude/project-thread-ca331k
Nov 18, 2026
Merged

os-zhuang merged 21 commits into
mainfrom
claude/project-thread-ca331k

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread

Fixes #34382

repo:objectstack#3 · os-support-ai · session_01WGufzgTk2cRpVHpSVk9tzF

Clause-②: yes (widening: one new accepted type value on list views, one new optional config block on the view schema, and a new published @object-ui plugin package with one component)
Metadata-protocol: added (a new list view type and its config block an author can write)
Skills-docs: regenerated only — skills/objectstack-ui/references/react-blocks.md is the generated react-blocks contract, which picks up the new object-timesheet block; no hand-written skill text changes

维护者速读

  • 改了什么:列表视图新增一种类型「工时表」(type: 'timesheet'):按行字段(如项目)× 一周七天把明细记录排成可编辑的格子,每格就是一条记录;在空格里输入数字就新建记录,改数字就更新,清空就删除;行合计、日合计、周合计始终显示;一格里有多条记录时只读显示合计。
  • 为什么改:HotCRM 的「我的一周」工时录入要按周表格填写,现在只能用按项目分组的列表逐条编辑;HotCRM 等这张卡。
  • 风险与回滚:只是新增一种视图类型和一个新的懒加载渲染包,不改已有类型的行为;每格的写入都走正常的记录接口,钩子、校验和权限逐格判定,被拒绝时留在那一格并显示服务端的原因。回滚即还原本 PR。改动 3887 行(129 个文件),超过 3000 行,且涉及 skills/** 生成文件,按 Tier H 处理。
  • 先看:ui/packages/plugin-timesheet/src/timesheetModel.ts(记录怎么落到行和天、每格该新建/更新/删除哪条);ObjectTimesheet.tsx(查询一周、逐格写入、添加行);packages/spec/src/ui/view.zod.ts 里新增的 timesheet 块。
  • 两分钟验证:中文界面给一个有「项目 / 日期 / 工时」字段的对象建一个 type: 'timesheet' 视图(timesheet: { rowFields: ['project'], dateField: 'work_date', valueField: 'hours' }),打开后应看到周一开始的一周,在空格输入 4 回车后合计变化,列表里多出一条记录。
  • 需要你做的:超过 3000 行,需要 os-zhuang 批准后由席位落地。

What changes

A list view can now be type: 'timesheet'. It pivots detail records into rows × the seven days of one week, and every cell is editable.

type: 'timesheet',
timesheet: {
  rowFields: ['project', 'task'], // 1–3 fields; one row per distinct combination
  dateField: 'work_date',         // date or datetime
  valueField: 'hours',            // number, currency or percent
}
  • Spec (packages/spec/src/ui/view.zod.ts): timesheet joins the list view type enum and the VisualizationType members, and TimesheetConfigSchema is the new optional timesheet block (rowFields 1–3 names, dateField, valueField, all required inside the block). Liveness rows for the three keys, regenerated artefacts and reference docs.
  • Renderer: new lazy package @object-ui/plugin-timesheet, component object-timesheet, registered lazily by the console. ListView composes it for a timesheet view; ObjectView composes it for a host views entry.
    • Query: one find per displayed week, the view filter AND dateField inside the week, capped at the non-grid row ceiling, with the row fields' relations expanded (field-level read access permitting).
    • Writes: typing into an empty cell creates a record with the row's field values, the day and the number; changing a one-record cell updates it; clearing it deletes it. Each is one call on the record API, so hooks, validation rules and permissions judge each cell. A refusal stays on the cell with the server's message and the typed text; Enter retries. Each write is announced with notifyDataChanged.
    • Multi-record cells show their sum, read-only, with a title saying to edit them in the list.
    • Week: starts on the display locale's first day, with previous / this / next. Row, day and week totals always show.
    • Add row asks for the row field values with each field's own edit widget; the first typed day creates the record.
    • An incomplete block draws "Timesheet configuration required".
    • Strings: lazy namespace timesheet.* in 11 languages.
  • Lint: view/list-view-field-refs checks the three names (error: each is written into the records a cell creates); view/layout-without-binding warns on a timesheet view with no complete block.
  • Pickers: the view switcher, the create-view dialog (with the three binding fields) and the Studio list-view type section offer the new type. 8 new eager keys under console.objectView.* (the type label, its description, and the three binding fields' labels and help).
  • Types: ObjectTimesheetSchema joins the ObjectQLComponentSchema union and its zod mirror; NamedListView carries timesheet.

Tests

New and updated tests
  • New plugin-timesheet suites (29 tests): timesheetModel.test.ts (config resolution and refusals, locale week start, month-end weeks, local-day placement of instants, datetime written at local noon, row keying with an expanded lookup by id, totals, added rows, create / update / delete / none / readonly plans, input parsing) and ObjectTimesheet.test.tsx (missing binding screen, the week query joined with the view filter, pivot with totals, a two-record cell read-only, update, create then delete, a refused write kept on its cell, non-numeric text refused without a write, add row, week navigation).
  • Lint: three new view/list-view-field-refs position rows; the rule explanation names timesheet.
  • Pins moved by the new member, each with its reason in place: spec type-alias pins 858 → 859, types union arms / zod mirror pairs (201 → 202) / unmirrored-key census (66 declared, 43 read; loose members 75) / imported defaults, cli registered-type ratchets (the namespaced pin raised 307 → 308 as a named stopgap, following ui: a page element that renders a table of rows from a page api binding (columns, every row, locale headings), so a console page can list what a GET door answers #31856), objectViewHostSurface measured branches, ListViewBlock.specInputs, registry-inputs-spec-parity, CreateViewDialog.viewTypeParse, ViewSwitcher view-type table, normalize-list-view drawn kinds, side-effects roster.

Acceptance notes

The card's ask, item by item:

  • Declares row keys, date field, value field and week window: timesheet.rowFields / dateField / valueField; the week window follows the viewer's locale first day with previous / this / next (seat ruling: no authored window key).
  • Writes through the record doors, per cell: each cell is one create / update / delete on the data API.
  • Row and column totals: row, day and week totals, always shown.

Before (origin/main): ListView.type accepts nine values and none pivots records into an editable row × day grid; a stored type: 'timesheet' is refused by the spec enum.

After, live: console from this branch's source over a real showcase backend (objectstack dev --seed-admin, fresh database). Seeded through the public doors (POST /packages, PUT /meta/object, PUT /meta/view with a type: 'timesheet' list view, PUT /meta/app, five POST /data rows; all 200 / 201). Script, readings and screenshots: /mnt/project-files/objectstack-seat3/34382-live/ (project share).

  1. en, week Sun 11/15 – Sat 11/21: rows Apollo | 2 | 3 | total 5, Hermes | 1 | 3.5 | total 4.5; the 3.5 cell (two records) is read-only with "This day holds more than one record. Edit them in the list."; day totals 0 2 4 3.5 0 0 0, week 9.5.
  2. Mon 2 → 6 sent PATCH /api/v1/data/ts_time_entry/<id> {"hours":6}; Thu typed 4 created a record (persisted, read back after reload); Hermes Mon 30 was refused by the field's max: 24, and the cell kept 30, red, with "Not saved: Hours must be ≤ 24"; clearing Apollo Tue sent DELETE …/<id>. Week total 9.5 → 17.5 (with the refused draft not counted in the row) → 14.5.
  3. Next week: empty, all totals 0. Add row "Zeus" adds an empty row.
  4. zh-CN: the week starts Monday (11/16周一 … 11/22周日), 本周 / 添加行 / 合计, the read-only title 「这一天有多条记录,请在列表中编辑。」.
  5. 375 px: no horizontal page scroll (document scrollWidth 375).

Verification

Gates
  • Derived gates (dispatch-gates --commands, 152) on head 70f915f: 151 exit 0; check-plugin-teardown-shape --self-test exit 3 (prerequisite: this clone is shallow; git fetch --unshallow is needed). dispatch-gates --ran: 152 accounted for.
  • After the main merge-forward (regen-merge script, artefacts regenerated, check:generated all 14 current) and the last fixes, on head 3635a48: the touched suites rerun green: ui plugin-timesheet, types, cli, i18n, plugin-view, core normalize-list-view, CreateViewDialog*, registry-inputs-spec-parity, ListViewBlock.specInputs, one-authority-per-exported-name, side-effects-declaration-consistency (537 files, 13,481 tests); spec type-alias-convention.pin; lint full suite (9,127 tests).
  • Earlier on the branch: spec full suite (one pin, since fixed), app-shell ObjectView* (849) and studio-design/ (2,577), plugin-list (1,869), check:i18n exit 0, check:dual-build-cjs-loads exit 0, check:liveness exit 0.
  • Full workspace build (turbo run build --filter='!@objectstack/docs') exit 0; type-check exit 0 for plugin-timesheet, plugin-list, plugin-view, types, i18n, cli, core, app-shell, console.
  • console production build + check-eager-closure-budget exit 0: i18n-locale-en 61,952 B gzip of the 62,000 ceiling (48 B left after the merge-forward; this PR's 8 eager keys cost about 130 B). Aggregate 1896.5 KB / 2431.6 KB.
  • check-changeset-no-major, check:changeset-fixed, check-empty-changeset: exit 0.

Deviations:

  • The Studio metadata form (view.form.ts) gets no timesheet section: tree and map have none either, and it would regenerate 12 platform-objects translation files. The block is authored in code or through the create-view dialog's three fields.
  • Lint checks that the three names resolve on the object, not their field types (date / number); a follow-up can add the type check.
  • 8 keys are in the eager console.objectView group, not a lazy namespace: they are read by the create-view dialog and the view switcher, which render before any timesheet mounts. The grid's own strings are lazy.
  • The cli namespaced registered-type ratchet is raised 307 → 308 for object-timesheet, with a named stopgap paragraph, as ui: a page element that renders a table of rows from a page api binding (columns, every row, locale headings), so a console page can list what a GET door answers #31856 did.
  • File surface beyond the claim: ui/packages/i18n/src/locales/* (the 8 keys), ui/packages/types/src/{index,zod/index.zod}.ts, ui/packages/plugin-view/src/ViewSwitcher.tsx, ui/scripts/check-i18n-call-site-keys.mjs and two ui/scripts tests, ui/vitest.config.mts, .changeset/config.json (the new package in the fixed group), scripts/regen-artifacts.mjs.
  • Client-side permission gating is present: create / update / delete are read through resolveAffordance (gridAddRow, listInlineEdit plus the value field's resolveFieldAffordance, rowDelete), so a cell the viewer may not write is read-only, Add row shows only with create, and a write is refused locally with timesheet.notAllowed. The server still judges every write, and a server refusal shows on its cell.

Fix round 1 (L1-d 6954236029), head 19b3f8d

# Behaviour Mutation Red
1 pivot (buildTimesheetRows) sum += amount → sum = amount 3: row keying, day/week totals, the two-record cell sum
2 write plan (planCellWrite) readonly when > 1 record → > 99 1: never writes a cell holding several records
3 week query, suite zone date-time bounds → day keys 2: model bounds, the component's datetime query
3b week query, UTC+13 / UTC-8 (forks child) same 3 of 7 (rigs and the date control stay green)
4 refusal kept on its cell the catch no longer sets the cell's draft 1: keeps a refused write on its cell
5 lint timesheet rows scalars: { dateField, valueField } → {} 3: both rows and the accounted-paths census
6 ListView case 'timesheet' timesheet: schema.timesheet dropped 1: the binding reaches the grid
7 ungrouped display useGrouping: false → true 1: a value of a thousand edits back
  • Type-check plugin-timesheet exit 0; vitest run packages/plugin-timesheet/ 33 passed, 7 skipped (the driven zone cases); the driver date-only-zone-pins-10183 and vitest-timezone-pin-8366 pass; check:test-source-alias exit 0.
  • Size now 3299 changed lines (+3186 / -113, 110 files).

Fix round 2 (seat L2 6957515788), head 8f6048c

  • S1, door check. checkListViewTimesheetBinding (spec view.zod.ts) refuses type: 'timesheet' with no timesheet block, at timesheet, beside checkListViewChartBinding: attached on ListViewSchema, ObjectListViewSchema, the list overlay and the component face (component.zod.ts), and on objectui's ListViewPropsBag (objectql.zod.ts). The kind is new in this release, so refusing it is not breaking. Pins: view.test.ts (each door refuses with the message; a bound timesheet and a grid pass), object-refinement-check-exports.test.ts (declaration, three attachments, ChartBinding followed by TimesheetBinding, barrel), types spec-object-refinements-7715 / imported-defaults-8317 / list-view-properties-bag-12670 (both faces refuse at properties.timesheet; a bound timesheet passes). Fixtures that parsed a block-less timesheet now carry a binding (view-form-pagination.test.ts, ListViewBlock.specInputs-13047).
  • S2, locale parse. parseCellInput(text, locale) reads the display locale's decimal and group marks (Intl.NumberFormat#formatToParts; a locale with its own decimal mark, such as ar-EG, reads Latin input). The decimal mark is allowed once, the group mark only between whole groups of three, and hex or exponents are refused. Pinned: en 1,000 = 1000, 1,234 = 1234, 1,234.5 = 1234.5, 1,5 refused; de 1,5 = 1.5, 1.000 = 1000, 1.234,5 = 1234.5, 7.5 refused; fr space grouping; and in ObjectTimesheet.test.tsx a typed 1,000 in en-US writes { hours: 1000 }.
  • S3, completeness and bounds. timesheet joins the spec functional-completeness.test.ts it.each and lint's validate-functional-completeness.test.ts (flagged as a warning at objects[0].listViews.week.timesheet, silent once bound). TimesheetConfigSchema bounds: 1 and 3 rowFields pass, 0 and 4 refused, each missing key refused, an unknown key (weekStart) refused.
  • Ablations (restored to the HEAD blob, git diff HEAD empty): the check body → return; turns 7 spec tests red (direct calls, the bijection, each door's refusal); locale marks forced to ./, turns 3 plugin-timesheet tests red (de, space grouping, read-back in own locale).
  • Runs on this head: spec src/ui + src/kernel (7,986 tests), lint completeness and list-view field refs (229), ui types, plugin-view, plugin-timesheet, plugin-list specInputs, CreateViewDialog.viewTypeParse, cli ratchet, core normalize-list-view, console registry parity, relay census 11572, affordance census 12082, i18n (all green); type-check types, plugin-timesheet, spec tsc; check:api-surface and check:export-origins current.
  • Size now 3887 changed lines (+3742 / -145, 129 files).

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic.
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran.
  • 4. One issue, one branch, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: its generated artifacts are regenerated and committed.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WGufzgTk2cRpVHpSVk9tzF

Add the object-timesheet arm to the types union and its zod mirror, let
NamedListView carry the timesheet block, re-point the plugin's schema type
at @object-ui/types, drop the view form section and the unused spec
dependency, and update the census and ratchet pins the new arm moves.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzgTk2cRpVHpSVk9tzF
…he drawn-kinds pin

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzgTk2cRpVHpSVk9tzF
@github-actions github-actions Bot added size/xl dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation protocol:ui tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 17, 2026
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 2 package(s): @objectstack/lint, @objectstack/spec, touching 14 documentable anchor(s). ⚠️ 8 changed file(s) yielded no anchor (packages/spec/api-surface/ui.json, packages/spec/authorable-surface/ui.json, packages/spec/declaration-map/ui.json, …), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

2 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/data-modeling/fields.mdx (via conditionalFormatting (literal, a string literal in BEHAVIOUR_SEGMENTS))
  • content/docs/frontend/plugins/plugin-view.mdx (via ObjectListViewSchema (symbol, a top-level const), conditionalFormatting (literal, a string literal in BEHAVIOUR_SEGMENTS), rowColor (literal, a string literal in BEHAVIOUR_SEGMENTS))

⛔ 5 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v12.mdx (via ObjectListViewSchema (symbol, a top-level const))
  • content/docs/releases/v17/17-1.mdx (via ListViewSchema (symbol, a top-level const), conditionalFormatting (literal, a string literal in BEHAVIOUR_SEGMENTS))
  • content/docs/releases/v17/17-5.mdx (via ListViewSchema (symbol, a top-level const))
  • content/docs/releases/v17/17-7.mdx (via conditionalFormatting (literal, a string literal in BEHAVIOUR_SEGMENTS), rowColor (literal, a string literal in BEHAVIOUR_SEGMENTS))
  • content/docs/releases/v18/18-0.mdx (via ListViewSchema (symbol, a top-level const))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • 8 changed file(s) yielded no anchor (packages/spec/api-surface/ui.json, packages/spec/authorable-surface/ui.json, packages/spec/declaration-map/ui.json, …) — pages documenting those are invisible to this run
  • 2 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 173 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 743308b90c3a5877db980607c9cffd69ba6e5cd4 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 420c146173db36d3ba0bfc16c0e669e2cafb7e5c — the merge of head ac061cea79e90bf5eafbbc06f9f236ccf8b6b9f0 into base 743308b90c3a5877db980607c9cffd69ba6e5cd4, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 420c146173db36d3ba0bfc16c0e669e2cafb7e5c && git checkout 420c146173db36d3ba0bfc16c0e669e2cafb7e5c
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 743308b90c3a5877db980607c9cffd69ba6e5cd4 ac061cea79e90bf5eafbbc06f9f236ccf8b6b9f0 && git checkout -B drift-repro 743308b90c3a5877db980607c9cffd69ba6e5cd4 && git merge --no-ff ac061cea79e90bf5eafbbc06f9f236ccf8b6b9f0

node scripts/docs-audit/affected-docs.mjs --json 743308b90c3a5877db980607c9cffd69ba6e5cd4

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 743308b90c3a5877db980607c9cffd69ba6e5cd4 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgQsdnyS4QdR8stjDa

L1 review (L1-d) · 2026-11-17T16:31Z

L1: REWORK
Head-sha: 3635a48233bc582aceba5000181ab195daaa900e

Read against claim 6947880824 and report 6954090477 on #34382. Merge base fc5913e1, 106 files, +2990/-110.

This PR is Tier H on two counts:

Either count means it waits for os-zhuang. It is never readied or queued before that. The seat's schema-face L2 is owed after this L1.

What holds

  • Closing keyword. Fixes #34382 is right. The card's three asks are met. The week window follows the viewer's locale with previous / this / next, and there is no authored key for it; that was the seat's call (A: type: 'timesheet' + a timesheet block, no ADR).
  • Writes. Each one is a single create / update / delete on the data source. A multi-record cell is read-only. The input is disabled while a write is in flight, so a double commit cannot create twice. A refusal stays on its cell, and Enter retries.
  • Changeset. It names all 11 packages whose src/** moved, all minor. Its sentences match the diff.
  • Lint. The view/list-view-field-refs rows are error for all three names. functional-completeness gains the timesheet binding row.
  • Evidence. Live readings in en, zh-CN and at 375 px over a real showcase backend. A server refusal is shown on its cell.

Must-fix

  • M1 (code): a datetime date field is queried by UTC days but placed on local days.
    • The week query binds [dateField, '>=', weekStart] / [dateField, '<', weekEnd] with YYYY-MM-DD day keys (ObjectTimesheet.tsx, the find effect).
    • For a datetime column, the SQL driver turns that comparand into the instant at UTC midnight (sql-driver-filter-helpers.ts coerceFilterValue → storageDatetimeValue → canonicalUtcDatetime).
    • dayKeyOf then places each record on the viewer's local day. The two windows disagree for every viewer not on UTC.
    • Concretely: at UTC+8, a record at 07:00 local on the week's first day (23:00Z the day before) is never fetched, and that day's cell and totals are short.
    • Worse, at UTC+13 (New Zealand in November), a cell typed on the first day is created at local noon (dateFieldValue), which is 23:00Z the day before. notifyDataChanged re-reads the grid at once, the record falls outside the fetched window, and the cell goes blank. Typing again creates a duplicate.
    • The body and changeset say the date field may be date or datetime, so this is a supported configuration.
    • Fix: for a datetime field, bound the query by the instants of local midnight, e.g. fromDayKey(weekStart).toISOString() and fromDayKey(weekEnd).toISOString(), and keep day keys for a date field. Pin it with a test that runs under a non-UTC TZ (or injects the offset) and asserts the query bounds for both field types, and add its ablation.
  • M2 (evidence): no ablation is reported. The Tests section and the report list suites and counts, but no ablation run. Please report one per tested behaviour, each through scripts/ablation-replace.mjs and restored to the HEAD blob:
    • the pivot (buildTimesheetRows);
    • the write plan (planCellWrite create / update / delete / readonly);
    • the week query filter (with M1's new pin);
    • the refusal kept on its cell;
    • the view/list-view-field-refs timesheet rows;
    • the ListView case 'timesheet' composition.
  • M3 (paper): the claim surface needs an amendment. The claim says the list "may narrow, never widen without a claim amendment". The body's "File surface beyond the claim" list is incomplete.
    • These paths are outside claim 6947880824, beyond the regenerated artefacts and tests beside a claimed file, which I read as covered:
      • .changeset/config.json
      • content/docs/ui/views.mdx
      • docs/audits/2026-07-unknown-key-strictness-ledger.counts/ui.md
      • packages/lint/src/rule-explanations.ts
      • packages/lint/src/validate-list-view-field-refs.ts and its .test.ts (the claim named validate-field-consumers.ts)
      • packages/spec/src/type-alias-convention.pin.test.ts
      • pnpm-lock.yaml
      • scripts/regen-artifacts.mjs
      • skills/objectstack-ui/references/react-blocks.md (governed)
      • ui/apps/console/{dev/manifest-registry.ts, package.json, vite.config.ts, src/__tests__/registry-inputs-spec-parity.test.ts}
      • ui/packages/app-shell/src/views/{CreateViewDialog.tsx, CreateViewDialog.viewTypeParse-11581.test.tsx, newViewSpec.ts, studio-design/ListViewTypeSection.tsx}
      • ui/packages/core/src/utils/normalize-list-view.ts and its undrawableBothLegs-9880 test
      • ui/packages/i18n/{package.json, scripts/zh-hant.mjs, src/__tests__/zh-hant-generated.test.ts, src/namespaces/studio/en.ts, src/namespaces/studio/zh.ts}
      • ui/packages/i18n/src/locales/* (12 files)
      • ui/packages/plugin-list/src/{ViewSwitcher.tsx, index.tsx}
      • ui/packages/plugin-view/src/{ViewSwitcher.tsx, __tests__/ViewSwitcher.test.tsx}
      • ui/packages/types/src/{index.ts, zod/index.zod.ts}
      • ui/scripts/check-i18n-call-site-keys.mjs
      • ui/scripts/__tests__/{check-i18n-en-drift, side-effects-declaration-consistency}.test.ts
      • ui/vitest.config.mts
    • The liveness files are packages/spec/liveness/{view.json, state-counts/view.md}, not the claimed packages/spec/scripts/liveness/**.
    • The eager locales/* keys go against the claim's own constraint, "new locale keys in a lazy namespace only (eager budget)", so the amendment should carry the seat's word on them (see S1).
    • The claim also said "the key names and shape are NOT ruled and wait for the seat". The seat's ruling (A, no ADR, no authored week-window key) is recorded only in the card thread. Please put it on the card with the amendment, so the record lives on GitHub.

Should-fix

  • S1: the eager budget is all but spent, and the seat has not decided on it. i18n-locale-en is at 61,952 / 62,000 B gzip. This PR's 8 eager console.objectView.* keys cost about 130 B, and the next eager key anywhere will red check-eager-closure-budget.
    • The report records this as an out-of-scope finding (class c, maintainer exception), "noted, not filed".
    • Please either move the 8 keys behind a lazy load (the create-view dialog and switcher could read a small lazy namespace), or get the seat's explicit word to keep them eager and file the budget finding as a card so the next lane is not blocked unannounced.
  • S2: a value of 1,000 or more cannot be edited. The cell displays its value through Intl.NumberFormat(locale, { maximumFractionDigits: 2 }) with grouping on, e.g. en 1,234.5. parseCellInput replaces only the FIRST , with ., so an edited 1,234.6 parses as 1.234.6, is refused as "Enter a number", and in en 1,000 reads as 1.
    • Fix: display without grouping (useGrouping: false), or parse with the locale's separators, and add a case.

Notes

  • N1: Cells are not gated by client-side permissions. A read-only user sees editable inputs, and each write is refused by the server on its cell. This is declared; the seat decides.
  • N2: Lint resolves the three names but does not judge their types (date / number). That follow-up is named in the body but not filed.
  • N3: Not touching view.form.ts matches tree / map. The claim allowed it ("may narrow").
  • N4: CI at this head: Check Changeset, PR size, PR-body guards, Governed Surface Queue Guard, spec liveness, package deps and doc links are green, and Type Check · source gates is green. Build, Test Core, Test UI, Lint and the remaining Type Check jobs were still in progress at review time.

Landing: Tier H. After M1–M3 and a delta read, the seat's schema-face L2 follows, then os-zhuang's approval and full green CI on the final head. The owning seat lands it. A later push owes a delta read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgQsdnyS4QdR8stjDa

L1 review (L1-d), delta read · 2026-11-17T16:47Z

L1: REWORK
Head-sha: 19b3f8df5df298d483c45d72e6ac77bade715474

Delta read from REWORK 6954236029 at 3635a482. The range is 6d78684a (the fix), 6b331e13 (SDUI manifest regenerated) and 19b3f8df (zone-pin typing): 8 files, +199/-6. Outside these, nothing moved.

This is paper only: one path. Once the claim is amended, this head is ACCEPT, with no push needed.

Must-fix

  • M1 is closed. weekQueryBounds(weekStart, weekEnd, type) keeps the day keys for a date field and returns the instants of local midnight for a datetime field. ObjectTimesheet sends those bounds, with the type read from the object's field definition.
    • The new zone pin timesheet.dateTimeZone-34382.test.ts runs at Pacific/Auckland (UTC+13) and America/Los_Angeles (UTC-8), each zone opening with a rig case that the zone really moved. It asserts the exact bounds and that a cell typed on the first and last day is written inside [from, to) and reads back on its own day. A date-field control covers the other branch.
    • It is driven on the forks pool by date-only-zone-pins-10183. The suite-zone model case and the component case (the query a datetime field sends) cover the normal run.
    • Ablation 3/3b (bounds reverted to day keys) turns 2 suite-zone cases and 3 of 7 forks cases red.
  • M2 is closed. The body's "Fix round 1" table lists 8 ablations, each through ablation-replace and restored to HEAD: pivot (3 red), write plan (1), week query in the suite zone (2) and in the zones (3/7), refusal kept on its cell (1), lint timesheet rows (3), the ListView case 'timesheet' (1), and ungrouped display (1).
  • M3 is closed for the paths listed then. Seat amendment 6954290372 adds every path from 6954236029, records ruling A on the card and corrects the liveness path.
  • M4 (new, paper). The fix round edits the existing shared zone-pin harness ui/scripts/__tests__/date-only-zone-pins-10183.test.ts to register the new pin. That registration is correct under AGENTS.md's shared-harness rule (ruling record 6583487846), but the path is outside claim 6947880824 and amendment 6954290372. Please add it in a one-line amendment.
    • sdui.manifest.json and scripts/sdui-manifest.record.json are covered by the claim's "SDUI manifest regenerated" item.

Should-fix

None.

Notes

  • N1 to N3 from 6954236029 stand: no client-side permission gating, the lint type check not filed, and view.form.ts left out.
  • CI at this head: 12 success, 11 skipped, 19 in progress, 0 failed at review time. The Build & E2E UI red at 3635a482 (stale sdui.manifest.json) is answered by 6b331e13.

Landing: Tier H (3299 lines, plus skills/**). After the M4 amendment: L1 ACCEPT on this head, then the seat's schema-face L2, os-zhuang's approval, #34927 merged, and full green CI on the final head. A later push owes a delta read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgQsdnyS4QdR8stjDa

L1 review (L1-d), delta read · 2026-11-17T16:50Z

L1: ACCEPT
Head-sha: dba3abe870738857afa9b0d9d19b072ed45a947a

Delta from 6954635890 at 19b3f8df: one docs-only commit, dba3abe8, 2 files, +9/-1, no code.

  • It adds timesheet to the viewTypes record in ui/packages/plugin-list/README.md.
  • It types the direct-render snippet in ui/packages/plugin-timesheet/README.md (type: 'object-timesheet', declare const dataSource: DataSource), so check:doc-snippets (red in Lint UI at 3635a482) type-checks it.

Must-fix

None.

Should-fix

None.

Notes

Landing: Tier H (over 3000 lines, plus skills/**). Next comes the seat's schema-face L2, then the seat record, os-zhuang's approval on the final head, #34927 merged and full green CI. The owning seat lands it. A later push owes a delta read.

…nput

The SDUI manifest gained the `timesheet` input and enum member on
`list-view`; content/docs/ui/components/ is generated from it by
scripts/gen-sdui-reference.mjs, and check:sdui-reference reds until the
two match.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzgTk2cRpVHpSVk9tzF
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgQsdnyS4QdR8stjDa

L1 review (L1-d), delta read · 2026-11-17T16:56Z

L1: ACCEPT
Head-sha: 4be2b2dcb7276536d5c526d8b38e0599b005b8e7

Delta from ACCEPT 6954724112 at dba3abe8: one commit, 4be2b2dc, 2 files, +3/-2, no code. It is the output of node scripts/gen-sdui-reference.mjs, which answers the check:sdui-reference red in Lint repo & tooling at dba3abe8:

  • content/docs/ui/components/index.mdx: list-view goes from 41 to 42 inputs.
  • content/docs/ui/components/plugins.mdx: the timesheet input row is added, and type gains a tenth enum member.

Both pages open with the generator's AUTO-GENERATED — DO NOT EDIT … from sdui.manifest.json banner. They are downstream of the SDUI manifest regeneration the claim names, so I read them as inside the claim's regenerated artefacts, like content/docs/references/**. No amendment is needed.

Must-fix

None. Everything closed in 6954635890 and 6954724112 stands.

Should-fix

None.

Notes

  • N4 (out of scope, existing): the generator renders the type enum members as [object Object]. All nine earlier members already read that way on main, and this commit adds a tenth the same way. It is a gen-sdui-reference.mjs defect, not this PR's. Worth a card if no one has filed one.
  • N1 to N3 from 6954236029 stand.

Landing: unchanged. Tier H. Next come the seat's schema-face L2, os-zhuang's approval on the final head, #34927 merged and full green CI. A later push owes a delta read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 8f6048c352d08544a03c2c7d9ca39a760add5a1f
Local-runs: none
Scope: packages/spec/src/kernel/functional-completeness.ts, packages/spec/src/ui/view.zod.ts, skills/objectstack-ui/references/react-blocks.md + packages/spec/src/ui/component.zod.ts, packages/lint/src/validate-list-view-field-refs.ts, packages/lint/src/rule-explanations.ts, packages/lint/src/validate-field-consumers.ts, packages/spec/liveness/view.json, packages/spec/liveness/state-counts/view.md, docs/audits/2026-07-unknown-key-strictness-ledger.counts/ui.md, ui/packages/plugin-timesheet/src/timesheetModel.ts, ui/packages/plugin-timesheet/src/ObjectTimesheet.tsx, ui/packages/plugin-list/src/ListView.tsx, ui/packages/plugin-view/src/ObjectView.tsx, ui/packages/app-shell/src/views/CreateViewDialog.tsx, ui/packages/types/src/zod/objectql.zod.ts
Security-touching: yes

This is a delta review over the seat's L2 record on head 37ec7c06 (record 6957515788: did not pass, should-fix S1, S2, S3, nits N1 to N4), rendered as a full record on the head above. Read: card #34382 with all 11 comments (claim amendment 7, 6958039573, included), PR #34925's body and comments (L1-d's delta ACCEPT on this head, 6958066870, included), the net diff against main (129 files, +3742 / -145, merge base fc5913e1), the delta 37ec7c06..8f6048c3, and the check-runs on this head. Nothing was built, run or re-run.

The delta is one commit, 8f6048c3, whose only parent is 37ec7c06: 20 files, +280 / -44, no merge of main in it. git merge-tree of this head onto main at fff0ad0c writes a tree with no conflict.

Result in one line: S1, S2 and S3 are closed, and what the delta leaves behind is nits.

No must-fix, no should-fix.

S1: closed.

S2: closed.

S3: closed.

Gates (the check-runs on this head)

All 75 check-runs on this head are concluded, read at 2026-11-17T19:27Z: 63 success, 11 skipped, 1 cancelled, none red and none pending. GitHub reports the PR's mergeable_state as clean.

  • The one cancelled run is a duplicate, not a gate reading. Two PR Automation runs started on this head a minute apart. In the first (run 44154198943, 19:02Z) the Check Changeset job hung in Checkout repository and was cancelled at 19:12Z before any gate step ran. In the second (run 44154396519, 19:03Z) the same job ran every step and concluded success. So Check Changeset is green on this head; re-running the cancelled job would clear the stray mark without moving the head, if the seat wants the list clean before os-zhuang reads it.
  • Tests. Test Core and all 10 shards, Test UI and all 16 shards, Build Core, Build & E2E UI, Live E2E UI, Type Check UI, Type Check · workspace, the consumer, source and debt-ledger type gates, and every Lint family: success.
  • Generated skill file. Governed Surface Queue Guard is success and its log lifts skills/objectstack-ui/references/react-blocks.md on 8f6048c352d0 as byte-equal to gen:react-blocks recomputed on this tree; every governed hit was lifted.
  • Ledgers and generated surface. Spec property liveness success (its workflow also runs the strictness-ledger check); the Lint workflow, which runs check:export-origins, the api-surface baseline and the check:generated reconcile, is success in every family.
  • Changeset. Check Changeset success in the run that reached it (above).

① Derived judgments

Accept-set changes, as the whole PR now stands:

  • ListView.type gains 'timesheet', ListView.timesheet / ObjectListView.timesheet is a new optional strict block, and VisualizationTypeSchema gains the member. Right, as judged in 6957515788; the delta does not touch them.
  • New in the delta: { type: 'timesheet' } with no timesheet block is REFUSED, with one custom issue at timesheet, at ListViewSchema, ObjectListViewSchema, the flattened overlay door (PUT /api/v1/meta/view), the spec's page list-view props row (ListViewPageProps, component.zod.ts) and objectui's ListViewPropsBag (objectql.zod.ts). Right. These are exactly the five places checkListViewChartBinding is attached on this head (a grep of the head finds no sixth), in the same order, directly after it. The flat objectui mirror cannot attach it because its kind is viewType, as for the chart check, and the 7715 census records that.
  • It refuses only the blockless case: the predicate is type !== 'timesheet' || timesheet !== undefined, so a declared block is left to TimesheetConfigSchema (strict, three required keys), a view of another type is not judged, and a view that only offers timesheet in appearance.allowedVisualizations is not judged either, which is safe because ListView.tsx offers the visualization only when the block carries all three keys.
  • It narrows nothing published: timesheet is not a member of the enum on main, so no released version accepts the shape. No ADR-0087 disposition and no conversion is owed.
  • One consequence, the intended one: a UI door that hands the write door a blockless timesheet now gets the refusal and its remedy, where on 37ec7c06 the view was stored and drew only the refusal screen. The create-view dialog gates Create on its three picks and writes the block; its payload is parsed against ListViewSchema in the 11581 pin.
  • Lint view/layout-without-binding keeps its seventh row at warning. Right as shipped: the rule runs on the pre-parse stack (validate-functional-completeness.ts), so it is what os validate shows beside the schema's refusal, and the docblock now says so.
  • Cell input: a typed value is read in the display locale's own marks. 1,000 in en is 1000 (it was 1), 1.000 in de is 1000 (it was 1). 7.5 in de, and 1,5 in en, are now refused on the cell where they were accepted before. That is a behaviour change inside an unreleased component, so it moves no published accept-set.

Public-surface changes in the delta, add-only and right: checkListViewTimesheetBinding is exported from @objectstack/spec/ui (api-surface/ui.json and export-origins/ui.json carry the row, and the barrel pin in object-refinement-check-exports.test.ts names it). parseCellInput gains an optional second parameter in a package that has not been released.

Ledgers and generated artifacts: the delta adds no authorable key and no object schema, so the liveness ledger, the strictness counts, the JSON-schema manifest, the authorable surface, the reference docs and the generated skill file do not move, and none of them is in the delta. The two generated files a new export does move are in it.

② Semver level

Clause-②: yes (widening) on the PR body and in the changeset, with Metadata-protocol: added in both. Still right after the delta: the door check refuses a shape of a type that is new in this same release, so the PR as a whole only adds. The changeset names the same 11 packages at minor; the delta moves src/** in spec, plugin-timesheet and types (all three already named) and only a test in lint and plugin-list. No major, no BREAKING banner, no ADR-0087 disposition owed. Check Changeset is green on this head (see Gates).

③ Boundary flags

  • open_questions: empty in report 6954090477; the fix round posted no new report and raises no flag. Nothing to answer.
  • Claim surface: L1-d's M6 (four paths the fix round touched outside the claim) is answered by claim amendment 7 on the card; L1-d reads ACCEPT on this head.
  • Seat ruling A (three keys, no ADR, no authored week window): untouched by the delta and still matched by the schema.
  • Deviations in the PR body: unchanged from 6957515788, except that the stale "no client-side permission gating" line is corrected (N4 of that record, closed on the prose face).
  • Security. Security-touching: yes is meant, for the same reason as in 6957515788: the governed skill hunk teaches no permission behaviour (one enum member on the type row, unchanged in the delta), but the PR's other hunks do (the TimesheetConfigSchema jsdoc, the changeset's three grants, the grant gating in ObjectTimesheet.tsx). The delta itself adds no permission behaviour: the door check is a shape refusal, and a refused cell value never reaches the record API. The seat adopting this record adds the security label.
  • SQL push-down. No finding. The delta adds no query, no id materialisation and no in-app join.

④ Design judgment

packages/spec/src/ui/view.zod.ts — holds. The new check is the chart check's twin, line for line: same signature shape (type and the block read as unknown), same early return, one custom issue at the block's own key, a message constant beside it, attached by identifier and exported so that a mirror built from ListViewSchema.shape re-attaches it. The message states the defect, the remedy with all three keys, and the way out for a view that is not a timesheet, and carries no tracker number. The timesheet member's published description ("A type: 'timesheet' view must bind one") is now true at the door, which was the first half of S1; the jsdoc's reasoning for refusing here while the six older rows stay warnings (ADR-0078 §1, and the narrowing argument that applies to them and not to a new type) is the second half, and it is correct. I tried to break it four ways. A null block passes the check and is then refused by the member's own schema, as for chart. The overlay door reads the input side, so a PATCH naming no type is not judged, and one naming type: 'timesheet' without columns is refused at columns first, as for chart. A view of another type that merely allows the visualization is never offered an unbound grid. And outside the tests that assert the refusal, no list-view fixture, example or doc snippet in the tree carries a blockless type: 'timesheet' (the two fixtures that did were given a binding).

packages/spec/src/kernel/functional-completeness.ts — holds. The delta adds one sentence to the timesheet row of the docblock: the doors refuse the absent block, so the row is what a stack meets before it parses, and it stays a warning like its siblings. Both halves are true against validate-functional-completeness.ts (it walks the normalized, pre-parse stack) and the table. The row, its fix string and its message are unchanged and now pinned.

skills/objectstack-ui/references/react-blocks.md — unchanged by the delta: one generated row, the type prop of the ListView block gaining 'timesheet'. It still agrees with the spec enum on this head, and the governed-surface guard's verdict on this head is under Gates.

Implementing files, sentence by sentence.

  • component.zod.ts and objectql.zod.ts: each attaches the check by reference after the chart check, and each docblock (and types/src/zod/README.md) now counts three checks. Agrees.
  • timesheetModel.ts, parseCellInput(text, locale). numberMarks reads the decimal and group marks off Intl.NumberFormat(locale).formatToParts(12345.6), falls back to . and , when the locale's decimal mark is neither (Arabic's own mark) or the locale tag throws. The parse then: strips one leading -; allows the decimal mark at most once; requires the fraction to be digits; and accepts the group mark in the whole part only as a first group of one to three digits followed by groups of exactly three. Walked by hand:
    • en, and zh, ja, ko (same marks): 1,000 is 1000, 1,234 is 1234, 1,234.5 is 1234.5, 12,345,678 parses; 1,5, 1,234,5, 1,0000, ,000, 1,000, and 1.2.3 are refused.
    • de, and es, pt-BR (same marks): 1,5 is 1.5, 1.000 is 1000, 1.234,5 is 1234.5, 1,000 is 1; 7.5, 1.5 and 1,2,3 are refused.
    • fr and ru (a space groups): 1 234,5 parses with an ordinary space, a no-break space or a narrow one, because any whitespace splits; 1.5 is refused.
    • Negative and empty: -2 is -2, -1,000 in en is -1000; -, --2, +2, . and a lone decimal mark are refused; an empty or blank cell is null, which still clears the cell. .5 is 0.5 and 5. is 5.
    • 0x10, 1e3 and Infinity are refused (the tail of N4 in 6957515788).
    • The 1,234.5 refusal: it was a blanket refusal because the old parser had no locale. It is now read as 1234.5 in en, which is what it means there, and still refused in de (the fraction 234.5 is not digits), which is the case the old refusal protected. No regression.
    • Display and parse agree: the cell shows Intl.NumberFormat(locale, { useGrouping: false }) and ObjectTimesheet.tsx hands the same locale (useDisplayLocale) to the parser at its one call site, so a shown value reads back in every shipped locale that writes Latin digits.
  • ObjectTimesheet.tsx: one changed line, the locale argument. Agrees.

Would the new tests fail with the fix removed? Read off the test bodies:

  • S1: with the check body emptied, view.test.ts goes red at each of the three doors (the refusal and its message are asserted, with a bound control and a grid control beside them), so does the direct fixture row and the bijection in object-refinement-check-exports.test.ts, and the objectui pins list-view-properties-bag-12670 (both faces must carry the spec's own issue at properties.timesheet). Dropping any one of the three attachments in view.zod.ts reds its door in viewDoorsCarryingObjectLevelChecks and the attachments(...) toBe(3) count. Dropping the objectui attachment reds 12670. One attachment is not held: see N6.
  • S2: against the old parser 1,000 yields 1 and 1,234 yields 1.234, so the en cases, the de 1.000 and 1.234 cases, the fr cases and the hex and exponent cases in timesheetModel.test.ts go red, and so does the component test that types 1,000 and expects { hours: 1000 } to be written.
  • S3: deleting timesheet from VIEW_BINDING_BLOCKS reds the spec it.each row and the lint test; deleting its VIEW_BINDING_FIX entry reds the fix.startsWith assertion. Relaxing min(1), max(3), any required key or the strict close reds its own case in view.test.ts.

Nits (no effect on correctness or the contract). N1, N2 and N3 of 6957515788 are carried unchanged; N4 of that record is closed.

  • N1 (carried) — nothing but the create-view dialog's picker holds valueField to a numeric field or dateField to a date field; the follow-up card the PR body mentions is still to be filed.
  • N2 (carried) — the week query sends no sort, so which records fall past the row ceiling is arbitrary, and a record created under a view filter it does not satisfy disappears on the re-read. Follow-up material.
  • N3 (carried) — the liveness evidence for valueField says a delete "writes" it. Prose.
  • N5 — rule-explanations.ts trails the door. The lede of view/layout-without-binding still says a view of any of the seven types with no block "parses and publishes clean"; for timesheet that stopped being true in this delta, and functional-completeness.ts now says the opposite one file over. The changeset and content/docs/ui/views.mdx say only that os validate warns, and do not mention the refusal or the new export. Nobody is misled into a dead view by this (the refusal carries its own remedy, and the warning is printed beside it), so it is a nit, but it is the one most worth a follow-up card: reword the lede to except timesheet, in the same commit as N6.
  • N6 — the attachment on the spec's page list-view row (ListViewPageProps, component.zod.ts) has no pin. The chart check has one for that row (component-list-view-row.test.ts, "a chart with no dataset binding is refused as on the authoring door"); nothing parses a blockless timesheet through the row, and the attachment count in object-refinement-check-exports.test.ts reads view.zod.ts only. Removing .superRefine(checkListViewTimesheetBinding) from that one line leaves every suite green. The rule itself is held at the three list-view doors and at objectui's bag, which is the face a page node is actually validated by, so this is a gap in one mirror's pin, not in the rule. Add the twin of the chart case in a follow-up.
  • N7 — three docblocks in view.zod.ts still count the checks as before the delta: the ListViewShapeSchema docblock ("BOTH terminals attach" the calendar and chart checks), the ListViewSchema docblock ("plus two binding checks"), and the overlay member's ordered list of attached checks, which stops at the chart check. Jsdoc only.
  • N8 — the parseCellInput jsdoc says what the grid shows "always reads back". That holds for Latin digits. Under a locale tag Intl renders in its own digits (ar-EG, fa), the cell shows those digits and a partial edit of them is refused as not a number; it is never misread, and it was the same before the delta. Likewise de-CH groups with a typographic apostrophe, so an ASCII one is refused. And in the PR body the Skills-docs: line says the generated file "picks up the new object-timesheet block", where the hunk is one enum member on the ListView block's type row (prose face).

Closed from earlier rounds and confirmed in the tree: L1-d M1, M3 to M6, the eager-keys question, and L1-d's own S2, which the locale parse now closes in full.

The merge standard is met: only nits stay open. Tier H is unchanged (3,887 lines, one governed path), so os-zhuang's approval on this head is still owed before the seat lands it.

Implemented-by: claude/project-thread-ca331k
Reviewed-by: session_01WGufzgh1zkZzDXL36ckWAG

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

席位记录 · 2026-11-17T19:29Z

Head-sha: 8f6048c352d08544a03c2c7d9ca39a760add5a1f

维护者速读(终稿)

  • 改了什么:列表视图新增「工时表」类型(type: 'timesheet'):按 1–3 个行字段(如项目)× 一周七天把明细记录排成可编辑的格子,一格对应一条记录。空格输入数字即新建,改数字即更新,清空即删除;行、日、周合计始终显示;一格有多条记录时只读显示合计。新增懒加载渲染包 @object-ui/plugin-timesheet。spec 门禁拒绝没有 timesheet 配置块的工时表视图(和 chart 同一道检查);数字输入按显示语言的小数点和千分位解析。
  • 为什么改:ui: an editable row × weekday matrix input for list views (weekly time entry grid) #34382,属于 UI 专题 专题:控制台核心业务操作体验(详情、表单与子表、审批、通知、手机端、应用与 Studio 往返、云端入口) #34571。HotCRM「我的一周」工时录入要按周表格填写,HotCRM 在等这张卡。
  • 风险与回滚:Clause-②: yes (widening),Metadata-protocol: added,11 个包 minor。只是新增一种视图类型和一个新的渲染包,已有类型行为不变。每格写入都走普通记录接口,钩子、校验和权限逐格判定,被拒时停在那一格并显示服务端原因。新的门禁检查只针对新类型,不收窄任何已发布的东西。i18n eager 预算实测 60.5 KiB,上限 78.7 KiB。回滚即 revert。
  • 先看:ui/packages/plugin-timesheet/src/timesheetModel.ts(记录如何落到行和天、每格新建/更新/删除哪条、按语言解析数字),再看 packages/spec/src/ui/view.zod.ts 里的 TimesheetConfigSchema 和 checkListViewTimesheetBinding。
  • 两分钟验证:中文界面给一个有「项目 / 日期 / 工时」字段的对象建视图 type: 'timesheet'、timesheet: { rowFields: ['project'], dateField: 'work_date', valueField: 'hours' },打开后看到周一开始的一周,在空格输入 4 回车,合计变化,列表里多一条记录;再输入 1,000 应存为 1000。
  • 需要你做的:这是 Tier H,改动 3887 行(129 个文件),超过 3000 行人工合并线,另有受管路径 skills/objectstack-ui/references/react-blocks.md(生成文件,队列守卫已核对与生成器逐字节一致)。请 os-zhuang 审批。本 head 上已有 L1-d ACCEPT 6958066870(经修订 7)和席位 L2 delta PASS 6958604629。批准后由 ui: an editable row × weekday matrix input for list views (weekly time entry grid) #34382 卡线程合入。

席位意见:建议批准。L2 两轮:

  • 37ec7c0 上 FAIL 6957515788:三条 should-fix,S1 无配置块的工时表视图能过 spec 门禁,S2 1,000 被存成 1,S3 新类型没进完整性测试、配置块边界没有测试;
  • 本 head 上 delta PASS 6958604629,S1–S3 全部关闭。

现在只剩 nit N1–N3 和 N5–N8,都不影响正确性。

席位核对

  • 形态:Fixes #34382;草稿 PR,base main,3887 行,129 个文件。超过 3000 行线,另命中 skills/**(生成文件)。
  • 前提实测:
    • S1 的检查挂在和 chart 检查相同的五处(三个列表视图入口、ListViewPageProps、objectui 的 ListViewPropsBag),错误形状一致,只拒绝缺配置块的情况。timesheet 不在 main 的枚举里,所以不收窄已发布的东西。
    • S2 按语言解析:en/zh 1,000 → 1000、1,5 拒绝;de/es/pt-BR 1.000 → 1000、1,5 → 1.5;fr/ru 空白分组;负数可用,清空即删格。
    • 依赖的 console budget: raise the eager English catalogue ceiling (i18n-locale-en) by 30%, per the maintainer ruling #34927(i18n eager 上限 80,600)已于 17:53Z 合入。
  • 门禁:本 head 75 个 check-run:63 success,11 skipped,1 cancelled。cancelled 的是一个重复的 Check Changeset,卡在 checkout 被取消、没跑任何门禁步骤;同 head 另一次 PR Automation 里的同一 job 成功。卡线程会重跑它清掉这个标记,不改 head。mergeable_state: clean,和当前 main 合并无冲突。
  • 接受的偏差:
    • N1:lint 不检查 dateField / valueField 的字段类型。
    • N2:周查询没有排序,超过行数上限时某格可能显示为空并被重复新建。
    • N3:一条 liveness 证据行把删除写入说多了。
    • N5:rule-explanations.ts 里 view/layout-without-binding 的导语仍说七种类型缺配置块都「能解析能发布」,对工时表已不成立。
    • N6:ListViewPageProps 上的挂载点没有单独的钉子。
    • N7:view.zod.ts 三处文档注释的检查计数还是修复前的。
    • N8:「总能读回」的注释对用本地数字的语言不成立(会被拒,不会被误读),以及 PR 正文 Skills-docs: 行把 skill 改动说多了。
  • 范围外去向:N5、N6 有实际影响,作为后续卡交给专题 专题:控制台核心业务操作体验(详情、表单与子表、审批、通知、手机端、应用与 Studio 往返、云端入口) #34571 的建卡方(epic note)。
  • 落地条款:Tier H,批准前 ⛔ 不 ready、不入队、不开自动合并。批准后若 main 前移,卡线程先合 main;纯合并补 Regen-provenance,手解冲突补 L1-d 和席位 L2 delta。

type-alias-convention pin: both sides took 858 -> 859; main's #34273
(ActionRefusalSchema) keeps 859 and TimesheetConfigSchema becomes 860.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzgTk2cRpVHpSVk9tzF
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

Seat provenance · merge-forward · 2026-11-17T23:40Z

Regen-provenance: 8f6048c352 → eb6f5e2c · merge of main 4443014630 (d9616e5) + regeneration (eb6f5e2)

Read by the seat: git merge-tree --write-tree 8f6048c352 4443014630 differs from the merge commit only in generated files (docs references, spec api-surface / authorable-surface / declaration-map / export-origins / json-schema.manifest for ui) and in packages/spec/src/type-alias-convention.pin.test.ts. The pin-test resolution changes count lines and the history comment only (859 → 860; main's #34273 block kept verbatim; this PR's block renumbered 859 -> 860). eb6f5e2c differs from the merge commit only in those generated files. No source, schema or prose line was hand-resolved; the seat counts this as mechanical, and the reviews on 8f6048c352 carry forward.

os-zhuang's APPROVED review 5947975677 is on 8f6048c3; the seat re-requests it on eb6f5e2c. Note: #34982 (auto-merge armed) also re-sums this pin (+2); whichever lands second re-sums again.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgQsdnyS4QdR8stjDa

L1 delta review (L1-d) · 2026-11-17T23:40Z

L1: ACCEPT
Head-sha: eb6f5e2cca142949012cff1b5a4574a83c2c0d70

This is a delta read from 8f6048c3, my last ACCEPT (6958066870), over the merge-forward: merge d9616e5b of origin/main 44430146, then the regen commit eb6f5e2c.

Must-fix

None.

Should-fix

None.

Notes

  • Merge-only, file by file. The PR still touches the same 129 files at +3742/-145. For 127 of them, the ^[-+] lines against each head's own merge base (fc5913e1 for the old head, 44430146 for the new) are identical. The other two differ only by main's one intervening schema:
    • packages/spec/src/type-alias-convention.pin.test.ts: the header (L307), the title (L1838) and toHaveLength (L2930) move from 859 to 860. Main's // 858 -> 859 is #34273 line is kept verbatim, and ours follows as 859 -> 860 is #34382. No Iso id is duplicated in the file.
    • content/docs/references/index.mdx (generated): the schema totals move from 1670→1671 to 1671→1672, and UI from 177→178 to 178→179. That is the same +1 over the new base.
  • The relay reports green on this head: spec check:generated, the spec ui/kernel/pin suites (8,018), lint (9,215), the affected ui packages, and the eager budget (en 60.6/78.7 KB).
  • Tier H. os-zhuang's APPROVED review is on 8f6048c3 (22:52Z). This head adds only the merge-forward read above. Whether that approval carries to eb6f5e2c is for the governed queue guard to say on the queue leg. If it does not, the approval needs restating on this head before enqueue.

Landing: CI on this exact head was still running when I read it (4 success, 9 skipped, 25 in progress). The seat enqueues on fully green CI, as the relay reports the maintainer asked. It must still land after #34927, per the earlier order.

type-alias-convention pin: main moved 859 -> 861 (#34982,
DatasetNextStepDecision + DatasetNextStepSchema); TimesheetConfigSchema
becomes 861 -> 862.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzgTk2cRpVHpSVk9tzF
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgTk2cRpVHpSVk9tzF

Card thread provenance · merge-forward 2 · 2026-11-18T00:35Z

Regen-provenance: eb6f5e2cca → ac061cea79 · merge of main 367e324ee (cb63704, after #34982 landed as 92a5cac8d2) + regeneration (ac061ce), through scripts/pm/os-regen-merge.sh

  • Hand resolution: count lines and the history comment only, all in packages/spec/src/type-alias-convention.pin.test.ts: header L307 and title L1840 move 861 → 862 (main had 861); main's // 859 -> 861 feat(spec): the dataset tools' output declares nextStep on list_datasets and sourceLine on query_dataset (ADR-0149 M1) #34982 block kept verbatim; this PR's block renumbered 861 -> 862 is #34382; toHaveLength(862) at L2940. No source, schema or prose line was hand-resolved.
  • Generated: content/docs/references/index.mdx regenerated (UI 178 → 179, total 1673 → 1674: this PR's +1 over the new base); the other spec artefacts were already current.
  • Runs on this head, all green: spec check:generated; spec type-alias-convention.pin + src/ai + src/ui (6,965 tests); ui i18n, scripts/__tests__, studio-design, plugin-timesheet (9,756); console production build + check-eager-closure-budget: i18n-locale-en 60.6 KB of 78.7 KB, aggregate 1901.7 of 2431.6 KB.
  • CI on eb6f5e2c: Test Core (10/10) red in one cli integration test, plan.telemetry-sibling.integration.test.ts (create_table:sys_activity planned after a development boot). Nothing this PR touches is in that path; the same test passed locally on eb6f5e2c (2/2, --project integration), and main is green on that shard. Superseded by this head's run.
  • Trial merge with origin/main just before the push: clean.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue protocol:ui size/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ui: an editable row × weekday matrix input for list views (weekly time entry grid)

3 participants