The only tool you need to know what is happening and how to fix it.
Go alertingexception-trackerissue-trackinglogsmetricsmonitoringobservability-platformopen-telemetryotelsession-replaytelemetrytraces
minor ui fixes
narrow-adventure3d0d9bd96567
diff --git a/backend/app/migrations/pg/0067_rename_template_traceway_otel_agent.up.sql b/backend/app/migrations/pg/0067_rename_template_traceway_otel_agent.up.sqlnew file mode 100644index 00000000..cdc42ea7--- /dev/null+++ b/backend/app/migrations/pg/0067_rename_template_traceway_otel_agent.up.sql@@ -0,0 +1 @@+UPDATE dashboard_templates SET name = 'OTelemetry Server Agent' WHERE key = 'traceway-otel-agent'diff --git a/backend/app/migrations/sqlite/0036_rename_template_traceway_otel_agent.up.sql b/backend/app/migrations/sqlite/0036_rename_template_traceway_otel_agent.up.sqlnew file mode 100644index 00000000..cdc42ea7--- /dev/null+++ b/backend/app/migrations/sqlite/0036_rename_template_traceway_otel_agent.up.sql@@ -0,0 +1 @@+UPDATE dashboard_templates SET name = 'OTelemetry Server Agent' WHERE key = 'traceway-otel-agent'diff --git a/frontend/src/lib/components/ui/alert/alert.svelte b/frontend/src/lib/components/ui/alert/alert.svelteindex fef83dae..449e5d27 100644--- a/frontend/src/lib/components/ui/alert/alert.svelte+++ b/frontend/src/lib/components/ui/alert/alert.svelte@@ -7,7 +7,7 @@variant: {default: 'bg-card text-card-foreground',destructive:- 'text-destructive bg-card *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current'+ 'text-destructive border-destructive/50 dark:border-destructive bg-card *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current'}},defaultVariants: {diff --git a/frontend/src/lib/components/ui/command/command-item.svelte b/frontend/src/lib/components/ui/command/command-item.svelteindex 92bd8a4b..3e4e74ef 100644--- a/frontend/src/lib/components/ui/command/command-item.svelte+++ b/frontend/src/lib/components/ui/command/command-item.svelte@@ -14,7 +14,7 @@data-slot="command-item"data-command-item=""class={cn(- "relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",+ "relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none hover:bg-accent hover:text-accent-foreground data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",className)}{...restProps}diff --git a/frontend/src/routes/dashboards/+page.svelte b/frontend/src/routes/dashboards/+page.svelteindex 3a20b88f..e874f929 100644--- a/frontend/src/routes/dashboards/+page.svelte+++ b/frontend/src/routes/dashboards/+page.svelte@@ -13,7 +13,7 @@import { replaceState } from '$app/navigation';import { page } from '$app/state';import { api } from '$lib/api';- import { projectsState, FRAMEWORK_LABELS, type Framework } from '$lib/state/projects.svelte';+ import { projectsState } from '$lib/state/projects.svelte';import { getTimezone } from '$lib/state/timezone.svelte';import { toUTCISO, calendarDateTimeToLuxon, formatDateTime } from '$lib/utils/formatters';import { TimeRangePicker } from '$lib/components/ui/time-range-picker';@@ -33,16 +33,15 @@Check,RefreshCw,EllipsisVertical,- Sparkles,Braces,Download,Upload,- FolderInput,Share2,CircleMinus,TriangleAlert,Search} from 'lucide-svelte';+ import { Alert, AlertDescription, AlertTitle } from '$lib/components/ui/alert';import { ErrorAlert } from '$lib/components/ui/error-alert';import { ErrorDisplay } from '$lib/components/ui/error-display';import * as DropdownMenu from '$lib/components/ui/dropdown-menu';@@ -74,9 +73,6 @@};let dashboards = $state<Dashboard[]>([]);- let projectFramework = $state<Framework | ''>('');- let canPopulateDefaults = $state(false);- let populating = $state(false);let loading = $state(true);let listError = $state('');let activeTabId = $state<string>('');@@ -233,8 +229,6 @@projectId: projectsState.currentProjectId ?? undefined});dashboards = response.dashboards || [];- projectFramework = (response.framework as Framework) || '';- canPopulateDefaults = !!response.canPopulateDefaults;if (dashboards.length > 0 && !dashboards.some((d) => String(d.id) === activeTabId)) {activeTabId = String(dashboards[0].id);}@@ -246,31 +240,6 @@}}- async function populateDefaults() {- populating = true;- try {- await api.post(- '/dashboards/populate-defaults',- {},- { projectId: projectsState.currentProjectId ?? undefined }- );- toast.success('Successfully populated default dashboards', { position: 'top-center' });- await loadDashboards();- } catch (e: any) {- if (e?.status !== 403) {- toast.error(e?.message || 'Failed to populate default dashboards', {- position: 'top-center'- });- }- } finally {- populating = false;- }- }-- const frameworkLabel = $derived(- projectFramework ? (FRAMEWORK_LABELS[projectFramework] ?? projectFramework) : ''- );-let loadSeq = 0;async function loadDashboardWidgets(dashboardId: string) {@@ -971,6 +940,7 @@<div class="space-y-4"><div class="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between"><h2 class="text-3xl font-semibold tracking-tight">Dashboards</h2>+ {#if dashboards.length > 0}<div class="flex items-center gap-2"><buttonclass="inline-flex h-9 items-center gap-2 rounded-md border border-input bg-background px-3 text-sm text-muted-foreground shadow-xs transition-colors hover:bg-muted hover:text-foreground sm:w-64"@@ -993,6 +963,7 @@onApply={handleTimeRangeChange}/></div>+ {/if}</div>{#if loading}@@ -1009,34 +980,10 @@{:else if dashboards.length === 0}<div class="flex flex-col items-center justify-center rounded-md bg-muted py-20 text-center"><p class="mb-4 text-muted-foreground">No dashboards yet.</p>- <div class="flex flex-wrap items-center justify-center gap-2">- {#if canPopulateDefaults}- <Button onclick={populateDefaults} disabled={populating}>- <Sparkles class="mr-1 h-4 w-4" />- {populating- ? 'Populating...'- : frameworkLabel- ? `Populate default dashboards for ${frameworkLabel}`- : 'Populate default dashboards'}- </Button>- {/if}- <Button variant="success" onclick={() => (showCreateDialog = true)}>- <Plus class="mr-1 h-4 w-4" />- Create your own Dashboard- </Button>- <Button variant="outline" onclick={() => (showPalette = true)}>- <Search class="mr-1 h-4 w-4" />- Browse Dashboards & Templates- </Button>- <Button variant="outline" onclick={() => (showImportDialog = true)}>- <Upload class="mr-1 h-4 w-4" />- Import JSON- </Button>- <Button variant="outline" onclick={() => (showGrafanaDialog = true)}>- <FolderInput class="mr-1 h-4 w-4" />- Import from Grafana- </Button>- </div>+ <Button onclick={() => (showPalette = true)}>+ <Search class="mr-1 h-4 w-4" />+ Browse Dashboards & Templates+ </Button></div>{:else}<Tabs.Root value={activeTabId} onValueChange={handleTabChange}>@@ -1357,10 +1304,19 @@<AlertDialog.Header><AlertDialog.Title>Apply to Projects</AlertDialog.Title><AlertDialog.Description>- Choose which projects show "{activeDashboard?.name}". Unchecking a project removes the- dashboard from its tabs.+ Choose which projects show "{activeDashboard?.name}" in their dashboard tabs.</AlertDialog.Description></AlertDialog.Header>+ <Alert variant="destructive">+ <TriangleAlert class="h-4 w-4" />+ <AlertTitle>Shared across projects</AlertTitle>+ <AlertDescription>+ This is a single shared dashboard. Checking a project shows it in that project's tabs.+ Nothing is copied or overwritten, but edits made from any project apply to all of them.+ Unchecking a project removes the dashboard from its tabs, including any of its widgets+ starred on that project's homepage.+ </AlertDescription>+ </Alert><ErrorAlert error={applyError} /><div class="max-h-72 space-y-2 overflow-y-auto">{#each orgProjects as project (project.id)}