Repository navigation
fix(report): say what the charts of a report's layout pages leave out - #3192
jgregoriorincon merged 2 commits into
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code reviewI reviewed the full diff against the AGENTS.md copy from the base branch. Bugs
Security
Performance
Quality
AGENTS.md
Twins checked
Change sizeCompared: the whole PR against main (merge base 3ef1d13 to PR head 71de019).
|
📖 Docs preview
GitHub Pages takes a minute or two to publish a new commit. Newer commits from the fork aren't published until a maintainer adds the |
A report says its pictures drawn as a grey box beside the charts' notices (opengeos#3192). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Summary
Since #3156, exporting a layout says what each of its charts leaves out. A report that draws that layout as a page said nothing, so the exported report went out with the losses unsaid.
Chart "Chart Frame" (7) in "Charts": …. Element ids are a layout's own, so two layouts' charts sharing one are two. Charts with the same notice are named together, the first ten and how many more; a layout on several pages is said once.chart_notice_linesnow words its notices throughchart_notice_lines_in, which a report calls with each chart's layout. A layout's own export says what it said before.The report keeps nothing in the session or project: for the length of one export it opens the renderer's
drawn_chartsbesideunfitted_legends, andkeep_unfittedbecamekeep_drawn, used for both.Testing
New tests in
crates/engine/src/tests/layout_chart_notices.rs: a PDF with the same layout on two pages, a reopened project, the layout's own export naming no layout, a PNG whose first page is or isn't the layout, two layouts whose charts share an id and a notice, a box too small for its chart, and nothing said with no layout page, no loss or a hidden chart. Those that expect a notice failed before the change. The full local checks (fmt, clippy, nextest, doctests, layers, schema) pass. A page too large for vectors and drawn again as a picture has no test of its own; its repeat is dropped by the samekeep_drawnas a repeated layout.UI evidence
The Messages pane after exporting a report that draws a layout with two charts (one cut to 3 bars, one too short for its columns), before (left) and after (right). The exported PDF is byte-identical.
Related issue
Closes #3166
Summary by CodeRabbit