Skip to content

Units of measure: unit picker for a unit-code field and a quantity's unit field (ADR-0158 Open item 8) #37471

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CbdHk3orAeensH6EzS

Filing gate: ① · Source: fleet (L1 S2 of seat repo:objectstack#5 on PR #37449, verdict 7185332286; contract record 7185313489). Split out of #35490 so its PR can land the label rendering while the picker stays carried.

Grading: area:data · reach: write — ADR-0158 Open item 8 (ruled A on #35339, record 7008524997: a standalone unit field renders with its label 「有下拉」, i.e. gets a picker) names #35490 as the picker card; PR #37449 draws the unit label in cells and stops there · evidence: read — no unit dropdown exists for a code-mode unit field or for a quantity's unitField, and on the form face TextField does not read unitConfig, so a unit-code field in a form shows the bare code (even read-only).
Suggested-grade: p2 · same grade as the parent; the ruled OI8 consequence is unbuilt.

What

  • A unit picker on the form face for a field declaring unitConfig with unitMode: 'code', and for the unitField of a quantity: options from the standard-unit catalog plus the organization's own units, labelled by the server-translated name (app.messages.standardUnit<CODE>, falling back to the spec English base name), storing the code.
  • Read-only form face shows the label, not the bare code.
  • Pins: picker lists the catalog, stores the code, shows the translated label; read-only form shows the label.

Related: #35490 (PR #37449), ADR-0158 Open item 8.
Dedupe: searched open issues for 'unit picker' — none.

Activity

  1. added
    priority:p2
    pm:queue
    domain:ui
    on Nov 26, 2026
  2. 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-26T07:48Z · area:data p2 (area order 「开一个专区 ,接 data 的 p1 p2」, 2026-11-25T23:33Z). Split from #35490 at L1 S2 (verdict 7185332286) and built back into the parent's PR #37449, per the area's choice (a) on the card thread.
    Area: o5-D
    Session: session_01Utp6CbdHk3orAeensH6EzS
    Thread session: session_01Utp6CXM7nqtiQ3M9JqGAqL
    Account: os-bill
    Branch: claude/project-thread-yzpuwp
    Worktree: the card thread's own checkout
    Domain: domain:ui
    Seat: repo:objectstack#5
    File surface: #35490's claim surface (the form face under ui/packages/plugin-form/src/**, ui/packages/fields/**, ui/packages/core/src/** catalog reader, ui/packages/types/src/**), tests named for the card, root .changeset/. ⛔ docs/adr/**, ⛔ skills/**. Stop on breach and report.
    Container & model: L, mode:thread, model: default, effort: high
    Clause-②: yes (widening, carried by PR #37449)
    Metadata-protocol: added (carried by PR #37449: unitConfig on FormField)
    Responsibility: n/a — not a defect card (Feature, ADR-0158 Open item 8, ruled A on #35339, record 7008524997)
    Thread-read: none
    Premise: holds — PR #37449 at the split head drew the label in cells only; no unit picker existed on the form face.
    Serial constraints cleared: #36806 / PR #37436 shares objectGridRowLoad.ts extraFields (one-line union, second to land merges main), form.tsx and ListView.tsx merge cleanly.
    Scope: the card's What. Fixes #37471 rides PR #37449 beside Fixes #35490.

  3. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 26, 2026
  4. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:data · domain:ui · Feature · priority:p2 · pm:dispatched · size M; rationale: the unit picker that ADR-0158 open item 8 rules in, split out of #35490 so that PR #37449 can land the label rendering. Grade follows the parent; already dispatched.

  5. 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) beside its parent #35490: UnitCodeField on the form face for a text field with unitMode: 'code' and for a record-mode quantity's unitField (stamped by withUnitCodePointer); options = the organization's non-retired sys_unit rows, then the standard codes, by translated name with the spec fallback, limited to unitDimension; stores the code; read-only shows the name. Ablations red (retired filter, pointer stamp, TextField branch). ADR-0158 Open item 8 note rides the #37245 row 7187445064. Picker nits N7–N10 (clear to empty, non-form surfaces, empty-organization create form, component pins) are on #37472. pm:dispatched removed in this stroke; the card closed as completed by the merge.

  6. 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