Skip to content

Commit

Permalink
Make changes for the comments
Browse files Browse the repository at this point in the history
  • Loading branch information
eray-felek-sonarsource committed Jan 22, 2025
1 parent 243437e commit 514c750
Show file tree
Hide file tree
Showing 17 changed files with 723 additions and 715 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,18 @@

public class OpenWelcomePageOnceOneProjectOpened implements StartupActivity {

public static final String HAS_WALKTHROUGH_RUN_ONCE = "hasWalkthroughRunOnce";

@Override
public void runActivity(@NotNull Project project) {
if (ApplicationManager.getApplication().isUnitTestMode()) {
return;
}

var properties = PropertiesComponent.getInstance();
var hasWalkthroughRunOnce = "hasWalkthroughRunOnce";

if (!properties.getBoolean(hasWalkthroughRunOnce, false)) {
properties.setValue(hasWalkthroughRunOnce, true);
if (!properties.getBoolean(HAS_WALKTHROUGH_RUN_ONCE, false)) {
properties.setValue(HAS_WALKTHROUGH_RUN_ONCE, true);
openWelcomePage(project);
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/org/sonarlint/intellij/SonarLintIcons.kt
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ object SonarLintIcons {
val RESOLVED = getIcon("/images/resolved.svg")
@JvmField
val FOCUS = getIcon("/images/focus.svg")
@JvmField
val WALKTHROUGH_ICON = getIcon("/images/sonarqube-for-ide-mark.png")

private val BUG_ICONS = mapOf(
IssueSeverity.BLOCKER to getIcon("/images/bug/bugBlocker.svg"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ object SonarLintDocumentation {
const val AI_FIX_SUGGESTIONS_LINK = "$BASE_DOCS_URL/using-sonarlint/investigating-issues/#ai-generated-fix-suggestions"
}

object Community {
const val COMMUNITY_LINK = "https://community.sonarsource.com/c/sl/fault/6"
}

object SonarQube {
const val SMART_NOTIFICATIONS = "https://docs.sonarqube.org/latest/user-guide/sonarlint-connected-mode/"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ package org.sonarlint.intellij.telemetry
import com.intellij.ide.BrowserUtil
import org.sonarlint.intellij.common.util.SonarLintUtils
import org.sonarlint.intellij.documentation.SonarLintDocumentation
import org.sonarlint.intellij.documentation.SonarLintDocumentation.Community.COMMUNITY_LINK
import org.sonarlint.intellij.documentation.SonarLintDocumentation.Intellij.AI_FIX_SUGGESTIONS_LINK
import org.sonarlint.intellij.documentation.SonarLintDocumentation.Intellij.BASE_DOCS_URL
import org.sonarlint.intellij.documentation.SonarLintDocumentation.Intellij.RULE_SECTION_LINK
Expand All @@ -36,6 +37,7 @@ enum class LinkTelemetry(
SONARQUBE_EDITIONS_DOWNLOADS("sonarQubeEditionsDownloads", SonarLintDocumentation.Marketing.SONARQUBE_EDITIONS_DOWNLOADS_LINK),
RULE_SELECTION_PAGE("rulesSelectionDocs", RULE_SECTION_LINK),
AI_FIX_SUGGESTIONS_PAGE("aiFixSuggestionsDocs", AI_FIX_SUGGESTIONS_LINK),
COMMUNITY_PAGE("communityReportPage", COMMUNITY_LINK),
BASE_DOCS_PAGE("baseDocs", BASE_DOCS_URL);

fun browseWithTelemetry() {
Expand Down
138 changes: 0 additions & 138 deletions src/main/java/org/sonarlint/intellij/ui/ConnectWithYourTeamPage.java

This file was deleted.

132 changes: 0 additions & 132 deletions src/main/java/org/sonarlint/intellij/ui/LearnAsYouCodePage.java

This file was deleted.

Loading

0 comments on commit 514c750

Please sign in to comment.