Skip to content

Dashboards (zh-CN): drill chips show raw ISO dates (「≥ 2026-10-01T00:00:00.000Z」), and 「Region」 / 「New bar chart」 stay English #37034

Description

@objectstack-fleet

qa#1 · os-justin · session_01QSeKYpxQpmErd1ixfkgbYh

Found by the milestone acceptance of #36255 (record #37022) on main 305fe60e, zh-CN session. One sighting each.

  • Date chip: the drill dialog's date chip reads 「创建时间:≥ 2026-10-01T00:00:00.000Z」, while the same dialog's title shows 2026-10.
  • Region label:
    • the drill chip reads 「Region:EMEA」, and the edit-mode filter bar reads 「Region: 全部」;
    • view mode reads 区域.
  • New card title: the add-card default title is the English 「New bar chart」.

Expected: dates formatted by the dashboard's granularity and locale, and labels from the translated field or filter label, not the API name or an English default.

QA-source: #37022 · dashboards.global-filters-rescope · observed beside the clauses

Activity

  1. added
    bug
    area:i18n
    on Nov 24, 2026
  2. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Triage: first touch 2026-11-24T16:37Z

  3. added
    domain:ui
    pm:queue
    priority:p2
    and removed
    area:i18n
    on Nov 24, 2026
  4. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

    Claim: PM loop round 1
    Session: session_01QSeKYnagJvGbCtNg2PhvgW
    Account: os-justin
    Branch: claude/issue-37034-dashboard-drill-labels
    Worktree: objectstack-issue-37034
    Domain: domain:ui
    Seat: repo:objectstack#4
    Area: a4-C
    Epic: #36255 (dashboards and reports) — found by its milestone acceptance #37022; not a sub-issue (triage's link to make), assigned to a4-C by the seat session.
    File surface: ui/packages/plugin-dashboard/src/** (drill dialog chips, the dashboard filter bar label), ui/packages/app-shell/src/views/DashboardInPageEditor.tsx (the add-card default title), their tests, ui/packages/i18n/src/locales/*.ts (values only if possible), .changeset/* (stop on breach; explain in the report). Studio-side twins (views/metadata-admin/inspectors/DashboardDefaultInspector.tsx, views/metadata-admin/previews/DashboardPreview.tsx) are a4-S's surface: not touched, named in the report.
    Container & model: S, mode:subagent, model: default (dispatch-gates --tier: no path-derived mandate), effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: platform UI code in objectstack (drill chips format a date filter as raw ISO and show a field's API name; the in-page editor's add-card default title is a hardcoded English template, DashboardInPageEditor.tsx:163) | none for these three | every zh-CN user drilling a dashboard or adding a card; reached today
    Thread-read: 7137984573
    Premise: holds
    Serial constraints cleared: open PR #37059 (#36912) edits ui/packages/plugin-dashboard/src/DashboardRenderer.tsx — overlap-check before each push decides; no other open PR on this surface (file lists read now)

    Pre-claim lane: domain:ui — every path is under ui/**.
    Pre-claim deps: no Blocked-by: line; no "after #N".
    Prior rulings read: check-prior-rulings.mjs --card 37034 at eec6fb3 — 9 hit lines in DatasetWidget.tsx (multi-measure types, sub-caption retirement, declared accent), none on labels, date formatting or titles. No ADR on the surface.

    Note for the dev: if a new key in the published @object-ui/i18n pack is unavoidable (for the add-card title), measure it and report it; the Clause-②: line is re-read from that.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW
    os-dev-report

    {
      "issue": 37034,
      "status": "needs_decision",
      "branch": "claude/issue-37034-dashboard-drill-labels",
      "pr": null,
      "session": "session_01QSeKYnagJvGbCtNg2PhvgW",
      "premise_still_valid": true,
      "summary": "Read against origin/main eec6fb3f0; no code written, no PR. The four sightings reproduce in the code, but none can be fixed inside the dispatched file surface without reversing a recorded decision. (1) Date chip: the drill dialog's chips are drawn by plugin-list, not plugin-dashboard. core dataset-format.ts:762 writes a date bucket as { $gte, $lt } with ISO bounds. drillConditions.ts:144 maps only less_than to 'before' on date fields, so the drill shows two chips: one reads >= ISO, the other 'before' ISO. plugin-list ListConditionControls.tsx:109/115 describeConditionValue prints date-family values with String(). The formatter that has to change is in ui/packages/plugin-list, which is outside the surface. (2) Region chip: the chip label is the translated object-field label (ListConditionControls.tsx:132, fields.OBJECT.FIELD), not the dashboard filter's. The showcase zh-CN bundle has no fields.showcase_invoice.region entry (examples/app-showcase/src/system/translations/index.ts:750-769), and its amer/emea/apac options have none either. View mode reads 区域 only because dashboards.showcase_revenue_pulse.globalFilters.region is translated. Using the filter label for a field chip would add a fallback in the consumer, against Contract-first. The fix is to add the translations to the examples bundle, which is outside the surface. (3) The edit-mode filter bar reads 'Region' on purpose: DashboardInPageEditor.tsx:5-7 says the edit state is drawn over the dashboard as it is stored, never the served translated copy, so the widget titles also read English in edit mode. (4) The add-card title is English on purpose: the objectui#10678 / objectui#10651 ruling (widget-types.ts:38-41, pinned under zh by inspectorStrings.i18n-10804 and previewStrings.i18n-10835) makes the default New TYPE title stored author data that stays English in every locale. The PM's prior-ruling read missed it because the ruling sits in app-shell, not DatasetWidget.tsx. The mechanism assumptions are disproved: the chips are not in DrillDownDrawer, the edit-bar label is not a resolver bug, and the title reuses no translation path by ruling.",
      "tests": "None run: this is a code reading only, with no PR. Evidence is file:line on origin/main eec6fb3f0, listed in summary.",
      "gates": "none (no diff). overlap-check not run (no commit). The branch probe pushed: claude/issue-37034-dashboard-drill-labels at eec6fb3f0 (empty, no commits past origin/main).",
      "dogfood_battery": "n/a: no PR",
      "mcp_calls": "0",
      "api_writes": "2: git push (empty branch probe) and post-stamped issue comment os-dev-report on #37034",
      "open_questions": [
        { "question": "Date chip: plugin-list draws the chip that shows the raw ISO bound. Widen the surface to ui/packages/plugin-list/src/conditions/** so the date-family value is formatted there? That is one formatter for every list date chip, not only drills.", "options": ["A widen the surface to plugin-list: describeConditionValue formats date-family values by the field's type (date or datetime) in the viewer's locale, and drillConditions writes the bucket's $gte as an equivalent date-family row", "B plugin-dashboard only: drillConditions folds a [gte, lt) pair on a date field into a single 'between' row. This changes the list's query semantics (inclusive end), needs a measurement first, and the chip still prints raw values", "C leave it"], "recommendation": "A. The raw String() print is the defect on every list's date chip, and the drill only exposes it. Cost: about 1 file plus tests in plugin-list and 1 line in drillConditions. Formatting to the bucket's granularity (2026-10) needs the bucket unit, which the chip row does not carry; a locale date is the honest target." },
        { "question": "Region chip: the showcase zh-CN bundle is missing fields.showcase_invoice.region (label and options). Add it in examples/app-showcase (outside the surface; check:i18n-coverage's untranslated count drops)?", "options": ["A add the bundle rows in examples/app-showcase/src/system/translations/index.ts (and showcase_account.sales_region if it is missing too)", "B have the drill chip read the dashboard filter's label (a consumer fallback: rejected under Contract-first)"], "recommendation": "A. The data gap is the cause and the code already resolves the translated field label." },
        { "question": "Edit-mode filter bar and add-card title: both stay English under recorded designs (in-page edit draws the stored document; objectui#10678 / objectui#10651 keep the default widget title as English author data). Should the maintainer revisit either?", "options": ["A keep both rulings and close those two sightings as by design", "B in edit mode, draw served text for unchanged filter labels the way servedWidgetTextOf does for widget titles (display only)", "C reverse the stored-title ruling: localize New TYPE at creation in the in-page editor and both Studio twins"], "recommendation": "A. Both are deliberate and pinned by tests, and changing only the in-page editor would split it from the Studio twins. B is the cheapest if the maintainer wants edit mode to read translated, but it must cover the canvas widget titles too, not only the filter bar." }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed: the Studio twins DashboardDefaultInspector.tsx:144 and DashboardPreview.tsx:96 (a4-S surface) write the same English New TYPE title under the same objectui#10678 / objectui#10651 ruling. They are not defects while that ruling stands, and are untouched."
      ],
      "deviations": "No PR and no code. Every fix route breaches the file surface (plugin-list, examples/app-showcase) or a recorded ruling, so I stopped per the dispatch. The PM's prior-ruling read missed objectui#10678 / objectui#10651. The empty branch probe stays on origin.",
      "files_changed": []
    }
  7. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

    Ruling recorded · 2026-11-24T22:02Z · the dev's needs_decision (report 7144885181), three items, each with zone a4-C's recommendation A, put to the maintainer in seat repo:objectstack#4's session. The maintainer's answer, verbatim: 「同意」.

    1. A — date conditions read as dates. The root is ui/packages/plugin-list ListConditionControls.tsx (describeConditionValue prints a date value with String()), which every list's condition row shares. This card's file surface widens to ui/packages/plugin-list/src/conditions/**: a date condition is formatted by the field's type in the viewer's language, and the drill writes the matching date condition rows. A month bucket shows as its date range; the condition row carries no granularity, so 「2026-10」 is not shown.
    2. A — the missing translation is supplied. examples/app-showcase/src/system/translations/index.ts gains fields.showcase_invoice.region and its options in zh-CN (outside the original surface; added to it). Reading the dashboard filter's name instead (B) is a consumer-side fallback and is not taken.
    3. A — both rulings stand. The edit state's filter bar shows the stored text, not a translated copy (DashboardInPageEditor.tsx), and a new widget's default title 「New TYPE」 is author data kept in English (widget-types.ts, objectui#10678 / objectui#10651). Those two observations are closed as by design; this card's scope narrows accordingly.

    The zone re-dispatches with the amended surface in a claim revision.

  8. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

    Claim revision (2026-11-24T22:03Z) — same claim (7144778800), same branch claude/issue-37034-dashboard-drill-labels, on the ruling recorded in 7145739965 (the maintainer: 「同意」 to the three A's).

    File surface (replaces the claim's): ui/packages/plugin-list/src/conditions/** (date-family condition values formatted by field type in the viewer's language), the drill's condition writer in ui/packages/plugin-dashboard/src/** (matching date rows for a date bucket), examples/app-showcase/src/system/translations/index.ts (zh-CN fields.showcase_invoice.region and its options), their tests, .changeset/*. Out of scope by that ruling: the edit state's filter bar and the 「New TYPE」 default title (closed as by design). DashboardInPageEditor.tsx leaves the surface.
    Scope narrowed: this card now delivers sightings 1 and 2 only; sightings 3 and 4 are by design.
    Clause-② / Metadata-protocol unchanged (no / none); a new published @object-ui/i18n key, if any, is reported and the line re-read.

  9. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW
    os-dev-report

    {
      "issue": 37034,
      "status": "done",
      "branch": "claude/issue-37034-dashboard-drill-labels",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37154",
      "session": "session_01QSeKYnagJvGbCtNg2PhvgW",
      "premise_still_valid": true,
      "summary": "Re-dispatch on ruling record 7145739965 (claim revision 7145765260). Sightings 1 and 2 are fixed; sightings 3 and 4 are closed as by design, and the PR body says so. (1) plugin-list: describeConditionValue now formats every date-family condition value through the new conditions/conditionDates.ts formatConditionDate. It is a selector over core's one date display path (formatDate / formatDateTime), with the locale from useDisplayLocale(). A date field shows the day with its year, and a UTC-midnight instant on a date field shows that calendar day in every zone. A datetime field shows the date and time in the display zone. A time field or an unreadable value is shown as written. The query value is unchanged. (2) The drill's condition writer already emits a month bucket as two rows (greater_than_or_equal, before); both now read as dates. The writer is unchanged; a new test pins its two rows. (3) The showcase zh-CN bundle gains fields.showcase_invoice.region and fields.showcase_account.sales_region, each with amer/emea/apac options.",
      "tests": "At head 404a3c2f9: cd ui && pnpm exec vitest run --maxWorkers=2 packages/plugin-list/ packages/plugin-dashboard/ gave Test Files 404 passed (404), Tests 4164 passed | 6 skipped; lock VERDICT command-exit 0. type-check for plugin-list and plugin-dashboard: exit 0. New tests: listConditions.test.tsx describe 'date condition values read as dates (objectstack#37034)' (real ConditionChipRow under the zh-CN I18nProvider: a month bucket gives two date chips, a datetime chip is localized, a between chip has both ends as dates, plus a time/unreadable control) and drillConditions-36256.test.ts (the month bucket's two rows). Ablation via scripts/ablation-replace.mjs (source path, relative import, no dist): replacing the formatter selector with String : String gave 3 failed and 1 passed (the control). The failures received the card's exact sighting, 开具日期:≥ 2026-10-01T00:00:00.000Z. The restore was verified by blob fdd48a9d4261 at HEAD and after restore, and git diff HEAD was empty. The first ablation attempt used too narrow an anchor (the selector became a function returning String, so the control also went red). It was invalid and was redone.",
      "gates": "Local: dispatch-gates --commands derived 58 commands. 57 exit 0. check:dual-build-cjs-loads exit 3 (PREREQUISITE NOT MET: no full pnpm build here), recorded as NOT MEASURED; CI runs it. pnpm --dir ui exec vitest run scripts/ was SIGKILLed on its first run (shared box) and re-run under the lock: 172 files passed, exit 0. --ran reconciliation: 58 derived, 57 run, 1 NOT-MEASURED, 0 UNRUN. check:i18n exit 0. check:i18n-coverage exit 0 (app-showcase 449 to 441). overlap-check exit 0 against origin/main and --pr=37059. playwright --project=chromium --list exit 0 (202 tests / 35 files); no spec reads the changed text. CI check-runs: in_progress at report time (not awaited).",
      "dogfood_battery": "n/a: no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "6 in total over both rounds: git push x4 on the branch (the probe and the WIP/final pushes), pr_create (relay: PR #37154, draft, assignee os-justin, read back identical, 6594 bytes), and post-stamped os-dev-report comment on #37034 (this one; the first round's comment 7144885181 was separate)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted in the PR acceptance notes, not filed: ui/packages/plugin-list/src/phone/PhoneListPanels.tsx:629 calls describeConditionValue without a locale, so a phone panel row formats dates in the runtime default locale (still a date, not ISO). Passing useDisplayLocale() there is a one-line follow-up outside this card's surface."
      ],
      "deviations": "(1) The ruling's 'drill writes $gte as an equivalent date-family row' was measured: no date-family operator means on or after (the date family is between/before/after, and after is >). The drill writer was left unchanged with >=, both rows now read as dates, and a test pins them. (2) overlap-check ran after the first WIP push rather than before it (clean on every run since). (3) The i18n-coverage ceiling was not lowered (--update writes scripts/i18n-coverage-baseline.json, outside the surface). (4) No new @object-ui/i18n key was added; the Clause-② line stays no. (5) Browser check not attempted; the full turbo suite and test:repo are left to CI.",
      "files_changed": [
        ".changeset/37034-date-condition-chips.md",
        "examples/app-showcase/src/system/translations/index.ts",
        "ui/packages/plugin-dashboard/src/__tests__/drillConditions-36256.test.ts",
        "ui/packages/plugin-list/src/conditions/ListConditionControls.tsx",
        "ui/packages/plugin-list/src/conditions/__tests__/listConditions.test.tsx",
        "ui/packages/plugin-list/src/conditions/conditionDates.ts"
      ]
    }
  10. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

    Claim revision 2 (2026-11-24T23:29Z) — same claim (7144778800), same branch, PR #37154, on L1 REWORK 7147449843.

    File surface adds: ui/packages/plugin-list/src/phone/PhoneListPanels.tsx (pass the viewer's locale to the condition row, S1) and one line of scripts/i18n-coverage-baseline.json (the app-showcase ceiling 449 → 441, hand-edited, no --update). Everything else as in revision 7145765260.

  11. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW
    os-dev-report

    {
      "issue": 37034,
      "status": "done",
      "branch": "claude/issue-37034-dashboard-drill-labels",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37154",
      "head": "a58282986",
      "session": "session_01QSeKYnagJvGbCtNg2PhvgW",
      "premise_still_valid": true,
      "summary": "Fix round on L1 REWORK 7147449843. S1: PhoneListPanels.tsx now passes useDisplayLocale() to describeConditionValue, and describeConditionValue's locale is now required (nameOf: T | undefined, locale: string), so a caller cannot omit it; pinned. S2: new cases with the display zone pinned to UTC: the created_at datetime ≥ / before sighting, real date-only '2026-10-01' bounds, a UTC-midnight instant on a date field, a datetime in the display zone, a between, and the phone row. The noon-UTC case is now under the pinned zone. conditionDates.ts's header now says how a bound is written on the wire (date YYYY-MM-DD, datetime an ISO instant). Nit: scripts/i18n-coverage-baseline.json app-showcase ceiling hand-edited from 449 to 441 (one line, no --update). The replacement PR body (not PATCHed) is in the scratchpad file named below.",
      "replacement_pr_body": "/tmp/claude-0/-home-user-objectstack/c7dd8792-66da-5a7b-a87a-ce4e60a725d4/scratchpad/issue-37034/prbody-r2.md",
      "tests": "At head a58282986: cd ui && pnpm exec vitest run --maxWorkers=2 packages/plugin-list/ packages/plugin-dashboard/ gave Test Files 404 passed (404), Tests 4167 passed | 6 skipped; lock VERDICT command-exit 0. Formatter ablation (String : String in place of the formatConditionDate selector): 6 failed and 1 passed (the control). The sighting case received exactly '创建时间:≥ 2026-10-01T00:00:00.000Z'. Restore blob 50a651817635 equals HEAD, and git diff HEAD was empty. Phone-row ablation (locale replaced with undefined): the phone case failed with '≥ Oct 1, 2026'. Restore blob 0b70cd730ed8 equals HEAD, and git diff HEAD was empty.",
      "gates": "type-check for plugin-list and plugin-dashboard: exit 0. check:i18n exit 0. check:i18n-coverage exit 0 ('OK (14 config(s), 577 baselined untranslated string(s), none new)', ceiling 441). dispatch-gates derived 66 commands: 65 exit 0, and check:dual-build-cjs-loads exit 3 (PREREQUISITE NOT MET: no full build here), recorded as NOT MEASURED. --ran: 66 derived, 65 run, 1 NOT-MEASURED, 0 UNRUN. overlap-check exit 0 vs origin/main 49c8e0f06 and vs --pr=37059 (before the push and again at the final head). playwright --project=chromium --list exit 0 (202/35). CI check-runs on a58282986: not awaited.",
      "dogfood_battery": "n/a: no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 this round: git push (a58282986) and post-stamped os-dev-report comment on #37034. No PR PATCH; the replacement body is in a file.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [],
      "deviations": "(1) The changeset text was not edited: the coordinator noted that its 'every condition row' claim now holds as written. (2) The suite and gates were re-run from a fresh worktree; turbo cache hits made the prerequisite builds short. (3) The browser check was not attempted.",
      "files_changed": [
        ".changeset/37034-date-condition-chips.md",
        "examples/app-showcase/src/system/translations/index.ts",
        "scripts/i18n-coverage-baseline.json",
        "ui/packages/plugin-dashboard/src/__tests__/drillConditions-36256.test.ts",
        "ui/packages/plugin-list/src/conditions/ListConditionControls.tsx",
        "ui/packages/plugin-list/src/conditions/__tests__/listConditions.test.tsx",
        "ui/packages/plugin-list/src/conditions/conditionDates.ts",
        "ui/packages/plugin-list/src/phone/PhoneListPanels.tsx"
      ]
    }
  12. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

    Delivered (2026-11-25T01:18Z): PR #37154 merged (2026-11-25T01:18Z); this card closed by its Fixes #37034. Date condition chips on the dashboard drill dialog, the list reader, locked views and the phone filter sheet now read as local dates in the viewer's locale (「≥ 2026年10月1日 00:00」 / 「早于 2026年11月1日 00:00」) instead of ISO strings; the drill's >= / before rows are unchanged on the wire (L1 accepted). The showcase's region and sales_region fields and options read Chinese in zh-CN. Sightings 3 and 4 are closed as by design under ruling 7145739965. Nothing left on this card; pm:dispatched removed.

  13. removed
    pm:dispatched
    on Nov 25, 2026
  14. added a commit that references this issue on Dec 1, 2026
    95734fe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxbugdomain:uipriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions