Skip to content

Commit

Permalink
feat: add hyperlink to settings dialog to explain release channels (#522
Browse files Browse the repository at this point in the history
)
  • Loading branch information
bastiandoetsch authored Apr 29, 2024
1 parent acbb617 commit d425945
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/main/kotlin/io/snyk/plugin/ui/SnykSettingsDialog.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import com.intellij.openapi.ui.ValidationInfo
import com.intellij.openapi.util.Disposer
import com.intellij.ui.ContextHelpLabel
import com.intellij.ui.DocumentAdapter
import com.intellij.ui.HyperlinkLabel
import com.intellij.ui.IdeBorderFactory
import com.intellij.ui.components.JBPasswordField
import com.intellij.ui.components.JBTextField
Expand Down Expand Up @@ -592,14 +593,9 @@ class SnykSettingsDialog(
)

val descriptionLabelReleaseChannel =
JLabel(
"<html>" +
"<li>Stable release channel releases every 2 months</li>" +
"<li>RC channel releases for all release candidates</li>" +
"<li>Preview channel releases continuously.</li>" +
"<li>A version can also be specified directly by entering its number, e.g. v1.1290.1</li>" +
"</html>"
)
HyperlinkLabel(
"Find out about our release channels",
).apply { setHyperlinkTarget("https://docs.snyk.io/snyk-cli/releases-and-channels-for-the-snyk-cli") }
descriptionLabelReleaseChannel.font = FontUtil.minusOne(descriptionLabelReleaseChannel.font)

executableSettingsPanel.add(
Expand Down

0 comments on commit d425945

Please sign in to comment.