Repository navigation
fix(plugins): show one full-description tooltip in Browse - #1035
Conversation
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Description tooltip behavior crates/ui-egui/src/pluginsui.rs, docs/plugins.md |
The description label suppresses the automatic elision tooltip. The documentation states that descriptions stay on one line and that hovering shows the full description and, for withdrawn plugins, the withdrawal reason. |
Priority:
Estimated code review effort: 2 (Simple) | ~5 minutes
Change: Bug fix
Suggested reviewers: giswqs
Merge Risk: 
Minimal · up to 5a757
-
The tooltip change is ready to merge; no concrete regression was identified.
Pre-merge checks: 
5
-
Full details: Docstring Coverage
-
Explanation
Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 1 files. (1 skipped: 1 unsupported.)
-
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
A rabbit hops past Browse today,
The long description stays at bay.
Hover reveals the words in full,
And withdrawal notes when they are there.
The rabbit thumps: “That tooltip’s clear!”
Comment @coderabbitai help to get the list of available commands.
| tip = format!("{tip}\n\n{r}"); | ||
| } | ||
| let desc = ui.add(egui::Label::new(egui::RichText::new(description).size(12.0)).truncate()); | ||
| // The explicit tooltip below includes the withdrawal reason; don't also show egui's elision tooltip. |
There was a problem hiding this comment.
Nit: this comment repeats the one at lines 790-791 (the tooltip already carries the withdrawal reason). Consider merging them into one comment above the let desc line so the reasoning sits in one place. Not blocking.
Code reviewBugs: None found. Security: None. The change touches only UI tooltip wiring and docs. Performance: None. Quality:
AGENTS.md:
Not verified: I could not read egui 0.37 source from this environment, so the Change sizeCompared: the whole PR against main (merge base 5445d00 to PR head 5a757f8).
|
📖 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
Labelautomatically shows the full text, whilebrowse_rowalso adds an explicit tooltip. Disable only the label's automatic elision tooltip; retain the existing tooltip with the complete translated description and any withdrawal reason.Testing
cargo run --release -p rustgis-ui-egui --example ui_shot -- /tmp/rustgis-plugin-tooltip.jsonlat 1366×900, dark theme.cargo xtask ci— passed (format check, workspace/all-targets Clippy with warnings denied, workspace tests, dependency-layer check).pre-commit run --all-files— passed.UI evidence
Before — supplied report, two stacked copies of the full description:
After — changed UI, one tooltip with the complete description:
Screenshots are GitHub attachments, not committed assets.
Related issue
None; fixes the screenshot-reported duplicate tooltip.
Summary by CodeRabbit