Repository navigation
feat(layout): pick a legend's sizes in the Format pane - #3399
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code reviewReviewed the four changed files against Bugs: none found.
Security: none found. The pane sends only an enum code produced by Performance: none found. The combo is built per frame from a three-element list. Quality:
AGENTS.md: no breaks found. Checked:
Twins: I compared the new combo with the Fit combo in the same file (same pattern, same Prior reviews: none on this PR, so no earlier concerns were left alone. Change sizeCompared with the base branch: the whole PR against main (merge base da0aad9 to PR head f963f97).
|
|
On the Sizes box showing on every legend (from the code review): kept as is. The rows beside it (All classes, Hide other values, Show no data, Columns, Fit, Layer names, Feature counts) show on every legend too, whatever its layers, so the pane doesn't change as layers are checked or restyled. The value is saved with the legend and applies as soon as a point layer's sizes are listed. The failed |
Summary
Follow-up to #3355, which added the legend's
"sizes"option ("rows"or"nested") as a command parameter only. A legend's Format pane now has a Sizes box after Feature counts, with One row each and Nested on one base.layout.update(one undo step); picking the current one does nothing.LegendSizes::label()names the two values, likeLegendFit::label().ui-egui's, shared by desktop and browser; the CLI, Python, scripts and the assistant already take"sizes"(feat(layout): a legend draws a layer's sizes nested on one base #3355). Each pick is one undo step. The phone UI and the ribbon have no legend options.The new strings wait for the release translation pass.
Testing
a_legends_sizes_are_picked_in_the_format_pane, written first and seen failing (no Sizes box): the value shown on opening, each change one undo step, the current value none, undo, and an invalid file value.cargo nextest run --workspace(without the two DuckDB tests that need a local setup): 11075 passed, 29 skipped.cargo fmt --all --check,cargo clippy -p rustgis-ui-egui -p rustgis-map --all-targets -- -D warnings, workspace doctests,cargo xtask layersandcargo xtask schema --check: all pass.ui_shotreplay before and after: the box opened, One row each picked, the legend redrawn in rows.UI evidence
A Proportional Symbols layer with nested sizes. Left: before (no control). Middle: the new Sizes box open. Right: after picking One row each.
Related issue
Closes #3347
Summary by CodeRabbit
New Features
Documentation