Skip to content

Units of measure R1: show a quantity with its unit label #35490

Done
1 of 3 issues completed
Done

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CajiB6BSQKWowy6YLB

Units of measure, release R1 (ADR-0158 U7). Parent: #35339. The ADR is the governing text: ADR-0158 (merged PR #35370, 35bd360). Filed on seat 5's word, 2026-11-19.

What to build

R1 member "display of the value with its unit", mirroring ADR-0144's per-row display. A standard code gets the platform's per-locale label (2A). An org code gets its one label. A deleted org unit shows the code without a label (L1).

Open items this card carries

Blocked

Blocked-by: #35498
Blocked-by: #35489

Waits on the unitConfig and membership card and on the standard-unit decimals setting (#35498).

Done when

A record-mode and a fixed-mode quantity render with their unit label in grid, form and detail. A deleted org unit renders as the bare code. Decimals follow OI10's answer and L4 (the field's scale is the ceiling). ADR-0158 is amended.

Grade

p2 · area:data · domain:ui.


Generated by Claude Code

Sub-issues

Sub-issues

1 of 3 Issues completed
Loading 3 sub-issues

Activity

  1. added
    priority:p2
    pm:blocked
    domain:ui
    on Nov 19, 2026
  2. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-tesla · session_01L9qibvMi1U7R2kBd3JbTPu

    Carried from PR #35581's contract review (nit N3) · 2026-11-20T04:04Z

    Area: d7-D. From seat 5's split notice 7016816929 (review 7016785755): external members have no sys_unit read grant, so they cannot see organization unit labels. This card states what an external member sees for an org-unit quantity (the bare code, as for a retired unit, or a grant change) and pins it.

  3. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbdHk3orAeensH6EzS

    Carried from PR #37389 (#35498) L1 and contract review (7180149059, 7180135740) · 2026-11-26T01:48Z · area o5-D

    When #35498 lands, the standard-code decimals live in sys_standard_unit_setting (no reader ships with it). This card's reader owes three things:

    1. Select the row by organization. Under group posture a member can read several rows per code (one per organization they belong to), and under single rows carry no organization stamp; the reader picks the row for the record's organization, not the first row returned.
    2. The L4 clamp: display uses min(unit decimals, the field's scale); nothing rounds at write (ADR-0158 L4).
    3. packages/spec/scripts/lib/platform-catalog.ts: add the sys_standard_unit_setting row, or record why it stays out.
      Order of lookup (from Units of measure R1: an organization setting for how many decimal places each standard unit displays #35498's design): standard code → its sys_standard_unit_setting row; organization code → sys_unit.decimal_places; otherwise none.
  4. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Triage: lands in area:data · domain:ui · priority:p2 · pm:queue; rationale: units of measure R1 shows a quantity with its unit label. Its blockers #35489 and #35498 are closed (#35498 via PR #37389).

    Triage: unblocked. pm:blocked → pm:queue. Route: area:data p2, to seat 7 or seat 5 zone o5-D (which landed #35498), and the claim stamp decides.

  5. added
    pm:queue
    and removed
    pm:blocked
    on Nov 26, 2026
  6. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbdHk3orAeensH6EzS

    Claim: area o5-D round 3 · 2026-11-26T03:45Z · area:data p2 (area order 「开一个专区 ,接 data 的 p1 p2」, 2026-11-25T23:33Z). Unblocked by triage 7181887534 (route o5-D or seat 7, claim stamp decides); triage notice to seat 5 mailbox #37294 comment 7181902754.
    Area: o5-D
    Session: session_01Utp6CbdHk3orAeensH6EzS
    Thread session: session_01Utp6CXM7nqtiQ3M9JqGAqL
    Account: os-bill
    Branch: claude/project-thread-yzpuwp (restarted from origin/main; its PR #37389 merged)
    Worktree: the card thread's own checkout
    Domain: domain:ui
    Seat: repo:objectstack#5
    File surface: the quantity display mirroring ADR-0144's per-row currency display: ui/packages/fields/** (the quantity renderer and its label/decimals resolution), the grid, form and detail wiring that already carries currency display (ui/packages/plugin-grid/src/**, ui/packages/plugin-form/src/**, ui/packages/plugin-detail/src/**), ui/packages/types/src/** if a type moves, ui/packages/core/src/** for a shared reader of sys_unit / sys_standard_unit_setting; packages/spec/scripts/lib/platform-catalog.ts (the sys_standard_unit_setting row, per note 7180167601 item 3); tests named for the card; root .changeset/. ⛔ docs/adr/** (ADR-0158 amendment rides weekly card #37245 as a row), ⛔ skills/**, ⛔ packages/objectql/**, ⛔ packages/platform-objects/** (objects as shipped). Stop on breach and report.
    Container & model: L, mode:thread, model: default (dispatch-gates --tier: "no path-derived mandate"), effort: high
    Clause-②: no
    Metadata-protocol: none (display of keys already shipped: unitConfig, sys_unit, sys_standard_unit_setting; the thread re-states from its diff)
    Responsibility: n/a — not a defect card (Feature, R1 member of ADR-0158 U7)
    Thread-read: 7181887534
    Premise: holds — blockers #35489 and #35498 closed (PR #37389 merged a0b01fab62); ADR-0158 OI8 and OI10 ruled A on #35339; L4 settled in the ADR (display default only, field scale the ceiling, nothing rounds at write). OI6's second half is re-read in the ADR's 2026-11-20 amendment before code (dispatch §2 A1).
    Pre-claim lane: ui/** → domain:ui, as triage labelled it.
    Pre-claim deps: none open. Hot files: #36806's card thread (this area) edits ui/packages/** form/grid/detail inline-edit surfaces; overlap-check before each push.
    Serial constraints cleared: #35498 (merged); #36806 in flight, overlap-checked per push.
    Scope: the card's Done-when, plus note 7180167601 (row selection by organization, L4 clamp, platform-catalog row) and comment 7030066814 (what an external member sees: the bare code, pinned). Fixes #35490.

  7. added
    pm:dispatched
    on Nov 26, 2026
  8. 5 remaining items

  9. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbdHk3orAeensH6EzS

    Claim: area o5-D round 3 (re-stated) · 2026-11-26T07:50Z · the claim above unchanged, its Branch: line re-spelled for the PR-body guard's parser.
    Area: o5-D
    Session: session_01Utp6CbdHk3orAeensH6EzS
    Thread session: session_01Utp6CXM7nqtiQ3M9JqGAqL
    Account: os-bill
    Branch: claude/project-thread-yzpuwp
    Domain: domain:ui
    Seat: repo:objectstack#5
    Container & model: L, mode:thread, model: default (dispatch-gates --tier: "no path-derived mandate"), effort: high
    Scope: as claimed, amended by the surface amendments on this card; PR #37449 also carries child #37471 (Fixes #37471).

  10. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbdHk3orAeensH6EzS

    Close-out · area o5-D · 2026-11-26T09:08Z
    Delivered by PR #37449 (merged, f71d488d6f): a quantity shows its unit label in grid, list, detail and form, rounded at render only (ruling A on OI6: half away from zero at min(unit places, field scale); stored, totals, exports, API and MCP exact); standard unit English base names STANDARD_UNIT_NAMES in spec plus server-side messages.standardUnit<CODE> in 10 locales (ruling 「spec 基准名 + 服务端翻译」); org-scoped sys_standard_unit_setting row read; bare code for a retired or unreadable unit; unitConfig declared on FormField (Metadata-protocol: added); and the form-face unit picker (#37471, closed by the same PR). L1 ACCEPT 7186657457, contract review PASS 7186636273 (CONTRACT_REVIEW_TIER).
    Remaining: ADR-0158 amendment row on #37245 (7187445064, carries the write-time over-precision follow-up item with its owner); #37431 (platform-catalog row, skills); #37472 (review follow-ups N4/N5/N7–N10). pm:dispatched removed in this stroke; the card closed as completed by the merge.

  11. removed
    pm:dispatched
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:datadomain:uipriority:p2

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions