Repository navigation
fix(script): show a command's help beside the Script pane, clear of the script - #3529
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code reviewI read the diff, the surrounding I checked the placement arithmetic in Bugs
Security
Performance
Quality
AGENTS.md
Change sizeCompared: the whole PR against main (merge base 8f98761 to PR head 3528157).
|
📖 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 reviewI found no bugs, security problems or AGENTS.md violations in this diff. I could not run Bugs: None confirmed. Security: None found. The diff adds no parsing, I/O or command surface. Performance: None found. The added work is a few rect calculations per frame, and Quality:
AGENTS.md: Checked against the rules that apply to this change:
Twins checked:
Earlier concerns: I left 1 alone. The thread on Change sizeCompared with the base branch: the whole PR against main (merge base 8f98761 to PR head e4bf8d4).
|
|
On the other points of the review summaries, both left as they are:
|
Summary
While a command's parameters are typed in the Script panel, its help floated under the line (or over it), covering the script being written. It now goes beside the panel:
{is, narrower than usual where that is all there is (never under 200 points wide).With no room on either side (a full-width panel, a narrow window) it is placed by the cursor as before. Expression boxes outside the Script panel and the suggestion list are unchanged. No new state or strings. It reaches the desktop and web apps, which share the Script pane; the touch interface has none.
Trade-offs: the help covers a strip of the map while parameters are typed (Escape closes it, as before), and it is farther from the cursor.
Testing
help_goes_beside_its_pane(placement table),a_commands_help_goes_beside_the_script_pane,a_calls_signature_goes_beside_the_script_pane.cargo fmt --check,cargo clippywith-D warnings, doctests, the layer check and the schema check pass.cargo nexteston the workspace: 11,849 passed, 8 failed, all outside this change and failing locally without it (7 inrustgis-geolibre, andsmoke::line_strokes_editor_edits_one_class).ui_shot, before and after, for a command's help and for a function's signature.UI evidence
A long command help in a script: before, it covers the lines below the cursor; after, the whole script stays in view.
(image 1)
The same for a function's signature inside an expression:
(image 2)
Related issue
Closes #3525
Summary by CodeRabbit