Repository navigation
fix(layout): say the rows and columns a table's box leaves out - #3439
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code reviewFour inline comments are posted. Two are bugs, both about layers that are only partly loaded, and two are quality notes. There were no earlier review threads on this PR, so no earlier concerns were left alone. Bugs
Security
Performance
Quality
AGENTS.md
Checked
Change sizeCompared: the whole PR against main (merge base f84ba87 to PR head 7868f33).
|
📖 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 |
Code reviewScope: 10 files, +463 / −11 lines. The change adds notices saying how many rows and columns a layout table's box leaves out. The notices come from I checked that the counting code matches the drawing code, so a notice cannot disagree with the page:
Bugs
Security
Performance
Quality
AGENTS.md
Earlier review threads
Change sizeCompared with
|
Code reviewI checked the change against BugsNo new bugs found. Two existing open threads still apply to the current code, so I did not repeat them:
What I checked and found correct:
SecurityNone found. Layout and table names reach notices only through PerformanceNone significant. Quality
AGENTS.mdNo rule breaks found. I checked:
Change sizeCompared: the whole PR against main (merge base f84ba87 to PR head d8e2364).
|
Summary
A layout's table frame draws only the rows and columns its box holds, and left the rest out without a word. It now says how many it shows:
layout.addElementsays it for a table it adds, andlayout.updatefor a table givenw,h,rows,fields,textSize,header,layerorvisible(so Format and a resize in the layout view say it too; a move changes nothing the box holds and says nothing).rows: 20on a layer of five rows that fit says nothing. A hidden table, one off the page and one drawn as a placeholder say nothing.table_fit), so a notice can't disagree with the page. A table draws the same pixels as before.Redrawing the layout view adds no notice of its own, as for a legend or a chart: the commands the view runs say it. Duplicating a table doesn't repeat what was said of the original.
Surfaces: everything goes through
Sessionnotices, so desktop, web, command line, Python, Assistant/MCP and the touch interface get it. No new command, parameter or project field.Not in this PR
A cell's text shortened to its column's width is still cut without a notice.
A table of a layer read in place lists only the rows in view without saying so (as before; its own issue).
Testing
crates/engine/src/tests/layout_table.rs: add, update, each export format, a region, a map series and a report, written first and seen failing; one for a report over two layouts. One in the render crate checks thattable_fitcounts whattablepaints at two resolutions.line_strokes_editor_edits_one_class, also fails onmainon this machine and passes in CI ([Bug]: smoke test line_strokes_editor_edits_one_class fails on main #3411).UI evidence
The issue's table (60×20 mm, 20 rows asked) draws the same before and after; only the message is new.
Before:
BEFORE
After:
AFTER
Related issue
Closes #3416
Summary by CodeRabbit