Skip to content

Commit

Permalink
Remove feedback link, add discord link, update teams link. (#234)
Browse files Browse the repository at this point in the history
* remove feedback, add discord, update teams

* changelog

* CR: no discord on review notification, github instead.

* CR: or star
  • Loading branch information
t4lz authored Jan 10, 2024
1 parent 5acbbfd commit 451c602
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
1 change: 1 addition & 0 deletions changelog.d/+update-urls.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Removed feedback form link, added discord link, updated mirrord for teams link.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import com.intellij.openapi.progress.Task
import com.intellij.openapi.project.Project
import java.util.concurrent.*

const val GITHUB_URL = "https://github.com/metalbear-co/mirrord"

enum class MessageType {
NewTask, FinishedTask, Warning
}
Expand Down Expand Up @@ -217,7 +219,7 @@ class MirrordApi(private val service: MirrordProjectService, private val project
return
}

service.notifier.notification("Enjoying mirrord? Don't forget to leave a review! Also consider giving us some feedback, we'd highly appreciate it!", NotificationType.INFORMATION).withLink("Review", "https://plugins.jetbrains.com/plugin/19772-mirrord/reviews").withLink("Feedback", FEEDBACK_URL).withDontShowAgain(MirrordSettingsState.NotificationId.PLUGIN_REVIEW).fire()
service.notifier.notification("Enjoying mirrord? Don't forget to leave a review or star us on GitHub!", NotificationType.INFORMATION).withLink("Review", "https://plugins.jetbrains.com/plugin/19772-mirrord/reviews").withLink("Star us on GitHub", GITHUB_URL).withDontShowAgain(MirrordSettingsState.NotificationId.PLUGIN_REVIEW).fire()
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import com.intellij.util.io.KeyDescriptor
import java.util.*
import javax.swing.JComponent

const val FEEDBACK_URL = "https://mirrord.dev/feedback"
const val MIRRORD_FOR_TEAMS_URL = "https://mirrord.dev/docs/teams/introduction/"
const val DISCORD_URL = "https://discord.gg/metalbear"
const val MIRRORD_FOR_TEAMS_URL = "https://app.metalbear.co/"

fun VirtualFile.relativePath(project: Project): String {
return calcRelativeToProjectPath(this, project, includeFilePath = true, keepModuleAlwaysOnTheLeft = true)
Expand Down Expand Up @@ -106,15 +106,15 @@ class MirrordDropDown : ComboBoxAction(), DumbAware {
}
}

private class NavigateToMirrodForTeamsIntroAction : AnAction("Try it now") {
private class NavigateToMirrodForTeamsIntroAction : AnAction("Try It Now") {
override fun actionPerformed(e: AnActionEvent) {
BrowserUtil.browse(MIRRORD_FOR_TEAMS_URL)
}
}

private class FeedbackAction : AnAction("Give Feedback") {
private class DiscordAction : AnAction("Get Help on Discord") {
override fun actionPerformed(e: AnActionEvent) {
BrowserUtil.browse(FEEDBACK_URL)
BrowserUtil.browse(DISCORD_URL)
}
}

Expand All @@ -131,8 +131,8 @@ class MirrordDropDown : ComboBoxAction(), DumbAware {
add(SettingsAction())
addSeparator("mirrord for Teams")
add(NavigateToMirrodForTeamsIntroAction())
addSeparator("Feedback")
add(FeedbackAction())
addSeparator("Help")
add(DiscordAction())
}
}

Expand Down

0 comments on commit 451c602

Please sign in to comment.