Skip to content

报表检视器「期间与导出」:默认期间下拉显示原始值(this_month),没有选项名 #36835

Description

@objectstack-fleet

triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

Filing gate: ① a product defect with a named site, filed by triage at repo:objectstack#3's request (mailbox #36743, comment 7120950453). Source: seat 3's ux-D dev on #36447 (PR #36814), outside that card.

What happens

In the Studio report inspector, under 「Period & export」, the Default Period select lists each option by its stored preset (this_month, this_quarter, …) in both en and zh-CN. packages/spec/src/ui/report.form.ts draws dateRange as a composite row (l.122 on origin/main), and the dateRange.defaultRange enum carries no option labels in the form, so the select falls back to the raw value.

reach: reported by the dev from the running inspector; the form gap was read on origin/main here. It reaches every builder who sets a report's default period.

Expected

Each preset reads as a period name in the builder's language (for example "This month" / 「本月」), the same way other enum selects in Studio forms read.

Acceptance

  • The Default Period select shows labelled options in en and zh-CN, with the locale packs following the repository's usual rule for new user text.
  • A pin that the defaultRange options in the report form carry labels.

Dedupe: open issues for defaultRange return only #36447 (in flight; the panel's row wording, not the option text).

Activity

  1. added
    bug
    priority:p2
    pm:queue
    domain:ui
    on Nov 24, 2026
  2. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Triage: lands in area:ux · domain:ui · priority:p2 · Bug · pm:queue · size XS.
    Rationale: a select that shows raw stored values is a wording problem. Under the UX rule in North Star Priority rule 2 that is p2 (UX has no p3).

  3. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzh1FMUQYf1PcEunaaK

    Claim: PM loop round 1 (area ux-D)
    Session: session_01WGufzh1FMUQYf1PcEunaaK
    Account: os-support-ai
    Branch: claude/issue-36835-report-default-period-labels
    Worktree: objectstack-issue-36835
    Domain: domain:ui
    Seat: repo:objectstack#3
    Area: ux-D
    File surface: the dateRange.defaultRange child row of packages/spec/src/ui/report.form.ts (option labels only), whatever the form/inspector reader needs to show labelled enum options for a composite child if it cannot today (ui/packages/app-shell/src/views/metadata-admin/**), reusing the existing date-range preset labels where they exist (ui/packages/i18n/** preset labels), the platform *.metadata-forms.generated.ts bundles via check-i18n-bundles --write and the console zh-CN overlay if the rows land there, regenerated artifacts, a new pin named for this card, a changeset (stop on breach; explain in the report)
    Container & model: XS, mode:subagent, model: default — dispatch-gates.mjs --tier: "Model tier — no path-derived mandate", effort: high (moves non-test packages/spec/src/** text)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: the report form producer packages/spec/src/ui/report.form.ts in objectstack-ai/objectstack (the defaultRange enum carries no option labels) | the select falls back to the raw stored value | every builder who sets a report's default period in Studio
    Thread-read: 7120991703
    Premise: holds — measured on origin/main 151e812 (contains #36879 d95d34f): report.form.ts:132 draws dateRange as a composite, its child defaultRange (:137) carries label: 'Default Period' and a helpText but no option labels
    Pre-claim lane: non-test packages/spec/src/** (form text) kept in ux-D under the lane-keep rule; owes an L2 contract review by L1-b (2)
    Pre-claim deps: the handover's serial constraint "after #36838" is cleared: PR #36879 merged d95d34f, #36838 closed out; #36836 (same file) waits behind this card
    Prior rulings read: check-prior-rulings --card 36835 --paths report.form.ts → 0 ruling, 0 maintainer, 0 ⛔; this_month term → 0 ADR hits; same-day churn d95d34f, 48c5484: work from the merged tree; repo: objectstack-ai/objectstack
    Serial constraints cleared: no open PR touches report.form.ts; PR #36883 (this area, armed) touches metadata-form-i18n.ts / its test — if this card needs that overlay, overlap-check before every push decides (rebase on it once merged); generated platform bundles regenerate on merge (merge=os-regen)

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzh1FMUQYf1PcEunaaK
    os-dev-report

    {
      "issue": 36835,
      "status": "done",
      "branch": "claude/issue-36835-report-default-period-labels",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36928",
      "session": "session_01WGufzh1FMUQYf1PcEunaaK",
      "premise_still_valid": true,
      "summary": "The report form's dateRange.defaultRange row is now a select whose options cover DATE_RANGE_DEFAULT_RANGES one for one, each named in English through a Record keyed by DateRangeDefaultRange (a new preset fails to compile until named); the names equal the console en pack rows the runtime period chip reads. The metadataForms translation channel has no slot for option names, so the Studio report inspector, under a zh designer locale, renames the options from the existing console locale-pack rows (dashboard.filters.range.PRESET, dashboard.filters.custom) via withDefaultPeriodLabels in report-schema.ts: reuse, zero new strings, no bundle/overlay/locale-pack changes. Other designer locales keep the producer English like the rest of the panel. Dev-effort: high. Rounds: 1 (one CI red, my own test missing readOnly in Type Check UI, fixed in fa259cf5). PR #36928, head fa259cf5cbf23a2ef2cd63be946fad1969e27f0b.",
      "tests": "Head fa259cf5 (test-only delta vs baead759 where the full set ran): UI `pnpm --dir ui exec vitest run ReportDefaultInspector.defaultPeriodLabels-36835 + report-schema.test + ReportDefaultInspector.test + ReportDefaultInspector.i18nTitle` at baead759: Test Files 4 passed, Tests 41 passed; new file rerun at fa259cf5: 3 passed. Spec `vitest run report-form-default-range-labels-36835 + report-form-composite-children + metadata-form-zod-reconciliation`: Test Files 3 passed, Tests 84 passed. `pnpm --filter @objectstack/spec run typecheck` exit 0. Ablations via scripts/ablation-replace.mjs, each restored (blob == HEAD, git diff HEAD empty): (1) inspector zh gate forced off -> zh case failed (1 failed, 2 passed), source-aliased so no build needed; (2) spec options line deleted -> both spec pin cases failed (spec pin imports src).",
      "gates": "Local: dispatch-gates --commands derived 89 families; --ran reconciliation 89 derived / 89 run / 0 unrun. Exit codes captured before pipes: 85 exit 0 first run; check:test-source-alias exit 1 (real: new test needed module-top @objectstack/formula + @objectstack/lint imports) fixed, rerun exit 0 at fa259cf5; check:i18n exit 3 (CLI unbuilt) rerun exit 0 'check-i18n-bundles: OK (10 package(s) - all bundles in sync, no undeclared authoring keys)'; NOT MEASURED: check-plugin-teardown-shape --self-test (exit 3, shallow clone, pinned fixture commit unreachable), check:dual-build-cjs-loads (exit 3, needs full pnpm build). spec check:generated: all 14 artifacts up to date (authorable surface + api-surface unchanged -> Clause-2 no measured). check:cross-package-test-inputs, check:nul-bytes exit 0 at fa259cf5. app-shell type-check NOT MEASURED locally (71-package closure unbuilt), CI Type Check UI covers. CI on fa259cf5: 59 success, 10 skipped, 0 failure (incl. Lint & Repo Gates, TypeScript/Type Check lanes, Test Core 1-10/10, Build Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI 1-16/16, Build & E2E UI, Live E2E UI, Check Changeset). First head baead759 had Type Check UI failure (mine, TS2741 readOnly) fixed by fa259cf5.",
      "dogfood_battery": "n/a - no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "3 - git push (branch, several pushes, not REST); relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST issues/36928/assignees os-support-ai) via repository_dispatch; post-stamped os-dev-report comment on issue 36835",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: a · reach: rendered DashboardDefaultInspector (Studio dashboard Properties panel) in jsdom with dateRange.defaultRange this_month, opened its select: options read '— None —|today|yesterday|...|next_30_days|custom' raw, the same defect as this card on the dashboard form (dashboard.form.ts dateRange composite declares no children, so the row falls back to the schema enum) · evidence: throwaway probe at fa259cf5's base, not committed · dedupe words: dashboard defaultRange raw preset, dashboard date range options labels, dashboard inspector this_month, dateRange children dashboard form",
        "carrier: none · noted, not filed: form options[].label has no translation slot in metadataForms (TranslationData) and os i18n extract does not emit option names, so every spec form's option names stay English on server-rendered forms in all locales; observation, no reproduction against a server-rendered form"
      ],
      "line_budget": "n/a - no skills/** touched",
      "deviations": "(1) First inspector ablation ran outside os-verify-lock (direct vitest), later runs locked. (2) Built @objectstack/client|formula|lint|sdui-parser with the dependents filter (X...) instead of the closure filter, which built extra downstream packages under the lock (~5 min). (3) PR body cites readings at baead759; head is fa259cf5 (test-only readOnly prop); subagent may not PATCH the body, so the seat may refresh it. (4) PR body footer sits above the required signed trailer line.",
      "files_changed": [
        ".changeset/36835-report-default-period-labels.md",
        "packages/spec/src/ui/report.form.ts",
        "packages/spec/src/ui/report-form-default-range-labels-36835.test.ts",
        "ui/packages/app-shell/src/views/metadata-admin/report-schema.ts",
        "ui/packages/app-shell/src/views/metadata-admin/inspectors/ReportDefaultInspector.tsx",
        "ui/packages/app-shell/src/views/metadata-admin/inspectors/ReportDefaultInspector.defaultPeriodLabels-36835.test.tsx"
      ]
    }
  6. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzh1FMUQYf1PcEunaaK

    Close-out · 2026-11-24T12:14Z · PR #36928 merged as 00aa5744 at 2026-11-24T11:26Z (L1 ACCEPT 7129280142, contract review PASS 7129263701, landing 7129344162). The report inspector's Default Period select names each preset (English from the producer, zh-CN from the existing console period labels). The test-only waitFor nit is kept in the review record; the dashboard sibling (raw presets in the dashboard Properties panel) is with triage (7129188207). pm:dispatched removed.

  7. removed
    pm:dispatched
    on Nov 24, 2026
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