Skip to content

Commit f11fd7d

Browse files
committed
Enable Highlights and Analytics tabs for Visual Studio
1 parent 2daee46 commit f11fd7d

File tree

3 files changed

+7
-15
lines changed

3 files changed

+7
-15
lines changed

src/components/Main/index.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,6 @@ export const Main = () => {
226226
break;
227227
case ScopeChangeEvent.JaegerSpanLinkClicked:
228228
case ScopeChangeEvent.AssetsAssetCardTitleLinkClicked:
229-
if (platform === "Visual Studio") {
230-
goTo(`/${TAB_IDS.ISSUES}`, { state });
231-
break;
232-
}
233229
goTo(`/${TAB_IDS.HIGHLIGHTS}`, { state });
234230
break;
235231
case ScopeChangeEvent.HighlightsTopIssuesCardItemClicked:

src/components/Navigation/Tabs/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const tabs: BaseTabData[] = [
1717
id: TAB_IDS.HIGHLIGHTS,
1818
icon: MagicWandIcon,
1919
width: 40,
20-
platforms: ["JetBrains"]
20+
platforms: ["JetBrains", "Visual Studio"]
2121
},
2222
{
2323
title: "Issues",
@@ -32,7 +32,7 @@ const tabs: BaseTabData[] = [
3232
{
3333
title: "Analytics",
3434
id: TAB_IDS.ANALYTICS,
35-
platforms: ["JetBrains"]
35+
platforms: ["JetBrains", "Visual Studio"]
3636
},
3737
{
3838
title: "Errors",

src/containers/Main/router.tsx

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ export const routes: RouteObject[] = [
2121
index: true,
2222
element: <Navigate replace={true} to={TAB_IDS.ISSUES} />
2323
},
24-
...(platform === "JetBrains"
25-
? [{ path: TAB_IDS.HIGHLIGHTS, element: <Highlights /> }]
26-
: []),
24+
{ path: TAB_IDS.HIGHLIGHTS, element: <Highlights /> },
2725
{
2826
path: TAB_IDS.ISSUES,
2927
element: <Insights insightViewType={"Issues"} key={"issues"} />
@@ -38,14 +36,12 @@ export const routes: RouteObject[] = [
3836
}
3937
]
4038
},
39+
{
40+
path: TAB_IDS.ANALYTICS,
41+
element: <Insights insightViewType={"Analytics"} key={"analytics"} />
42+
},
4143
...(platform === "JetBrains"
4244
? [
43-
{
44-
path: TAB_IDS.ANALYTICS,
45-
element: (
46-
<Insights insightViewType={"Analytics"} key={"analytics"} />
47-
)
48-
},
4945
{
5046
path: TAB_IDS.ERRORS,
5147
element: <Errors />,

0 commit comments

Comments
 (0)