Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Telemetry for navigating to an Owner Profile link #5995

Merged
merged 1 commit into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:nuget="clr-namespace:NuGet.PackageManagement.UI"
xmlns:nugettel="clr-namespace:NuGet.PackageManagement.Telemetry;assembly=NuGet.PackageManagement.VisualStudio"
mc:Ignorable="d"
x:Name="_self"
d:DesignHeight="300" d:DesignWidth="300">
Expand Down Expand Up @@ -40,7 +41,8 @@
NavigateUri="{Binding Link, Mode=OneWay}"
ToolTip="{Binding Link, Mode=OneWay}"
Style="{StaticResource HyperlinkSelectorAware}"
Command="{x:Static nuget:PackageManagerControlCommands.OpenExternalLink}">
Command="{x:Static nuget:PackageManagerControlCommands.OpenExternalLink}"
CommandParameter="{x:Static nugettel:HyperlinkType.OwnerProfile}">
<Run Text="{Binding Name, Mode=OneTime}" />
</Hyperlink><TextBlock Margin="0,0,2,0" Text=",">
<TextBlock.Visibility>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:nuget="clr-namespace:NuGet.PackageManagement.UI"
xmlns:nugettel="clr-namespace:NuGet.PackageManagement.Telemetry;assembly=NuGet.PackageManagement.VisualStudio"
xmlns:imaging="clr-namespace:Microsoft.VisualStudio.Imaging;assembly=Microsoft.VisualStudio.Imaging"
xmlns:catalog="clr-namespace:Microsoft.VisualStudio.Imaging;assembly=Microsoft.VisualStudio.ImageCatalog"
xmlns:glob="clr-namespace:System.Globalization;assembly=mscorlib"
Expand Down Expand Up @@ -177,7 +178,8 @@
ToolTip="{Binding Link, Mode=OneWay}"
Style="{StaticResource HyperlinkStyle}"
AutomationProperties.Name="{x:Static nuget:Resources.Hyperlink_Owner}"
Command="{x:Static nuget:PackageManagerControlCommands.OpenExternalLink}">
Command="{x:Static nuget:PackageManagerControlCommands.OpenExternalLink}"
CommandParameter="{x:Static nugettel:HyperlinkType.OwnerProfileDetailsPane}">
<Run Text="{Binding Name, Mode=OneTime}" />
</Hyperlink><TextBlock Margin="0,0,2,0" Text=",">
<TextBlock.Visibility>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ public enum HyperlinkType
DeprecationAlternativeDetails,
DeprecationAlternativePackageItem,
VulnerabilityAdvisory,
OptionsBlocked
OptionsBlocked,
OwnerProfile,
OwnerProfileDetailsPane
}
}
Loading