Skip to content

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

bug: fixed sidebar not holding the links properly

ddux67a3837d6ab1
diff --git a/frontend/package-lock.json b/frontend/package-lock.json
index 3f49fd77..f6960bcd 100644
--- a/frontend/package-lock.json
+++ b/frontend/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "frontend",
- "version": "1.0.6",
+ "version": "1.0.7",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "frontend",
- "version": "1.0.6",
+ "version": "1.0.7",
"dependencies": {
"@sveltejs/svelte-json-tree": "^2.2.1",
"lucide-svelte": "^0.562.0",
diff --git a/frontend/package.json b/frontend/package.json
index e35b9275..05a603a6 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -1,7 +1,7 @@
{
"name": "frontend",
"private": true,
- "version": "1.0.6",
+ "version": "1.0.7",
"type": "module",
"scripts": {
"dev": "vite dev",
diff --git a/frontend/src/lib/components/app-sidebar.svelte b/frontend/src/lib/components/app-sidebar.svelte
index ac00e872..b5a82e48 100644
--- a/frontend/src/lib/components/app-sidebar.svelte
+++ b/frontend/src/lib/components/app-sidebar.svelte
@@ -19,10 +19,10 @@
const sidebarItems: 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 --git a/frontend/src/routes/endpoints/[endpoint]/+page.svelte b/frontend/src/routes/endpoints/[endpoint]/+page.svelte
index 0f2cb392..98ddf714 100644
--- a/frontend/src/routes/endpoints/[endpoint]/+page.svelte
+++ b/frontend/src/routes/endpoints/[endpoint]/+page.svelte
@@ -362,7 +362,7 @@
<Table.Row
class="cursor-pointer hover:bg-muted/50"
onclick={createRowClickHandler(
- `/endpoints/${encodeURIComponent(decodeURIComponent(data.endpoint))}/${transaction.id}`)}
+ `/endpoints/${encodeURIComponent(decodeURIComponent(data.endpoint))}/${transaction.id}`, 'preset', 'from', 'to')}
>
<Table.Cell class="text-muted-foreground">
{formatDateTime(transaction.recordedAt, { timezone })}
diff --git a/frontend/src/routes/issues/+page.svelte b/frontend/src/routes/issues/+page.svelte
index 8175d065..88e0f5f4 100644
--- a/frontend/src/routes/issues/+page.svelte
+++ b/frontend/src/routes/issues/+page.svelte
@@ -461,22 +461,22 @@
<Table.Cell
class="max-w-[400px] truncate font-mono text-sm"
title={exception.stackTrace}
- onclick={createRowClickHandler(`/issues/${exception.exceptionHash}`)}
+ onclick={createRowClickHandler(`/issues/${exception.exceptionHash}`, 'preset', 'from', 'to')}
>
<span class="text-foreground">{exception.stackTrace.split('\n')[0]}</span>
</Table.Cell>
- <Table.Cell onclick={createRowClickHandler(`/issues/${exception.exceptionHash}`)}>
+ <Table.Cell onclick={createRowClickHandler(`/issues/${exception.exceptionHash}`, 'preset', 'from', 'to')}>
<IssueTrendChart trend={exception.hourlyTrend || []} />
</Table.Cell>
<Table.Cell
class="text-right font-medium tabular-nums"
- onclick={createRowClickHandler(`/issues/${exception.exceptionHash}`)}
+ onclick={createRowClickHandler(`/issues/${exception.exceptionHash}`, 'preset', 'from', 'to')}
>
{exception.count.toLocaleString()}
</Table.Cell>
<Table.Cell
class="text-muted-foreground"
- onclick={createRowClickHandler(`/issues/${exception.exceptionHash}`)}
+ onclick={createRowClickHandler(`/issues/${exception.exceptionHash}`, 'preset', 'from', 'to')}
>
{formatDateTime(exception.lastSeen, { timezone })}
</Table.Cell>
diff --git a/frontend/src/routes/issues/[exceptionHash]/events/+page.svelte b/frontend/src/routes/issues/[exceptionHash]/events/+page.svelte
index 9d5c8219..61560113 100644
--- a/frontend/src/routes/issues/[exceptionHash]/events/+page.svelte
+++ b/frontend/src/routes/issues/[exceptionHash]/events/+page.svelte
@@ -226,7 +226,7 @@
{#each occurrences as occurrence}
<Table.Row
class="cursor-pointer hover:bg-muted/50"
- onclick={createRowClickHandler(`/issues/${page.params.exceptionHash}/${occurrence.id}`)}
+ onclick={createRowClickHandler(`/issues/${page.params.exceptionHash}/${occurrence.id}`, 'preset', 'from', 'to')}
>
<Table.Cell>{formatDateTime(occurrence.recordedAt, { timezone })}</Table.Cell>
<Table.Cell class="font-mono text-sm text-muted-foreground">
diff --git a/frontend/src/routes/tasks/[task]/+page.svelte b/frontend/src/routes/tasks/[task]/+page.svelte
index 838c227c..3a275523 100644
--- a/frontend/src/routes/tasks/[task]/+page.svelte
+++ b/frontend/src/routes/tasks/[task]/+page.svelte
@@ -322,7 +322,7 @@
<Table.Row
class="cursor-pointer hover:bg-muted/50"
onclick={createRowClickHandler(
- `/tasks/${encodeURIComponent(decodeURIComponent(data.task))}/${task.id}`)}
+ `/tasks/${encodeURIComponent(decodeURIComponent(data.task))}/${task.id}`, 'preset', 'from', 'to')}
>
<Table.Cell class="text-muted-foreground">
{formatDateTime(task.recordedAt, { timezone })}