[IDEA Plugin] [Simple mode] Add Settings button on picker state#779
[IDEA Plugin] [Simple mode] Add Settings button on picker state#779
Conversation
egorikftp
commented
Dec 12, 2025
- closes: [IDEA Plugin] [Simple mode] Add settings button #776
WalkthroughThe changes introduce a new Possibly related issues
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches
🧪 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: 0
🧹 Nitpick comments (3)
tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/ui/screen/mode/imagevectortoxml/picker/ImageVectorPickerScreen.kt (1)
59-61: Consider guarding against duplicate Settings navigations (double-click). IfnavController.navigatedoesn’t de-dupe, rapid clicks can stackSettingsScreen. ConsiderlaunchSingleTop/equivalent if supported by your nav API.tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/ui/screen/mode/simple/picker/SimplePickerScreen.kt (1)
57-59: Consider guarding against duplicate Settings navigations (double-click). Same note as the other picker: if the nav layer doesn’t prevent duplicates, consider a singleTop/de-dupe option.tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/ui/foundation/picker/GenericPickerScreen.kt (1)
55-65: Consider givingonOpenSettingsa default no-op to avoid a hard API break. If you don’t strictly need this to be required, a default keeps existing call sites compiling while still enabling the feature.fun GenericPickerScreen( title: String, onBack: () -> Unit, onFilePick: (Path) -> Unit, onTextPaste: (String) -> Unit, onBrowseClick: () -> Unit, - onOpenSettings: () -> Unit, + onOpenSettings: () -> Unit = {}, modifier: Modifier = Modifier, description: String? = null, fileFilter: (Path) -> Boolean = { true }, ) {
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/ui/foundation/picker/GenericPickerScreen.kt(4 hunks)tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/ui/screen/mode/imagevectortoxml/picker/ImageVectorPickerScreen.kt(2 hunks)tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/ui/screen/mode/simple/picker/SimplePickerScreen.kt(2 hunks)
🧰 Additional context used
🧬 Code graph analysis (1)
tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/ui/foundation/picker/GenericPickerScreen.kt (1)
tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/ui/foundation/TopAppBar.kt (1)
SettingsAction(107-120)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: build (ubuntu-latest)
🔇 Additional comments (5)
tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/ui/screen/mode/imagevectortoxml/picker/ImageVectorPickerScreen.kt (1)
15-15: Import addition looks fine.tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/ui/screen/mode/simple/picker/SimplePickerScreen.kt (1)
16-16: Import addition looks fine.tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/ui/foundation/picker/GenericPickerScreen.kt (3)
32-33: SettingsAction integration via import is fine.
79-84: TopAppBar layout change looks good (title left, settings right).WeightSpacer()+SettingsAction(...)reads well.
181-189: Preview update is correct. PassingonOpenSettings = {}keeps previews working.