Skip to content

ui: home field read-only with "converted at RATE on DATE"; live preview when a rate exists; Studio editor for homeAmount (multi-currency M3-2, epic #8345; the read-only display is released with M2) #27196

Closed

Description

@objectstack-fleet

Blocked-by: #27191
Blocked-by: #27188

Filing gate ③ (maintainer-directed). Ruling 6465431966 on #27119 (batch #421 item 2, Q1 = 乙-现在, maintainer 「同意立专题卡」 2026-10-28): the multi-currency epic resumes on #8345 in shape C′. Part of #8345. Filed by the director seat (session_01QSeKYo7qYsX6HsAneHBMP2, ledger objectstack#12708). ⛔ Not a claim. Workload row and precedents: 6464936321; design: 6464438764.

Ruling-ref: 6465431966

维护者速读

  • 改了什么: 影子列只读显示并提示「按 X 汇率于 Y 日折算」;有汇率时表单实时预览 ≈ 本位币金额;Studio 字段编辑器加「本位币金额字段」下拉(只列 dynamic 模式存储型币种字段)。
  • 为什么改: 财务对账要看到用了哪条汇率。
  • 风险与回滚: 只读部分随 R2 发布;预览可随 R3。
  • 先看: fields/src/widgets/CurrencyField.tsx、app-shell 表单、Studio 字段编辑器。
  • 两分钟验证: 发票表单显示「≈ ¥71,994.24(按 0.1389,2026-11-01)」。
  • 需要您做的: 无。

Task

  • Read-only rendering + tooltip from rateField / rateDate.
  • Preview: one rate read, cached; "awaiting rate" when none.
  • Studio editor.

Lane: ui · Size: M · Review: default. Clause-②: no · Metadata-protocol: none.

Epic: #8345 (parent; the epic PM dispatches pm:epic children; domain:spec children go to the spec seat's queue). Dedupe: #8345 thread, #27119 (ruled), the workload list 6464936321; no open card carries this slice.

Activity

  1. added
    enhancement
    priority:p2
    pm:blocked
    pm:epic
    area:records
    domain:ui
    on Oct 28, 2026
  2. objectstack-fleet commented on Oct 31, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-zhuang · session_01AavokzJ5DndAwitDXvKy4U

    Path: none

    Triage: unblocked · back to the epic PM · 2026-10-31T04:01Z

    ⛔ Not a claim.


    Generated by Claude Code

  3. added
    pm:blocking
    pm:queue
    and removed
    pm:blocked
    pm:epic
    on Oct 31, 2026
  4. objectstack-fleet commented on Nov 8, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-zhuang · session_01AavokzJ5DndAwitDXvKy4U

    Path: none

    Triage: released to the lane under #31502 A′ · pm:epic → pm:queue · 2026-11-08T16:18Z

    ⛔ Not a claim.


    Generated by Claude Code

  5. objectstack-fleet commented on Nov 8, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#3 · zhuangjianguo · session_01QsR2jVEjiYrK7onirxUGyo

    Claim: PM loop round 1 · 2026-11-08T16:21Z
    Session: session_01QsR2jQyTLkpKcX2UF8X3Ss (card thread, dev) · seat session_01QsR2jVEjiYrK7onirxUGyo
    Account: zhuangjianguo
    Branch: claude/project-thread-b809vx
    Worktree: objectstack-issue-27196
    Domain: domain:ui
    Seat: domain:ui#3
    File surface (provisional, the step-1 report confirms): ui/packages/fields/src/widgets/CurrencyField.tsx and its tests, the app-shell record form, the Studio inspectors CurrencyConfigField.tsx / ObjectFieldInspector.tsx, ui/packages/i18n/src/locales/*.ts if keys are added, root .changeset/; ⛔ no change to packages/spec/**, packages/objectql/** or the server
    Container & model: M, mode:thread, model: default tier (dispatch-gates --tier: no path-derived mandate), effort: high
    Clause-②: no (provisional: any new locale key makes it yes (widening) and owes a declaration review, settled at step 1)
    Metadata-protocol: none
    Responsibility: a record-mode amount's homeAmount home field (ADR-0144 D5) in objectstack has no ui reader: the form does not say which rate and date produced the stored home amount, no preview shows the conversion before save, and Studio has no editor for the three pointers | the platform path is the spec's HomeAmountSchema (field.zod.ts) and the engine's write-time projection (packages/objectql/src/home-amount-projection.ts) | finance users reconciling converted amounts, and Studio authors declaring homeAmount
    Thread-read: 6723910106
    Premise: holds in part. Both blockers are closed: #27191 (spec, homeAmount) and #27188 (ui record-mode currency). On origin/main 6b83ec2de, nothing under ui/packages reads homeAmount. The card predates the spec in one respect: its title's rateField? is optional, but on main all three pointers are required. The spec and engine on main win, and step 1 names each difference.
    Serial constraints cleared: the other domain:ui card in build on this seat is #31520 S2 (PR #31567, ui/scripts/ and the root walker only), on a disjoint surface

    Scope: the card's three Task boxes (read-only display with the rate/date hint, a cached rate preview with an awaiting-rate state, the Studio homeAmount editor). Step-1 report first, before any code: the measured current rendering, the rate read and its refused-read state, the preview's arithmetic taken from the engine's rule and not copied, every new key, and a one-PR or sliced plan with a line budget. Slices say Part-of #27196; the last says Fixes #27196. Brief: /mnt/project-files/issue-27196/brief.md.

  6. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 8, 2026
  7. 2 remaining items

  8. objectstack-fleet commented on Nov 8, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#3 · zhuangjianguo · session_01QsR2jVEjiYrK7onirxUGyo

    Claim amendment · 2026-11-08T16:39Z · claim 6723943475

    Step-1 report 6724108734 is read and accepted, with the rulings below. It was measured on origin/main 6b83ec2de by card thread session_01QsR2jQyTLkpKcX2UF8X3Ss.

    • Two slices.
    • The preview's rule moves; it is not copied. The engine's conversion functions (toScaledDecimal, divideToPlaces, formatScaledDecimal, documentDateOf) are exported by no package the ui can import. This seat filed formula: export the home-amount conversion arithmetic (scaled-decimal divide, rounding, document date) so the ui preview reuses the engine rule (blocks #27196 PR 2) #31609 (domain:server, p2): the four functions move to a published package both sides depend on (@objectstack/formula is proposed), with byte-identical behaviour. That is the report's option A. Options B (a dry-run route), C (a copy) and D (dropping the preview) are declined.
    • PR 1 surface: the report's item 7 list, unchanged.
      • ui/packages/i18n/src/currency.ts and its index.ts, the locale packs, and namespaces/studio/{en,zh}.ts.
      • ui/packages/fields/src/{currency.ts,index.tsx,widgets/CurrencyField.tsx,widgets/useFieldTranslation.ts}.
      • ui/packages/plugin-form/src/sectionFields.ts and ui/packages/plugin-detail/src/DetailSection.tsx.
      • ui/packages/app-shell/src/views/metadata-admin/inspectors/{CurrencyConfigField.tsx,ObjectFieldInspector.tsx}.
      • Tests beside each, and one root .changeset/.
      • ⛔ No change to packages/spec/**, packages/objectql/** or the server.
      • Budget about 650 lines. If it passes 800, stop and report before going on.
    • Out of scope, kept as today: the auto-layout ObjectForm keeps dropping readonly fields (plugin-form/src/autoLayout.ts, filterSystemFields). Changing that would move every readonly field on every auto form. The home field reaches the record page and the authored-section form, which is where the hint goes. Say this in the PR body.
    • In scope, a live defect: re-picking currencyField in CurrencyConfigField (~L150) deletes an authored homeAmount. PR 1 keeps homeAmount on a pointer change, and still drops it when the mode moves away from record, as the spec requires. Pin both.
    • The Studio pickers follow the spec's judge, not a second statement of it. If object.zod.ts exports a predicate that refuseDishonestHomeAmount reads, import it. If none is exported, the candidate lists are hints, and the test oracle is the spec itself: every candidate combination the editor offers on the fixture object must parse through the object schema, and each excluded shape the report names must be refused by it. That covers a formula amount, a non-readonly target, a target with expression, a target already claimed, and a rate field with scale below 12. No refusal message is copied into the ui.
    • Locale keys. fields.currencyHome.convertedAt and fields.currencyHome.homeCurrency go in every locale pack (all-locales-key-parity) and FIELD_DEFAULTS. zh-Hant is generated with gen:zh-hant, not hand-written. The Studio designer.field.currency.* keys go in the studio namespace, en and zh only. node scripts/check-i18n-en-drift.mjs, run from ui/, must be green.
    • PR 2, ruled now so it waits only on formula: export the home-amount conversion arithmetic (scaled-decimal divide, rounding, document date) so the ui preview reuses the engine rule (blocks #27196 PR 2) #31609:
      • The rate read and cache are as in report item 3.
      • A refused read (403) shows "converted when you save", never "awaiting rate" and never a guessed amount. That shape must be measured live in PR 2, because it is NOT MEASURED in the report.
      • A parity test runs the engine's own cases through the ui path.

    Clause-②: yes (widening)
    Metadata-protocol: none

    Clause-②: yes (widening): the new keys widen the published TranslationKeys of @object-ui/i18n. A TIER_DEFAULT declaration review by this seat is owed on PR 1 before landing.

  9. objectstack-fleet commented on Nov 8, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#3 · zhuangjianguo · session_01QsR2jVEjiYrK7onirxUGyo

    Claim amendment · 2026-11-08T16:49Z · claim 6723943475 (surface only; amendment 6724151062 stands)

    • Surface amended (PR 1). Adds ui/packages/plugin-form/src/ObjectForm.tsx, for the one withHomeAmountSource stamp at its authored-sections field build (generateField, ~L986).
      • Measured by the card thread: sectionFields.ts feeds only ModalForm and DrawerForm, so an inline ObjectForm with sections would keep drawing the home field as a disabled box with no hint.
      • The auto-layout readonly drop stays unchanged.
      • Pin the inline sectioned form beside the modal and drawer cases.
  10. objectstack-fleet commented on Nov 8, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#3 · zhuangjianguo · session_01QsR2jQyTLkpKcX2UF8X3Ss
    os-dev-report

    {
     "card": 27196,
     "pr": 31638,
     "pr_body_ref": "Part-of #27196",
     "slice": "PR 1 of 2 (Tasks 1 and 3); PR 2 (Task 2 preview) Fixes #27196, Blocked-by #31609, not started",
     "head": "68f353bae4e9ac4082d9aa91ac0bdf156bab698c",
     "merged_main": "69244406",
     "parallel_fix_scan": "none (no file touched here changed on main since the branch base)",
     "declarations": {
      "clause_2": "yes (widening)",
      "metadata_protocol": "none"
     },
     "gates": {
      "derived": 39,
      "run": 39,
      "not_measured": 0,
      "unrun": 0,
      "all_exit_0": true,
      "list": [
       {
        "cmd": "node scripts/check-adr-0087-registration.mjs --base origin/main",
        "exit": 0
       },
       {
        "cmd": "node scripts/check-adr-0087-registration.mjs --self-test",
        "exit": 0
       },
       {
        "cmd": "node scripts/check-changeset-no-major.mjs --base origin/main",
        "exit": 0
       },
       {
        "cmd": "node scripts/check-closing-keyword-parity.mjs",
        "exit": 0
       },
       {
        "cmd": "node scripts/check-closing-keyword-parity.mjs --self-test",
        "exit": 0
       },
       {
        "cmd": "node scripts/check-comment-mask-corpus.mjs",
        "exit": 0
       },
       {
        "cmd": "node scripts/check-empty-changeset.mjs --base origin/main",
        "exit": 0
       },
       {
        "cmd": "node scripts/check-empty-changeset.mjs --self-test",
        "exit": 0
       },
       {
        "cmd": "node scripts/check-sdui-manifest.mjs",
        "exit": 0
       },
       {
        "cmd": "node scripts/check-sdui-manifest.mjs --self-test",
        "exit": 0
       },
       {
        "cmd": "node scripts/ci/snapshot-next.mjs --self-test",
        "exit": 0
       },
       {
        "cmd": "node scripts/pm/release-rehearsal-clone.mjs --self-test",
        "exit": 0
       },
       {
        "cmd": "node scripts/release-pending-publish.mjs --self-test",
        "exit": 0
       },
       {
        "cmd": "pnpm --filter @objectstack/spec run check:duration-unit-keys",
        "exit": 0
       },
       {
        "cmd": "pnpm --filter @objectstack/spec run check:error-code-provenance",
        "exit": 0
       },
       {
        "cmd": "pnpm check:changeset-gate-self-tests",
        "exit": 0
       },
       {
        "cmd": "pnpm check:closed-ceremony-text",
        "exit": 0
       },
       {
        "cmd": "pnpm check:cross-package-test-inputs",
        "exit": 0
       },
       {
        "cmd": "pnpm check:dispatcher-error-vocabulary",
        "exit": 0
       },
       {
        "cmd": "pnpm check:driver-memory-census",
        "exit": 0
       },
       {
        "cmd": "pnpm check:engine-double-contract",
        "exit": 0
       },
       {
        "cmd": "pnpm check:gitlink-declared",
        "exit": 0
       },
       {
        "cmd": "pnpm check:merge-driver",
        "exit": 0
       },
       {
        "cmd": "pnpm check:nul-bytes",
        "exit": 0
       },
       {
        "cmd": "pnpm check:published-files",
        "exit": 0
       },
       {
        "cmd": "pnpm check:query-options-erasure",
        "exit": 0
       },
       {
        "cmd": "pnpm check:refd-timer-probe",
        "exit": 0
       },
       {
        "cmd": "pnpm check:registry-log-declared",
        "exit": 0
       },
       {
        "cmd": "pnpm check:rest-log-spy-declared",
        "exit": 0
       },
       {
        "cmd": "pnpm check:role-word",
        "exit": 0
       },
       {
        "cmd": "pnpm check:skill-identifier-liveness",
        "exit": 0
       },
       {
        "cmd": "pnpm check:test-source-alias",
        "exit": 0
       },
       {
        "cmd": "pnpm check:tier-file-adoption",
        "exit": 0
       },
       {
        "cmd": "pnpm check:undeclared-dep-imports",
        "exit": 0
       },
       {
        "cmd": "pnpm check:watch-hint-literal",
        "exit": 0
       },
       {
        "cmd": "pnpm check:where-matcher",
        "exit": 0
       },
       {
        "cmd": "pnpm --dir ui exec vitest run scripts/",
        "exit": 0
       },
       {
        "cmd": "pnpm check:type-check-coverage",
        "exit": 0
       },
       {
        "cmd": "pnpm check:type-check-debt",
        "exit": 0
       }
      ]
     },
     "body_gates": {
      "check-changeset-no-major --base origin/main": 0,
      "check-adr-0087-registration --base origin/main": 0,
      "check-closing-keyword-parity": 0,
      "check-partof-closing-keyword": 0
     },
     "suites": {
      "@object-ui/i18n": "99 files, 1804 passed, 13 skipped",
      "@object-ui/fields": "300 passed + 1 skipped files, 4548 passed, 7 skipped",
      "@object-ui/plugin-form": "226 files, 2465 passed, 1 skipped",
      "@object-ui/plugin-detail": "374 passed + 1 skipped files, 3355 passed, 18 skipped",
      "app-shell (narrowed: 54 files naming CurrencyConfigField or ObjectFieldInspector)": "54 files, 578 passed",
      "ui scripts/": "170 passed + 2 skipped files, 5002 passed, 2 skipped"
     },
     "ablations": [
      {
       "cut": "readHomeAmountSource returns undefined",
       "red": "9/22 display pins",
       "restored": "blob == HEAD"
      },
      {
       "cut": "rate-field filter keeps only type number",
       "red": "2/13 Studio pins",
       "restored": "blob == HEAD"
      },
      {
       "cut": "code-field re-pick drops homeAmount",
       "red": "1/13 Studio pins",
       "restored": "blob == HEAD"
      }
     ],
     "line_budget": {
      "target": 650,
      "stop": 800,
      "measured": "+700/-11 over 28 files (git diff --shortstat origin/main...HEAD)",
      "within_stop": true
     },
     "files_changed": [
      ".changeset/27196-home-amount-display.md",
      "ui/packages/app-shell/src/views/metadata-admin/inspectors/CurrencyConfigField.recordMode-27188.test.tsx",
      "ui/packages/app-shell/src/views/metadata-admin/inspectors/CurrencyConfigField.tsx",
      "ui/packages/app-shell/src/views/metadata-admin/inspectors/ObjectFieldInspector.tsx",
      "ui/packages/fields/src/__tests__/recordCurrency.faces-27188.test.tsx",
      "ui/packages/fields/src/index.tsx",
      "ui/packages/fields/src/widgets/CurrencyField.tsx",
      "ui/packages/fields/src/widgets/useFieldTranslation.ts",
      "ui/packages/i18n/src/currency.ts",
      "ui/packages/i18n/src/index.ts",
      "ui/packages/i18n/src/locales/ar.ts",
      "ui/packages/i18n/src/locales/de.ts",
      "ui/packages/i18n/src/locales/en.ts",
      "ui/packages/i18n/src/locales/es.ts",
      "ui/packages/i18n/src/locales/fr.ts",
      "ui/packages/i18n/src/locales/ja.ts",
      "ui/packages/i18n/src/locales/ko.ts",
      "ui/packages/i18n/src/locales/pt-BR.ts",
      "ui/packages/i18n/src/locales/ru.ts",
      "ui/packages/i18n/src/locales/zh-Hans.ts",
      "ui/packages/i18n/src/locales/zh-Hant.ts",
      "ui/packages/i18n/src/namespaces/studio/en.ts",
      "ui/packages/i18n/src/namespaces/studio/zh.ts",
      "ui/packages/plugin-detail/src/DetailSection.tsx",
      "ui/packages/plugin-detail/src/__tests__/DetailSection.homeAmount-27196.test.tsx",
      "ui/packages/plugin-form/src/ObjectForm.tsx",
      "ui/packages/plugin-form/src/__tests__/sectionFormHomeAmount-27196.test.tsx",
      "ui/packages/plugin-form/src/sectionFields.ts"
     ],
     "deviations": [
      "line count 700 is over the 650 target and under the 800 stop; about 60 percent is tests",
      "app-shell suite narrowed to the 54 files naming CurrencyConfigField or ObjectFieldInspector; the rest of app-shell not run locally",
      "the CurrencyConfigField harness gained two module-top imports (formula, lint) that check:test-source-alias asked for once the file was edited",
      "the PR is not subscribed for activity from this thread: re-runs after open are the seat's"
     ],
     "not_measured": [
      "live Console screenshot of the home field (pinned in jsdom only)",
      "preview refused-read 403 state (slice 2)"
     ],
     "security_findings": "none",
     "writes": {
      "api": 3,
      "detail": "step-1 comment, pr_create via relay, this report"
     },
     "mcp_calls": {
      "reads": 6,
      "writes": 0
     }
    }
  11. objectstack-fleet commented on Nov 8, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#3 · zhuangjianguo · session_01QsR2jVEjiYrK7onirxUGyo

    Claim amendment · 2026-11-08T18:25Z · claim 6723943475 (surface only; amendments 6724151062 and 6724257070 stand)

    • Surface amended (PR 1 feat(ui): show the rate and date a home amount was converted at, and a Studio homeAmount editor #31638). This adds ui/examples/schema-catalog/test/form-field-channel-census-12130.test.tsx, for one RUNTIME-ONLY ledger row, homeAmountSource, read by entry@i18n/src/currency.ts.
    • Why: Test UI (13/16) on 68f353ba reds "the undeclared reads are exactly the ledger". The census requires every key read on the form-field channel to be either declared on FormFieldSchema or in the ledger.
    • What the row records: the stamp is object-field metadata read off the object's field map, never authored on a form. That is the same class as the valueDomain and lookupAutofill rows, so it is ledgered and not declared.
  12. objectstack-fleet commented on Nov 8, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#3 · zhuangjianguo · session_01QsR2jVEjiYrK7onirxUGyo

    ACCEPT → PR #31638 comment 6725657541 · 2026-11-08T18:57Z · head 0052b220 (PR 1: the home field's read face says the rate and document date it was converted at, on the record page and on sectioned forms; the Studio homeAmount editor, held to the spec as oracle; the re-pick defect fixed; 716 lines, not governed, Part-of #27196). Declaration review PASS 6725646288. Landing through the merge queue. The card stays pm:dispatched: PR 2 (the preview) is Blocked-by: #31609.

  13. objectstack-fleet commented on Nov 8, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#3 · zhuangjianguo · session_01QsR2jVEjiYrK7onirxUGyo

    Slice landed · PR 1 · 2026-11-08T19:21Z

    Reading Value
    PR #31638 MERGED 2026-11-08T19:21:06Z, merge commit 2e33533e895bfcefccb3c797837e1fefd14ec538 on main
    #27196 open, pm:dispatched kept: Part-of; PR 2 (the preview) is Blocked-by: #31609

    Delivered (Tasks 1 and 3):

    • A home field declared through homeAmount draws its read face on the record page and on sectioned forms (modal, drawer and inline), with "Converted at RATE on DATE" taken from the record's stored rate and document date. An amount already in the home currency shows the rate-1 line instead.
    • Studio has a homeAmount editor with three pickers, held to the spec's own judge by oracle tests.
    • Re-picking the code field no longer deletes an authored homeAmount.

    Not changed: the auto-layout ObjectForm still drops readonly fields.

    Remaining: Task 2 (the live preview), Fixes #27196. Its rule moves in #31609, whose PR #31631 is Tier H and waits on a governed approver's merge.

  14. objectstack-fleet commented on Nov 8, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#3 · zhuangjianguo · session_01QsR2jQyTLkpKcX2UF8X3Ss
    os-dev step-0 Clause-② call

    Step 0: PR 2 (Task 2, the live preview) · 2026-11-08T22:12Z

    ⛔ Not a claim. Tree: origin/main 9bf32864 (with #31631 fe88ecda), branch claude/project-thread-b809vx restarted from main.

    Clause-②: yes (widening). Five new locale keys in every pack (all-locales-key-parity) and FIELD_DEFAULTS, so TranslationKeys of @object-ui/i18n widens again. Placeholders are spelled in words here.

    • fields.currencyHome.preview: "≈ AMOUNT at RATE on DATE"
    • fields.currencyHome.previewSame: "≈ AMOUNT (home currency)"
    • fields.currencyHome.awaitingRate: "No CURRENCY rate on or before DATE: saving is refused until one is added"
    • fields.currencyHome.awaitingDate: "Set the document date to see the home amount". This differs from the step-1 wording ("Pick FIELD …"): the amount widget does not hold its sibling's label, and getting it would need a new field-metadata stamp.
    • fields.currencyHome.rateUnreadable: "Converted to the home currency when you save" (a refused 403 read)

    No new public export. The preview hook stays internal to @object-ui/fields.

    Metadata-protocol: none.

    Files beyond the step-1 item 7 list (asking before touching)

    1. ui/packages/fields/package.json gains "@objectstack/formula": "workspace:^", the same spelling @object-ui/core and app-shell declare. pnpm-lock.yaml moves with it (one importer entry). Without it, check:undeclared-dep-imports refuses the import feat(formula): publish the home-amount conversion arithmetic #31631 made possible.
    2. ui/examples/schema-catalog/test/form-field-channel-census-12130.test.tsx, only if the census records a new read on the form-field channel. The likely one is dataSource read off the currency widget's props. That would be a ledger row extension (an existing RUNTIME SLOT row gains a reader), not a declaration.

    How it works

    • Rate read: dataSource.find('sys_exchange_rate', { $filter: { currency, effective_date: { $lte: DATE } }, $orderby: [{ field: 'effective_date', order: 'desc' }], $top: 1, $select: ['rate', 'effective_date'] }), the engine's own rateOn query. One read per adapter, currency and date, cached for the session.
    • Arithmetic: toScaledDecimal, divideToPlaces and formatScaledDecimal from @objectstack/formula, at CURRENCY_FRACTION_DIGITS[home] from @objectstack/spec/data.
    • Document date: documentDateOf(value, localization.timezone). A YYYY-MM-DD value is its own day, as in the engine.
    • dataSource reaches the currency widget through stripRegisteredFieldProps in components/src/renderers/form/form.tsx, as step-1 item 2 named. The SchemaRendererContext adapter is the fallback, the LookupField order.
    • 403 read: classifyLoadError(...) === 'forbidden' shows rateUnreadable, never awaitingRate and never an amount. It will be measured live as a member on a dev server.

    Line budget about 350 lines, per step-1 item 7.

  15. objectstack-fleet commented on Nov 8, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#3 · zhuangjianguo · session_01QsR2jVEjiYrK7onirxUGyo

    Claim amendment · PR 2 · 2026-11-08T22:13Z

    Amends the claim 6723943475 and amendment 6724151062 for PR 2 (Task 2, the preview), after the dev's step-0 call 6727854849.

    • Blocker cleared: formula: export the home-amount conversion arithmetic (scaled-decimal divide, rounding, document date) so the ui preview reuses the engine rule (blocks #27196 PR 2) #31609 is closed. PR feat(formula): publish the home-amount conversion arithmetic #31631 merged at fe88ecda (2026-11-08T21:40Z). PR 2 carries Fixes #27196 and no Blocked-by:.
    • Clause-②: yes (widening). The five new fields.currencyHome.* keys go in every locale pack, with zh-Hant generated, and no public export is added. The seat owes a TIER_DEFAULT declaration review on the final head.
    • Surface widened by two files:
      1. ui/packages/fields/package.json gains "@objectstack/formula": "workspace:^", and pnpm-lock.yaml moves with it.
        • It adds no new package to the graph: @object-ui/fields already depends on @object-ui/core, which depends on @objectstack/formula with the same specifier.
        • @objectstack/formula declares sideEffects: false.
        • The direct edge is what check:undeclared-dep-imports asks for. The PR states the @object-ui/fields bundle delta.
      2. ui/examples/schema-catalog/test/form-field-channel-census-12130.test.tsx, only to add a reader to an existing row (for example dataSource on the RUNTIME SLOT row) if the census records a new read. Adding no new row means declaring nothing on FormFieldSchema.
    • Everything else in amendment 6724151062 stands, including the refused-read (403) state shown live.
  16. objectstack-fleet commented on Nov 8, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#3 · zhuangjianguo · session_01QsR2jQyTLkpKcX2UF8X3Ss
    os-dev-report

    {
     "card": 27196,
     "pr": 31724,
     "pr_body_ref": "Fixes #27196",
     "slice": "PR 2 of 2 (Task 2, the live preview); PR 1 #31638 merged 2e33533e",
     "head": "57993ba65a6d74dadc132374899bf4d3356da389",
     "measured_head": "78863476 (pre-merge; the merged main commits touch no PR file)",
     "parallel_fix_scan": "none (no PR file changed on main; no main commit names sys_exchange_rate under ui/)",
     "declarations": {
      "clause_2": "yes (widening)",
      "metadata_protocol": "none",
      "step0": 6727854849
     },
     "gates": {
      "derived": 59,
      "run": 59,
      "not_measured": 0,
      "unrun": 0,
      "all_exit_0": true,
      "notes": [
       "check:query-options-erasure timed out at 300s in the loop, re-run alone exit 0 (5m22s)",
       "check:dual-build-cjs-loads exit 3 (unbuilt) until the platform build, re-run exit 0"
      ],
      "list": [
       {
        "cmd": "node scripts/check-adr-0087-registration.mjs --base origin/main",
        "exit": 0
       },
       {
        "cmd": "node scripts/check-adr-0087-registration.mjs --self-test",
        "exit": 0
       },
       {
        "cmd": "node scripts/check-changeset-no-major.mjs --base origin/main",
        "exit": 0
       },
       {
        "cmd": "node scripts/check-closing-keyword-parity.mjs",
        "exit": 0
       },
       {
        "cmd": "node scripts/check-closing-keyword-parity.mjs --self-test",
        "exit": 0
       },
       {
        "cmd": "node scripts/check-comment-mask-corpus.mjs",
        "exit": 0
       },
       {
        "cmd": "node scripts/check-console-intercept-disarm.mjs",
        "exit": 0
       },
       {
        "cmd": "node scripts/check-console-intercept-disarm.mjs --self-test",
        "exit": 0
       },
       {
        "cmd": "node scripts/check-dts-emitted.mjs --self-test",
        "exit": 0
       },
       {
        "cmd": "node scripts/check-empty-changeset.mjs --base origin/main",
        "exit": 0
       },
       {
        "cmd": "node scripts/check-empty-changeset.mjs --self-test",
        "exit": 0
       },
       {
        "cmd": "node scripts/check-osv-exemptions.mjs",
        "exit": 0
       },
       {
        "cmd": "node scripts/check-osv-exemptions.mjs --self-test",
        "exit": 0
       },
       {
        "cmd": "node scripts/check-sdui-manifest.mjs",
        "exit": 0
       },
       {
        "cmd": "node scripts/check-sdui-manifest.mjs --self-test",
        "exit": 0
       },
       {
        "cmd": "node scripts/ci/assert-turbo-remote-cache.mjs --self-test",
        "exit": 0
       },
       {
        "cmd": "node scripts/ci/plan-test-core-shards.mjs --self-test",
        "exit": 0
       },
       {
        "cmd": "node scripts/ci/prune-turbo-cache.mjs --self-test",
        "exit": 0
       },
       {
        "cmd": "node scripts/ci/snapshot-next.mjs --self-test",
        "exit": 0
       },
       {
        "cmd": "node scripts/osv-base-relative.mjs --self-test",
        "exit": 0
       },
       {
        "cmd": "node scripts/pm/release-rehearsal-clone.mjs --self-test",
        "exit": 0
       },
       {
        "cmd": "node scripts/release-pending-publish.mjs --self-test",
        "exit": 0
       },
       {
        "cmd": "pnpm --filter @objectstack/spec run check:duration-unit-keys",
        "exit": 0
       },
       {
        "cmd": "pnpm --filter @objectstack/spec run check:llms-txt",
        "exit": 0
       },
       {
        "cmd": "pnpm check:changeset-fixed",
        "exit": 0
       },
       {
        "cmd": "pnpm check:changeset-gate-self-tests",
        "exit": 0
       },
       {
        "cmd": "pnpm check:closed-ceremony-text",
        "exit": 0
       },
       {
        "cmd": "pnpm check:cross-package-test-inputs",
        "exit": 0
       },
       {
        "cmd": "pnpm check:dispatcher-error-vocabulary",
        "exit": 0
       },
       {
        "cmd": "pnpm check:driver-memory-census",
        "exit": 0
       },
       {
        "cmd": "pnpm check:dts-closure",
        "exit": 0
       },
       {
        "cmd": "pnpm check:dual-build-cjs-loads",
        "exit": 0
       },
       {
        "cmd": "pnpm check:engine-double-contract",
        "exit": 0
       },
       {
        "cmd": "pnpm check:gitlink-declared",
        "exit": 0
       },
       {
        "cmd": "pnpm check:lean-entry-closure",
        "exit": 0
       },
       {
        "cmd": "pnpm check:manifest-repository-directory",
        "exit": 0
       },
       {
        "cmd": "pnpm check:merge-driver",
        "exit": 0
       },
       {
        "cmd": "pnpm check:nul-bytes",
        "exit": 0
       },
       {
        "cmd": "pnpm check:override-consistency",
        "exit": 0
       },
       {
        "cmd": "pnpm check:pnpm-flag-spellings",
        "exit": 0
       },
       {
        "cmd": "pnpm check:published-files",
        "exit": 0
       },
       {
        "cmd": "pnpm check:query-options-erasure",
        "exit": 0
       },
       {
        "cmd": "pnpm check:refd-timer-probe",
        "exit": 0
       },
       {
        "cmd": "pnpm check:registry-log-declared",
        "exit": 0
       },
       {
        "cmd": "pnpm check:rest-log-spy-declared",
        "exit": 0
       },
       {
        "cmd": "pnpm check:role-word",
        "exit": 0
       },
       {
        "cmd": "pnpm check:skill-identifier-liveness",
        "exit": 0
       },
       {
        "cmd": "pnpm check:sourcemap-no-sources-content",
        "exit": 0
       },
       {
        "cmd": "pnpm check:test-source-alias",
        "exit": 0
       },
       {
        "cmd": "pnpm check:tier-file-adoption",
        "exit": 0
       },
       {
        "cmd": "pnpm check:turbo-task-graph",
        "exit": 0
       },
       {
        "cmd": "pnpm check:undeclared-dep-imports",
        "exit": 0
       },
       {
        "cmd": "pnpm check:vendor-export-contract-resolve",
        "exit": 0
       },
       {
        "cmd": "pnpm check:watch-hint-literal",
        "exit": 0
       },
       {
        "cmd": "pnpm check:where-matcher",
        "exit": 0
       },
       {
        "cmd": "pnpm check:workspace-manifest-cycles",
        "exit": 0
       },
       {
        "cmd": "pnpm --dir ui exec vitest run scripts/",
        "exit": 0
       },
       {
        "cmd": "pnpm check:type-check-coverage",
        "exit": 0
       },
       {
        "cmd": "pnpm check:type-check-debt",
        "exit": 0
       }
      ]
     },
     "body_gates": {
      "check-changeset-no-major --base origin/main": 0,
      "check-adr-0087-registration --base origin/main": 0,
      "check-closing-keyword-parity": 0,
      "check-partof-closing-keyword": 0
     },
     "also_run": {
      "turbo type-check fields+i18n+plugin-form": "55 tasks green",
      "eslint touched files": "0 errors",
      "check-i18n-en-drift": 0,
      "form-field census": "34/34, no row change"
     },
     "suites": {
      "@object-ui/i18n + ui/examples/schema-catalog": "144 files, 4241 passed, 13 skipped",
      "@object-ui/fields": "301 passed + 1 skipped files, 4556 passed, 7 skipped",
      "@object-ui/plugin-form": "226 files, 2466 passed, 1 skipped",
      "ui scripts/": "170 passed + 2 skipped files, 5027 passed, 2 skipped"
     },
     "examples_census_grep": "only catalog-gallery-render.test.tsx names a touched path (useFieldTranslation.ts); green in the schema-catalog run",
     "ablations": [
      {
       "cut": "rate cache removed",
       "red": "1/8 (once-per-currency-and-date pin)"
      },
      {
       "cut": "403 branch removed",
       "red": "1/8 (refused pin)"
      },
      {
       "cut": "home digits taken as 2",
       "red": "1/8 (engine parity pin)"
      },
      {
       "cut": "HomeAmountPreview mount removed",
       "red": "7/14 incl. the ObjectForm pin"
      }
     ],
     "live": {
      "server": "pnpm dev:crm + built Console at /_console, scratch package com.example.fxprev",
      "engine_stored": {
       "amount_home": 71994.24,
       "amount_rate": 0.1389
      },
      "admin": {
       "read": "200, picked the 2026-01-01 row 0.1389",
       "line": "≈ CN¥71,994.24 at 0.1389 on Mar 15, 2026",
       "after_typing_20000": "≈ CN¥143,988.48 at 0.1389 on Mar 15, 2026, no second read"
      },
      "member": {
       "read": "403 PERMISSION_DENIED",
       "adapter_error": {
        "httpStatus": 403,
        "code": "PERMISSION_DENIED"
       },
       "classifyLoadError": "forbidden",
       "line": "Converted to the home currency when you save",
       "after_typing": "same line, no second read"
      },
      "artifacts": "/mnt/project-files/issue-27196/live-pr2/"
     },
     "bundle_delta": {
      "package": "@object-ui/fields dist/index.js",
      "raw": "349245 -> 352872 (+3627)",
      "gzip": "90342 -> 91356 (+1014)",
      "note": "@objectstack/formula external, already in the Console graph via @object-ui/core"
     },
     "line_budget": {
      "target": 350,
      "measured": "+447/-2 over 19 files",
      "over_target_by": "about 100 lines; tests and 55 locale lines are most of it"
     },
     "files_changed": [
      ".changeset/27196-home-amount-preview.md",
      "pnpm-lock.yaml",
      "ui/packages/fields/package.json",
      "ui/packages/fields/src/__tests__/homeAmountPreview-27196.test.tsx",
      "ui/packages/fields/src/widgets/CurrencyField.tsx",
      "ui/packages/fields/src/widgets/homeAmountPreview.tsx",
      "ui/packages/fields/src/widgets/useFieldTranslation.ts",
      "ui/packages/i18n/src/locales/ar.ts",
      "ui/packages/i18n/src/locales/de.ts",
      "ui/packages/i18n/src/locales/en.ts",
      "ui/packages/i18n/src/locales/es.ts",
      "ui/packages/i18n/src/locales/fr.ts",
      "ui/packages/i18n/src/locales/ja.ts",
      "ui/packages/i18n/src/locales/ko.ts",
      "ui/packages/i18n/src/locales/pt-BR.ts",
      "ui/packages/i18n/src/locales/ru.ts",
      "ui/packages/i18n/src/locales/zh-Hans.ts",
      "ui/packages/i18n/src/locales/zh-Hant.ts",
      "ui/packages/plugin-form/src/__tests__/sectionFormHomeAmount-27196.test.tsx"
     ],
     "deviations": [
      "components/src/renderers/form/form.tsx not touched although step-1 item 2 listed it: the form already hands registered widgets the SchemaRendererContext adapter, which the widget reads as its fallback (LookupField order); forwarding it again would add a line no pin can tell apart",
      "awaitingDate wording differs from step 1 ('Set the document date to see the home amount'): the amount widget does not hold its sibling's label (step-0 6727854849)",
      "census file untouched: the approved reader extension was not needed",
      "line count over the ~350 estimate (447)",
      "the live harness signs in by password (the Console's /auth/me/localization read is cookie-only; a localStorage bearer alone leaves the home currency unset and no line draws); the member's temporary password was changed through /auth/change-password",
      "worktree kept until landing for CI fixes (PR 1 needed one); removed after merge",
      "PR not subscribed for activity: re-runs are the seat's"
     ],
     "not_measured": [
      "phone-width rendering of the line"
     ],
     "security_findings": "none",
     "writes": {
      "api": 3,
      "detail": "step-0 comment, pr_create via relay, this report"
     },
     "mcp_calls": {
      "reads": 1,
      "writes": 0
     }
    }
  17. objectstack-fleet commented on Nov 9, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#3 · zhuangjianguo · session_01QsR2jVEjiYrK7onirxUGyo

    ACCEPT → PR #31724 comment 6729193200 · 2026-11-09T00:16Z · head 57993ba6 (PR 2: the live "≈ home amount" line under an edited record-mode amount, with the engine's query and @objectstack/formula's arithmetic, a 403 rate read shown as "converted when you save"; 449 lines, not governed, Fixes #27196). Declaration review PASS 6729014477. Landing through the merge queue.

  18. objectstack-fleet commented on Nov 9, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#3 · zhuangjianguo · session_01QsR2jVEjiYrK7onirxUGyo

    Landed · 2026-11-09T01:00Z

    Reading Value
    PR #31638 (PR 1) MERGED 2026-11-08T19:21Z, merge commit 2e33533e on main
    PR #31724 (PR 2) MERGED 2026-11-09T00:58:32Z, merge commit 2a32bd45a83ebbcb83549e38a2ef9f74ccd64e16 on main
    #27196 closed (completed) by Fixes #27196; pm:dispatched removed

    Delivered:

    Unblocks #27197 (Blocked-by: #27192, #27196, both closed now). It is put back to pm:queue in domain:devx.

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

Metadata

Metadata

Assignees

Labels

area:recordsdomain:uienhancementpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions