mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 06:50:54 +07:00
[Feedback] IDEA-331610 Use new Evaluation Feedback From in Intellij IDEA
IJ-CR-115375 GitOrigin-RevId: 642a0127cb9c9a95a326df55bc2d0d8f1effb8d7
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b854824647
commit
8a7e13f3ec
@@ -40,6 +40,9 @@ class IntelliJIdeaExternalResourceUrls : BaseJetBrainsExternalProductResourceUrl
|
||||
}
|
||||
}
|
||||
|
||||
override val useNewEvaluationFeedbackForm: Boolean
|
||||
get() = true
|
||||
|
||||
override val youTubeChannelUrl: Url
|
||||
get() = Urls.newFromEncoded("https://www.youtube.com/user/intellijideavideo")
|
||||
|
||||
|
||||
@@ -56,6 +56,12 @@ abstract class BaseJetBrainsExternalProductResourceUrls : ExternalProductResourc
|
||||
open val zenDeskFeedbackFormData: ZenDeskFeedbackFormData?
|
||||
get() = null
|
||||
|
||||
/**
|
||||
* Whether to use the new Evaluation Feedback Form to collect evaluation feedback from users.
|
||||
*/
|
||||
open val useNewEvaluationFeedbackForm: Boolean
|
||||
get() = false
|
||||
|
||||
override val updateMetadataUrl: Url
|
||||
get() {
|
||||
val customUrl = System.getProperty("idea.updates.url")
|
||||
@@ -93,7 +99,7 @@ abstract class BaseJetBrainsExternalProductResourceUrls : ExternalProductResourc
|
||||
|
||||
override val feedbackReporter: FeedbackReporter?
|
||||
get() = shortProductNameUsedInForms?.let { productName ->
|
||||
JetBrainsFeedbackReporter(productName, zenDeskFeedbackFormData)
|
||||
JetBrainsFeedbackReporter(productName, useNewEvaluationFeedbackForm, zenDeskFeedbackFormData)
|
||||
}
|
||||
|
||||
override val downloadPageUrl: Url?
|
||||
|
||||
@@ -8,13 +8,13 @@ import com.intellij.openapi.util.registry.Registry
|
||||
import com.intellij.platform.feedback.evaluation.dialog.EvaluationFeedbackDialog
|
||||
import com.intellij.platform.ide.customization.FeedbackReporter
|
||||
import com.intellij.ui.LicensingFacade
|
||||
import com.intellij.util.PlatformUtils.isIntelliJ
|
||||
import com.intellij.util.Url
|
||||
import com.intellij.util.Urls
|
||||
import org.jetbrains.annotations.ApiStatus
|
||||
|
||||
@ApiStatus.Internal
|
||||
class JetBrainsFeedbackReporter(private val productName: String,
|
||||
private val useNewEvaluationFeedbackForm: Boolean,
|
||||
private val zenDeskFormData: ZenDeskFeedbackFormData?) : FeedbackReporter {
|
||||
override val destinationDescription: String
|
||||
get() = "jetbrains.com"
|
||||
@@ -37,7 +37,7 @@ class JetBrainsFeedbackReporter(private val productName: String,
|
||||
return false
|
||||
}
|
||||
|
||||
if (requestedForEvaluation && isIntelliJ()) {
|
||||
if (requestedForEvaluation && useNewEvaluationFeedbackForm) {
|
||||
EvaluationFeedbackDialog(project, false).show()
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user