Skip to content

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

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

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

Conversation

@gnodet
Copy link
Copy Markdown
Contributor

@gnodet gnodet commented Apr 19, 2026

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
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 19, 2026

Warning

Rate limit exceeded

@gnodet has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 26 minutes and 0 seconds before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: e8bc31c3-10be-4c86-a2f9-3dc2559bc07f

📥 Commits

Reviewing files that changed from the base of the PR and between 53558a2 and ec51f92.

📒 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
Copy link
Copy Markdown
Contributor Author

gnodet commented Apr 19, 2026

@coderabbitai review

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 19, 2026

✅ 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

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.

1 participant