You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
plugin-report: a report chart's value axis ignores the measure's percent format and repeats a tick label (0, 0.1, 0.2, 0.3, 0.3 beside a table showing 33.3%) #36988
A report's embedded chart that plots a measure with a percent format draws its value axis with raw fractions, and two ticks carry the same label. The table beside it formats the same measure correctly.
Measured in the console (18.6.0, zh-CN) on HotCRM's sla_performance report (/_console/apps/app.objectstack.hotcrm.service/report/sla_performance):
The reader sees an axis in fractions under a title that says "rate", and cannot tell the two 0.3 ticks apart.
Expected
The value axis follows the measure's declared format (0% … 33.3%), as the table and the single-value metric path already do through formatMeasure. Whatever the formatter, two ticks never share a label.
Where (read on main)
ui/packages/plugin-report/src/DatasetReportRenderer.tsx, the ChartComponent schema built for the report chart: it passes chartType, data, xAxisKey, series, height and the chrome, and no value-axis format. measureField(yAxis)?.format / percentScale / currency are in scope there and are used only for the single-value metric branch. The comment above says "The series charts render their own labels through the chart component, not through formatMeasure".
ui/packages/plugin-charts/src/AdvancedChartImpl.tsx: yTickFormatter = formatterFor(primaryY?.format, displayLocale) ?? formatYTick. With no axis format it falls to formatYTick, Intl.NumberFormat(locale, { notation: 'compact', maximumFractionDigits: 1 }), which rounds neighbouring ticks of a 0–0.33 domain to the same string.
#27372 (closed) aligned data labels with the axis format and left open "whether the measure's field format (currency, percent) should reach both". This is that case, measured: it does not reach the axis on the report path.
Repro
A dataset measure with aggregate: 'avg' over a boolean (or any ratio) and format: '0.0%'.
A report over it with chart: { type: 'column', xAxis: <dimension>, yAxis: <that measure> }.
Data whose largest bucket is below 1 (for example 1/3).
Open the report: the table shows 33.3%, the chart axis shows 0, 0.1, 0.2, 0.3, 0.3.
A dashboard chart widget over the same measure was not measured.
Triage: lands in area:ux · domain:ui · priority:p1 · Bug · pm:queue.
Rationale: the p1 grade is the filer's and stays as set. It is routed to repo:objectstack#3 (area:ux) by the maintainer's seat routing.
Claim: PM loop round 3 · 2026-11-24T15:18Z
Session: session_01QSeKYpEsWWE9Y5YtSsDgqZ
Account: os-justin
Branch: claude/issue-36988-report-chart-axis-format
Worktree: objectstack-issue-36988
Domain: domain:ui
Seat: repo:objectstack#4
File surface: ui/packages/plugin-report/src/** (DatasetReportRenderer.tsx and its tests), ui/packages/plugin-charts/src/** (AdvancedChartImpl.tsx's value-axis tick formatter, normalizeChartSchema.ts if the axis format is carried there, their tests), .changeset/36988-*.md (stop on breach; explain in the report)
Container & model: S, mode:subagent, model: default tier — dispatch-gates.mjs --tier: "no path-derived mandate … the tier stays below the ceiling", effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: objectstack platform code — DatasetReportRenderer builds the report chart schema without the measure's format, and AdvancedChartImpl falls back to a compact 1-digit formatter that collapses neighbouring ticks (AdvancedChartImpl.tsx:2586-2588 on origin/main) | none: no path formats the report chart's value axis today; the table and the single-value metric do through formatMeasure | every report author whose chart plots a percent/currency measure; reached today on HotCRM's sla_performance report, as filed
Thread-read: 7134722897
Premise: holds (origin/main: yTickFormatter = formatterFor(primaryY?.format, displayLocale) ?? formatYTick)
Serial constraints cleared: none — no open PR found touching ui/packages/plugin-report or ui/packages/plugin-charts (open-PR search at this stamp)
Routing: new area:ux cards go to this seat by the maintainer's word in this seat's session, 「ux 新卡归你」 (seat post #34830); triage's routing note 7135184873.
{
"issue": 36988,
"status": "needs_decision",
"branch": "claude/issue-36988-report-chart-axis-format",
"pr": "https://github.com/objectstack-ai/objectstack/pull/37051",
"session": "session_01QSeKYpEsWWE9Y5YtSsDgqZ",
"premise_still_valid": true,
"summary": "(2) is done for every value axis. valueTickExponent (plugin-charts normalizeChartSchema.ts) takes the decimal place a value axis' tick step needs from a lower bound on recharts' nice step. compactTickFormatter (significant digits, with the old 1-fraction-digit floor) and formatterFor (the declared places are a floor, widened only when too coarse) print to that place, so the filed 0-1/3 axis reads 0, 0.085, 0.17, 0.255, 0.34 instead of 0, 0.1, 0.2, 0.3, 0.3. (1) is done for the filed case: DatasetReportRenderer passes a percent measure's pattern on the chart's existing value-axis key, yAxis[0].format, so the axis reads 0.0% ... 34.0%. The rest of (1) is the stop the card names: the axis format key cannot carry percentScale 'whole' or a currency (ISO code or per-row currencyField), so those measures keep the default axis, now with distinct ticks, and the choice is in open_questions. The PR body opens 'Part of #36988' rather than the dispatch's 'Fixes #36988' (os-dev.md: use Part of when merging should not close the card), naming the half that stays. Deviations: (a) the empty-branch probe push was refused by the session's auto-mode classifier ('Destructive or Unwanted Actions'); I did not retry it, and the branch was first pushed with its first real commit. (b) The report-path pin stops at the schema the registered chart receives, because plugin-report does not depend on plugin-charts and a devDependency would edit package.json outside the file surface. The tick labels are pinned in plugin-charts on the same schema, run through normalizeChartSchema.",
"tests": "At head 6360f0c83fd (final, after merging origin/main): plugin-charts plus plugin-report suites (vitest --root ../.. packages/plugin-charts/ packages/plugin-report/): Test Files 141 passed (141), Tests 1738 passed | 16 skipped. New pins: AdvancedChartImpl.axisLabels.test.tsx gained a describe with 3 cases: no format gives ['0','0.085','0.17','0.255','0.34'], all distinct; '0.0%' via normalizeChartSchema gives ['0.0%','8.5%','17.0%','25.5%','34.0%']; '0%' over rate/10 gives ['0%','0.85%','1.7%','2.55%','3.4%']. DatasetReportRenderer.chartChrome.test.tsx gained a describe with 4 cases: yAxis [{format:'0.0%'}] handed over beside the table's 33.3%, plus no yAxis for whole, CNY and '0,0.00'. Red on main (pre-fix run of the chart pins at 07323d43274): no-format case 'expected 4 to be 5'. Ablation, one per fix, by restoring the fix files to their BASE blobs with hash-verified mutation and restore (git diff HEAD empty after): report fix gave 1 failed / 27 passed (the format case; controls green as designed); chart fix gave 2 failed / 26 passed (the no-format and '0%' cases; the '0.0%' case is green because that pattern already resolves the step). Tests import src relatively, so no dist rebuild was needed for the ablation.",
"gates": "Local: plugin-charts type-check and plugin-report type-check (both 'tsc --noEmit && tsc -p tsconfig.test.json', script names echoed) gave VERDICT command-exit 0 at 6360f0c83fd. dispatch-gates --commands --repo objectstack-ai/objectstack on tree 6360f0c83fd derived 40 families, all exit 0, with each exit code captured before any pipe. Among them: check:nul-bytes, check:cross-package-test-inputs, check:test-source-alias, check:type-check-coverage, check:type-check-debt, check:undeclared-dep-imports, check:published-files, check-empty-changeset, check-adr-0087-registration, and pnpm --dir ui exec vitest run scripts/ (Test Files 172 passed | 2 skipped, Tests 5129 passed). dispatch-gates --ran: 40 derived, 40 run, 0 NOT-MEASURED, 0 UNRUN. CI on PR #37051 at head 6360f0c83fd when the report was written: Check Changeset, Check PR Size, Governed Surface Queue Guard, the Lint and Type Check jobs and PR-body guards were in_progress; the 18.x upgrade harness and packed-tarball smoke were skipped. Not waited on.",
"dogfood_battery": "n/a: the PR title has no '!' and the claim's Clause-② line has no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "3: fleet-write relay POST /repos/objectstack-ai/objectstack/dispatches carrying pr_create (POST /repos/objectstack-ai/objectstack/pulls as a draft, then POST /repos/objectstack-ai/objectstack/issues/37051/assignees [os-justin], read back identical); plus this os-dev-report comment, POST /repos/objectstack-ai/objectstack/issues/36988/comments via post-stamped.mjs. git push is not counted.",
"open_questions": [
{
"question": "The chart's value-axis format key (a d3-style pattern read by formatterFor) cannot carry two measure semantics the report table prints through formatMeasure: percentScale 'whole' (percentage points) and currency (a declared ISO code, or a per-row currencyField). How should a report or dashboard chart's value axis show those measures? Note: the dispatch word carried no axis framework for weighing options (pm-dispatch SKILL.md, escalation and decisions), so the options below give cost and effort but are not scored on the framework's axes. Please supply it if the decision needs them.",
"options": [
"A. Keep what this PR ships. Those measures stay on the compact default axis: distinct ticks, but no currency symbol and no % sign (a whole-scale 33.3 reads 33.3, not 33.3%). Cost: none. Effort: zero; the seat flips the PR's first line to Fixes #36988.",
"B. An internal (non-authoring) value-format carrier on the chart's renderer props, e.g. a measure format bag of { format, currency, percentScale } beside the internal series props. AdvancedChartImpl formats it through @object-ui/core's measure formatting (the table's path), with this PR's tick-step places. The report, and the dashboard DatasetWidget, pass the measure's field. Faithful for every measure kind except a per-row currency, which still has no single axis currency. Cost: a second value-format input on ChartRenderer's internal schema (Clause-② yes (widening) on plugin-charts; no spec change). Effort: one PR, medium, across plugin-charts, plugin-report and plugin-dashboard.",
"C. Widen the spec ChartAxis (an authorable currency and percentScale on yAxis), so the report lowers the measure's semantics into an authored-shape axis. Cost: a spec authoring-surface change (Metadata-protocol added, minor) for values that come from the dataset rather than from the author. Effort: largest; touches packages/spec and its generated artifacts."
],
"recommendation": "B. The facts are the dataset's, not the chart author's, so they belong on the internal, producer-filled side (like series[].aggregate) and not in the authoring spec (C). B also brings the dashboard widget along, where A leaves currency report axes as plain numbers beside a ¥ table."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed: a dashboard chart widget (DatasetWidget) over a percent measure passes no value-axis format either. Not measured in a browser and no reach evidence, so it is not filed; it is in the PR's Acceptance notes and is covered by open-question option B. Dedupe words: dashboard chart percent axis format, DatasetWidget yAxis format, measure format chart axis"
]
}
Left untouched: bug, priority:p1, domain:ui, area:ux — ownership, priority and outcome are not state claims.
The label set was read back after the write and matched.
A state label claims work is in flight. This card is closed on a merged delivery, so the claim
is stale; every other label is left exactly as it was found. Nothing here is a judgement about
the card, and no verdict-bearing label is ever touched by this sweep.
Activity
objectstack-fleet commentedon Nov 24, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: lands in
area:ux·domain:ui·priority:p1· Bug ·pm:queue.Rationale: the p1 grade is the filer's and stays as set. It is routed to repo:objectstack#3 (area:ux) by the maintainer's seat routing.
objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ
Claim: PM loop round 3 · 2026-11-24T15:18Z
Session:
session_01QSeKYpEsWWE9Y5YtSsDgqZAccount:
os-justinBranch:
claude/issue-36988-report-chart-axis-formatWorktree:
objectstack-issue-36988Domain:
domain:uiSeat:
repo:objectstack#4File surface:
ui/packages/plugin-report/src/**(DatasetReportRenderer.tsxand its tests),ui/packages/plugin-charts/src/**(AdvancedChartImpl.tsx's value-axis tick formatter,normalizeChartSchema.tsif the axis format is carried there, their tests),.changeset/36988-*.md(stop on breach; explain in the report)Container & model:
S,mode:subagent,model: default tier — dispatch-gates.mjs --tier: "no path-derived mandate … the tier stays below the ceiling",effort: highClause-②: no
Metadata-protocol: none
Responsibility:
objectstack platform code — DatasetReportRenderer builds the report chart schema without the measure's format, and AdvancedChartImpl falls back to a compact 1-digit formatter that collapses neighbouring ticks (AdvancedChartImpl.tsx:2586-2588 on origin/main) | none: no path formats the report chart's value axis today; the table and the single-value metric do through formatMeasure | every report author whose chart plots a percent/currency measure; reached today on HotCRM's sla_performance report, as filedThread-read: 7134722897
Premise: holds (origin/main: yTickFormatter = formatterFor(primaryY?.format, displayLocale) ?? formatYTick)
Serial constraints cleared:
none — no open PR found touching ui/packages/plugin-report or ui/packages/plugin-charts (open-PR search at this stamp)Routing: new
area:uxcards go to this seat by the maintainer's word in this seat's session, 「ux 新卡归你」 (seat post #34830); triage's routing note 7135184873.objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ
os-dev-report
{ "issue": 36988, "status": "needs_decision", "branch": "claude/issue-36988-report-chart-axis-format", "pr": "https://github.com/objectstack-ai/objectstack/pull/37051", "session": "session_01QSeKYpEsWWE9Y5YtSsDgqZ", "premise_still_valid": true, "summary": "(2) is done for every value axis. valueTickExponent (plugin-charts normalizeChartSchema.ts) takes the decimal place a value axis' tick step needs from a lower bound on recharts' nice step. compactTickFormatter (significant digits, with the old 1-fraction-digit floor) and formatterFor (the declared places are a floor, widened only when too coarse) print to that place, so the filed 0-1/3 axis reads 0, 0.085, 0.17, 0.255, 0.34 instead of 0, 0.1, 0.2, 0.3, 0.3. (1) is done for the filed case: DatasetReportRenderer passes a percent measure's pattern on the chart's existing value-axis key, yAxis[0].format, so the axis reads 0.0% ... 34.0%. The rest of (1) is the stop the card names: the axis format key cannot carry percentScale 'whole' or a currency (ISO code or per-row currencyField), so those measures keep the default axis, now with distinct ticks, and the choice is in open_questions. The PR body opens 'Part of #36988' rather than the dispatch's 'Fixes #36988' (os-dev.md: use Part of when merging should not close the card), naming the half that stays. Deviations: (a) the empty-branch probe push was refused by the session's auto-mode classifier ('Destructive or Unwanted Actions'); I did not retry it, and the branch was first pushed with its first real commit. (b) The report-path pin stops at the schema the registered chart receives, because plugin-report does not depend on plugin-charts and a devDependency would edit package.json outside the file surface. The tick labels are pinned in plugin-charts on the same schema, run through normalizeChartSchema.", "tests": "At head 6360f0c83fd (final, after merging origin/main): plugin-charts plus plugin-report suites (vitest --root ../.. packages/plugin-charts/ packages/plugin-report/): Test Files 141 passed (141), Tests 1738 passed | 16 skipped. New pins: AdvancedChartImpl.axisLabels.test.tsx gained a describe with 3 cases: no format gives ['0','0.085','0.17','0.255','0.34'], all distinct; '0.0%' via normalizeChartSchema gives ['0.0%','8.5%','17.0%','25.5%','34.0%']; '0%' over rate/10 gives ['0%','0.85%','1.7%','2.55%','3.4%']. DatasetReportRenderer.chartChrome.test.tsx gained a describe with 4 cases: yAxis [{format:'0.0%'}] handed over beside the table's 33.3%, plus no yAxis for whole, CNY and '0,0.00'. Red on main (pre-fix run of the chart pins at 07323d43274): no-format case 'expected 4 to be 5'. Ablation, one per fix, by restoring the fix files to their BASE blobs with hash-verified mutation and restore (git diff HEAD empty after): report fix gave 1 failed / 27 passed (the format case; controls green as designed); chart fix gave 2 failed / 26 passed (the no-format and '0%' cases; the '0.0%' case is green because that pattern already resolves the step). Tests import src relatively, so no dist rebuild was needed for the ablation.", "gates": "Local: plugin-charts type-check and plugin-report type-check (both 'tsc --noEmit && tsc -p tsconfig.test.json', script names echoed) gave VERDICT command-exit 0 at 6360f0c83fd. dispatch-gates --commands --repo objectstack-ai/objectstack on tree 6360f0c83fd derived 40 families, all exit 0, with each exit code captured before any pipe. Among them: check:nul-bytes, check:cross-package-test-inputs, check:test-source-alias, check:type-check-coverage, check:type-check-debt, check:undeclared-dep-imports, check:published-files, check-empty-changeset, check-adr-0087-registration, and pnpm --dir ui exec vitest run scripts/ (Test Files 172 passed | 2 skipped, Tests 5129 passed). dispatch-gates --ran: 40 derived, 40 run, 0 NOT-MEASURED, 0 UNRUN. CI on PR #37051 at head 6360f0c83fd when the report was written: Check Changeset, Check PR Size, Governed Surface Queue Guard, the Lint and Type Check jobs and PR-body guards were in_progress; the 18.x upgrade harness and packed-tarball smoke were skipped. Not waited on.", "dogfood_battery": "n/a: the PR title has no '!' and the claim's Clause-② line has no (narrowing) arm", "mcp_calls": "0", "api_writes": "3: fleet-write relay POST /repos/objectstack-ai/objectstack/dispatches carrying pr_create (POST /repos/objectstack-ai/objectstack/pulls as a draft, then POST /repos/objectstack-ai/objectstack/issues/37051/assignees [os-justin], read back identical); plus this os-dev-report comment, POST /repos/objectstack-ai/objectstack/issues/36988/comments via post-stamped.mjs. git push is not counted.", "open_questions": [ { "question": "The chart's value-axis format key (a d3-style pattern read by formatterFor) cannot carry two measure semantics the report table prints through formatMeasure: percentScale 'whole' (percentage points) and currency (a declared ISO code, or a per-row currencyField). How should a report or dashboard chart's value axis show those measures? Note: the dispatch word carried no axis framework for weighing options (pm-dispatch SKILL.md, escalation and decisions), so the options below give cost and effort but are not scored on the framework's axes. Please supply it if the decision needs them.", "options": [ "A. Keep what this PR ships. Those measures stay on the compact default axis: distinct ticks, but no currency symbol and no % sign (a whole-scale 33.3 reads 33.3, not 33.3%). Cost: none. Effort: zero; the seat flips the PR's first line to Fixes #36988.", "B. An internal (non-authoring) value-format carrier on the chart's renderer props, e.g. a measure format bag of { format, currency, percentScale } beside the internal series props. AdvancedChartImpl formats it through @object-ui/core's measure formatting (the table's path), with this PR's tick-step places. The report, and the dashboard DatasetWidget, pass the measure's field. Faithful for every measure kind except a per-row currency, which still has no single axis currency. Cost: a second value-format input on ChartRenderer's internal schema (Clause-② yes (widening) on plugin-charts; no spec change). Effort: one PR, medium, across plugin-charts, plugin-report and plugin-dashboard.", "C. Widen the spec ChartAxis (an authorable currency and percentScale on yAxis), so the report lowers the measure's semantics into an authored-shape axis. Cost: a spec authoring-surface change (Metadata-protocol added, minor) for values that come from the dataset rather than from the author. Effort: largest; touches packages/spec and its generated artifacts." ], "recommendation": "B. The facts are the dataset's, not the chart author's, so they belong on the internal, producer-filled side (like series[].aggregate) and not in the authoring spec (C). B also brings the dashboard widget along, where A leaves currency report axes as plain numbers beside a ¥ table." } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed: a dashboard chart widget (DatasetWidget) over a percent measure passes no value-axis format either. Not measured in a browser and no reach evidence, so it is not filed; it is in the PR's Acceptance notes and is covered by open-question option B. Dedupe words: dashboard chart percent axis format, DatasetWidget yAxis format, measure format chart axis" ] }os-justin commentedon Nov 24, 2026
os-closed-card-sweep — machine-findable marker for this generated comment.
Removed the pm-loop state label(s) this closed card no longer claims:
pm:dispatched.293c00549c, merged intomain.bug,priority:p1,domain:ui,area:ux— ownership, priority and outcome are not state claims.A state label claims work is in flight. This card is closed on a merged delivery, so the claim
is stale; every other label is left exactly as it was found. Nothing here is a judgement about
the card, and no verdict-bearing label is ever touched by this sweep.
seat repo:objectstack#4 close-out sweep
Generated by Claude Code
Generated by Claude Code
fix(plugin-report): a report chart's value axis reads a percent measu…