Skip to content

Commit 97afed5

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/project-thread-3lahxp
# Conflicts: # ui/packages/plugin-form/src/MasterDetailForm.tsx
2 parents 84dc199 + 141a826 commit 97afed5

78 files changed

Lines changed: 2961 additions & 142 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: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@object-ui/plugin-gantt': patch
3+
---
4+
5+
fix(plugin-gantt): a refused task read draws the no-access state, not the raw error
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
A reader who may open a record but is not granted the records its Gantt chart reads (for example a project page whose task object the role cannot read) saw the transport's own string where the chart would be, untranslated: `Error: ApiDataSource: HTTP 403 Forbidden — {…}`. The chart now classifies a failed load with the shared load-error verdict the list page and the related list use, and for a permission refusal (a 403, or a `PERMISSION_DENIED` / `FORBIDDEN` code) draws the calm no-access state those surfaces draw: a neutral status panel with the shared `list.loadErrorForbiddenTitle` / `list.loadErrorForbiddenMessage` sentence in the reader's language, and none of the server's text. Every other failure (a 500, a dropped connection) keeps the existing error screen.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
'@object-ui/console': patch
3+
'@object-ui/app-shell': patch
4+
'@object-ui/plugin-markdown': patch
5+
'@object-ui/i18n': patch
6+
---
7+
8+
feat(console): an app's docs page has one navigation — the docs column — with the path to its book and the previous and next article
9+
10+
Clause-②: yes (widening) — @object-ui/plugin-markdown exports MermaidEnlargeContext and MermaidEnlargeText; @object-ui/i18n adds 12 help.* keys; nothing removed
11+
Metadata-protocol: none
12+
13+
Inside an app, the documentation pages (`/apps/<app>/docs/…`) no longer draw the app menu beside the docs: the left column is the docs' own, with 「← Back to <app>」 at its top, a title filter, every book of the app's package (the current book open, the others folded, each with its article count; long titles wrap instead of truncating) and 「All documentation →」 at its foot. Every other docs page inside an app (the app's docs index, a book with no articles, a book or doc not found) carries the same 「← Back to <app>」 at its top. The app bar stays, and reads 「<app> / Documentation」; the separate 「Documentation / <title>」 bar under it is gone, and the path above the article names the book (Documentation › <book>). 「On this page」 marks the section being read as the page scrolls, and the article ends with its book's previous and next article. The article column is 720 px wide at 15 px, and a diagram carries an 「Enlarge」 control that opens it full size.
14+
15+
`@object-ui/plugin-markdown` adds `MermaidEnlargeContext`: a host that provides its words gets the enlarge control on every rendered diagram; with no provider a diagram renders exactly as before. `@object-ui/app-shell` exports `matchAppBySegment` and `useServedAppLabel`, and `isAppDocsPath` beside `isRecordPagePath` from its `ConsoleLayout` module. New `help.*` keys in every shipped locale. No doc content, doc metadata, route or API changes.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/platform-objects': patch
3+
---
4+
5+
fix(platform-objects): every locale's Studio help for related-list field groups and inline columns states the field-group rule
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
A master-detail child table appears on the parent's create and edit forms, and at a place on its record page, when a field group of the parent names it (`fieldGroups[].relatedList`); `inlineEdit` alone no longer does that. The English and Simplified Chinese Studio help already said so. The Arabic, German, Spanish, French, Japanese, Korean, Portuguese (Brazil), Russian and Traditional Chinese help for two keys still gave the old rule. The inline columns help said the columns are used only when the field sets `inlineEdit`, and the field group help said the record page does not draw the placement yet. Both now match the English text.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
'@object-ui/plugin-form': patch
3+
'@object-ui/fields': patch
4+
'@object-ui/app-shell': patch
5+
'@object-ui/i18n': patch
6+
---
7+
8+
fix(form): a new detail line on a master-detail create / edit form starts on the child's defaults, does not read red before a save is tried, and a line added and left untouched is skipped with a notice on the form and the record page
9+
10+
Clause-②: no
11+
Metadata-protocol: none
12+
13+
On a parent object's create or edit form, a line added to a detail table started blank, so a required column with a default (a status that defaults to "Pending") read red at once although saving would store the default. The record page's edit state already started its new lines on their defaults; the form now does the same.
14+
15+
**New lines on the form.** A new line starts on the child object's static defaults, the values a create form of the child seeds, whether it is added with Add or with Enter on the last line. A default the server resolves at insert (`NOW()`, a CEL expression) is left to the server. A new line's empty required cell reads red once a save of the form was tried, not the moment the line appears; a stored line is flagged as before. A line added with Add and then applied from the row editor is the user's input and is saved.
16+
17+
**A line added and left untouched** (maintainer ruling, card comment 7056413638: 「跳过并提示未保存」). A line Add started on its defaults that nobody edited holds only those defaults. It is still not written, and the save now says so: once the save lands, the form and the record page's edit state show "1 blank line was not saved" (or "N blank lines were not saved"), also when the host supplies its own save confirmation. Such a line never reads red, before or after a refused save, since there is nothing in it to fix; once the user edits any of its cells it is input, saved and flagged like any other new line. On an edit form that stays open after saving, the skipped line leaves with the save, as it does on the record page. A line the user typed into and then cleared is blank and is skipped as before, without the notice. The pack key is `form.lineItems.untouchedNotSaved`, in every built-in locale.
18+
19+
**Seeding context.** The defaults on both the form and the record page's edit state are now read with the session facts a create form uses: a child field defaulted to the acting user starts on that user, and the organization's currency and time zone seed the fields they seed on a create form. With no known user that field starts empty and the server fills it, as before.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@object-ui/plugin-detail': patch
3+
---
4+
5+
fix(plugin-detail): the record page names the owner once when a details section already shows the owner field
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
On the default record page, the meta line at the foot of the details column (created · updated · owner · id) always named the record's owner, and a details section usually showed the `owner_id` field as well: in a declared field group, in the "Other" group that collects fields no declared group takes, or in the derived section of an object that declares no groups. So the owner was shown twice. The meta line already left the owner out when the highlight strip showed it, and the default page no longer draws a strip, so that rule never applied.
11+
12+
The meta line now also leaves the owner out when a details section of the page's own record draws the `owner_id` row. The owner then shows once, as the section's field, where it can also be changed. The sections report the rows they actually draw, so the owner stays on the meta line whenever no section draws it: the field is hidden, the reader may not read it, a `visibleWhen` hides it or its group, or its section is collapsed. When a collapsed section holding it is opened, the owner moves from the meta line to that section. The field groups are drawn as declared. The highlight strip rule is unchanged.
13+
14+
This changes the laid-out default record page, the one `RecordPageColumns` draws. A default page whose tab strip cannot be laid out keeps the strip-only rule. No metadata key, value or default changes, and no prop, export or locale key is added.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@objectstack/driver-sql': patch
3+
---
4+
5+
feat(driver-sql): on Oracle the share-grant subquery converts `record_id` the way the id list binds a `RAW(16)` uuid key (ADR-0155 O2)
6+
7+
Clause-②: yes
8+
Metadata-protocol: none
9+
10+
No visible change on its own: nothing writes a `SharedRecordIds` leaf yet. The sharing plugin starts writing it at ADR-0155's last step, and this makes that step answer the right rows on Oracle tables keyed by a `RAW(16)` uuid (`SYS_GUID()` keys).
11+
12+
- **Oracle, a `RAW(16)` uuid key.** The compiled subquery `id IN (SELECT record_id FROM sys_record_share WHERE …)` now projects the id list's own conversion when the compared column is a `RAW(16)` uuid column, the same catalog reading that makes the list bind its members as `HEXTORAW(?)`: `HEXTORAW(CASE WHEN REGEXP_LIKE(record_id, UUID_PATTERN, 'i') THEN REPLACE(record_id, '-', '') ELSE 'not-a-uuid' END)`. A grant in upper, lower or mixed case, dashed (8-4-4-4-12) or as 32 undashed digits, names the same row it names in the list. `UUID_PATTERN` is the list's own uuid-text check, written for Oracle from the same constant. Before, Oracle compared the column as its upper-case hex text: the subquery matched no row and its negation every row, with no error.
13+
- **A grant the id list refuses fails the statement.** The list refuses a value that is not uuid text before any statement (`INVALID_FILTER` / 400). Every such stored grant fails the subquery's statement instead, with `DATABASE_ERROR` / 500 (ORA-01465), on the read and on its negation: hex of another length (31 or 33 digits, `0123`), 32 digits with dashes out of place, a grant of dashes only, a blank or a padded uuid, a braced uuid, or text that is not hex. None of them answers a row, and none empties a negation.
14+
- **Unchanged.** Any other Oracle key compiles exactly as before; a `NUMBER` key converts each grant as it converts the list's text binds (measured: the same rows, and the same ORA-01722 for a grant that is not a number). Every other dialect compiles exactly as before.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@object-ui/fields': patch
3+
---
4+
5+
The auto-number field's read display now uses the theme's foreground colour instead of a fixed grey, so it stays readable in dark mode.

‎packages/drivers/driver-sql/src/fixed-read-leaf-key-type.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,9 @@
7272
* old type until restart.
7373
*
7474
* Every other dialect is untouched: SQLite compares by column affinity (the
75-
* same rows, measured on step 3), and MySQL, SQL Server and Oracle are named
76-
* as left in the O2 card's report.
75+
* same rows, measured on step 3), MySQL and SQL Server are named as left in
76+
* the O2 card's report, and Oracle converts a `RAW(16)` uuid key's grants
77+
* itself (`oracleUuidRawProjection`, `sql-driver-oracle-dialect.ts`).
7778
*/
7879

7980
import type { Knex } from 'knex';

‎packages/drivers/driver-sql/src/sql-driver-filter-helpers.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -860,10 +860,12 @@ export class FilterHelpersFacet {
860860
// `field IN (SELECT …)` (`SqlDriver#fixedReadLeafSubquery`), under the
861861
// outer statement's own wall and nothing else. `applyFilters` refused
862862
// it at every other position. The object and column it is compared
863-
// with type the inner read on PostgreSQL (ADR-0155 O2).
863+
// with type the inner read on PostgreSQL (ADR-0155 O2); on Oracle a
864+
// RAW(16) uuid column, read as the list's `HEXTORAW` binding reads it.
864865
if (rawOp === '$in' && isFixedReadLeaf(opValue)) {
865866
const mIn = logicalOp === 'or' ? 'orWhereIn' : 'whereIn';
866-
(builder as any)[mIn](field, this.fixedReadLeafSubquery(opValue, { object: table, column: field, evaluator: this.readableIdsDriverName, transaction: options?.transaction }));
867+
const oracleRawUuid = this.isOracle && this.oracleRawUuidFieldsByObject.get(table ?? '')?.has(localField) === true;
868+
(builder as any)[mIn](field, this.fixedReadLeafSubquery(opValue, { object: table, column: field, evaluator: this.readableIdsDriverName, oracleRawUuid, transaction: options?.transaction }));
867869
continue;
868870
}
869871
// #5222 — a `{ $field }` that is the WHOLE comparand of a scalar

0 commit comments

Comments
 (0)