Skip to content

Commit 70f24f4

Browse files
committed
fix(gui): correct issue submission link and add hover text
The issue submission link was not working properly and lacked hover text for user guidance. This commit fixes the link to open the correct GitHub issue page and adds a tooltip with additional information.
1 parent 1ee6ad2 commit 70f24f4

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/main/kotlin/cc/unitmesh/devti/gui/chat/ChatCodingPanel.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import com.intellij.ui.components.JBLabel
2929
import com.intellij.ui.components.JBScrollPane
3030
import com.intellij.ui.components.panels.VerticalLayout
3131
import com.intellij.ui.dsl.builder.panel
32+
import com.intellij.ui.dsl.gridLayout.UnscaledGapsY
3233
import com.intellij.util.ui.JBFont
3334
import com.intellij.util.ui.JBUI
3435
import com.intellij.util.ui.UIUtil
@@ -77,10 +78,11 @@ class ChatCodingPanel(private val chatCodingService: ChatCodingService, val disp
7778

7879
progressBar = JProgressBar()
7980

80-
val actionLink = ActionLink(AutoDevBundle.message("label.submit.issue")) {
81-
BrowserUtil.browse(AutoDevBundle.message("chat.panel.submit.issue.url"))
81+
val actionLink = panel {
82+
row {
83+
text(AutoDevBundle.message("label.submit.issue"))
84+
}.customize(UnscaledGapsY(0, 18));
8285
}
83-
actionLink.setExternalLinkIcon()
8486

8587
inputSection = AutoDevInputSection(chatCodingService.project, disposable)
8688
inputSection.addListener(object : AutoDevInputListener {

src/main/resources/messages/AutoDevBundle.properties

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ autodev.custom.prompt.placeholder=Custom your prompt here
3737
autodev.custom.intentions.family=Custom Intention
3838

3939
tooltip.thanks=Thanks for like, but we don't support this
40-
label.submit.issue=Want new feature?
41-
chat.panel.submit.issue.url=https://github.com/unit-mesh/auto-dev/issues
40+
label.submit.issue=<a href="https://github.com/unit-mesh/auto-dev/issues">Want new feature?</a>
4241

4342
# don't remove the following line and don't rename them unless change [LLMSettingCompoent] class
4443
settings.languageParam=Language

0 commit comments

Comments
 (0)