Skip to content

Commit 534a8d3

Browse files
Merge branch 'main' into claude/issue-35018-studio-names-a
2 parents adeba01 + 36d46b5 commit 534a8d3

267 files changed

Lines changed: 8158 additions & 612 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
'@objectstack/spec': minor
3+
'@objectstack/lint': minor
4+
'@object-ui/plugin-timesheet': minor
5+
'@object-ui/plugin-list': minor
6+
'@object-ui/plugin-view': minor
7+
'@object-ui/core': minor
8+
'@object-ui/types': minor
9+
'@object-ui/i18n': minor
10+
'@object-ui/app-shell': minor
11+
'@object-ui/cli': minor
12+
'@object-ui/console': minor
13+
---
14+
15+
feat(ui): timesheet list view, an editable row × weekday entry grid
16+
17+
Clause-②: yes (widening — new list view type `timesheet`, its `timesheet` block and the `VisualizationType` member; new locale keys)
18+
Metadata-protocol: added
19+
20+
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:
21+
22+
```ts
23+
type: 'timesheet',
24+
timesheet: {
25+
rowFields: ['project', 'task'], // 1–3 fields; one row per distinct combination
26+
dateField: 'work_date', // date or datetime
27+
valueField: 'hours', // number, currency or percent
28+
}
29+
```
30+
31+
- 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.
32+
- A cell holding several records shows their sum and is read-only.
33+
- 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.
34+
- The week starts on the viewer's locale first day, with previous / this / next navigation. Row, day and week totals are always shown.
35+
- **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.
36+
- 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.
37+
38+
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.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
---
4+
5+
fix(console): the AI change card names a published object or field by the label its draft gives it
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The AI build chat's change card read an object or field label from the published registry first, and asked the draft overlay only for a name the registry did not know. So when a draft relabelled a published object or field (for example "Task" renamed to "Work item", or the field "Due" to "Deadline"), the card still showed the published label, the one the change is about to replace.
11+
12+
A published name now also asks the draft overlay (`GET /meta/object/:name?preview=draft`) for its object. The card shows the published label at once and the draft label as soon as the overlay answers; a name the draft did not change keeps its published label, and so does one whose overlay read fails. A label the draft changed is shown as written: the convention translation for that object or field was written for the published label and would hide the new one. A label the draft did not change still goes through the translation.
13+
14+
Cost: one more request per published object a card names, then at most one more per object each time the conversation moves on (a message lands, a turn starts or ends), and none while a read is in flight or on a re-render. A later relabel in the same conversation is therefore named on the next card. Drafted-only names keep the earlier rule (asked again only when the kept answer does not name them).
15+
16+
This supersedes one sentence of the pending entry that taught the card drafted labels ("A published object still answers from the registry without a draft read"): a published object now also reads the draft overlay, as above.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
docs(skills): `objectstack-data` teaches `rollupSourceUnreadableReason` beside `security-rollup-source-unreadable`
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
objectstack-data's `rules/relationships.md` named two ways to resolve `security-rollup-source-unreadable` on a permission set that reads a roll-up `summary` but not the child data under it: grant the child read, or mask the summary. It now names the third. When the request says the set should see the total but not the children, keep the column readable and add `rollupSourceUnreadableReason` to the set's entry for it: `fields: { 'project.task_count': { readable: true, rollupSourceUnreadableReason: 'Clients see progress counts, not tasks' } }`. The warning for that set and column is then reported as a note quoting the reason. A blank reason, or one beside `readable: false`, is refused at parse time. The reason is never added to silence a total the request withholds: that one is masked.
11+
12+
The mask sentence now names Modify All alone as what must leave the set first. A set's own `readable: false` binds beside its own View All, so the skill no longer asks for View All to be removed.
13+
14+
Six restatements in the same file are cut to pay for it, so the file's token ceiling goes down, 4229 to 4221. The skill's evals gain one case (the set sees the total but not the rows, so the answer acknowledges it with a reason) beside the existing mask case.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
docs(skills): objectstack-data teaches that the package shipping a `fieldPatches` relabel translates that text in its own `translations`
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
`skills/objectstack-data/SKILL.md`, the `fieldPatches` paragraph: patched text is translated in the patching package's `translations`, under the owner's keys (`objects.crm_account.fields.industry.label`, `.help`, `.options.<value>`); the owner's translation of the text the patch replaced never applies, a pair `.custom` translation comes first on `/meta`, and a locale the package does not translate serves the patch text. This is the skill text for the behaviour `@objectstack/spec` 18 already ships; the docs page `data-modeling/object-extensions` teaches the same. One eval case asks where a dependent package's zh-CN strings for its patch go. The file pays in full by dropping restatement and its token ceiling does not move: the lead-in line under the Quick Reference heading, the second half of the multi-value-lookup note (the Relationship Patterns rows carry it), and the two unique scopes named again under the index example. No schema or runtime change.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
'@objectstack/scenarios': patch
3+
'@objectstack/skills': patch
4+
---
5+
6+
docs(skills): trigger cases for the six metadata skills, and eval cases that grade the skill instead of a spelling or a missing project
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
`@objectstack/skills` ships each bundle's `evals/` as eval fixtures, inert in a consumer install. The six metadata skills (`objectstack-data`, `-query`, `-ui`, `-automation`, `-formula`, `-i18n`) each gain `evals/triggers.json`: 42 trigger cases, 12 of them near misses that should leave the skill alone. A trigger case carries `should_trigger: true | false` in place of `assertions` and is graded on whether the skill was loaded. Eleven existing cases had an assertion bound to one spelling of a right answer, or forbidding a token a right answer quotes; those assertions are narrowed. Thirty prompts that read as if a project were on disk now state that none is and what the answer should carry.
12+
13+
The `@objectstack/scenarios` README documents how the checkout-only `skill-evals` runner grades and reports trigger cases and places a case's `files`. The runner is not in the package's published `bin` or `exports`, so nothing a consumer installs changes beyond the README text.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@objectstack/scenarios': patch
3+
---
4+
5+
fix(scenarios): the runner loads a card's seed through the platform's seed path, so a build's status state machine no longer refuses rows the card states as already past their entry state
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The runner wrote every seed row through the data API as the admin. That is a user write, so a build's `state_machine` rule judged each one: a build that declared `initialStates: ['draft']` on a claim's status, as the data skill teaches, refused every claim the card states as `paid`, `submitted` or `rejected`, and every line and approval step under them failed for want of its claim. On `travel_expense` that was 114 root refusals and 470 cascaded ones, 584 of 757 rows.
11+
12+
The seed now goes in as one data-only package whose `data[]` holds the card's rows, installed through the managed install door. The platform's seed loader writes them as established facts: it skips the `state_machine` rule only, so every other validation rule and every hook still judges each row. Each row keeps the card's own `id`, a lookup value names the row seeded under it, and a user id in `owner_id` or a `user` field lands as sent. A refused row is still recorded with its object, id and the loader's message; the seed door names no error code. A restore puts a removed seeded row back the same way. The second pass, which sets the lookups that close a reference cycle, is unchanged.
13+
14+
Seed rows no longer fire a build's record-triggered flows, as the data API's insert did. No library card relies on that: every truth is computed from the seed's own values, and the cards that ask for such flows seed the values a flow would produce.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
'@objectstack/platform-objects': patch
3+
---
4+
5+
feat(platform-objects): the System Overview datasets give their seven members synonyms and a description
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The five System Overview datasets (`sys_user_metrics`, `sys_organization_metrics`, `sys_session_metrics`, `sys_package_installation_metrics`, `sys_audit_log_metrics`) had no business words on their seven members. A question asked in an administrator's own words therefore found only a member's name or its label in the caller's locale. Each member now declares ADR-0149 D1 `synonyms`, Chinese and English in one array, and a one-sentence `description`:
11+
12+
- measures `user_count`, `org_count`, `session_count`, `package_count`, `event_count`;
13+
- dimensions `action` and `user_id` on `sys_audit_log_metrics`.
14+
15+
Synonyms are match input, so no bundle translates them. Each description has a bundle entry at `datasets.<name>.{measures,dimensions}.<member>.description` in all eleven Setup bundle locales, and a recorded source digest in each translated locale.
16+
17+
`list_datasets` compares a term by equality after normalization. So `list_datasets({ terms: ['用户数'] })` and `list_datasets({ terms: ['how many users'] })` now each match `sys_user_metrics.measures.user_count` on a synonym, and nothing else. A word that no member declares still matches nothing. No synonym is a word of another measure in any of the five datasets, in any locale.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
'@objectstack/spec': minor
3+
'@objectstack/metadata-protocol': minor
4+
'@objectstack/rest': minor
5+
'@objectstack/lint': minor
6+
'@objectstack/cli': minor
7+
'@object-ui/app-shell': minor
8+
'@object-ui/i18n': minor
9+
---
10+
11+
feat(spec): a named import mapping's label is translatable at `mappings.NAME.label`
12+
13+
Clause-②: yes (widening) — a new optional translation group `mappings` (one key per mapping, `label`) on `TranslationDataSchema`, `PlatformTranslationDataSchema`, `ServedTranslationDataSchema` and `TranslationItemSchema`, a new `translateMapping` export from `@objectstack/spec/system` registered for the `mapping` type, and a new `ObjectStackProtocolImplementation.getPackagedMappingBase`; nothing that parsed before is refused
14+
Metadata-protocol: added
15+
Skills-docs: follow-up owed — #34962 (skills/objectstack-i18n/SKILL.md group list)
16+
17+
An import mapping's `label` is the name the import wizard offers it by, and until now it showed the authored text in every locale: the bundle had no key for it. A bundle now translates it:
18+
19+
```ts
20+
'zh-CN': { mappings: { crm_lead_feed: { label: '线索导入' } } }
21+
```
22+
23+
- `GET /meta/mapping` (list and item) serves the label in the reader's locale. A shipped mapping overridden through its `.custom` pair follows the ADR-0146 D2 order every other translated label follows: a label the override changed keeps its own text unless the pair translates it, and a label it left alone takes the pair's translation, then the package's. The packaged base is now available for `mapping` (`getPackagedMappingBase`), so the override's label is judged against it.
24+
- Only `label` has a key. A mapping declares no `description`, and its `fieldMapping` holds column and field names rather than copy — the refusal for either names where to translate instead (a target field's label is `objects.OBJECT.fields.FIELD.label`). The singular `mapping` and the label aliases `name` / `title` are refused with the declared spelling named.
25+
- `os i18n extract` scaffolds the key, `os i18n check` reports a gap as `i18n/missing-mapping`, and `os validate` reports a key naming no mapping of the stack as `translation-target-unknown`, with the nearest name suggested.
26+
- Studio's translation preview shows the group as **Import Mappings** (导入映射), and the Studio translation table walks it.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/scenarios': patch
3+
---
4+
5+
fix(scenarios): the asked-back "no figure" check no longer reads an option's place or a date as a figure
6+
7+
Clause-②: yes (widening: published @objectstack/scenarios adds `DATASET_GRADER_REVISIONS` on ./score/full, the optional `DatasetGrade.revision`, and the optional per-grader `revision` in `HalfScores` datasets `byGrader` on ./runner; `asked-back:no-figure` now passes replies it used to fail — option places and dates after a time word)
8+
Metadata-protocol: none
9+
10+
An ask-back that numbered its options and then pointed at them (「通常选第 1 个或第 3 个」) failed `asked-back:no-figure` with "the reply states 1, 3, 1, 3", and one that offered a time window "through 2026-11-17" failed with "the reply states 11, 17": the rule that drops a year written after a time word cut the year off the date, and its month and day were then read as figures. An option named by its place (`option 2`, `options 1 or 3`, `the 3rd one`, 「第 1 个」, 「选项 2」) is now no figure, and a date keeps its year, so it is skipped whole as before. A real figure in the same reply (`10,290`, `6 claims`, 「共 6 笔」) still fails the check, and an English place number before any other noun (`the 3rd quarter`) still reads as a figure.
11+
12+
The rule change is recorded: `DATASET_GRADER_REVISIONS` names each dataset grader's rule revision, an `asked-back` grade now carries `revision: 2`, the scorecard's datasets tally carries it per grader, and the `Run · datasets` row reads `asked-back rev 2 k/N`. A round graded before this change shows no revision, so the two are not compared like for like. A replay (`--driver recorded:F`) grades with the current rules.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/console': patch
4+
---
5+
6+
fix(app-shell): Home draws the Connect an AI Assistant card after the greeting, My apps and My work, as one row on a phone
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
Home used to open with the "Use this system in your AI assistant" card, above the greeting and the apps. On a 375 px phone its sentence wrapped to five lines, so the card took about a quarter of the first screen and pushed My apps below the middle.
12+
13+
- **Place.** The card now comes after the greeting, My apps and My work. When there is no My work section, it follows the apps. On a workspace with no app yet, it follows the welcome instead of sitting above it.
14+
- **Size on a phone.** Below the `sm` breakpoint the card is one row: icon, title on one line, Connect and close. The sentence under the title is hidden from view there but screen readers still read it. From `sm` up the card looks as it did.
15+
16+
When the card shows has not changed. It still shows only to someone who has connected no assistant, and it stays away after they close it. The first-run checklist's row for the same item is untouched.

0 commit comments

Comments
 (0)