Repository navigation
feat(ui): a timesheet list view, an editable row × weekday entry grid - #34925
Conversation
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgTk2cRpVHpSVk9tzF
…facts Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgTk2cRpVHpSVk9tzF
…fs and docs Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: 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
…ount Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgTk2cRpVHpSVk9tzF
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgTk2cRpVHpSVk9tzF
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
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgTk2cRpVHpSVk9tzF
📓 Docs Drift CheckThis PR changes 2 package(s): 2 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 5 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 173 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # 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
|
|
repo:objectstack#3 · os-support-ai · session_01WGufzgQsdnyS4QdR8stjDa L1 review (L1-d) · 2026-11-17T16:31ZL1: REWORK Read against claim 6947880824 and report 6954090477 on #34382. Merge base 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
Must-fix
Should-fix
Notes
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. |
… cell values without grouping Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgTk2cRpVHpSVk9tzF
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgTk2cRpVHpSVk9tzF
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgTk2cRpVHpSVk9tzF
|
repo:objectstack#3 · os-support-ai · session_01WGufzgQsdnyS4QdR8stjDa L1 review (L1-d), delta read · 2026-11-17T16:47ZL1: REWORK Delta read from REWORK 6954236029 at This is paper only: one path. Once the claim is amended, this head is ACCEPT, with no push needed. Must-fix
Should-fixNone.
Notes
Landing: Tier H (3299 lines, plus |
…-render snippet Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgTk2cRpVHpSVk9tzF
|
repo:objectstack#3 · os-support-ai · session_01WGufzgQsdnyS4QdR8stjDa L1 review (L1-d), delta read · 2026-11-17T16:50ZL1: ACCEPT Delta from 6954635890 at
Must-fixNone.
Should-fixNone. Notes
Landing: Tier H (over 3000 lines, plus |
…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
|
repo:objectstack#3 · os-support-ai · session_01WGufzgQsdnyS4QdR8stjDa L1 review (L1-d), delta read · 2026-11-17T16:56ZL1: ACCEPT Delta from ACCEPT 6954724112 at
Both pages open with the generator's Must-fixNone. Everything closed in 6954635890 and 6954724112 stands. Should-fixNone. Notes
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. |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG Contract reviewServed-tier: This is a delta review over the seat's L2 record on head The delta is one commit, 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
① Derived judgmentsAccept-set changes, as the whole PR now stands:
Public-surface changes in the delta, add-only and right: 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 levelClause-②: yes (widening) on the PR body and in the changeset, with ③ Boundary flags
④ Design judgment
Implementing files, sentence by sentence.
Would the new tests fail with the fix removed? Read off the test bodies:
Nits (no effect on correctness or the contract). N1, N2 and N3 of 6957515788 are carried unchanged; N4 of that record is closed.
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: VERDICT: PASS |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG 席位记录 · 2026-11-17T19:29ZHead-sha: 维护者速读(终稿)
席位意见:建议批准。L2 两轮:
现在只剩 nit N1–N3 和 N5–N8,都不影响正确性。 席位核对
|
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
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgTk2cRpVHpSVk9tzF
|
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG Seat provenance · merge-forward · 2026-11-17T23:40ZRegen-provenance: Read by the seat: os-zhuang's APPROVED review 5947975677 is on |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgQsdnyS4QdR8stjDa L1 delta review (L1-d) · 2026-11-17T23:40ZL1: ACCEPT This is a delta read from Must-fixNone. Should-fixNone. Notes
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
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgTk2cRpVHpSVk9tzF
|
repo:objectstack#3 · os-support-ai · session_01WGufzgTk2cRpVHpSVk9tzF Card thread provenance · merge-forward 2 · 2026-11-18T00:35ZRegen-provenance:
|
Requested by Yibo Wang · project thread
Fixes #34382
repo:objectstack#3 · os-support-ai · session_01WGufzgTk2cRpVHpSVk9tzF
Clause-②: yes (widening: one new accepted
typevalue on list views, one new optional config block on the view schema, and a new published@object-uiplugin 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.mdis the generated react-blocks contract, which picks up the newobject-timesheetblock; no hand-written skill text changes维护者速读
type: 'timesheet'):按行字段(如项目)× 一周七天把明细记录排成可编辑的格子,每格就是一条记录;在空格里输入数字就新建记录,改数字就更新,清空就删除;行合计、日合计、周合计始终显示;一格里有多条记录时只读显示合计。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 回车后合计变化,列表里多出一条记录。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.packages/spec/src/ui/view.zod.ts):timesheetjoins the list viewtypeenum and theVisualizationTypemembers, andTimesheetConfigSchemais the new optionaltimesheetblock (rowFields1–3 names,dateField,valueField, all required inside the block). Liveness rows for the three keys, regenerated artefacts and reference docs.@object-ui/plugin-timesheet, componentobject-timesheet, registered lazily by the console.ListViewcomposes it for atimesheetview;ObjectViewcomposes it for a hostviewsentry.findper displayed week, the view filter ANDdateFieldinside the week, capped at the non-grid row ceiling, with the row fields' relations expanded (field-level read access permitting).creates a record with the row's field values, the day and the number; changing a one-record cellupdates it; clearing itdeletes 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 withnotifyDataChanged.timesheet.*in 11 languages.view/list-view-field-refschecks the three names (error: each is written into the records a cell creates);view/layout-without-bindingwarns on atimesheetview with no complete block.console.objectView.*(the type label, its description, and the three binding fields' labels and help).ObjectTimesheetSchemajoins theObjectQLComponentSchemaunion and its zod mirror;NamedListViewcarriestimesheet.Tests
New and updated tests
plugin-timesheetsuites (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) andObjectTimesheet.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).view/list-view-field-refsposition rows; the rule explanation namestimesheet.apibinding (columns, every row, locale headings), so a console page can list what a GET door answers #31856),objectViewHostSurfacemeasured branches,ListViewBlock.specInputs,registry-inputs-spec-parity,CreateViewDialog.viewTypeParse,ViewSwitcherview-type table,normalize-list-viewdrawn kinds, side-effects roster.Acceptance notes
The card's ask, item by item:
timesheet.rowFields/dateField/valueField; the week window follows the viewer's locale first day with previous / this / next (seat ruling: no authored window key).create/update/deleteon the data API.Before (
origin/main):ListView.typeaccepts nine values and none pivots records into an editable row × day grid; a storedtype: '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/viewwith atype: 'timesheet'list view,PUT /meta/app, fivePOST /datarows; all 200 / 201). Script, readings and screenshots:/mnt/project-files/objectstack-seat3/34382-live/(project share).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 totals0 2 4 3.5 0 0 0, week 9.5.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'smax: 24, and the cell kept 30, red, with "Not saved: Hours must be ≤ 24"; clearing Apollo Tue sentDELETE …/<id>. Week total 9.5 → 17.5 (with the refused draft not counted in the row) → 14.5.Verification
Gates
dispatch-gates --commands, 152) on head 70f915f: 151 exit 0;check-plugin-teardown-shape --self-testexit 3 (prerequisite: this clone is shallow;git fetch --unshallowis needed).dispatch-gates --ran: 152 accounted for.check:generatedall 14 current) and the last fixes, on head 3635a48: the touched suites rerun green: uiplugin-timesheet,types,cli,i18n,plugin-view,corenormalize-list-view,CreateViewDialog*,registry-inputs-spec-parity,ListViewBlock.specInputs,one-authority-per-exported-name,side-effects-declaration-consistency(537 files, 13,481 tests); spectype-alias-convention.pin; lint full suite (9,127 tests).ObjectView*(849) andstudio-design/(2,577),plugin-list(1,869),check:i18nexit 0,check:dual-build-cjs-loadsexit 0,check:livenessexit 0.turbo run build --filter='!@objectstack/docs') exit 0; type-check exit 0 forplugin-timesheet,plugin-list,plugin-view,types,i18n,cli,core,app-shell,console.consoleproduction build +check-eager-closure-budgetexit 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:
view.form.ts) gets notimesheetsection:treeandmaphave 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.console.objectViewgroup, 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.object-timesheet, with a named stopgap paragraph, as ui: a page element that renders a table of rows from a pageapibinding (columns, every row, locale headings), so a console page can list what a GET door answers #31856 did.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.mjsand twoui/scriptstests,ui/vitest.config.mts,.changeset/config.json(the new package in the fixed group),scripts/regen-artifacts.mjs.resolveAffordance(gridAddRow,listInlineEditplus the value field'sresolveFieldAffordance,rowDelete), so a cell the viewer may not write is read-only, Add row shows only with create, and a write is refused locally withtimesheet.notAllowed. The server still judges every write, and a server refusal shows on its cell.Fix round 1 (L1-d 6954236029), head 19b3f8d
datetimedate field is now bounded by the instants of local midnight (weekQueryBoundsintimesheetModel.ts); adatefield keeps its day keys. Pins:timesheetModel.test.ts(suite zone),ObjectTimesheet.test.tsx(the query adatetimefield sends), and the new zone pintimesheet.dateTimeZone-34382.test.tsat UTC+13 (Pacific/Auckland) and UTC-8 (America/Los_Angeles), registered inscripts/__tests__/date-only-zone-pins-10183.test.ts, which runs it on the forks pool (7/7 there; the driver passes).useGrouping: false, so1234.5edits back. (Superseded in fix round 2:parseCellInputnow reads the display locale's own decimal and group marks.)check-eager-closure-budgetred before that is expected.Build & E2E UIwas red on 3635a48:sdui.manifest.jsonlacked thetimesheettype option and input. Regenerated withnode scripts/gen-sdui-manifest-node.mjs;check-sdui-manifestexit 0.scripts/ablation-replace.mjs, red, and restored to the HEAD blob (git diff HEADempty):buildTimesheetRows)sum += amount→sum = amountplanCellWrite)> 1record →> 99datetimequerytimesheetrowsscalars: { dateField, valueField }→{}ListViewcase 'timesheet'timesheet: schema.timesheetdroppeduseGrouping: false→trueplugin-timesheetexit 0;vitest run packages/plugin-timesheet/33 passed, 7 skipped (the driven zone cases); the driverdate-only-zone-pins-10183andvitest-timezone-pin-8366pass;check:test-source-aliasexit 0.Fix round 2 (seat L2 6957515788), head 8f6048c
checkListViewTimesheetBinding(specview.zod.ts) refusestype: 'timesheet'with notimesheetblock, attimesheet, besidecheckListViewChartBinding: attached onListViewSchema,ObjectListViewSchema, the list overlay and the component face (component.zod.ts), and on objectui'sListViewPropsBag(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), typesspec-object-refinements-7715/imported-defaults-8317/list-view-properties-bag-12670(both faces refuse atproperties.timesheet; a bound timesheet passes). Fixtures that parsed a block-less timesheet now carry a binding (view-form-pagination.test.ts,ListViewBlock.specInputs-13047).parseCellInput(text, locale)reads the display locale's decimal and group marks (Intl.NumberFormat#formatToParts; a locale with its own decimal mark, such asar-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: en1,000= 1000,1,234= 1234,1,234.5= 1234.5,1,5refused; de1,5= 1.5,1.000= 1000,1.234,5= 1234.5,7.5refused; fr space grouping; and inObjectTimesheet.test.tsxa typed1,000in en-US writes{ hours: 1000 }.timesheetjoins the specfunctional-completeness.test.tsit.each and lint'svalidate-functional-completeness.test.ts(flagged as a warning atobjects[0].listViews.week.timesheet, silent once bound).TimesheetConfigSchemabounds: 1 and 3rowFieldspass, 0 and 4 refused, each missing key refused, an unknown key (weekStart) refused.git diff HEADempty): the check body →return;turns 7 spec tests red (direct calls, the bijection, each door's refusal); locale marks forced to./,turns 3plugin-timesheettests red (de, space grouping, read-back in own locale).src/ui+src/kernel(7,986 tests), lint completeness and list-view field refs (229), uitypes,plugin-view,plugin-timesheet,plugin-listspecInputs,CreateViewDialog.viewTypeParse, cli ratchet, core normalize-list-view, console registry parity, relay census 11572, affordance census 12082, i18n (all green); type-checktypes,plugin-timesheet, spectsc;check:api-surfaceandcheck:export-originscurrent.Human Minimum
packages/specholds no runtime logic.packages/spectouched: its generated artifacts are regenerated and committed.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01WGufzgTk2cRpVHpSVk9tzF