Skip to content

Commit b8240a7

Browse files
committed
chore(idea): update plugin name and add publishing config
Renames the plugin to "AutoDev Experiment", sets version to 0.3.5, and adds plugin verification and publishing token configuration.
1 parent 5a3abcf commit b8240a7

File tree

4 files changed

+23
-32
lines changed

4 files changed

+23
-32
lines changed

AGENTS.md

Lines changed: 8 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -64,39 +64,17 @@ 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-
```
67+
## VSCode Plugin (mpp-vscode)
68+
69+
`mpp-vscode` is a standalone npm package with `devDependencies` on parent project.
9570

9671
## Release
9772

9873
1. modify version in `gradle.properties`
9974
2. publish cli version: `cd mpp-ui && npm publish:remote`
100-
3. publish Desktop: `git tag compose-vVersion` (same in `gradle.properties`), `git push origin compose-vVersion`
101-
4. draft release in GitHub, run gh cli: `gh release create compose-vVersion --draft`
75+
76+
### Desktop Compose App
77+
78+
1. publish Desktop: `git tag compose-vVersion` (same in `gradle.properties`), `git push origin compose-vVersion`
79+
2. draft release in GitHub, run gh cli: `gh release create compose-vVersion --draft`
10280

mpp-idea/build.gradle.kts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,14 +201,24 @@ dependencies {
201201

202202
intellijPlatform {
203203
pluginConfiguration {
204-
name = "AutoDev Compose UI"
204+
name = "AutoDev Experiment"
205205
version = mppVersion
206206

207207
ideaVersion {
208208
sinceBuild = "252"
209209
}
210210
}
211211

212+
pluginVerification {
213+
ides {
214+
recommended()
215+
}
216+
}
217+
218+
publishing {
219+
token = providers.environmentVariable("PUBLISH_TOKEN")
220+
}
221+
212222
buildSearchableOptions = false
213223
instrumentCode = false
214224
}

mpp-idea/gradle.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ org.gradle.caching = true
1313
# Kotlin stdlib
1414
kotlin.stdlib.default.dependency = false
1515

16+
# MPP Version
17+
mppVersion = 0.3.5
18+

mpp-idea/src/main/resources/META-INF/plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!-- Plugin Configuration File for mpp-idea Compose UI module -->
22
<idea-plugin xmlns:xi="http://www.w3.org/2001/XInclude">
33
<id>cc.unitmesh.devins.idea</id>
4-
<name>AutoDev Next</name>
4+
<name>AutoDev Experiment</name>
55
<vendor email="[email protected]" url="https://github.com/unit-mesh">UnitMesh</vendor>
66

77
<description><![CDATA[

0 commit comments

Comments
 (0)