Repository navigation
feat(ui): give menu rows, project cards and shortcuts their own icons - #3520
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
| ("s3", "S3"), | ||
| ]; | ||
|
|
||
| /// The icon of a connection kind, as the Data Sources pane shows its sources. |
There was a problem hiding this comment.
Nit: this doc says the icon is the one "the Data Sources pane shows", but ribbon.rs now also calls it for the Add Data menu's New Connection rows. Suggest: /// The icon of a connection kind, as the Data Sources pane and the New Connection menu show it.
Category: quality
There was a problem hiding this comment.
Valid; left for the release quality pass.
Code reviewI read the full diff, the base-branch AGENTS.md, and the surrounding code in Checked and fine:
Twins: the diff does not change a read route, an overlay tool, a data-adding command, or a wasm-only branch, so the twin checklist does not apply. Confidence: high that there are no defects. The visual result is not verified here, since I could only read the code. The PR's screenshots were not inspected. Nits (quality, not posted as inline comments):
Prior reviews: the thread list is empty, so no earlier concerns were raised or left alone. Inline comments: 1 (quality, in Change sizeCompared with the base branch: the whole PR against main (merge base 21e9aa5 to PR head 044c9a8).
|
📖 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
Most rows of the Add Data menu had no icon, so they didn't line up with the two that did. Several different controls also shared one picture. This gives them icons that tell them apart, all drawn in
icons.rs.Only icons change: no command, parameter, label, placement or saved data. The new names join the set plugins can use; none is removed.
Reach: the code is shared by the desktop and browser, and the Add Sample and Layer Template dialogs use the same rows. The command line, Python, the Assistant and MCP don't draw icons. The Data Sources pane's own New Connection menu stays plain text.
Testing
ui_shotrenders in light and dark, inspected.No new tests: the change is which picture is drawn, and an assertion on icon names would repeat the source.
UI evidence
Add Data and Layer Templates, before (top) and after:
Project cards, before (top) and after:
Settings and Help at a 1366 px window (cropped), before (top) and after:
Data Sources, before (left) and after:
Dark theme, before (top) and after:
Related issue
None.
Summary by CodeRabbit