Repository navigation
feat(ui): the map's coordinate system from its entry in the layer list, and a status bar button that looks like one - #3067
Conversation
…t, and a status bar button that looks like one The map's entry at the top of the Layers pane now has the map's menu, as its tab and the Browser do, and that menu gains Coordinate System…. The row is greyed, with the reason, for a map that is not in view, as the dialog changes only the map in view. The coordinate system and the pointer coordinates in the status bar are small framed buttons. Narrower gaps around them make up for their padding.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code reviewI found no bugs, security problems, performance problems or AGENTS.md breaks in this PR. No inline comments were posted, because I found nothing that needs a line-level comment. There were no earlier review threads, so no concerns were skipped as already raised. I read the full diff and the surrounding code, and I did not build or run the tests. Each check below is from reading the code, so confidence is high but not verified by compilation. Bugs: none found.
Security: none found. No new input parsing, commands, or saved fields. Performance: none found. The changes are menus and buttons only. Quality (nits, not worth inline comments):
AGENTS.md: none found. I checked these rules against the diff:
Change sizeCompared with the base branch: the whole PR against main (merge base 09f7541 to PR head 138deb8).
|
📖 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 |
Summary
The map's coordinate system is changed from View › Projection or from a label in the status bar. That label is clickable, but it is drawn as small dim text, so it doesn't look like it. Right-clicking the map's entry at the top of the layer list, where people also look for it, offers only Paste Layer.
No new command, parameter, saved field or dependency. The user guide names the two new ways in.
Surfaces
ui-egui.ui-touchhas its own layer list and no status bar.tl!) and the layer list entry's accessible name, "Map: {name}" (i18n::fmt), which keeps it apart from the view tab's. "Coordinate System…" is an existing one.Testing
cargo fmt --all --check: clean.panes::tests::right_clicking_the_map_entry_offers_its_coordinate_systemright-clicks the map's entry with pointer events, clicks Coordinate System…, and checks that the dialog opens and the menu closes. It also checks that the row is disabled in the menu of a map that isn't in view.cargo test -p rustgis-ui-egui --lib right_clicking_the_map_entry_offers_its_coordinate_system→1 passed.context_menucall removed →FAILED,No nodes found matching the queryat the click on the row.cargo test -p rustgis-ui-egui --test integration coordinate_readout::→8 passed, including the tests that click the status bar readout to switch formats.cargo test -p rustgis-ui-egui --test smoke map_and_layout_tabs_rename_from_their_menus→1 passed: the view tab is still the one control named by the map alone.ui_shotrenders of the menu and of the status bar. A scripted click on the status bar button opened the dialog.UI evidence
The menu on the map's entry in the layer list (before, it held only Paste Layer):
Status bar at 1480 wide:
Status bar at 900 wide, the smallest desktop window. The bar already overlaps itself there on
main: Messages covers the end of the coordinate system and the selection count. This change doesn't move that overlap and doesn't fix it.Related issue
Part of #2944
Summary by CodeRabbit