Replace ProjectAccessor with currentProject for path handling#950
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
🚧 Files skipped from review as they are similar to previous changes (4)
WalkthroughRemoved the 🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In
`@tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/jewel/platform/ProjectAccessor.kt`:
- Around line 22-26: GeneralSettingsScreen and IconPackDirectoryPicker are using
the global currentProjectPath which can be wrong in composition-scoped UIs;
replace occurrences of currentProjectPath.orEmpty() in GeneralSettingsScreen and
IconPackDirectoryPicker with LocalProject.current?.basePath.orEmpty() so they
resolve the composition-provided project (LocalProject.current) instead of
ProjectManager.getInstance().openProjects via currentProjectPath.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: adf36986-af1c-4f7d-b756-e91b71223e28
📒 Files selected for processing (4)
tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/jewel/platform/ProjectAccessor.kttools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/jewel/tooling/PreviewTheme.kttools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/ui/screen/mode/iconpack/common/IconPackDirectoryPicker.kttools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/ui/screen/settings/tabs/general/GeneralSettingsScreen.kt
6a06607 to
423361f
Compare
📝 Changelog
If this PR introduces user-facing changes, please update the relevant Unreleased section in changelogs: