Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
f48d0f4
feat(spec): timesheet list view type and its binding block
claude Nov 17, 2026
bdf4c32
feat(i18n): lazy timesheet locale namespace and spec regenerated arti…
claude Nov 17, 2026
265d9e7
feat(ui): timesheet renderer package, list view wiring, lint field re…
claude Nov 17, 2026
bc71aa6
feat(ui): timesheet view types arms, parity pins and gate fixes
claude Nov 17, 2026
70f915f
feat(lint): timesheet field-ref rows, explanation text and spec pin c…
claude Nov 17, 2026
8811242
Merge origin/main into claude/project-thread-ca331k
claude Nov 17, 2026
0985a74
chore(spec): regenerate reference docs on the merged tree
claude Nov 17, 2026
76988b5
fix(ui): timesheet in the view switcher's label and icon tables and t…
claude Nov 17, 2026
3635a48
chore(changeset): name @object-ui/types in the timesheet changeset
claude Nov 17, 2026
6d78684
fix(ui): bound a date-time timesheet week by local midnight, and show…
claude Nov 17, 2026
6b331e1
chore(sdui): regenerate the manifest for the timesheet list-view inputs
claude Nov 17, 2026
19b3f8d
test(ui): type the zone pin's process read without Node types
claude Nov 17, 2026
dba3abe
docs(ui): timesheet in the README view-type record and a typed direct…
claude Nov 17, 2026
4be2b2d
docs(ui): regenerate the component reference for the timesheet list i…
claude Nov 17, 2026
534d20c
fix(ui): timesheet cell writes read the affordance-to-grant map; rela…
claude Nov 17, 2026
37ec7c0
test(ui): pay the CEL authoring dependencies' load at collection in t…
claude Nov 17, 2026
8f6048c
fix(timesheet): refuse a block-less timesheet view, parse cells in th…
claude Nov 17, 2026
d9616e5
Merge origin/main into claude/project-thread-ca331k
claude Nov 17, 2026
eb6f5e2
chore(spec): regenerate artefacts on the merged tree
claude Nov 17, 2026
cb63704
Merge origin/main into claude/project-thread-ca331k
claude Nov 18, 2026
ac061ce
chore(spec): regenerate artefacts on the merged tree
claude Nov 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .changeset/34382-timesheet-list-view.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
'@objectstack/spec': minor
'@objectstack/lint': minor
'@object-ui/plugin-timesheet': minor
'@object-ui/plugin-list': minor
'@object-ui/plugin-view': minor
'@object-ui/core': minor
'@object-ui/types': minor
'@object-ui/i18n': minor
'@object-ui/app-shell': minor
'@object-ui/cli': minor
'@object-ui/console': minor
---

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

Clause-②: yes (widening — new list view type `timesheet`, its `timesheet` block and the `VisualizationType` member; new locale keys)
Metadata-protocol: added

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:

```ts
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
}
```

- Typing into an empty cell creates a record carrying the row's field values, the day and the number. Changing a cell updates that record, and clearing it deletes the record. Each cell is one call on the record API, so hooks, validation rules and permissions judge it; a refusal stays on that cell with the server's message.
- A cell holding several records shows their sum and is read-only.
- The grid offers each write only to a caller who may make it (the affordance-to-grant map's `gridAddRow`, `listInlineEdit` with the value field's write permission, and `rowDelete`). A cell no granted write can change is read-only, and **Add row** needs the create grant. An interface page's list block relays the view's `timesheet` block.
- The week starts on the viewer's locale first day, with previous / this / next navigation. Row, day and week totals are always shown.
- **Add row** asks for the row field values first; typing a day then creates the record. The view's `filter` applies to the week's query.
- A `timesheet` view with an incomplete block shows "Timesheet configuration required", and `os validate` warns with `view/layout-without-binding`. `view/list-view-field-refs` checks the three field names.

The renderer is the new lazy package `@object-ui/plugin-timesheet` (`object-timesheet`), with its own lazy locale namespace `timesheet.*`. The view switcher, the create-view dialog and the Studio list-view type section offer the new type.
1 change: 1 addition & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
"@object-ui/plugin-markdown",
"@object-ui/plugin-report",
"@object-ui/plugin-timeline",
"@object-ui/plugin-timesheet",
"@object-ui/plugin-tree",
"@object-ui/plugin-view",
"@object-ui/react",
Expand Down
2 changes: 1 addition & 1 deletion content/docs/references/api/metadata.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -965,7 +965,7 @@ Metadata query with filtering, sorting, and pagination
| **relatedLists** | `string[]` | optional | Business order of this object's related lists on its record page, most important first. Each entry is a child object name (e.g. "task"), or object.field when that child has more than one relationship to this object (e.g. "event.related_to"). Listed relationships come first in this order; unlisted ones follow in the derived order (owned master_detail children, then lookup children). An entry whose child is in the stack but has no inbound lookup / master_detail field to this object is refused everywhere. An entry whose child exists nowhere is refused by os validate / os build (which leave a sys_ / cloud_ / ai_ name to the runtime) and by a metadata write that names no package; a write into a package stores it, since a child outside the package may be a downstream package's object that points here, and the record page places nothing for it. It orders only: relatedList: false on the relationship still hides a list, and relatedList: 'primary' still places a list in the record's body, so the order applies among the body tables and among the side cards. |
| **stageField** | `string \| false` | optional | [ADR-0085] Lifecycle stage field (linear/ordered), or false to declare the status field non-linear and suppress stage heuristics. Absent = heuristic detection allowed. When the named field carries options, it must be a single-value `select` / `radio` with inline `options`, each declaring its `kind` ('open' / 'won' / 'lost'); a picklist-backed or multi-value stage field is refused. A name that resolves to no declared field, or a field with no options, is not judged at parse. |
| **editMode** | `Enum<'modal' \| 'page'>` | optional | Edit-interaction intent for records of this object: 'modal' opens the edit form as a dialog over the current view; 'page' navigates to a dedicated full-page edit route. Absent = the renderer picks its own default (objectui defaults to modal). Cross-renderer intent, not pixel styling (family). |
| **listViews** | `Record<string, { name?: string; label?: string \| Record<string, string>; type?: Enum<'grid' \| 'kanban' \| 'gallery' \| 'calendar' \| 'timeline' \| 'gantt' \| 'map' \| 'chart' \| 'tree'>; data?: object \| object \| object; … }>` | optional | Built-in named list views (segmented tabs) shipped with the object schema — "views" mode, dropdown userFilters allowed, no page-only tabs (ADR-0047) |
| **listViews** | `Record<string, { name?: string; label?: string \| Record<string, string>; type?: Enum<'grid' \| 'kanban' \| 'gallery' \| 'calendar' \| 'timeline' \| 'gantt' \| 'map' \| …>; data?: object \| object \| object; … }>` | optional | Built-in named list views (segmented tabs) shipped with the object schema — "views" mode, dropdown userFilters allowed, no page-only tabs (ADR-0047) |
| **searchableFields** | `string[]` | optional | Fields the `$search` query matches against (ADR-0061). Canonical default for the record picker, list quick-search and global search; views may narrow it. When unset, search auto-defaults to the name/title field plus short-text fields. Entries must name a STORED column: a virtual `formula` field is computed on read and materializes no column, so searching it can never match and it is refused — mirror the value onto a stored text field and declare that. |
| **enable** | `{ trackHistory?: boolean; searchable?: boolean; apiEnabled?: boolean; apiMethods?: Enum<'get' \| 'list' \| 'create' \| 'update' \| 'delete' \| 'bulk'>[]; … }` | optional | Enabled system features modules |
| **sharingModel** | `Enum<'private' \| 'public_read' \| 'public_read_write' \| 'controlled_by_parent'>` | optional | Org-Wide Default record visibility (OWD) for INTERNAL users. Canonical four only (legacy aliases removed, ADR-0090 D4): private (owner-only) \| public_read (everyone reads, owner writes) \| public_read_write (everyone reads+writes) \| controlled_by_parent (derived from the master record). A CUSTOM object that omits this resolves to private at runtime (ADR-0090 D1). |
Expand Down
Loading
Loading