Skip to content

feat: plugins tool, DM tree view, and upgrade impact preview#75

Open
gnodet wants to merge 3 commits into
mainfrom
polite-law
Open

feat: plugins tool, DM tree view, and upgrade impact preview#75
gnodet wants to merge 3 commits into
mainfrom
polite-law

Conversation

@gnodet

@gnodet gnodet commented Apr 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • New Plugins tool (Alt+G): browse declared and managed plugins, check for version updates with libyear scoring. Three sub-views: Plugins, Managed, Updates.
  • DM Tree sub-view in Dependencies: shows the transitive tree of managed dependencies only, via new collectManagedDependencyTree() resolver method (Maven 3 + Maven 4).
  • Upgrade impact preview in Updates: press t to see a before/after tree diff when applying an update. TreeDiff algorithm uses parallel DFS to compare two DependencyTreeModel trees.
  • Panels override needsTickRedraw() for proper async redraw of version resolution results.

New files

  • PluginsTui.java — Plugins tool TUI (3 sub-views, async version resolution, libyear)
  • TreeDiff.java — Tree diff algorithm (~95 lines)
  • TreeDiffTest.java — 6 unit tests for the diff algorithm

Modified files

  • PilotProject.java — added Plugin record and plugin fields
  • PilotResolver.java — added collectManagedDependencyTree() and collectArtifactDependencies()
  • Maven3PilotResolver.java / Maven4PilotResolver.java — implementations
  • MojoHelper.java — plugin extraction helpers
  • DependenciesTui.java — added DM Tree sub-view
  • UpdatesTui.java — added t key for tree impact preview
  • DiffOverlay.java — added openTreeImpact() for colored diff rendering
  • PilotShell.java / PilotEngine.java — wiring and registration
  • README.md — added pilot:plugins to goals table

Test plan

  • ./mvnw compile -B passes
  • ./mvnw test -B passes
  • Manual test: run pilot-cli on a multi-module project, verify Plugins tool (Alt+G)
  • Manual test: verify DM Tree tab in Dependencies
  • Manual test: select an update, press t, verify tree impact diff

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Apr 19, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@cstamas, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 44 minutes and 14 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 30d21a81-b421-4f49-836e-3dcd947033a0

📥 Commits

Reviewing files that changed from the base of the PR and between 77b4bde and 66981e3.

📒 Files selected for processing (21)
  • README.md
  • pilot-cli/src/main/java/eu/maveniverse/maven/pilot/mvn4/Maven4PilotResolver.java
  • pilot-cli/src/main/java/eu/maveniverse/maven/pilot/mvn4/PilotMain.java
  • pilot-core/src/main/java/eu/maveniverse/maven/pilot/DependenciesTui.java
  • pilot-core/src/main/java/eu/maveniverse/maven/pilot/DiffOverlay.java
  • pilot-core/src/main/java/eu/maveniverse/maven/pilot/PilotEngine.java
  • pilot-core/src/main/java/eu/maveniverse/maven/pilot/PilotProject.java
  • pilot-core/src/main/java/eu/maveniverse/maven/pilot/PilotResolver.java
  • pilot-core/src/main/java/eu/maveniverse/maven/pilot/PilotShell.java
  • pilot-core/src/main/java/eu/maveniverse/maven/pilot/PluginsTui.java
  • pilot-core/src/main/java/eu/maveniverse/maven/pilot/ToolPanel.java
  • pilot-core/src/main/java/eu/maveniverse/maven/pilot/TreeDiff.java
  • pilot-core/src/main/java/eu/maveniverse/maven/pilot/UpdatesTui.java
  • pilot-core/src/main/java/eu/maveniverse/maven/pilot/VersionComparator.java
  • pilot-core/src/test/java/eu/maveniverse/maven/pilot/DiffOverlayTest.java
  • pilot-core/src/test/java/eu/maveniverse/maven/pilot/PilotShellToolDefTest.java
  • pilot-core/src/test/java/eu/maveniverse/maven/pilot/PluginsTuiTest.java
  • pilot-core/src/test/java/eu/maveniverse/maven/pilot/TreeDiffTest.java
  • pilot-core/src/test/java/eu/maveniverse/maven/pilot/VersionComparatorTest.java
  • pilot-plugin/src/main/java/eu/maveniverse/maven/pilot/mvn3/Maven3PilotResolver.java
  • pilot-plugin/src/main/java/eu/maveniverse/maven/pilot/mvn3/MojoHelper.java
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch polite-law

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gnodet

gnodet commented Apr 19, 2026

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Apr 19, 2026

Copy link
Copy Markdown
Contributor
✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

- New Plugins tool (Alt+G): browse declared/managed plugins, check for
  version updates with libyear scoring. Three sub-views: Plugins,
  Managed, Updates.
- DM Tree sub-view in Dependencies: shows transitive tree of managed
  dependencies only via new collectManagedDependencyTree() resolver
  method (Maven 3 + Maven 4).
- Upgrade impact preview in Updates: press 't' to see a before/after
  tree diff when applying an update. TreeDiff algorithm uses parallel
  DFS to compare two DependencyTreeModel trees.
- Panels override needsTickRedraw() for proper async redraw.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Extract shared updateTypeLabel/updateTypeStyle/formatLibYears to
VersionComparator, extract handleSimpleStandaloneEvent to ToolPanel,
encapsulate PilotProject plugin fields, and add comprehensive tests
for DiffOverlay, VersionComparator, and PluginsTui.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
35.8% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
39.6% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants