-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add GuidanceConfiguration, drop shortened URLs * Redesign AnalyticsTrasmitter and usage events * Cleanup unused enum * Fix: avoid sending duplicate 20 day event on upgrade * Include Ide property in events * Test: transmit Ide parameter * Add tests for handling missing url in guidance step, refactoring * Cleanup * changelog
- Loading branch information
1 parent
545a25b
commit 0e5a647
Showing
25 changed files
with
203 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
IdeIntegration/Analytics/Events/ExtensionFiveDayUsageAnalyticsEvent.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
IdeIntegration/Analytics/Events/ExtensionOneHundredDayUsageAnalyticsEvent.cs
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
IdeIntegration/Analytics/Events/ExtensionTwentyDayUsageAnalyticsEvent.cs
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
IdeIntegration/Analytics/Events/ExtensionTwoHundredDayUsageAnalyticsEvent.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
IdeIntegration/Analytics/Events/ExtensionUsageAnalyticsEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System; | ||
|
||
namespace TechTalk.SpecFlow.IdeIntegration.Analytics.Events | ||
{ | ||
public class ExtensionUsageAnalyticsEvent : AnalyticsEventBase | ||
{ | ||
private readonly int _daysUsage; | ||
|
||
public ExtensionUsageAnalyticsEvent(string ide, DateTime utcDate, string userId, int daysUsage) : base(ide, utcDate, userId) | ||
{ | ||
_daysUsage = daysUsage; | ||
} | ||
|
||
public override string EventName => $"{_daysUsage} day usage"; | ||
} | ||
} |
5 changes: 2 additions & 3 deletions
5
IdeIntegration/Analytics/Events/ProjectTemplateWizardCompletedAnalyticsEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
IdeIntegration/Analytics/Events/ProjectTemplateWizardStartedAnalyticsEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
using System; | ||
using EnumsNET; | ||
|
||
namespace TechTalk.SpecFlow.IdeIntegration.Analytics.Events | ||
{ | ||
public class ProjectTemplateWizardStartedAnalyticsEvent : AnalyticsEventBase | ||
{ | ||
public ProjectTemplateWizardStartedAnalyticsEvent(DateTime utcDate, string userId) : base(utcDate, userId) | ||
public ProjectTemplateWizardStartedAnalyticsEvent(string ide, DateTime utcDate, string userId) : base(ide, utcDate, userId) | ||
{ | ||
} | ||
|
||
public override string EventName => AnalyticsEventType.ProjectTemplateWizardStarted.AsString(EnumFormat.Description, EnumFormat.Name); | ||
public override string EventName => "Project Template Wizard Started"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace TechTalk.SpecFlow.IdeIntegration.Install | ||
{ | ||
public class GuidanceConfiguration : IGuidanceConfiguration | ||
{ | ||
public GuidanceConfiguration() | ||
{ | ||
|
||
Installation = new GuidanceStep(GuidanceNotification.AfterInstall, null, @"https://specflow.org/welcome-to-specflow/"); | ||
|
||
Upgrade = new GuidanceStep(GuidanceNotification.Upgrade, null, @"https://specflow.org/welcome-to-specflow-visual-studio-integration-v2019-0/"); | ||
|
||
UsageSequence = new[] | ||
{ | ||
new GuidanceStep(GuidanceNotification.TwoDayUsage, 2, "https://specflow.org/ide-onboarding-two-days/"), | ||
new GuidanceStep(GuidanceNotification.FiveDayUsage, 5, "https://specflow.org/vs-onboarding-five-days/"), | ||
new GuidanceStep(GuidanceNotification.TenDayUsage, 10, "https://specflow.org/beyond-the-basics/"), | ||
new GuidanceStep(GuidanceNotification.TwentyDayUsage, 20, null), | ||
new GuidanceStep(GuidanceNotification.HundredDayUsage, 100, "https://specflow.org/experienced/"), | ||
new GuidanceStep(GuidanceNotification.TwoHundredDayUsage, 200, "https://specflow.org/veteran/") | ||
}; | ||
} | ||
|
||
public GuidanceStep Installation { get; } | ||
|
||
public GuidanceStep Upgrade { get; } | ||
|
||
public IEnumerable<GuidanceStep> UsageSequence { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
namespace TechTalk.SpecFlow.IdeIntegration.Install | ||
{ | ||
public class GuidanceStep | ||
{ | ||
public GuidanceNotification UserLevel { get; } | ||
|
||
public int? UsageDays { get; } | ||
|
||
public string Url { get; } | ||
|
||
public GuidanceStep(GuidanceNotification userLevel, int? usageDays, string url) | ||
{ | ||
UserLevel = userLevel; | ||
UsageDays = usageDays; | ||
Url = url; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace TechTalk.SpecFlow.IdeIntegration.Install | ||
{ | ||
public interface IGuidanceConfiguration | ||
{ | ||
GuidanceStep Installation { get; } | ||
|
||
GuidanceStep Upgrade { get; } | ||
|
||
IEnumerable<GuidanceStep> UsageSequence { get; } | ||
} | ||
} |
Oops, something went wrong.