Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,35 @@ cd mpp-idea && ../gradlew buildPlugin
- `IdeaAgentViewModelTest` requires IntelliJ Platform Test Framework
- `JewelRendererTest` can run standalone with JUnit 5

**Swing/Compose Z-Index Issues (SwingPanel blocking Compose popups):**

When using `SwingPanel` to embed Swing components (e.g., `EditorTextField`) in Compose, Swing components render on top of Compose popups, causing z-index issues.

**Solution 1: For Popup/Dropdown menus**
1. Enable Jewel's custom popup renderer in `IdeaAgentToolWindowFactory`:
```kotlin
JewelFlags.useCustomPopupRenderer = true
```
2. Use Jewel's `PopupMenu` instead of `androidx.compose.ui.window.Popup`:
```kotlin
PopupMenu(
onDismissRequest = { expanded = false; true },
horizontalAlignment = Alignment.Start
) {
selectableItem(selected = ..., onClick = { ... }) { Text("Item") }
}
```

**Solution 2: For Dialogs**
Use IntelliJ's `DialogWrapper` with `org.jetbrains.jewel.bridge.compose` instead of `androidx.compose.ui.window.Dialog`:
```kotlin
class MyDialogWrapper(project: Project?) : DialogWrapper(project) {
override fun createCenterPanel(): JComponent = compose {
// Compose content here
}
}
```

## Release

1. modify version in `gradle.properties`
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pluginRepositoryUrl = https://github.com/unit-mesh/auto-dev
pluginVersion = 2.4.6

# MPP Unified Version (mpp-core, mpp-ui, mpp-server)
mppVersion = 0.3.2
mppVersion = 0.3.3

# Supported IDEs: idea, pycharm
baseIDE=idea
Expand Down
Loading
Loading