You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ef85740
Browse filesBrowse the repository at this point in the historyBrowse files
feat(platform-objects): an organization sets how many decimal places each standard unit of measure displays with (`sys_standard_unit_setting`, ADR-0158 U6)
9
+
10
+
Clause-②: yes (widening)
11
+
Metadata-protocol: none
12
+
13
+
An organization administrator can now give any standard unit of measure (UN/ECE Recommendation 20 codes such as `KGM` or `H87`) its own display decimal places, for example 3 for grams at a jeweller or 0 for kilograms at a gravel yard. The value lives in the new organization-owned object `sys_standard_unit_setting` (Setup → Configuration → Standard Unit Settings): one row per standard code, `decimal_places` a whole number from 0 to 12. Deleting the row clears the setting. The organization's own units keep their decimal places on their own `sys_unit` row.
14
+
15
+
- Every member reads the settings (`member_default`, read only); organization administrators and owners create, edit and delete them (`organization_admin`). External members get no read, as with `sys_unit`.
16
+
-`organization_id` is injected and stamped on every row. Under the `isolated` tenancy posture the tenant wall (ADR-0095 D1) confines every read and write to the caller's organization, so another organization's setting is never read. As with every organization-owned object (ADR-0105 D1), the `single` posture raises no wall, and the `group` posture walls by membership, so a member of several organizations can read each one's settings.
17
+
- Every set, change and clear is written to `sys_audit_log`, with field history on both columns.
18
+
- The value is a display default only (ADR-0158 L4): a field's own `scale` stays the storage ceiling, and nothing is rounded at write by it. No reader ships in this change; the quantity display card (#35490) will read it.
19
+
- Like an exchange rate, a setting is a record the organization owns, so an organization delete is refused (`DELETE_RESTRICTED`) until its settings are deleted.
fix(app-shell): the record-tabs rename in the design mode decides "source language" from the served `sourceLocale`, not the default locale
6
+
7
+
Clause-②: no
8
+
Metadata-protocol: none
9
+
10
+
「Configure tabs」 lets a tab be renamed only in the app's source language, where the name written is the source label. It used to decide that by comparing the reader's language with the deployment's default locale. It now reads the source language `GET /i18n/locales` serves (`sourceLocale`, the default locale where none is served), the same reading the app menu's rename takes. On a deployment whose default locale differs from its source language, a reader in the default locale no longer writes a tab name as the source label, and a reader in the source language can rename again.
fix(console): the marketplace Versions panel marks a code-plugin version where the install would be refused
7
+
8
+
Clause-②: yes (widening)
9
+
Metadata-protocol: none
10
+
11
+
The widening is additive: two new keys, `marketplace.detail.notInstallableHosted` and `marketplace.detail.notInstallableHostedReason`, in every locale of the `marketplace` namespace pack that `@object-ui/i18n` publishes through `./namespaces/marketplace`. No props or other exports change.
12
+
13
+
A package's detail page listed every approved version the same way, so a code-plugin version (served with `contains_code: true`) gave no sign that installing it from a hosted environment is refused with 422 `CODE_PLUGIN_UNSUPPORTED`. On a runtime with no install-local surface, where the page installs through the control plane's door (a hosted environment's console, and the control plane's own console), each code-plugin version now carries a muted "Not installable on hosted" badge (zh: 托管环境无法安装) and one line naming the way out: hosted environments do not run code plugins, so install it on a self-hosted or Enterprise runtime. A self-hosted runtime that installs through its own install-local door marks nothing, and a metadata version is never marked.
// organization's administrators author its own units; the platform ships no
861
861
// row, and no parent row anchors a unit.
862
862
{object: 'sys_unit',census: PMAIN,fate: 'attribution',citation: `${CENSUS_MAIN} (in reach, added since the first census); ${D10_SINGLE}`,anchors: []},
863
+
// Standard unit settings (`@objectstack/platform-objects`, ADR-0158 U6 and
864
+
// Open item 10): an organization's administrators set the display decimal
865
+
// places of a standard unit; the platform ships no row, and no parent row
866
+
// anchors a setting.
867
+
{object: 'sys_standard_unit_setting',census: PMAIN,fate: 'attribution',citation: `${CENSUS_MAIN} (in reach, added since the first census); ${D10_SINGLE}`,anchors: []},
863
868
// Tasks and notes (`@objectstack/platform-objects` `work/`): members write
864
869
// them, and the organization column is stamped from the writing context; no
865
870
// parent row anchors a task or a note (step 1 links neither to a record).
description: "How many decimal places a quantity in a standard unit of measure (KGM, H87, …) displays with in this organization — one row per standard unit the organization has set.",
4512
+
fields: {
4513
+
id: {
4514
+
label: "ID"
4515
+
},
4516
+
code: {
4517
+
label: "Standard Unit",
4518
+
help: "The standard unit code (UN/ECE Recommendation 20) in exact uppercase, for example KGM for kilogram, GRM for gram or H87 for piece. The organization's own units carry their decimal places on the unit itself, under Units of Measure. The code cannot be changed after the setting is created."
4519
+
},
4520
+
decimal_places: {
4521
+
label: "Decimal Places",
4522
+
help: "How many decimal places a quantity in this unit displays with by default. It never rounds a stored value, and a field's own decimal places still limit what is stored and shown. Delete the setting to clear it."
4523
+
}
4524
+
},
4525
+
_views: {
4526
+
all_settings: {
4527
+
label: "All",
4528
+
description: "Decimal places a quantity in a standard unit displays with in this organization. A field's own decimal places still limit what is stored and shown.",
4529
+
emptyState: {
4530
+
title: "No standard unit settings yet",
4531
+
message: "Standard units display with the decimal places of the field that holds the quantity. Add a setting to give a standard unit, such as grams or kilograms, its own number of decimal places."
4532
+
}
4533
+
}
4534
+
},
4535
+
_validations: {
4536
+
standard_unit_setting_code_standard: {
4537
+
message: "Enter a standard unit code in exact uppercase, for example KGM or H87. An organization's own unit carries its decimal places on the unit itself, under Units of Measure."
4538
+
},
4539
+
standard_unit_setting_code_immutable: {
4540
+
message: "A setting's unit cannot be changed after it is created. Delete it and add a setting for the other unit instead."
0 commit comments