Repository navigation
fix(layout): say when a table's rows are held to 1 to 500 - #3214
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
📖 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 |
layout.addElement says a picture's file that isn't remembered beside a table's held rows (opengeos#3214). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Summary
layout.addElementandlayout.updateheld a table'srowsto 1–500 without saying so: 900 became 500 and 0 became 1.Both now say it, in the same notice as the other held values:
Add Element: rows 900 held to 500 (1 to 500), orElement Properties: …forlayout.update. A value within the range says nothing, and a value that isn't a whole number of 0 or more is still refused.rowsgiven tolayout.updatefor an element that isn't a table is ignored as before, with no notice.The range is now one constant that the clamp and the notice share.
The notice is a session notice, like the other held values, so it reaches the desktop app, the browser, the phone, the command line, Python and the Assistant and MCP results. There's no new command or option, so the ribbon, command search, tool descriptions and plugins don't change, and undo works as before.
Testing
a_table_s_rows_held_to_their_range_are_said(add and update: 900, "900", 501, 0, 1, 500, "7", null, a chart, and rows together with another held value). It failed before the change for the missing notice.cargo nextest run -p rustgis-engine -E 'test(layout_typed_values) + test(add_element)': 19 passed.ui_shotbefore and after, runninglayout.addElementwithrows: 900.UI evidence
The Messages pane after
layout.addElement {"kind": "table", "rows": 900}: before (left) nothing is said; after (right) the notice. The Rows box in Element Properties is already limited to 1–500, so only a command run directly (command search, scripts, the assistant, MCP) can ask for a value outside the range.Related issue
Closes #3197
Summary by CodeRabbit