Skip to content

Commit 82b8d18

Browse files
authored
Merge pull request #476 from phodal/master
fix build issue and update agent prompts for DS V3.2
2 parents bbe9401 + 2af4664 commit 82b8d18

File tree

13 files changed

+870
-811
lines changed

13 files changed

+870
-811
lines changed

AGENTS.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,35 @@ cd mpp-idea && ../gradlew buildPlugin
6464
- `IdeaAgentViewModelTest` requires IntelliJ Platform Test Framework
6565
- `JewelRendererTest` can run standalone with JUnit 5
6666

67+
**Swing/Compose Z-Index Issues (SwingPanel blocking Compose popups):**
68+
69+
When using `SwingPanel` to embed Swing components (e.g., `EditorTextField`) in Compose, Swing components render on top of Compose popups, causing z-index issues.
70+
71+
**Solution 1: For Popup/Dropdown menus**
72+
1. Enable Jewel's custom popup renderer in `IdeaAgentToolWindowFactory`:
73+
```kotlin
74+
JewelFlags.useCustomPopupRenderer = true
75+
```
76+
2. Use Jewel's `PopupMenu` instead of `androidx.compose.ui.window.Popup`:
77+
```kotlin
78+
PopupMenu(
79+
onDismissRequest = { expanded = false; true },
80+
horizontalAlignment = Alignment.Start
81+
) {
82+
selectableItem(selected = ..., onClick = { ... }) { Text("Item") }
83+
}
84+
```
85+
86+
**Solution 2: For Dialogs**
87+
Use IntelliJ's `DialogWrapper` with `org.jetbrains.jewel.bridge.compose` instead of `androidx.compose.ui.window.Dialog`:
88+
```kotlin
89+
class MyDialogWrapper(project: Project?) : DialogWrapper(project) {
90+
override fun createCenterPanel(): JComponent = compose {
91+
// Compose content here
92+
}
93+
}
94+
```
95+
6796
## Release
6897

6998
1. modify version in `gradle.properties`

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pluginRepositoryUrl = https://github.com/unit-mesh/auto-dev
1010
pluginVersion = 2.4.6
1111

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

1515
# Supported IDEs: idea, pycharm
1616
baseIDE=idea

0 commit comments

Comments
 (0)