Skip to content

The only tool you need to know what is happening and how to fix it.

Merge branch 'main' into js-frameworks

ddux3f9649aff5d5
diff --cc frontend/src/lib/components/app-sidebar.svelte
index a3b68b9f,b5a82e48..d191427f
--- a/frontend/src/lib/components/app-sidebar.svelte
+++ b/frontend/src/lib/components/app-sidebar.svelte
@@@ -17,14 -17,12 +17,14 @@@
external?: boolean;
}
- const sidebarItems: SidebarItem[] = [
+ const hiddenForFrontend = new Set(['Endpoints', 'Tasks', 'Metrics']);
+
+ const allSidebarItems: SidebarItem[] = [
{Icon: LayoutDashboard, href: "/", title: "Dashboard", stickyParams: []},
- {Icon: Bug, href: "/issues", title: "Issues", stickyParams: []},
- {Icon: Gauge, href: "/endpoints", title: "Endpoints", stickyParams: ['presets', 'from', 'to']},
- {Icon: ListEnd, href: "/tasks", title: "Tasks", stickyParams: ['presets', 'from', 'to']},
- {Icon: ChartNoAxesCombined, href: "/metrics", title: "Metrics", stickyParams: ['presets', 'from', 'to']},
+ {Icon: Bug, href: "/issues", title: "Issues", stickyParams: ['preset', 'from', 'to']},
+ {Icon: Gauge, href: "/endpoints", title: "Endpoints", stickyParams: ['preset', 'from', 'to']},
+ {Icon: ListEnd, href: "/tasks", title: "Tasks", stickyParams: ['preset', 'from', 'to']},
+ {Icon: ChartNoAxesCombined, href: "/metrics", title: "Metrics", stickyParams: ['preset', 'from', 'to']},
{Icon: Link2, href: "/connection", title: "Connection", stickyParams: []},
]
diff --cc frontend/src/routes/+page.svelte
index 2fc10b69,6126c6c2..f6e00754
--- a/frontend/src/routes/+page.svelte
+++ b/frontend/src/routes/+page.svelte
@@@ -93,27 -91,11 +93,25 @@@
);
const installCommand = $derived(
- projectWithToken
- ? getInstallCommand(projectWithToken.framework)
- : 'go get go.tracewayapp.com'
+ projectWithToken ? getInstallCommand(projectWithToken.framework) : 'go get go.tracewayapp.com'
);
- const testingRouteCode = getTestingRouteCode();
- const testingRouteCode2 = getTestingRouteCode2();
+ const isFrontend = $derived(
+ projectWithToken ? isFrontendFramework(projectWithToken.framework) : false
+ );
+
+ const codeLanguage = $derived(
+ projectWithToken ? getCodeLanguage(projectWithToken.framework) : 'go' as const
+ );
+
+ const highlightLanguage = $derived(codeLanguage === 'javascript' ? javascript : go);
+
+ const testingRouteCode = $derived(
+ getTestingRouteCode(projectWithToken?.framework)
+ );
+ const testingRouteCode2 = $derived(
+ getTestingRouteCode2(projectWithToken?.framework)
+ );
async function copyInstall() {
await navigator.clipboard.writeText(installCommand);