The only tool you need to know what is happening and how to fix it.
Go alertingexception-trackerissue-trackinglogsmetricsmonitoringobservability-platformopen-telemetryotelsession-replaytelemetrytraces
feat: new ui for the website + major ui consistency work (#263)
narrow-adventure20fcbfcc801c
diff --git a/CLAUDE.md b/CLAUDE.mdindex 7c805f85..0e1f8366 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -16,7 +16,7 @@ Traceway is an error tracking and monitoring platform consisting of:- **No pointless comments**: Do not add comments that simply describe what the code does. The code should be self-explanatory. Only add comments when explaining non-obvious "why" decisions.- **No `py-4` in dialog form content**: Do not add `py-4` on the content wrapper inside `AlertDialog` or `Dialog` components — it creates too much blank space between the form and the action buttons.-- **Dialog button labels & toasts**: For form dialogs, use descriptive button labels with icons instead of generic "Create"/"Update". Create actions: `<Plus icon> {Action} {Entity}` (e.g., "+ New Widget Group"). Update actions: `<Check icon> Update {Entity}`. After successful create/update, show a `toast.success('Successfully {action} the {Entity}', { position: 'top-center' })`. The button should only be `disabled` during the loading state — never disable it to enforce validation; let the backend return 422 and show the error in the dialog instead.+- **Dialog button labels & toasts**: For form dialogs, use descriptive button labels with icons instead of generic "Create"/"Update". The `{Entity}` is always a platform entity, capitalized (Project, Widget, Widget Group, Channel, Rule, Token, Invitation, ...). Create actions: `<Plus icon> New {Entity}` with `variant="success"`. Update actions: `<Check icon> Update {Entity}` with the default (primary) variant. Delete/revoke/remove confirm buttons: `<Trash2 icon> Delete {Entity}` (or `Revoke {Entity}` / `Remove {Entity}`) with `variant="destructive"`. After success, show `toast.success('Successfully created the {Entity}', { position: 'top-center' })` for creates and `'Successfully updated the {Entity}'` for updates. The button should only be `disabled` during the loading state — never disable it to enforce validation; let the backend return 422 and show the error in the dialog instead.---diff --git a/backend/app/controllers/project.controller.go b/backend/app/controllers/project.controller.goindex c929785a..e7f15407 100644--- a/backend/app/controllers/project.controller.go+++ b/backend/app/controllers/project.controller.go@@ -87,7 +87,7 @@ func cleanProfileLabelAllowlist(in []string) ([]string, string) {type projectController struct{}type CreateProjectRequest struct {- Name string `json:"name" binding:"required"`+ Name string `json:"name"`Framework string `json:"framework" binding:"required"`}@@ -128,17 +128,17 @@ func (p projectController) CreateProject(c *gin.Context) {// Validate project namenameLen := utf8.RuneCountInString(request.Name)if nameLen < 1 || nameLen > 100 {- c.JSON(http.StatusBadRequest, gin.H{"error": "Project name must be between 1 and 100 characters"})+ c.JSON(http.StatusUnprocessableEntity, gin.H{"error": "Project name must be between 1 and 100 characters"})return}if !projectNameRegex.MatchString(request.Name) {- c.JSON(http.StatusBadRequest, gin.H{"error": "Project name can only contain letters, numbers, spaces, hyphens, and underscores"})+ c.JSON(http.StatusUnprocessableEntity, gin.H{"error": "Project name can only contain letters, numbers, spaces, hyphens, and underscores"})return}if !validFrameworks[request.Framework] {traceway.CaptureMessage("Invalid framework received: " + request.Framework)- c.JSON(http.StatusBadRequest, gin.H{"error": "Framework must be one of: gin, fiber, chi, fasthttp, stdlib, custom, react, svelte, vuejs, jquery, react-native, hono, cloudflare, opentelemetry, symfony, laravel, django, flutter, android, ios"})+ c.JSON(http.StatusUnprocessableEntity, gin.H{"error": "Framework must be one of: gin, fiber, chi, fasthttp, stdlib, custom, react, svelte, vuejs, jquery, react-native, hono, cloudflare, opentelemetry, symfony, laravel, django, flutter, android, ios"})return}diff --git a/frontend/package-lock.json b/frontend/package-lock.jsonindex ef368705..aaca8d29 100644--- a/frontend/package-lock.json+++ b/frontend/package-lock.json@@ -8,6 +8,7 @@"name": "frontend","version": "1.8.16","dependencies": {+ "@fontsource-variable/inter": "^5.2.8","@fontsource/ibm-plex-mono": "^5.2.7","@fontsource/jetbrains-mono": "^5.2.8","@sveltejs/svelte-json-tree": "^2.2.1",@@ -968,6 +969,15 @@"dev": true,"license": "MIT"},+ "node_modules/@fontsource-variable/inter": {+ "version": "5.2.8",+ "resolved": "https://registry.npmjs.org/@fontsource-variable/inter/-/inter-5.2.8.tgz",+ "integrity": "sha512-kOfP2D+ykbcX/P3IFnokOhVRNoTozo5/JxhAIVYLpea/UBmCQ/YWPBfWIDuBImXX/15KH+eKh4xpEUyS2sQQGQ==",+ "license": "OFL-1.1",+ "funding": {+ "url": "https://github.com/sponsors/ayuhito"+ }+ },"node_modules/@fontsource/ibm-plex-mono": {"version": "5.2.7","resolved": "https://registry.npmjs.org/@fontsource/ibm-plex-mono/-/ibm-plex-mono-5.2.7.tgz",diff --git a/frontend/package.json b/frontend/package.jsonindex bdbb5f91..6d6ccbb8 100644--- a/frontend/package.json+++ b/frontend/package.json@@ -58,6 +58,7 @@"vitest": "^4.1.9"},"dependencies": {+ "@fontsource-variable/inter": "^5.2.8","@fontsource/ibm-plex-mono": "^5.2.7","@fontsource/jetbrains-mono": "^5.2.8","@sveltejs/svelte-json-tree": "^2.2.1",diff --git a/frontend/src/app.html b/frontend/src/app.htmlindex 337568e5..386b2ce7 100644--- a/frontend/src/app.html+++ b/frontend/src/app.html@@ -1,5 +1,5 @@<!doctype html>-<html lang="en" class="dark" style="color-scheme: dark; background: #05070c;">+<html lang="en" class="dark" style="color-scheme: dark; background: #0b0d16;"><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />diff --git a/frontend/src/lib/components/add-project-modal.svelte b/frontend/src/lib/components/add-project-modal.svelteindex f9a9b119..305eb542 100644--- a/frontend/src/lib/components/add-project-modal.svelte+++ b/frontend/src/lib/components/add-project-modal.svelte@@ -3,8 +3,9 @@import { Button } from "$lib/components/ui/button";import { Input } from "$lib/components/ui/input";import { Label } from "$lib/components/ui/label";+ import { ErrorAlert } from "$lib/components/ui/error-alert";import { projectsState, getFrameworkLabel, type ProjectWithToken, type Framework } from '$lib/state/projects.svelte';- import { Copy, Check, ExternalLink } from 'lucide-svelte';+ import { Copy, Check, ExternalLink, Plus } from 'lucide-svelte';import FrameworkIcon from './framework-icon.svelte';import FrameworkCombobox from './framework-combobox.svelte';@@ -25,10 +26,6 @@async function handleSubmit(e: Event) {e.preventDefault();- if (!projectName.trim()) {- error = 'Project name is required';- return;- }loading = true;error = '';@@ -75,7 +72,7 @@{#if createdProject}Project Created!{:else}- Create New Project+ New Project{/if}</Sheet.Title><Sheet.Description>@@ -136,6 +133,8 @@</div>{:else}<form onsubmit={handleSubmit} class="px-6 py-6 space-y-5">+ <ErrorAlert {error} />+<div class="space-y-2"><Label for="project-name">Project Name</Label><Input@@ -158,21 +157,16 @@</p></div>- {#if error}- <div class="rounded-md bg-destructive/10 border border-destructive/20 p-3">- <p class="text-sm text-destructive">{error}</p>- </div>- {/if}-<div class="flex justify-end gap-2 pt-2"><Button type="button" variant="outline" onclick={handleClose} disabled={loading}>Cancel</Button>- <Button type="submit" disabled={loading || !projectName.trim()}>+ <Button type="submit" variant="success" disabled={loading}>{#if loading}Creating...{:else}- Create Project+ <Plus class="mr-2 h-4 w-4" />+ New Project{/if}</Button></div>diff --git a/frontend/src/lib/components/app-sidebar.svelte b/frontend/src/lib/components/app-sidebar.svelteindex d6a7742b..35c70fc4 100644--- a/frontend/src/lib/components/app-sidebar.svelte+++ b/frontend/src/lib/components/app-sidebar.svelte@@ -34,7 +34,7 @@const hiddenForFrontend = new Set(['Dashboard', 'Logs', 'Endpoints', 'Tasks', 'Profiles', 'Metrics', 'AI Traces']);const hiddenForCloudflare = new Set(['Metrics']);- // Items that only make sense for frontend (browser) projects — dropped from+ // Items that only make sense for frontend (browser) projects - dropped from// the sidebar for any other framework, so a Go backend project doesn't// surface a Sessions tab that can never be populated.const frontendOnly = new Set(['Sessions']);diff --git a/frontend/src/lib/components/dashboard/widget-config-panel.svelte b/frontend/src/lib/components/dashboard/widget-config-panel.svelteindex 503ad4c4..82facf82 100644--- a/frontend/src/lib/components/dashboard/widget-config-panel.svelte+++ b/frontend/src/lib/components/dashboard/widget-config-panel.svelte@@ -9,6 +9,7 @@import { projectsState } from '$lib/state/projects.svelte';import { Plus, Check, CircleAlert } from 'lucide-svelte';import * as Alert from '$lib/components/ui/alert';+ import { ErrorAlert } from '$lib/components/ui/error-alert';import type { DiscoveredMetric } from '$lib/types/dashboard';type WidgetSource = {@@ -127,15 +128,9 @@<AlertDialog.Root bind:open><AlertDialog.Content class="max-w-xl" interactOutsideBehavior="close"><AlertDialog.Header>- <AlertDialog.Title>{widget?.id ? 'Edit Widget' : 'Add Widget'}</AlertDialog.Title>+ <AlertDialog.Title>{widget?.id ? 'Edit Widget' : 'New Widget'}</AlertDialog.Title></AlertDialog.Header>- {#if error}- <Alert.Root variant="destructive" class="bg-red-50 border-red-200">- <CircleAlert class="h-4 w-4 text-red-700" />- <Alert.Title class="text-red-800">Error</Alert.Title>- <Alert.Description class="text-red-700">{error}</Alert.Description>- </Alert.Root>- {/if}+ <ErrorAlert {error} /><div class="space-y-4"><div><label class="text-sm font-medium" for="widget-title">Title (optional)</label>@@ -296,8 +291,8 @@</div><AlertDialog.Footer><Button variant="outline" onclick={handleClose}>Cancel</Button>- <Button onclick={handleSave}>- {#if widget?.id}<Check class="mr-1 h-4 w-4" /> Update Widget{:else}<Plus class="mr-1 h-4 w-4" /> Add Widget{/if}+ <Button variant={widget?.id ? 'default' : 'success'} onclick={handleSave}>+ {#if widget?.id}<Check class="mr-1 h-4 w-4" /> Update Widget{:else}<Plus class="mr-1 h-4 w-4" /> New Widget{/if}</Button></AlertDialog.Footer></AlertDialog.Content>diff --git a/frontend/src/lib/components/dashboard/widget-grid.svelte b/frontend/src/lib/components/dashboard/widget-grid.svelteindex 9e505331..95bc0ce0 100644--- a/frontend/src/lib/components/dashboard/widget-grid.svelte+++ b/frontend/src/lib/components/dashboard/widget-grid.svelte@@ -121,7 +121,7 @@{ value: 'lg', label: 'Large' }];- // Static maps — Tailwind can't extract dynamically-built class names+ // Static maps - Tailwind can't extract dynamically-built class namesconst colSpanClass: Record<number, string> = {1: 'md:col-span-1',2: 'md:col-span-2',@@ -144,14 +144,20 @@ondrop={(e) => handleDrop(e, i)}><Card.Root- class="group h-full gap-0 {minHeightClass[widget.config?.size ?? 'sm'] ?? 'min-h-[240px]'} transition-opacity {dragIndex === i ? 'opacity-40' : ''} {dropIndex === i && dragIndex !== null && dragIndex !== i ? 'ring-2 ring-primary' : ''}"+ class="group h-full gap-0 {minHeightClass[widget.config?.size ?? 'sm'] ??+ 'min-h-[240px]'} transition-opacity {dragIndex === i ? 'opacity-40' : ''} {dropIndex ===+ i &&+ dragIndex !== null &&+ dragIndex !== i+ ? 'ring-2 ring-primary'+ : ''}"><Card.Header class="pr-2 pb-1"><div class="flex items-center justify-between"><div class="flex min-w-0 items-center gap-1">{#if onReorderWidgets}<span- class="-ml-1 inline-flex h-7 w-5 shrink-0 cursor-grab items-center justify-center rounded text-muted-foreground/60 opacity-0 transition-opacity hover:text-foreground focus-visible:opacity-100 group-hover:opacity-100 active:cursor-grabbing"+ class="-ml-1 inline-flex h-7 w-5 shrink-0 cursor-grab items-center justify-center rounded text-muted-foreground/60 opacity-0 transition-opacity group-hover:opacity-100 hover:text-foreground focus-visible:opacity-100 active:cursor-grabbing"title="Drag to reorder"role="button"tabindex={-1}@@ -163,7 +169,13 @@<GripVertical class="h-4 w-4" /></span>{/if}- <Card.Title class="truncate text-sm font-medium">{widget.title}{#if widget.config?.unit}<span class="text-xs font-normal text-muted-foreground"> ({widget.config.unit})</span>{/if}</Card.Title>+ <Card.Title class="truncate text-sm font-medium"+ >{widget.title}{#if widget.config?.unit}<span+ class="text-xs font-normal text-muted-foreground"+ >+ ({widget.config.unit})</span+ >{/if}</Card.Title+ ></div><div class="flex items-center">{#if onToggleStar}@@ -171,7 +183,9 @@type="button"aria-label={widget.isStarred ? 'Unstar widget' : 'Star widget'}title={widget.isStarred ? 'Unstar' : 'Star'}- class="inline-flex h-7 w-7 items-center justify-center rounded-md transition-colors hover:bg-muted {widget.isStarred ? 'text-yellow-500 hover:text-yellow-600' : 'text-muted-foreground hover:text-foreground'}"+ class="inline-flex h-7 w-7 items-center justify-center rounded-md transition-colors hover:bg-muted {widget.isStarred+ ? 'text-yellow-400 hover:text-yellow-500'+ : 'text-muted-foreground hover:text-foreground'}"onclick={() => onToggleStar?.(widget)}><Star class="h-4 w-4 {widget.isStarred ? 'fill-current' : ''}" />@@ -179,95 +193,99 @@{/if}{#if hasMenu}<DropdownMenu.Root>- <DropdownMenu.Trigger- class="inline-flex h-7 w-7 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"- >- <EllipsisVertical class="h-4 w-4" />- </DropdownMenu.Trigger>- <DropdownMenu.Content align="end">- {#if onEditWidget}- <DropdownMenu.Item onclick={() => onEditWidget?.(widget)}>- <Pencil class="mr-2 h-4 w-4" />- Edit- </DropdownMenu.Item>- {/if}- {#if onDuplicateWidget}- <DropdownMenu.Item onclick={() => onDuplicateWidget?.(widget)}>- <Copy class="mr-2 h-4 w-4" />- Duplicate- </DropdownMenu.Item>- {/if}- {#if onReorderWidgets}- <DropdownMenu.Item disabled={i === 0} onclick={() => moveWidget(i, -1)}>- <ArrowUp class="mr-2 h-4 w-4" />- Move up- </DropdownMenu.Item>- <DropdownMenu.Item- disabled={i === sortedWidgets.length - 1}- onclick={() => moveWidget(i, 1)}- >- <ArrowDown class="mr-2 h-4 w-4" />- Move down- </DropdownMenu.Item>- {/if}- {#if onResizeWidget}- <DropdownMenu.Sub>- <DropdownMenu.SubTrigger>- <ArrowLeftRight class="mr-2 h-4 w-4" />- Width- </DropdownMenu.SubTrigger>- <DropdownMenu.SubContent>- {#each widthOptions as option (option.value)}- <DropdownMenu.Item- onclick={() =>- onResizeWidget?.(widget, {- colSpan: option.value,- size: widget.config?.size ?? 'sm'- })}- >- <Check- class="mr-2 h-4 w-4 {(widget.config?.colSpan ?? 1) === option.value ? '' : 'opacity-0'}"- />- {option.label}- </DropdownMenu.Item>- {/each}- </DropdownMenu.SubContent>- </DropdownMenu.Sub>- <DropdownMenu.Sub>- <DropdownMenu.SubTrigger>- <ArrowUpDown class="mr-2 h-4 w-4" />- Height- </DropdownMenu.SubTrigger>- <DropdownMenu.SubContent>- {#each heightOptions as option (option.value)}- <DropdownMenu.Item- onclick={() =>- onResizeWidget?.(widget, {- colSpan: widget.config?.colSpan ?? 1,- size: option.value- })}- >- <Check- class="mr-2 h-4 w-4 {(widget.config?.size ?? 'sm') === option.value ? '' : 'opacity-0'}"- />- {option.label}- </DropdownMenu.Item>- {/each}- </DropdownMenu.SubContent>- </DropdownMenu.Sub>- {/if}- {#if onDeleteWidget}- <DropdownMenu.Separator />- <DropdownMenu.Item- class="text-destructive"- onclick={() => onDeleteWidget?.(widget)}- >- <Trash2 class="mr-2 h-4 w-4" />- Delete- </DropdownMenu.Item>- {/if}- </DropdownMenu.Content>- </DropdownMenu.Root>+ <DropdownMenu.Trigger+ class="inline-flex h-7 w-7 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"+ >+ <EllipsisVertical class="h-4 w-4" />+ </DropdownMenu.Trigger>+ <DropdownMenu.Content align="end">+ {#if onEditWidget}+ <DropdownMenu.Item onclick={() => onEditWidget?.(widget)}>+ <Pencil class="mr-2 h-4 w-4" />+ Edit+ </DropdownMenu.Item>+ {/if}+ {#if onDuplicateWidget}+ <DropdownMenu.Item onclick={() => onDuplicateWidget?.(widget)}>+ <Copy class="mr-2 h-4 w-4" />+ Duplicate+ </DropdownMenu.Item>+ {/if}+ {#if onReorderWidgets}+ <DropdownMenu.Item disabled={i === 0} onclick={() => moveWidget(i, -1)}>+ <ArrowUp class="mr-2 h-4 w-4" />+ Move up+ </DropdownMenu.Item>+ <DropdownMenu.Item+ disabled={i === sortedWidgets.length - 1}+ onclick={() => moveWidget(i, 1)}+ >+ <ArrowDown class="mr-2 h-4 w-4" />+ Move down+ </DropdownMenu.Item>+ {/if}+ {#if onResizeWidget}+ <DropdownMenu.Sub>+ <DropdownMenu.SubTrigger>+ <ArrowLeftRight class="mr-2 h-4 w-4" />+ Width+ </DropdownMenu.SubTrigger>+ <DropdownMenu.SubContent>+ {#each widthOptions as option (option.value)}+ <DropdownMenu.Item+ onclick={() =>+ onResizeWidget?.(widget, {+ colSpan: option.value,+ size: widget.config?.size ?? 'sm'+ })}+ >+ <Check+ class="mr-2 h-4 w-4 {(widget.config?.colSpan ?? 1) === option.value+ ? ''+ : 'opacity-0'}"+ />+ {option.label}+ </DropdownMenu.Item>+ {/each}+ </DropdownMenu.SubContent>+ </DropdownMenu.Sub>+ <DropdownMenu.Sub>+ <DropdownMenu.SubTrigger>+ <ArrowUpDown class="mr-2 h-4 w-4" />+ Height+ </DropdownMenu.SubTrigger>+ <DropdownMenu.SubContent>+ {#each heightOptions as option (option.value)}+ <DropdownMenu.Item+ onclick={() =>+ onResizeWidget?.(widget, {+ colSpan: widget.config?.colSpan ?? 1,+ size: option.value+ })}+ >+ <Check+ class="mr-2 h-4 w-4 {(widget.config?.size ?? 'sm') === option.value+ ? ''+ : 'opacity-0'}"+ />+ {option.label}+ </DropdownMenu.Item>+ {/each}+ </DropdownMenu.SubContent>+ </DropdownMenu.Sub>+ {/if}+ {#if onDeleteWidget}+ <DropdownMenu.Separator />+ <DropdownMenu.Item+ class="text-destructive"+ onclick={() => onDeleteWidget?.(widget)}+ >+ <Trash2 class="mr-2 h-4 w-4" />+ Delete+ </DropdownMenu.Item>+ {/if}+ </DropdownMenu.Content>+ </DropdownMenu.Root>{/if}</div></div>@@ -289,7 +307,7 @@{/each}{#if onAddWidget}<button- class="flex min-h-[240px] cursor-pointer items-center justify-center rounded-lg border border-dashed border-muted-foreground/25 text-muted-foreground transition-colors hover:border-primary hover:text-primary"+ class="flex min-h-[240px] cursor-pointer items-center justify-center rounded-md border border-dashed border-muted-foreground/25 text-muted-foreground transition-colors hover:border-primary hover:text-primary"onclick={() => onAddWidget?.()}><div class="flex flex-col items-center gap-2">diff --git a/frontend/src/lib/components/dashboard/widget-renderer.svelte b/frontend/src/lib/components/dashboard/widget-renderer.svelteindex 094b899b..5f28f726 100644--- a/frontend/src/lib/components/dashboard/widget-renderer.svelte+++ b/frontend/src/lib/components/dashboard/widget-renderer.svelte@@ -60,7 +60,7 @@let singleValue = $state<number | null>(null);let resolvedUnit = $state('');- const colors = ['#3b82f6', '#ef4444', '#22c55e', '#f59e0b', '#8b5cf6', '#ec4899'];+ const colors = ['var(--chart-1)', 'var(--chart-2)', 'var(--chart-3)', 'var(--chart-4)', 'var(--chart-5)', 'var(--crit)'];const effectiveUnit = $derived(widget.config.unit ?? resolvedUnit);diff --git a/frontend/src/lib/components/edit-project-modal.svelte b/frontend/src/lib/components/edit-project-modal.svelteindex 58927bb9..1548d217 100644--- a/frontend/src/lib/components/edit-project-modal.svelte+++ b/frontend/src/lib/components/edit-project-modal.svelte@@ -5,6 +5,7 @@import { Button } from "$lib/components/ui/button";import { Input } from "$lib/components/ui/input";import { Label } from "$lib/components/ui/label";+ import { ErrorAlert } from "$lib/components/ui/error-alert";import { Checkbox } from "$lib/components/ui/checkbox";import { DEFAULT_HEALTHCHECK_PATHS } from '$lib/utils/healthcheck';import { projectsState, type Project, type Framework } from '$lib/state/projects.svelte';@@ -123,7 +124,7 @@try {await projectsState.updateProject(project.id, projectName.trim(), selectedFramework, dropHealthyHealthchecks, healthcheckPaths, profileLabelAllowlist);- toast.success('Successfully updated the project', { position: 'top-center' });+ toast.success('Successfully updated the Project', { position: 'top-center' });onOpenChange(false);} catch (err: any) {error = err instanceof Error ? err.message : 'Failed to update project';@@ -138,7 +139,7 @@deleting = true;try {await projectsState.deleteProject(project.id, project.name);- toast.success('Successfully deleted the project', { position: 'top-center' });+ toast.success('Successfully deleted the Project', { position: 'top-center' });showDeleteConfirm = false;onOpenChange(false);goto('/');@@ -191,11 +192,7 @@</div>{:else}<form onsubmit={handleSubmit} class="px-6 pb-6 space-y-5">- {#if error}- <div class="rounded-md bg-destructive/10 border border-destructive/20 p-3">- <p class="text-sm text-destructive">{error}</p>- </div>- {/if}+ <ErrorAlert {error} />{#if activeTab === 'project'}<div class="space-y-2">@@ -372,6 +369,7 @@Cancel</Button><Button variant="destructive" onclick={handleDelete} disabled={deleting || !deleteConfirmMatches}>+ <Trash2 class="mr-2 h-4 w-4" />{deleting ? 'Deleting...' : 'Delete Project'}</Button></AlertDialog.Footer>diff --git a/frontend/src/lib/components/endpoint-name.svelte b/frontend/src/lib/components/endpoint-name.sveltenew file mode 100644index 00000000..a55f1f21--- /dev/null+++ b/frontend/src/lib/components/endpoint-name.svelte@@ -0,0 +1,31 @@+<script lang="ts">+ let { endpoint }: { endpoint: string } = $props();++ const METHOD_COLORS: Record<string, string> = {+ GET: 'text-sky-600 dark:text-sky-400',+ POST: 'text-emerald-600 dark:text-emerald-400',+ PUT: 'text-amber-600 dark:text-amber-400',+ PATCH: 'text-orange-600 dark:text-orange-400',+ DELETE: 'text-rose-600 dark:text-rose-400',+ HEAD: 'text-violet-600 dark:text-violet-400',+ OPTIONS: 'text-violet-600 dark:text-violet-400'+ };++ const parts = $derived.by(() => {+ const spaceIndex = endpoint.indexOf(' ');+ if (spaceIndex > 0) {+ const method = endpoint.slice(0, spaceIndex);+ if (METHOD_COLORS[method]) {+ return { method, path: endpoint.slice(spaceIndex + 1), color: METHOD_COLORS[method] };+ }+ }+ return { method: '', path: endpoint, color: '' };+ });+</script>++{#if parts.method}+ <span class="font-semibold {parts.color}">{parts.method}</span>+ <span class="text-foreground">{parts.path}</span>+{:else}+ <span class="text-foreground">{parts.path}</span>+{/if}diff --git a/frontend/src/lib/components/issue-trend-chart.svelte b/frontend/src/lib/components/issue-trend-chart.svelteindex c017463c..5ae8fb71 100644--- a/frontend/src/lib/components/issue-trend-chart.svelte+++ b/frontend/src/lib/components/issue-trend-chart.svelte@@ -60,19 +60,19 @@});</script>-<div class="relative h-7 w-44 flex-shrink-0">+<div class="relative h-8 w-44 flex-shrink-0"><!-- Solid bottom line -->- <div class="absolute left-0 right-7 bottom-0 border-t border-muted-foreground/40"></div>+ <div class="absolute left-0 right-7 bottom-0 border-t border-muted-foreground/30"></div><!-- Dashed line at actual max -->{#if actualMax() > 0}<divclass="absolute left-0 right-7 h-[1px]"- style="bottom: {linePositionPct()}%; background: repeating-linear-gradient(to right, var(--muted-foreground) 0, var(--muted-foreground) 4px, transparent 4px, transparent 7px); opacity: 0.5;"+ style="bottom: {linePositionPct()}%; background: repeating-linear-gradient(to right, var(--muted-foreground) 0, var(--muted-foreground) 4px, transparent 4px, transparent 7px); opacity: 0.4;"></div><!-- Max count label --><span- class="absolute right-1 text-[10px] w-[20px] text-muted-foreground tabular-nums"+ class="absolute right-1 text-[10px] w-[20px] font-medium text-muted-foreground tabular-nums"style="bottom: calc({linePositionPct()}% - 6px);">{actualMax() > 999 ? (actualMax()/1000).toFixed(1) + "k" : actualMax()}@@ -80,15 +80,20 @@{/if}<!-- Bars container -->- <div class="absolute inset-0 right-7 flex items-end gap-[1px]">+ <div class="absolute inset-0 right-7 flex items-end gap-[2px]">{#each hourlyData() as point, i (i)}{@const heightPct = scaleMax() > 0 ? (point.count / scaleMax()) * 100 : 0}{@const hasEvents = point.count > 0}+ {@const isPeak = hasEvents && point.count === actualMax()}<Tooltip.Root><Tooltip.Trigger class="flex-1 h-full flex items-end justify-center"><div- class="w-full max-w-[4px] rounded-[1px] transition-colors {hasEvents ? 'hover:opacity-80' : ''}"- style="height: {Math.max(2, heightPct)}%;{hasEvents ? ' background-color: var(--trend-bar);' : ''}"+ class="w-full max-w-[5px] rounded-[2px] {hasEvents+ ? isPeak+ ? 'bg-pink-500 hover:opacity-80 dark:bg-pink-400'+ : 'bg-(--trend-bar) hover:opacity-80'+ : 'bg-foreground/10'}"+ style="height: {Math.max(hasEvents ? 8 : 3, heightPct)}%;"></div></Tooltip.Trigger><Tooltip.Content side="top" class="py-2 px-3 !animate-none !transition-none">diff --git a/frontend/src/lib/components/issues/page-header.svelte b/frontend/src/lib/components/issues/page-header.svelteindex 69a1f439..35c945c2 100644--- a/frontend/src/lib/components/issues/page-header.svelte+++ b/frontend/src/lib/components/issues/page-header.svelte@@ -1,33 +1,39 @@<script lang="ts">- import type { Snippet } from 'svelte';- import { Button } from "$lib/components/ui/button";- import { ArrowLeft } from "lucide-svelte";+ import type { Snippet } from 'svelte';+ import { cn } from '$lib/utils.js';+ import { Button } from '$lib/components/ui/button';+ import { ArrowLeft } from 'lucide-svelte';- interface Props {- title: string;- subtitle?: string;- onBack?: (e: MouseEvent) => void;- trailing?: Snippet;- }+ interface Props {+ title: string;+ subtitle?: string;+ onBack?: (e: MouseEvent) => void;+ trailing?: Snippet;+ }- let { title, subtitle, onBack, trailing }: Props = $props();+ let { title, subtitle, onBack, trailing }: Props = $props();</script><div class="flex items-start gap-4">- {#if onBack}- <Button variant="ghost" size="sm" onclick={onBack} class="h-8 w-8 p-0">- <ArrowLeft class="h-4 w-4" />- </Button>- {/if}- <div>- <div class="flex flex-wrap items-center gap-2">- <h2 class="font-mono text-2xl font-bold tracking-tight break-all">- {title}- </h2>- {#if trailing}{@render trailing()}{/if}- </div>- {#if subtitle}- <p class="text-muted-foreground text-sm">{subtitle}</p>- {/if}- </div>+ {#if onBack}+ <Button variant="ghost" size="sm" onclick={onBack} class="h-8 w-8 p-0">+ <ArrowLeft class="h-4 w-4" />+ </Button>+ {/if}+ <div>+ <div class="flex flex-wrap items-center gap-2">+ <h2+ class={cn(+ 'font-semibold tracking-tight text-balance break-words',+ onBack ? 'text-[25px] leading-8' : 'text-3xl'+ )}+ >+ {title}+ </h2>+ {#if trailing}{@render trailing()}{/if}+ </div>+ {#if subtitle}+ <p class="mt-1 font-mono text-sm text-muted-foreground">{subtitle}</p>+ {/if}+ </div></div>diff --git a/frontend/src/lib/components/issues/session-logs-table.svelte b/frontend/src/lib/components/issues/session-logs-table.svelteindex 72893448..5daa8bbc 100644--- a/frontend/src/lib/components/issues/session-logs-table.svelte+++ b/frontend/src/lib/components/issues/session-logs-table.svelte@@ -42,7 +42,7 @@case 'error':return 'text-destructive';case 'warn':- return 'text-yellow-600 dark:text-yellow-500';+ return 'text-yellow-600 dark:text-yellow-400';case 'debug':return 'text-muted-foreground';default:@@ -75,10 +75,10 @@});</script>-<div bind:this={scrollEl} class="rounded-md border max-h-[440px] overflow-y-auto">+<div bind:this={scrollEl} class="max-h-[440px] overflow-y-auto rounded-md border"><Table.Root>{#if logs.length > 0}- <Table.Header class="sticky top-0 bg-background z-10">+ <Table.Header class="sticky top-0 z-10 bg-background"><Table.Row><TracewayTableHeaderlabel="Time"@@ -102,7 +102,7 @@<Table.Rowonclick={() => onSeek?.(offsetMs(entry.timestamp))}class="cursor-pointer hover:bg-muted/50 {i === activeIndex- ? 'bg-primary/10 border-l-2 border-l-primary'+ ? 'border-l-2 border-l-primary bg-primary/10': ''}"><Table.Cell class="font-mono text-xs text-muted-foreground tabular-nums">@@ -112,7 +112,7 @@{entry.level}</Table.Cell><Table.Cell- class="font-mono text-xs whitespace-pre-wrap break-all"+ class="font-mono text-xs break-all whitespace-pre-wrap"title={entry.message}>{entry.message}diff --git a/frontend/src/lib/components/issues/session-replay.svelte b/frontend/src/lib/components/issues/session-replay.svelteindex e58f42e0..e14f9d01 100644--- a/frontend/src/lib/components/issues/session-replay.svelte+++ b/frontend/src/lib/components/issues/session-replay.svelte@@ -2,7 +2,7 @@import { onMount, onDestroy } from 'svelte';import { Globe, Play, Pause, Maximize, Minimize } from 'lucide-svelte';import type { eventWithTime } from '@rrweb/types';- // Static side-effect import — keeps the rrweb-player stylesheet attached+ // Static side-effect import - keeps the rrweb-player stylesheet attached// to the page for the lifetime of the SPA, even across mount/unmount cycles.// A dynamic import inside onMount would let Vite's HMR dispose the style// node when the component unmounts, leaving the next mount with nodiff --git a/frontend/src/lib/components/issues/stack-trace-card.svelte b/frontend/src/lib/components/issues/stack-trace-card.svelteindex a84aafcd..96346375 100644--- a/frontend/src/lib/components/issues/stack-trace-card.svelte+++ b/frontend/src/lib/components/issues/stack-trace-card.svelte@@ -118,15 +118,18 @@</Card.Description>{/if}</Card.Header>- <Card.Content class="pb-2">+ <Card.Content>{#if usePretty}<div class="overflow-hidden rounded-md border">- <div class="flex items-center justify-between gap-3 border-b bg-muted/50 px-4 py-2.5">+ <div class="flex items-center justify-between gap-3 border-b bg-muted/50 px-4 py-3">{#if viewMode === 'formatted' && parsed.errorMessage}+ {@const messageColon = parsed.errorMessage.indexOf(':')}<p- class="min-w-0 flex-1 font-mono text-sm font-medium break-words whitespace-pre-wrap text-foreground"+ class="min-w-0 flex-1 font-mono text-[15px]/6 break-words whitespace-pre-wrap text-foreground">- {parsed.errorMessage}+ {#if messageColon > 0}<span class="font-semibold text-rose-600 dark:text-rose-400"+ >{parsed.errorMessage.slice(0, messageColon)}</span+ >{parsed.errorMessage.slice(messageColon)}{:else}{parsed.errorMessage}{/if}</p>{:else}<div class="flex-1"></div>@@ -146,11 +149,13 @@{#if group.type === 'app'}{@const f = formatFrame(group.frame)}<li- class="flex flex-wrap items-baseline gap-x-1.5 px-4 py-2 font-mono text-sm tabular-nums"+ class="flex flex-wrap items-baseline gap-x-1.5 px-4 py-2.5 font-mono text-sm tabular-nums"title={f.raw}><span class="min-w-0 break-all text-muted-foreground"- >{f.dir}<span class="font-medium text-foreground">{f.file}</span></span+ >{f.dir}<span class="font-medium text-blue-600 dark:text-blue-400"+ >{f.file}</span+ ></span>{#if f.fn}<span class="text-muted-foreground/70">in</span>@@ -158,7 +163,7 @@{/if}{#if f.lineCol}<span class="text-muted-foreground/70">at line</span>- <span class="text-foreground">{f.lineCol}</span>+ <span class="font-medium text-amber-600 dark:text-amber-400">{f.lineCol}</span>{/if}</li>{:else}@@ -221,7 +226,7 @@{/if}</div>{:else}- <div class="overflow-x-auto rounded-lg border bg-muted/40">+ <div class="overflow-x-auto rounded-md border bg-muted/40"><preclass="w-fit min-w-full p-4 font-mono text-sm whitespace-pre text-foreground">{stackTrace}</pre></div>diff --git a/frontend/src/lib/components/profiles/experimental-banner.svelte b/frontend/src/lib/components/profiles/experimental-banner.svelteindex 53d18463..4b4bfa12 100644--- a/frontend/src/lib/components/profiles/experimental-banner.svelte+++ b/frontend/src/lib/components/profiles/experimental-banner.svelte@@ -6,11 +6,11 @@</script><div- class="flex items-center gap-3 rounded-lg border border-blue-200 bg-blue-50 px-4 py-2.5 text-sm text-blue-900 dark:border-blue-900/50 dark:bg-blue-950/40 dark:text-blue-200"+ class="flex items-center gap-3 rounded-md border border-blue-200 bg-blue-50 px-4 py-2.5 text-sm text-blue-900 dark:border-blue-900/50 dark:bg-blue-950/40 dark:text-blue-200"><FlaskConical class="size-4 shrink-0 text-blue-600 dark:text-blue-400" /><span class="min-w-0 flex-1">- Profiles is experimental — we're actively building out continuous profiling and would love your+ Profiles is experimental. We're actively building out continuous profiling and would love yourfeedback.</span><Buttondiff --git a/frontend/src/lib/components/profiles/top-functions-table.svelte b/frontend/src/lib/components/profiles/top-functions-table.svelteindex b1997f97..65f68ca9 100644--- a/frontend/src/lib/components/profiles/top-functions-table.svelte+++ b/frontend/src/lib/components/profiles/top-functions-table.svelte@@ -64,13 +64,14 @@const d = row.flat - base;if (d === 0) return { text: '—', cls: 'text-muted-foreground' };const sign = d > 0 ? '+' : '−';- const cls = d > 0 ? 'text-rose-600 dark:text-rose-400' : 'text-emerald-600 dark:text-emerald-400';+ const cls =+ d > 0 ? 'text-rose-600 dark:text-rose-400' : 'text-emerald-600 dark:text-emerald-400';return { text: `${sign}${formatValue(unit, Math.abs(d))}`, cls };}</script>{#if rows.length}- <div class="overflow-hidden rounded-lg border" data-testid="top-functions">+ <div class="overflow-hidden rounded-md border" data-testid="top-functions"><Table.Root><Table.Header><Table.Row>@@ -86,7 +87,11 @@/><TracewayTableHeader label="Flat %" align="right" />{#if baselineRows}- <TracewayTableHeader label="Δ Flat" tooltip="Change in flat vs baseline" align="right" />+ <TracewayTableHeader+ label="Δ Flat"+ tooltip="Change in flat vs baseline"+ align="right"+ />{/if}<TracewayTableHeaderlabel="Cumulative"@@ -112,7 +117,7 @@<Table.Cell class="text-right tabular-nums">{formatValue(unit, row.flat)}</Table.Cell>- <Table.Cell class="text-right tabular-nums text-muted-foreground">+ <Table.Cell class="text-right text-muted-foreground tabular-nums">{pct(row.flatPct)}</Table.Cell>{#if baselineRows}@@ -127,7 +132,9 @@<div class="h-1.5 w-16 shrink-0 overflow-hidden rounded bg-muted"><div class="h-full bg-primary" style="width: {Math.min(100, row.cumPct)}%"></div></div>- <span class="w-12 text-right tabular-nums text-muted-foreground">{pct(row.cumPct)}</span>+ <span class="w-12 text-right text-muted-foreground tabular-nums"+ >{pct(row.cumPct)}</span+ ></div></Table.Cell></Table.Row>diff --git a/frontend/src/lib/components/setup/copyable-code-block.svelte b/frontend/src/lib/components/setup/copyable-code-block.svelteindex 4cb8d83b..94afa415 100644--- a/frontend/src/lib/components/setup/copyable-code-block.svelte+++ b/frontend/src/lib/components/setup/copyable-code-block.svelte@@ -34,7 +34,7 @@</Button></div><div- class="overflow-x-auto rounded-lg text-sm {wrap ? 'wrap-code' : ''} {themeState.isDark+ class="overflow-x-auto rounded-md text-sm {wrap ? 'wrap-code' : ''} {themeState.isDark? 'dark-code': 'light-code'}">diff --git a/frontend/src/lib/components/setup/copyable-prompt.svelte b/frontend/src/lib/components/setup/copyable-prompt.svelteindex b5470c71..cf9af5e8 100644--- a/frontend/src/lib/components/setup/copyable-prompt.svelte+++ b/frontend/src/lib/components/setup/copyable-prompt.svelte@@ -29,7 +29,7 @@</Button></div><code- class="block rounded-lg bg-muted py-3 pr-24 pl-4 font-mono text-sm break-words whitespace-pre-wrap text-foreground"+ class="block rounded-md bg-muted py-3 pr-24 pl-4 font-mono text-sm break-words whitespace-pre-wrap text-foreground">{#each parts as part, i (i)}{#if part.bold}diff --git a/frontend/src/lib/components/source-map-setup.svelte b/frontend/src/lib/components/source-map-setup.svelteindex 872db339..fb5708f8 100644--- a/frontend/src/lib/components/source-map-setup.svelte+++ b/frontend/src/lib/components/source-map-setup.svelte@@ -275,7 +275,7 @@ traceway {</Button></div><div- class="overflow-x-auto rounded-lg text-sm {themeState.isDark+ class="overflow-x-auto rounded-md text-sm {themeState.isDark? 'dark-code': 'light-code'}">@@ -302,7 +302,7 @@ traceway {</Button></div><div- class="overflow-x-auto rounded-lg text-sm {themeState.isDark+ class="overflow-x-auto rounded-md text-sm {themeState.isDark? 'dark-code': 'light-code'}">@@ -312,7 +312,8 @@ traceway {<p class="mt-2 text-xs text-muted-foreground">Run from your project root after each release. The uploader auto-discovers build/symbolsand pushes every architecture in one go; symbols are unique per build, so re-upload on- each release. In CI, pass the token as <code class="font-mono">TRACEWAY_UPLOAD_TOKEN</code>+ each release. In CI, pass the token as <code class="font-mono">TRACEWAY_UPLOAD_TOKEN</code+ >instead of the flag.</p></div>@@ -332,7 +333,7 @@ traceway {</Button></div><div- class="overflow-x-auto rounded-lg text-sm {themeState.isDark+ class="overflow-x-auto rounded-md text-sm {themeState.isDark? 'dark-code': 'light-code'}">@@ -359,7 +360,7 @@ traceway {</Button></div><div- class="overflow-x-auto rounded-lg text-sm {themeState.isDark+ class="overflow-x-auto rounded-md text-sm {themeState.isDark? 'dark-code': 'light-code'}">@@ -387,7 +388,7 @@ traceway {</Button></div><div- class="overflow-x-auto rounded-lg text-sm {themeState.isDark+ class="overflow-x-auto rounded-md text-sm {themeState.isDark? 'dark-code': 'light-code'}">@@ -395,8 +396,8 @@ traceway {</div></div><p class="mt-2 text-xs text-muted-foreground">- Add to your app module's <code class="font-mono">build.gradle.kts</code>. The plugin embeds a- ProGuard UUID into BuildConfig (matching Honeycomb's+ Add to your app module's <code class="font-mono">build.gradle.kts</code>. The plugin+ embeds a ProGuard UUID into BuildConfig (matching Honeycomb's<code class="font-mono">app.debug.proguard_uuid</code>) and names the uploaded mapping<code class="font-mono"><uuid>.txt</code>.</p>@@ -416,7 +417,7 @@ traceway {</Button></div><div- class="overflow-x-auto rounded-lg text-sm {themeState.isDark+ class="overflow-x-auto rounded-md text-sm {themeState.isDark? 'dark-code': 'light-code'}">@@ -425,8 +426,8 @@ traceway {</div><p class="mt-2 text-xs text-muted-foreground">Uploads the R8 <code class="font-mono">mapping.txt</code> and the unstripped native- <code class="font-mono">.so</code> libraries. Native symbols are keyed by GNU build-id, so- re-upload on each release.+ <code class="font-mono">.so</code> libraries. Native symbols are keyed by GNU build-id, so re-upload+ on each release.</p></div>{:else}@@ -446,7 +447,7 @@ traceway {</Button></div><div- class="overflow-x-auto rounded-lg text-sm {themeState.isDark+ class="overflow-x-auto rounded-md text-sm {themeState.isDark? 'dark-code': 'light-code'}">@@ -484,7 +485,7 @@ traceway {</Button></div><div- class="overflow-x-auto rounded-lg text-sm {themeState.isDark+ class="overflow-x-auto rounded-md text-sm {themeState.isDark? 'dark-code': 'light-code'}">@@ -513,7 +514,7 @@ traceway {</Button></div><div- class="overflow-x-auto rounded-lg text-sm {themeState.isDark+ class="overflow-x-auto rounded-md text-sm {themeState.isDark? 'dark-code': 'light-code'}">@@ -534,9 +535,9 @@ traceway {<p class="text-sm text-muted-foreground">Plain release builds already report readable traces. Only obfuscated builds (<codeclass="rounded bg-muted px-1 py-0.5 font-mono text-xs">--obfuscate</code- >) need this: generate a token, then upload your <code- class="rounded bg-muted px-1 py-0.5 font-mono text-xs">.symbols</code- > after each release to resolve their stack traces.+ >) need this: generate a token, then upload your+ <code class="rounded bg-muted px-1 py-0.5 font-mono text-xs">.symbols</code>+ after each release to resolve their stack traces.<ahref="https://docs.tracewayapp.com/client/flutter"target="_blank"@@ -559,9 +560,9 @@ traceway {{:else if isAndroid}<p class="text-sm text-muted-foreground">Release builds obfuscate Kotlin/Java with R8 and strip native code. Generate a token, then- upload your <code class="rounded bg-muted px-1 py-0.5 font-mono text-xs">mapping.txt</code> and- native <code class="rounded bg-muted px-1 py-0.5 font-mono text-xs">.so</code> libraries after each- release to resolve their stack traces.+ upload your <code class="rounded bg-muted px-1 py-0.5 font-mono text-xs">mapping.txt</code>+ and native <code class="rounded bg-muted px-1 py-0.5 font-mono text-xs">.so</code> libraries+ after each release to resolve their stack traces.<ahref="https://docs.tracewayapp.com/symbolicator/android"target="_blank"diff --git a/frontend/src/lib/components/spans/span-empty-state.svelte b/frontend/src/lib/components/spans/span-empty-state.svelteindex b52cd366..935f040f 100644--- a/frontend/src/lib/components/spans/span-empty-state.svelte+++ b/frontend/src/lib/components/spans/span-empty-state.svelte@@ -91,7 +91,7 @@ span.End()`;<div class="mb-4 w-full max-w-xl text-left"><p class="mb-2 text-xs text-muted-foreground">Example usage:</p><div- class="overflow-hidden rounded-lg text-sm {themeState.isDark ? 'dark-code' : 'light-code'}"+ class="overflow-hidden rounded-md text-sm {themeState.isDark ? 'dark-code' : 'light-code'}"><Highlight language={go} code={codeExample} /></div>diff --git a/frontend/src/lib/components/spans/span-waterfall.svelte b/frontend/src/lib/components/spans/span-waterfall.svelteindex b3d3282f..fd24858e 100644--- a/frontend/src/lib/components/spans/span-waterfall.svelte+++ b/frontend/src/lib/components/spans/span-waterfall.svelte@@ -70,7 +70,7 @@let timelineElement: HTMLDivElement;</script>-<ScrollArea orientation="horizontal" class="p-relative rounded-lg border border-border">+<ScrollArea orientation="horizontal" class="p-relative rounded-md border border-border"><div class="relative overflow-hidden"><!-- Header --><div class="flex border-b border-border bg-muted/30">@@ -116,7 +116,7 @@{#if isHovered}<div- class="pointer-events-none absolute top-[28px] bottom-0 border-l border-gray-300"+ class="pointer-events-none absolute top-[28px] bottom-0 border-l border-border"style="left: {tooltipX + nameColumnWidth}px"></div><div class="absolute top-[1px] -translate-x-1/2" style="left: {tooltipX + nameColumnWidth}px">diff --git a/frontend/src/lib/components/ui/alert-dialog/alert-dialog-action.svelte b/frontend/src/lib/components/ui/alert-dialog/alert-dialog-action.svelteindex 5bed1ea6..7781925c 100644--- a/frontend/src/lib/components/ui/alert-dialog/alert-dialog-action.svelte+++ b/frontend/src/lib/components/ui/alert-dialog/alert-dialog-action.svelte@@ -1,17 +1,18 @@<script lang="ts">import { AlertDialog as AlertDialogPrimitive } from "bits-ui";- import { buttonVariants } from "$lib/components/ui/button/index.js";+ import { buttonVariants, type ButtonVariant } from "$lib/components/ui/button/index.js";import { cn } from "$lib/utils.js";let {ref = $bindable(null),class: className,+ variant = "default",...restProps- }: AlertDialogPrimitive.ActionProps = $props();+ }: AlertDialogPrimitive.ActionProps & { variant?: ButtonVariant } = $props();</script><AlertDialogPrimitive.Actionbind:ref- class={cn(buttonVariants(), className)}+ class={cn(buttonVariants({ variant }), className)}{...restProps}/>diff --git a/frontend/src/lib/components/ui/alert-dialog/alert-dialog-content.svelte b/frontend/src/lib/components/ui/alert-dialog/alert-dialog-content.svelteindex b6f80167..4ab2be0f 100644--- a/frontend/src/lib/components/ui/alert-dialog/alert-dialog-content.svelte+++ b/frontend/src/lib/components/ui/alert-dialog/alert-dialog-content.svelte@@ -1,10 +1,10 @@<script lang="ts">- import { AlertDialog as AlertDialogPrimitive } from "bits-ui";- import type { Snippet } from "svelte";- import AlertDialogPortal from "./alert-dialog-portal.svelte";- import AlertDialogOverlay from "./alert-dialog-overlay.svelte";- import { cn, type WithoutChildrenOrChild } from "$lib/utils.js";- import type { ComponentProps } from "svelte";+ import { AlertDialog as AlertDialogPrimitive } from 'bits-ui';+ import type { Snippet } from 'svelte';+ import AlertDialogPortal from './alert-dialog-portal.svelte';+ import AlertDialogOverlay from './alert-dialog-overlay.svelte';+ import { cn, type WithoutChildrenOrChild } from '$lib/utils.js';+ import type { ComponentProps } from 'svelte';let {ref = $bindable(null),@@ -24,7 +24,7 @@bind:refdata-slot="alert-dialog-content"class={cn(- "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg",+ 'fixed top-1/2 left-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:rounded-md',className)}{...restProps}diff --git a/frontend/src/lib/components/ui/alert/alert.svelte b/frontend/src/lib/components/ui/alert/alert.svelteindex 2b2eff9a..fef83dae 100644--- a/frontend/src/lib/components/ui/alert/alert.svelte+++ b/frontend/src/lib/components/ui/alert/alert.svelte@@ -1,31 +1,31 @@<script lang="ts" module>- import { type VariantProps, tv } from "tailwind-variants";+ import { type VariantProps, tv } from 'tailwind-variants';export const alertVariants = tv({- base: "relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",+ base: 'relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-md border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current',variants: {variant: {- default: "bg-card text-card-foreground",+ default: 'bg-card text-card-foreground',destructive:- "text-destructive bg-card *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current",- },+ 'text-destructive bg-card *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current'+ }},defaultVariants: {- variant: "default",- },+ variant: 'default'+ }});- export type AlertVariant = VariantProps<typeof alertVariants>["variant"];+ export type AlertVariant = VariantProps<typeof alertVariants>['variant'];</script><script lang="ts">- import type { HTMLAttributes } from "svelte/elements";- import { cn, type WithElementRef } from "$lib/utils.js";+ import type { HTMLAttributes } from 'svelte/elements';+ import { cn, type WithElementRef } from '$lib/utils.js';let {ref = $bindable(null),class: className,- variant = "default",+ variant = 'default',children,...restProps}: WithElementRef<HTMLAttributes<HTMLDivElement>> & {diff --git a/frontend/src/lib/components/ui/card/card-content.svelte b/frontend/src/lib/components/ui/card/card-content.svelteindex bc90b837..f15704e2 100644--- a/frontend/src/lib/components/ui/card/card-content.svelte+++ b/frontend/src/lib/components/ui/card/card-content.svelte@@ -10,6 +10,6 @@}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();</script>-<div bind:this={ref} data-slot="card-content" class={cn("px-6", className)} {...restProps}>+<div bind:this={ref} data-slot="card-content" class={cn("px-4", className)} {...restProps}>{@render children?.()}</div>diff --git a/frontend/src/lib/components/ui/card/card-footer.svelte b/frontend/src/lib/components/ui/card/card-footer.svelteindex 2d4d0f24..a74bd61b 100644--- a/frontend/src/lib/components/ui/card/card-footer.svelte+++ b/frontend/src/lib/components/ui/card/card-footer.svelte@@ -13,7 +13,7 @@<divbind:this={ref}data-slot="card-footer"- class={cn("flex items-center px-6 [.border-t]:pt-6", className)}+ class={cn("flex items-center px-4 [.border-t]:pt-6", className)}{...restProps}>{@render children?.()}diff --git a/frontend/src/lib/components/ui/card/card-header.svelte b/frontend/src/lib/components/ui/card/card-header.svelteindex 25017884..3cf30e4a 100644--- a/frontend/src/lib/components/ui/card/card-header.svelte+++ b/frontend/src/lib/components/ui/card/card-header.svelte@@ -14,7 +14,7 @@bind:this={ref}data-slot="card-header"class={cn(- "@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",+ "@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-4 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",className)}{...restProps}diff --git a/frontend/src/lib/components/ui/card/card.svelte b/frontend/src/lib/components/ui/card/card.svelteindex c52091f9..3aa92ed1 100644--- a/frontend/src/lib/components/ui/card/card.svelte+++ b/frontend/src/lib/components/ui/card/card.svelte@@ -1,6 +1,6 @@<script lang="ts">- import type { HTMLAttributes } from "svelte/elements";- import { cn, type WithElementRef } from "$lib/utils.js";+ import type { HTMLAttributes } from 'svelte/elements';+ import { cn, type WithElementRef } from '$lib/utils.js';let {ref = $bindable(null),@@ -14,7 +14,7 @@bind:this={ref}data-slot="card"class={cn(- "bg-card text-card-foreground flex flex-col gap-4 rounded-lg border py-4",+ 'flex flex-col gap-4 rounded-md border bg-card py-4 text-card-foreground',className)}{...restProps}diff --git a/frontend/src/lib/components/ui/checkbox/checkbox.svelte b/frontend/src/lib/components/ui/checkbox/checkbox.svelteindex 4b002740..3ebeaafe 100644--- a/frontend/src/lib/components/ui/checkbox/checkbox.svelte+++ b/frontend/src/lib/components/ui/checkbox/checkbox.svelte@@ -48,7 +48,7 @@onIndeterminateChange={handleIndeterminateChange}{disabled}class={cn(- "peer size-4 shrink-0 rounded-[4px] border border-input dark:border-white bg-background shadow-sm transition-colors",+ "peer size-4 shrink-0 rounded-[4px] border border-input dark:border-white bg-background transition-colors","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:bg-primary data-[state=checked]:border-primary data-[state=checked]:text-primary-foreground",diff --git a/frontend/src/lib/components/ui/error-alert/error-alert.svelte b/frontend/src/lib/components/ui/error-alert/error-alert.sveltenew file mode 100644index 00000000..d7fd79b7--- /dev/null+++ b/frontend/src/lib/components/ui/error-alert/error-alert.svelte@@ -0,0 +1,38 @@+<script lang="ts">+ import { Alert, AlertDescription, AlertTitle } from '$lib/components/ui/alert';+ import { CircleAlert } from '@lucide/svelte';++ let {+ error,+ title = 'Error',+ class: className+ }: {+ error: string | string[] | null | undefined;+ title?: string;+ class?: string;+ } = $props();++ const messages = $derived(+ (Array.isArray(error) ? error : (error ?? '').split('\n'))+ .map((message) => message.trim())+ .filter(Boolean)+ );+</script>++{#if messages.length > 0}+ <Alert+ variant="destructive"+ class="rounded-sm border-red-400 bg-red-500 text-white has-[>svg]:grid-cols-[calc(var(--spacing)*5)_1fr] *:data-[slot=alert-description]:text-white/90 [&>svg]:size-5 {className ??+ ''}"+ >+ <CircleAlert />+ <AlertTitle class="min-h-5 text-base font-semibold">{title}</AlertTitle>+ <AlertDescription>+ <ul class="list-disc pl-4">+ {#each messages as message (message)}+ <li>{message}</li>+ {/each}+ </ul>+ </AlertDescription>+ </Alert>+{/if}diff --git a/frontend/src/lib/components/ui/error-alert/index.ts b/frontend/src/lib/components/ui/error-alert/index.tsnew file mode 100644index 00000000..3204782e--- /dev/null+++ b/frontend/src/lib/components/ui/error-alert/index.ts@@ -0,0 +1,3 @@+import ErrorAlert from './error-alert.svelte';++export { ErrorAlert };diff --git a/frontend/src/lib/components/ui/error-display/error-display.svelte b/frontend/src/lib/components/ui/error-display/error-display.svelteindex 6b810a64..649994ea 100644--- a/frontend/src/lib/components/ui/error-display/error-display.svelte+++ b/frontend/src/lib/components/ui/error-display/error-display.svelte@@ -1,175 +1,207 @@<script lang="ts">- import { goto } from '$app/navigation';- import { Button } from "$lib/components/ui/button";+ import { goto } from '$app/navigation';+ import { Button } from '$lib/components/ui/button';- interface Props {- status?: 404 | 400 | 422 | number;- title?: string;- description?: string;- onBack?: (e: MouseEvent) => void;- backLabel?: string;- onRetry?: () => void;- identifier?: string;- }+ interface Props {+ status?: 404 | 400 | 422 | number;+ title?: string;+ description?: string;+ onBack?: (e: MouseEvent) => void;+ backLabel?: string;+ onRetry?: () => void;+ identifier?: string;+ }- let {- status = 404,- title,- description,- onBack,- backLabel = 'Go Back',- onRetry,- identifier- }: Props = $props();+ let {+ status = 404,+ title,+ description,+ onBack,+ backLabel = 'Go Back',+ onRetry,+ identifier+ }: Props = $props();- const defaults: Record<number, { title: string; description: string }> = {- 404: {- title: 'Not Found',- description: "The resource you're looking for doesn't exist or may have been removed."- },- 400: {- title: 'Bad Request',- description: 'The request was invalid. Please check your input and try again.'- },- 422: {- title: 'Validation Error',- description: 'The data provided could not be processed. Please verify your input.'- }- };+ const defaults: Record<number, { title: string; description: string }> = {+ 404: {+ title: 'Not Found',+ description: "The resource you're looking for doesn't exist or may have been removed."+ },+ 400: {+ title: 'Bad Request',+ description: 'The request was invalid. Please check your input and try again.'+ },+ 422: {+ title: 'Validation Error',+ description: 'The data provided could not be processed. Please verify your input.'+ }+ };- const displayTitle = $derived(title || defaults[status]?.title || 'Error');- const displayDescription = $derived(description || defaults[status]?.description || 'Something went wrong.');+ const displayTitle = $derived(title || defaults[status]?.title || 'Error');+ const displayDescription = $derived(+ description || defaults[status]?.description || 'Something went wrong.'+ );- function handleBack(e: MouseEvent) {- if (onBack) {- onBack(e);- } else {- history.back();- }- }+ function handleBack(e: MouseEvent) {+ if (onBack) {+ onBack(e);+ } else {+ history.back();+ }+ }</script>-<div class="flex flex-col items-center justify-center py-16 px-4">- <div class="relative mb-8">- <!-- Glowing background effect -->- {#if status === 404}- <div class="absolute inset-0 blur-3xl opacity-20 bg-gradient-to-br from-red-500 via-orange-500 to-yellow-500 rounded-full scale-150"></div>- {:else if status === 400}- <div class="absolute inset-0 blur-3xl opacity-20 bg-gradient-to-br from-amber-500 via-orange-500 to-red-500 rounded-full scale-150"></div>- {:else if status === 422}- <div class="absolute inset-0 blur-3xl opacity-20 bg-gradient-to-br from-purple-500 via-pink-500 to-red-500 rounded-full scale-150"></div>- {:else}- <div class="absolute inset-0 blur-3xl opacity-20 bg-red-500 rounded-full scale-150"></div>- {/if}+<div class="flex flex-col items-center justify-center px-4 py-16">+ <div class="relative mb-8">+ <!-- Glowing background effect -->+ {#if status === 404}+ <div+ class="absolute inset-0 scale-150 rounded-full bg-gradient-to-br from-red-500 via-orange-500 to-yellow-500 opacity-20 blur-3xl"+ ></div>+ {:else if status === 400}+ <div+ class="absolute inset-0 scale-150 rounded-full bg-gradient-to-br from-amber-500 via-orange-500 to-red-500 opacity-20 blur-3xl"+ ></div>+ {:else if status === 422}+ <div+ class="absolute inset-0 scale-150 rounded-full bg-gradient-to-br from-purple-500 via-pink-500 to-red-500 opacity-20 blur-3xl"+ ></div>+ {:else}+ <div class="absolute inset-0 scale-150 rounded-full bg-red-500 opacity-20 blur-3xl"></div>+ {/if}- <!-- Icon container -->- <div class="relative flex items-center justify-center w-24 h-24 rounded-2xl bg-gradient-to-br from-muted/80 to-muted border border-border/50 shadow-lg">- {#if status === 404}- <!-- X in circle icon -->- <svg- xmlns="http://www.w3.org/2000/svg"- width="48"- height="48"- viewBox="0 0 24 24"- fill="none"- stroke="currentColor"- stroke-width="1.5"- stroke-linecap="round"- stroke-linejoin="round"- class="text-muted-foreground"- >- <circle cx="12" cy="12" r="10"/>- <path d="m15 9-6 6"/>- <path d="m9 9 6 6"/>- </svg>- {:else if status === 400}- <!-- Alert triangle icon -->- <svg- xmlns="http://www.w3.org/2000/svg"- width="48"- height="48"- viewBox="0 0 24 24"- fill="none"- stroke="currentColor"- stroke-width="1.5"- stroke-linecap="round"- stroke-linejoin="round"- class="text-amber-500"- >- <path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"/>- <path d="M12 9v4"/>- <path d="M12 17h.01"/>- </svg>- {:else if status === 422}- <!-- Alert circle icon -->- <svg- xmlns="http://www.w3.org/2000/svg"- width="48"- height="48"- viewBox="0 0 24 24"- fill="none"- stroke="currentColor"- stroke-width="1.5"- stroke-linecap="round"- stroke-linejoin="round"- class="text-purple-500"- >- <circle cx="12" cy="12" r="10"/>- <path d="M12 8v4"/>- <path d="M12 16h.01"/>- </svg>- {:else}- <!-- Generic error icon -->- <svg- xmlns="http://www.w3.org/2000/svg"- width="48"- height="48"- viewBox="0 0 24 24"- fill="none"- stroke="currentColor"- stroke-width="1.5"- stroke-linecap="round"- stroke-linejoin="round"- class="text-red-500"- >- <path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"/>- <path d="M12 9v4"/>- <path d="M12 17h.01"/>- </svg>- {/if}- </div>- </div>+ <!-- Icon container -->+ <div+ class="relative flex h-24 w-24 items-center justify-center rounded-2xl border border-border/50 bg-gradient-to-br from-muted/80 to-muted shadow-lg"+ >+ {#if status === 404}+ <!-- X in circle icon -->+ <svg+ xmlns="http://www.w3.org/2000/svg"+ width="48"+ height="48"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="1.5"+ stroke-linecap="round"+ stroke-linejoin="round"+ class="text-muted-foreground"+ >+ <circle cx="12" cy="12" r="10" />+ <path d="m15 9-6 6" />+ <path d="m9 9 6 6" />+ </svg>+ {:else if status === 400}+ <!-- Alert triangle icon -->+ <svg+ xmlns="http://www.w3.org/2000/svg"+ width="48"+ height="48"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="1.5"+ stroke-linecap="round"+ stroke-linejoin="round"+ class="text-amber-500"+ >+ <path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" />+ <path d="M12 9v4" />+ <path d="M12 17h.01" />+ </svg>+ {:else if status === 422}+ <!-- Alert circle icon -->+ <svg+ xmlns="http://www.w3.org/2000/svg"+ width="48"+ height="48"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="1.5"+ stroke-linecap="round"+ stroke-linejoin="round"+ class="text-purple-500"+ >+ <circle cx="12" cy="12" r="10" />+ <path d="M12 8v4" />+ <path d="M12 16h.01" />+ </svg>+ {:else}+ <!-- Generic error icon -->+ <svg+ xmlns="http://www.w3.org/2000/svg"+ width="48"+ height="48"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="1.5"+ stroke-linecap="round"+ stroke-linejoin="round"+ class="text-red-500"+ >+ <path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" />+ <path d="M12 9v4" />+ <path d="M12 17h.01" />+ </svg>+ {/if}+ </div>+ </div>- <div class="text-center space-y-3 max-w-md">- <h2 class="text-2xl font-semibold tracking-tight">{displayTitle}</h2>- <p class="text-muted-foreground leading-relaxed">{displayDescription}</p>- </div>+ <div class="max-w-md space-y-3 text-center">+ <h2 class="text-2xl font-semibold tracking-tight">{displayTitle}</h2>+ <p class="leading-relaxed text-muted-foreground">{displayDescription}</p>+ </div>- <div class="flex items-center gap-3 mt-8">- <Button variant="outline" onclick={handleBack}>- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="mr-2">- <path d="m12 19-7-7 7-7"/><path d="M19 12H5"/>- </svg>- {backLabel}- </Button>- {#if onRetry}- <Button onclick={onRetry}>- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="mr-2">- <path d="M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"/>- <path d="M3 3v5h5"/>- <path d="M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16"/>- <path d="M16 16h5v5"/>- </svg>- Try Again- </Button>- {/if}- </div>+ <div class="mt-8 flex items-center gap-3">+ <Button variant="outline" onclick={handleBack}>+ <svg+ xmlns="http://www.w3.org/2000/svg"+ width="16"+ height="16"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ stroke-linecap="round"+ stroke-linejoin="round"+ class="mr-2"+ >+ <path d="m12 19-7-7 7-7" /><path d="M19 12H5" />+ </svg>+ {backLabel}+ </Button>+ {#if onRetry}+ <Button onclick={onRetry}>+ <svg+ xmlns="http://www.w3.org/2000/svg"+ width="16"+ height="16"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ stroke-linecap="round"+ stroke-linejoin="round"+ class="mr-2"+ >+ <path d="M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" />+ <path d="M3 3v5h5" />+ <path d="M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16" />+ <path d="M16 16h5v5" />+ </svg>+ Try Again+ </Button>+ {/if}+ </div>- {#if identifier}- <div class="mt-8 px-4 py-2 rounded-lg bg-muted/50 border border-border/50">- <code class="text-xs text-muted-foreground font-mono">- {identifier}- </code>- </div>- {/if}+ {#if identifier}+ <div class="mt-8 rounded-md border border-border/50 bg-muted/50 px-4 py-2">+ <code class="font-mono text-xs text-muted-foreground">+ {identifier}+ </code>+ </div>+ {/if}</div>diff --git a/frontend/src/lib/components/ui/impact-badge/impact-badge.svelte b/frontend/src/lib/components/ui/impact-badge/impact-badge.svelteindex 412b925b..93e30669 100644--- a/frontend/src/lib/components/ui/impact-badge/impact-badge.svelte+++ b/frontend/src/lib/components/ui/impact-badge/impact-badge.svelte@@ -40,7 +40,7 @@case 'medium':return {bg: 'bg-yellow-500/15',- text: 'text-yellow-600 dark:text-yellow-500',+ text: 'text-yellow-600 dark:text-yellow-400',label: 'Medium',icon: 'alert'};diff --git a/frontend/src/lib/components/ui/non-root-chip/non-root-chip.svelte b/frontend/src/lib/components/ui/non-root-chip/non-root-chip.svelteindex adc6856c..0459912e 100644--- a/frontend/src/lib/components/ui/non-root-chip/non-root-chip.svelte+++ b/frontend/src/lib/components/ui/non-root-chip/non-root-chip.svelte@@ -11,8 +11,8 @@const label = $derived(mixed ? 'Mixed' : 'Non Root');const tooltip = $derived(mixed- ? 'Some runs were triggered by another trace — see the distributed trace view.'- : 'Triggered by another trace — see the distributed trace view.'+ ? 'Some runs were triggered by another trace. See the distributed trace view.'+ : 'Triggered by another trace. See the distributed trace view.');</script>diff --git a/frontend/src/lib/components/ui/search-bar/search-bar.svelte b/frontend/src/lib/components/ui/search-bar/search-bar.svelteindex abb07618..1c52e363 100644--- a/frontend/src/lib/components/ui/search-bar/search-bar.svelte+++ b/frontend/src/lib/components/ui/search-bar/search-bar.svelte@@ -39,10 +39,10 @@const typeLabel = $derived(typeOptions.find((o) => o.value === typeValue)?.label ?? '');</script>-<div class="-mt-2 flex">+<div class="flex"><Input{placeholder}- class="h-9 w-[250px] rounded-r-none border-r-0 shadow-none focus-visible:border-r focus-visible:border-sidebar-accent focus-visible:ring-0 lg:w-[320px]"+ class="h-9 w-[250px] rounded-r-none border-r-0 shadow-none focus-visible:border-r focus-visible:border-ring focus-visible:ring-0 lg:w-[320px]"bind:valueonkeydown={(e) => {if (e.key === 'Enter') onSearch();diff --git a/frontend/src/lib/components/ui/severity-badge/severity-badge.svelte b/frontend/src/lib/components/ui/severity-badge/severity-badge.svelteindex 5161ee49..59c1b772 100644--- a/frontend/src/lib/components/ui/severity-badge/severity-badge.svelte+++ b/frontend/src/lib/components/ui/severity-badge/severity-badge.svelte@@ -48,14 +48,14 @@return { bg: 'bg-muted', text: 'text-muted-foreground', label: 'TRACE' };case 'DEBUG':return {- bg: 'bg-blue-500/15',- text: 'text-blue-600 dark:text-blue-400',+ bg: 'bg-violet-500/15',+ text: 'text-violet-600 dark:text-violet-400',label: 'DEBUG'};case 'INFO':return {- bg: 'bg-slate-500/15',- text: 'text-slate-600 dark:text-slate-300',+ bg: 'bg-sky-500/15',+ text: 'text-sky-600 dark:text-sky-400',label: 'INFO'};case 'WARN':diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-menu-button.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-menu-button.svelteindex 9d16ebae..2f94b4a8 100644--- a/frontend/src/lib/components/ui/sidebar/sidebar-menu-button.svelte+++ b/frontend/src/lib/components/ui/sidebar/sidebar-menu-button.svelte@@ -2,15 +2,15 @@import { tv, type VariantProps } from "tailwind-variants";export const sidebarMenuButtonVariants = tv({- base: "peer/menu-button ring-sidebar-ring data-[active=false]:hover:bg-gray-100 dark:data-[active=false]:hover:bg-white/10 active:bg-sidebar-accent data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:data-[active=false]:hover:bg-gray-100 dark:data-[state=open]:data-[active=false]:hover:bg-white/10 flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-start text-sm outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pe-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:font-medium [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",+ base: "peer/menu-button ring-sidebar-ring data-[active=false]:hover:bg-foreground/5 dark:data-[active=false]:hover:bg-white/8 active:bg-sidebar-accent data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:data-[active=false]:hover:bg-foreground/5 dark:data-[state=open]:data-[active=false]:hover:bg-white/8 flex w-full items-center gap-2.5 overflow-hidden rounded-md p-2 text-start text-[15px] font-medium outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pe-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-5 [&>svg]:shrink-0",variants: {variant: {- default: "data-[active=false]:hover:bg-gray-100 dark:data-[active=false]:hover:bg-white/10",+ default: "data-[active=false]:hover:bg-foreground/5 dark:data-[active=false]:hover:bg-white/8",outline:- "bg-background data-[active=false]:hover:bg-gray-100 dark:data-[active=false]:hover:bg-white/10 shadow-[0_0_0_1px_var(--sidebar-border)] hover:shadow-[0_0_0_1px_var(--sidebar-border)]",+ "bg-background data-[active=false]:hover:bg-foreground/5 dark:data-[active=false]:hover:bg-white/8 shadow-[0_0_0_1px_var(--sidebar-border)] hover:shadow-[0_0_0_1px_var(--sidebar-border)]",},size: {- default: "h-8 text-sm",+ default: "h-9",sm: "h-7 text-xs",lg: "h-12 text-sm group-data-[collapsible=icon]:p-0!",},diff --git a/frontend/src/lib/components/ui/sidebar/sidebar.svelte b/frontend/src/lib/components/ui/sidebar/sidebar.svelteindex bac55d8d..f9e77e98 100644--- a/frontend/src/lib/components/ui/sidebar/sidebar.svelte+++ b/frontend/src/lib/components/ui/sidebar/sidebar.svelte@@ -1,31 +1,31 @@<script lang="ts">- import * as Sheet from "$lib/components/ui/sheet/index.js";- import { cn, type WithElementRef } from "$lib/utils.js";- import type { HTMLAttributes } from "svelte/elements";- import { SIDEBAR_WIDTH_MOBILE } from "./constants.js";- import { useSidebar } from "./context.svelte.js";+ import * as Sheet from '$lib/components/ui/sheet/index.js';+ import { cn, type WithElementRef } from '$lib/utils.js';+ import type { HTMLAttributes } from 'svelte/elements';+ import { SIDEBAR_WIDTH_MOBILE } from './constants.js';+ import { useSidebar } from './context.svelte.js';let {ref = $bindable(null),- side = "left",- variant = "sidebar",- collapsible = "offcanvas",+ side = 'left',+ variant = 'sidebar',+ collapsible = 'offcanvas',class: className,children,...restProps}: WithElementRef<HTMLAttributes<HTMLDivElement>> & {- side?: "left" | "right";- variant?: "sidebar" | "floating" | "inset";- collapsible?: "offcanvas" | "icon" | "none";+ side?: 'left' | 'right';+ variant?: 'sidebar' | 'floating' | 'inset';+ collapsible?: 'offcanvas' | 'icon' | 'none';} = $props();const sidebar = useSidebar();</script>-{#if collapsible === "none"}+{#if collapsible === 'none'}<divclass={cn(- "bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",+ 'flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground',className)}bind:this={ref}@@ -34,15 +34,12 @@{@render children?.()}</div>{:else if sidebar.isMobile}- <Sheet.Root- bind:open={() => sidebar.openMobile, (v) => sidebar.setOpenMobile(v)}- {...restProps}- >+ <Sheet.Root bind:open={() => sidebar.openMobile, (v) => sidebar.setOpenMobile(v)} {...restProps}><Sheet.Contentdata-sidebar="sidebar"data-slot="sidebar"data-mobile="true"- class="bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden"+ class="w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden"style="--sidebar-width: {SIDEBAR_WIDTH_MOBILE};"{side}>@@ -58,9 +55,9 @@{:else}<divbind:this={ref}- class="text-sidebar-foreground group peer hidden md:block"+ class="group peer hidden text-sidebar-foreground md:block"data-state={sidebar.state}- data-collapsible={sidebar.state === "collapsed" ? collapsible : ""}+ data-collapsible={sidebar.state === 'collapsed' ? collapsible : ''}data-variant={variant}data-side={side}data-slot="sidebar"@@ -69,25 +66,25 @@<divdata-slot="sidebar-gap"class={cn(- "relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",- "group-data-[collapsible=offcanvas]:w-0",- "group-data-[side=right]:rotate-180",- variant === "floating" || variant === "inset"- ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]"- : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)"+ 'relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear',+ 'group-data-[collapsible=offcanvas]:w-0',+ 'group-data-[side=right]:rotate-180',+ variant === 'floating' || variant === 'inset'+ ? 'group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]'+ : 'group-data-[collapsible=icon]:w-(--sidebar-width-icon)')}></div><divdata-slot="sidebar-container"class={cn(- "fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",- side === "left"- ? "start-0 group-data-[collapsible=offcanvas]:start-[calc(var(--sidebar-width)*-1)]"- : "end-0 group-data-[collapsible=offcanvas]:end-[calc(var(--sidebar-width)*-1)]",+ 'fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex',+ side === 'left'+ ? 'start-0 group-data-[collapsible=offcanvas]:start-[calc(var(--sidebar-width)*-1)]'+ : 'end-0 group-data-[collapsible=offcanvas]:end-[calc(var(--sidebar-width)*-1)]',// Adjust the padding for floating and inset variants.- variant === "floating" || variant === "inset"- ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]"- : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-e group-data-[side=right]:border-s",+ variant === 'floating' || variant === 'inset'+ ? 'p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]'+ : 'group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-e group-data-[side=right]:border-s',className)}{...restProps}@@ -95,7 +92,7 @@<divdata-sidebar="sidebar"data-slot="sidebar-inner"- class="bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm"+ class="flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-md group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm">{@render children?.()}</div>diff --git a/frontend/src/lib/components/ui/table/table-head.svelte b/frontend/src/lib/components/ui/table/table-head.svelteindex 23c56dbb..d6559fa4 100644--- a/frontend/src/lib/components/ui/table/table-head.svelte+++ b/frontend/src/lib/components/ui/table/table-head.svelte@@ -14,7 +14,7 @@bind:this={ref}data-slot="table-head"class={cn(- "text-foreground h-10 bg-[#f5f5f5] dark:bg-ink-2 bg-clip-padding px-2 text-start align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pe-0",+ "text-muted-foreground h-10 bg-muted/60 dark:bg-ink-1 bg-clip-padding px-2 text-start align-middle text-[15px] font-medium whitespace-nowrap [&:has([role=checkbox])]:pe-0",className)}{...restProps}diff --git a/frontend/src/lib/components/ui/table/table.svelte b/frontend/src/lib/components/ui/table/table.svelteindex a3349563..59cf3c42 100644--- a/frontend/src/lib/components/ui/table/table.svelte+++ b/frontend/src/lib/components/ui/table/table.svelte@@ -14,7 +14,7 @@<tablebind:this={ref}data-slot="table"- class={cn("w-full caption-bottom text-sm", className)}+ class={cn("w-full caption-bottom bg-white text-sm dark:bg-transparent", className)}{...restProps}>{@render children?.()}diff --git a/frontend/src/lib/components/ui/tabs/tabs-content.svelte b/frontend/src/lib/components/ui/tabs/tabs-content.svelteindex e7bfed33..16ff156e 100644--- a/frontend/src/lib/components/ui/tabs/tabs-content.svelte+++ b/frontend/src/lib/components/ui/tabs/tabs-content.svelte@@ -13,7 +13,7 @@<TabsPrimitive.Contentbind:refclass={cn(- "ring-offset-background focus-visible:ring-ring mt-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",+ "ring-offset-background focus-visible:ring-ring mt-4 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",className)}{...restProps}diff --git a/frontend/src/lib/components/ui/tabs/tabs-list.svelte b/frontend/src/lib/components/ui/tabs/tabs-list.svelteindex 2fcb3348..22f7c94b 100644--- a/frontend/src/lib/components/ui/tabs/tabs-list.svelte+++ b/frontend/src/lib/components/ui/tabs/tabs-list.svelte@@ -1,6 +1,6 @@<script lang="ts">- import { Tabs as TabsPrimitive } from "bits-ui";- import { cn, type WithoutChild } from "$lib/utils.js";+ import { Tabs as TabsPrimitive } from 'bits-ui';+ import { cn, type WithoutChild } from '$lib/utils.js';let {ref = $bindable(null),@@ -13,7 +13,7 @@<TabsPrimitive.Listbind:refclass={cn(- "bg-muted text-muted-foreground inline-flex h-9 items-center justify-center rounded-lg p-1",+ 'inline-flex h-9 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground',className)}{...restProps}diff --git a/frontend/src/lib/components/ui/traceway-table-header/traceway-table-header.svelte b/frontend/src/lib/components/ui/traceway-table-header/traceway-table-header.svelteindex 635b12c2..b07285c3 100644--- a/frontend/src/lib/components/ui/traceway-table-header/traceway-table-header.svelte+++ b/frontend/src/lib/components/ui/traceway-table-header/traceway-table-header.svelte@@ -38,7 +38,7 @@<Buttonvariant="ghost"size="sm"- class={cn("h-8 font-medium", !alignRight && "-ml-3")}+ class={cn("h-8 text-[15px] font-medium", !alignRight && "-ml-3")}onclick={() => onSort?.(sortField!)}>{label}diff --git a/frontend/src/lib/utils/formatters.ts b/frontend/src/lib/utils/formatters.tsindex b87ab9f6..c44334d5 100644--- a/frontend/src/lib/utils/formatters.ts+++ b/frontend/src/lib/utils/formatters.ts@@ -2,9 +2,7 @@ import { DateTime } from 'luxon';import { getTimezone } from '$lib/state/timezone.svelte';export function preciseTimeMs(isoString: string): number {- const match = isoString.match(- /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?Z$/- );+ const match = isoString.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?Z$/);if (!match) return new Date(isoString).getTime();const [, year, month, day, hour, minute, second, frac] = match;@@ -38,7 +36,7 @@ export function formatDurationMs(ms: number): string {export function getStatusColor(statusCode: number): string {if (statusCode >= 200 && statusCode < 300) return 'text-green-500';if (statusCode >= 300 && statusCode < 400) return 'text-blue-500';- if (statusCode >= 400 && statusCode < 500) return 'text-yellow-500';+ if (statusCode >= 400 && statusCode < 500) return 'text-yellow-400';return 'text-red-500';}@@ -110,8 +108,6 @@ export function getNow(timezone?: string): DateTime {return DateTime.now().setZone(tz);}--export function luxonToCalendarDateTime(dt: DateTime): {year: number;month: number;diff --git a/frontend/src/lib/utils/framework-code.ts b/frontend/src/lib/utils/framework-code.tsindex 8d80099e..831aa1f8 100644--- a/frontend/src/lib/utils/framework-code.ts+++ b/frontend/src/lib/utils/framework-code.ts@@ -324,7 +324,7 @@ $kernel->terminate($request, $response);`;case 'laravel':return `<?php-// .env — point the OTLP exporter at Traceway+// .env - point the OTLP exporter at Traceway//// OTEL_SERVICE_NAME=my-laravel-app// OTEL_TRACES_EXPORTER=otlp@@ -337,14 +337,14 @@ $kernel->terminate($request, $response);`;// Optional: send Laravel logs to Traceway via the auto-injected 'otlp' channel// LOG_CHANNEL=otlp-// That's it — keepsuit/laravel-opentelemetry's service provider auto-registers+// That's it - keepsuit/laravel-opentelemetry's service provider auto-registers// TraceRequestMiddleware as a global middleware, so every HTTP request, DB query,// queued job, Redis call, cache op, view render and outbound Http:: call is// traced automatically. Open config/opentelemetry.php to tune which// instrumentations are enabled.`;case 'django':- return `# .env — point the OTLP exporter at Traceway+ return `# .env - point the OTLP exporter at Traceway## OTEL_SERVICE_NAME=my-django-app# OTEL_TRACES_EXPORTER=otlp@@ -355,7 +355,7 @@ $kernel->terminate($request, $response);`;# OTEL_EXPORTER_OTLP_HEADERS=Authorization=Bearer%20${token || 'YOUR_TOKEN'}# OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED=true-# Then launch Django through the OTel agent — no code changes needed:+# Then launch Django through the OTel agent - no code changes needed:## opentelemetry-instrument python manage.py runserver# opentelemetry-instrument gunicorn myproject.wsgi:applicationdiff --git a/frontend/src/lib/utils/metric-format.ts b/frontend/src/lib/utils/metric-format.tsindex 7070fe08..d522bbad 100644--- a/frontend/src/lib/utils/metric-format.ts+++ b/frontend/src/lib/utils/metric-format.ts@@ -1,17 +1,17 @@type FormatResult = { text: string; unit: string };export function formatMetricValue(value: number, unit: string): FormatResult {- // OTel canonical unit '1' is a dimensionless ratio (0-1) — render as percent.+ // OTel canonical unit '1' is a dimensionless ratio (0-1) - render as percent.if (unit === '1') {return formatMetricValue(value * 100, '%');}- // OTel canonical unit 'By' is bytes — normalize to the existing bytes branch.+ // OTel canonical unit 'By' is bytes - normalize to the existing bytes branch.if (unit === 'By') {return formatMetricValue(value, 'B');}- // OTel annotation units like '{connections}', '{packets}' — treat as raw count.+ // OTel annotation units like '{connections}', '{packets}' - treat as raw count.if (unit.length > 2 && unit.startsWith('{') && unit.endsWith('}')) {return formatMetricValue(value, 'count');}diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelteindex 45a16a7b..b08b75c7 100644--- a/frontend/src/routes/+layout.svelte+++ b/frontend/src/routes/+layout.svelte@@ -142,7 +142,7 @@<Sidebar.SidebarProvider><AppSidebar /><Sidebar.SidebarInset>- <header class="flex h-12 shrink-0 items-center gap-2 border-b px-2">+ <header class="flex h-12 shrink-0 items-center gap-2 border-b bg-white px-2 dark:bg-transparent"><Sidebar.SidebarTrigger /><div class="h-4 w-px bg-border"></div><h1 class="text-lg font-semibold">diff --git a/frontend/src/routes/+page.svelte b/frontend/src/routes/+page.svelteindex 38aed31c..2f245a03 100644--- a/frontend/src/routes/+page.svelte+++ b/frontend/src/routes/+page.svelte@@ -22,6 +22,7 @@import WidgetGrid from '$lib/components/dashboard/widget-grid.svelte';import { TracewayTableHeader } from '$lib/components/ui/traceway-table-header';import { ImpactBadge } from '$lib/components/ui/impact-badge';+ import EndpointName from '$lib/components/endpoint-name.svelte';import { ViewAllTableRow } from '$lib/components/ui/view-all-table-row';import { api } from '$lib/api';import { ErrorDisplay } from '$lib/components/ui/error-display';@@ -162,7 +163,17 @@projectWithToken ? getCodeLanguage(projectWithToken.framework) : ('go' as const));- const highlightLanguage = $derived(codeLanguage === 'javascript' ? javascript : codeLanguage === 'php' ? php : codeLanguage === 'python' ? python : codeLanguage === 'bash' ? bash : go);+ const highlightLanguage = $derived(+ codeLanguage === 'javascript'+ ? javascript+ : codeLanguage === 'php'+ ? php+ : codeLanguage === 'python'+ ? python+ : codeLanguage === 'bash'+ ? bash+ : go+ );const testingRouteCode = $derived(getTestingRouteCode(projectWithToken?.framework));const testingRouteCode2 = $derived(getTestingRouteCode2(projectWithToken?.framework));@@ -537,7 +548,7 @@ service:</Button></div><div- class="overflow-x-auto rounded-lg text-sm {themeState.isDark+ class="overflow-x-auto rounded-md text-sm {themeState.isDark? 'dark-code': 'light-code'}">@@ -578,10 +589,7 @@ service:</div></div>{:else if isOtelGeneric}- <OtelSetupSteps- backendUrl={projectWithToken.backendUrl}- token={projectWithToken.token}- />+ <OtelSetupSteps backendUrl={projectWithToken.backendUrl} token={projectWithToken.token} />{:else if isOtel}<!-- OTel Step 1: Install an OTel SDK --><div class="rounded-md border bg-card">@@ -698,7 +706,7 @@ service:</Button></div><div- class="overflow-x-auto rounded-lg text-sm {themeState.isDark+ class="overflow-x-auto rounded-md text-sm {themeState.isDark? 'dark-code': 'light-code'}">@@ -739,7 +747,7 @@ service:</Button></div><div- class="overflow-x-auto rounded-lg text-sm {themeState.isDark+ class="overflow-x-auto rounded-md text-sm {themeState.isDark? 'dark-code': 'light-code'}">@@ -780,7 +788,7 @@ service:</Button></div><div- class="overflow-x-auto rounded-lg text-sm {themeState.isDark+ class="overflow-x-auto rounded-md text-sm {themeState.isDark? 'dark-code': 'light-code'}">@@ -789,28 +797,28 @@ service:</div>{#if testingRouteCode2}- <div class="flex justify-center p-2 italic">or</div>+ <div class="flex justify-center p-2 italic">or</div>- <div class="relative">- <div class="absolute top-2 right-2 z-10">- <Button variant="outline" size="sm" onclick={copyTesting2}>- {#if copiedTesting2}- <Check class="mr-2 h-4 w-4 text-green-500" />- Copied!- {:else}- <Copy class="mr-2 h-4 w-4" />- Copy- {/if}- </Button>- </div>- <div- class="overflow-x-auto rounded-lg text-sm {themeState.isDark- ? 'dark-code'- : 'light-code'}"- >- <Highlight language={highlightLanguage} code={testingRouteCode2} />+ <div class="relative">+ <div class="absolute top-2 right-2 z-10">+ <Button variant="outline" size="sm" onclick={copyTesting2}>+ {#if copiedTesting2}+ <Check class="mr-2 h-4 w-4 text-green-500" />+ Copied!+ {:else}+ <Copy class="mr-2 h-4 w-4" />+ Copy+ {/if}+ </Button>+ </div>+ <div+ class="overflow-x-auto rounded-md text-sm {themeState.isDark+ ? 'dark-code'+ : 'light-code'}"+ >+ <Highlight language={highlightLanguage} code={testingRouteCode2} />+ </div></div>- </div>{/if}</div></div>@@ -851,7 +859,7 @@ service:<div><div class="items-bottom mb-4 flex gap-1"><div class="mr-2 flex h-8 w-8 items-center justify-center rounded-md bg-yellow-500/10">- <Star class="h-5 w-5 fill-yellow-500 text-yellow-500" />+ <Star class="h-5 w-5 fill-yellow-400 text-yellow-400" /></div><h2 class="text-2xl font-bold tracking-tight">Starred</h2><Tooltip.Root>@@ -868,7 +876,9 @@ service:fromDateUTC={starredFromUTC}toDateUTC={starredToUTC}timeDomain={null}- onReorderWidgets={projectsState.canWriteCurrentProject ? handleReorderStarred : undefined}+ onReorderWidgets={projectsState.canWriteCurrentProject+ ? handleReorderStarred+ : undefined}onResizeWidget={projectsState.canWriteCurrentProject ? handleResizeStarred : undefined}onToggleStar={projectsState.canWriteCurrentProject ? handleUnstar : undefined}/>@@ -938,7 +948,7 @@ service:class="max-w-[300px] truncate py-3 font-mono text-sm"title={endpoint.endpoint}>- {endpoint.endpoint}+ <EndpointName endpoint={endpoint.endpoint} /></Table.Cell><Table.Cell class="py-3 text-right tabular-nums">{endpoint.count.toLocaleString()}@@ -1030,12 +1040,23 @@ service:</Table.Header><Table.Body>{#each data.recentIssues as issue}+ {@const issueFirstLine = issue.stackTrace.split('\n')[0]}+ {@const issueColon = issueFirstLine.indexOf(':')}<Table.Rowclass="cursor-pointer hover:bg-muted/50"onclick={createRowClickHandler(`/issues/${issue.exceptionHash}`)}>- <Table.Cell class="py-3 font-mono text-sm" title={issue.stackTrace}>- {truncateStackTrace(issue.stackTrace)}+ <Table.Cell class="max-w-[480px] py-3" title={issue.stackTrace}>+ <div class="min-w-0">+ <div class="truncate text-[15px]/6 font-semibold text-foreground">+ {issueColon > 0 ? issueFirstLine.slice(0, issueColon) : issueFirstLine}+ </div>+ {#if issueColon > 0}+ <div class="truncate text-sm text-muted-foreground">+ {issueFirstLine.slice(issueColon + 1).trim()}+ </div>+ {/if}+ </div></Table.Cell><Table.Cell class="py-3 text-right font-medium tabular-nums">{issue.count}diff --git a/frontend/src/routes/accept-invitation/+page.svelte b/frontend/src/routes/accept-invitation/+page.svelteindex c5279905..8528a8f4 100644--- a/frontend/src/routes/accept-invitation/+page.svelte+++ b/frontend/src/routes/accept-invitation/+page.svelte@@ -1,256 +1,274 @@<script lang="ts">- import { goto } from '$app/navigation';- import { page } from '$app/state';- import { onMount } from 'svelte';- import { Button } from "$lib/components/ui/button";- import { Input } from "$lib/components/ui/input";- import { Label } from "$lib/components/ui/label";- import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "$lib/components/ui/card";- import { Alert, AlertDescription, AlertTitle } from "$lib/components/ui/alert";- import { CircleAlert, Check } from "@lucide/svelte";- import { authState } from '$lib/state/auth.svelte';- import { projectsState } from '$lib/state/projects.svelte';- import { themeState } from '$lib/state/theme.svelte';+ import { goto } from '$app/navigation';+ import { page } from '$app/state';+ import { onMount } from 'svelte';+ import { Button } from '$lib/components/ui/button';+ import { Input } from '$lib/components/ui/input';+ import { Label } from '$lib/components/ui/label';+ import {+ Card,+ CardContent,+ CardDescription,+ CardHeader,+ CardTitle+ } from '$lib/components/ui/card';+ import { Alert, AlertDescription, AlertTitle } from '$lib/components/ui/alert';+ import { ErrorAlert } from '$lib/components/ui/error-alert';+ import { CircleAlert, Check } from '@lucide/svelte';+ import { authState } from '$lib/state/auth.svelte';+ import { projectsState } from '$lib/state/projects.svelte';+ import { themeState } from '$lib/state/theme.svelte';- interface InvitationInfo {- email: string;- organizationName: string;- inviterName: string;- existsAsUser: boolean;- role: string;- }+ interface InvitationInfo {+ email: string;+ organizationName: string;+ inviterName: string;+ existsAsUser: boolean;+ role: string;+ }- let loading = $state(true);- let submitting = $state(false);- let error = $state('');- let invitationInfo = $state<InvitationInfo | null>(null);- let name = $state('');- let password = $state('');- let confirmPassword = $state('');- let success = $state(false);+ let loading = $state(true);+ let submitting = $state(false);+ let error = $state('');+ let invitationInfo = $state<InvitationInfo | null>(null);+ let name = $state('');+ let password = $state('');+ let confirmPassword = $state('');+ let success = $state(false);- const token = $derived(page.url.searchParams.get('token'));+ const token = $derived(page.url.searchParams.get('token'));- onMount(async () => {- if (!token) {- error = 'Invalid invitation link';- loading = false;- return;- }+ onMount(async () => {+ if (!token) {+ error = 'Invalid invitation link';+ loading = false;+ return;+ }- try {- const response = await fetch(`/api/invitations/${token}`);+ try {+ const response = await fetch(`/api/invitations/${token}`);- if (!response.ok) {- const data = await response.json();- throw new Error(data.error || 'Invalid or expired invitation');- }+ if (!response.ok) {+ const data = await response.json();+ throw new Error(data.error || 'Invalid or expired invitation');+ }- invitationInfo = await response.json();- } catch (e) {- error = e instanceof Error ? e.message : 'Failed to load invitation';- } finally {- loading = false;- }- });+ invitationInfo = await response.json();+ } catch (e) {+ error = e instanceof Error ? e.message : 'Failed to load invitation';+ } finally {+ loading = false;+ }+ });- async function handleNewUserSubmit() {- if (password !== confirmPassword) {- error = 'Passwords do not match';- return;- }+ async function handleNewUserSubmit() {+ if (password !== confirmPassword) {+ error = 'Passwords do not match';+ return;+ }- if (password.length < 8) {- error = 'Password must be at least 8 characters';- return;- }+ if (password.length < 8) {+ error = 'Password must be at least 8 characters';+ return;+ }- submitting = true;- error = '';+ submitting = true;+ error = '';- try {- const response = await fetch(`/api/invitations/${token}/accept`, {- method: 'POST',- headers: { 'Content-Type': 'application/json' },- body: JSON.stringify({ name, password })- });+ try {+ const response = await fetch(`/api/invitations/${token}/accept`, {+ method: 'POST',+ headers: { 'Content-Type': 'application/json' },+ body: JSON.stringify({ name, password })+ });- if (!response.ok) {- const data = await response.json();- throw new Error(data.error || 'Failed to accept invitation');- }+ if (!response.ok) {+ const data = await response.json();+ throw new Error(data.error || 'Failed to accept invitation');+ }- const data = await response.json();+ const data = await response.json();- authState.setToken(data.token);- authState.setOrganizations(data.organizations || []);- projectsState.setProjects(data.projects);+ authState.setToken(data.token);+ authState.setOrganizations(data.organizations || []);+ projectsState.setProjects(data.projects);- success = true;- setTimeout(() => goto('/'), 1500);- } catch (e) {- error = e instanceof Error ? e.message : 'Failed to accept invitation';- } finally {- submitting = false;- }- }+ success = true;+ setTimeout(() => goto('/'), 1500);+ } catch (e) {+ error = e instanceof Error ? e.message : 'Failed to accept invitation';+ } finally {+ submitting = false;+ }+ }- async function handleExistingUserAccept() {- submitting = true;- error = '';+ async function handleExistingUserAccept() {+ submitting = true;+ error = '';- try {- const response = await fetch(`/api/invitations/${token}/accept-existing`, {- method: 'POST',- headers: {- 'Content-Type': 'application/json',- 'Authorization': `Bearer ${authState.token}`- }- });+ try {+ const response = await fetch(`/api/invitations/${token}/accept-existing`, {+ method: 'POST',+ headers: {+ 'Content-Type': 'application/json',+ Authorization: `Bearer ${authState.token}`+ }+ });- if (!response.ok) {- const data = await response.json();- throw new Error(data.error || 'Failed to accept invitation');- }+ if (!response.ok) {+ const data = await response.json();+ throw new Error(data.error || 'Failed to accept invitation');+ }- const data = await response.json();- projectsState.setProjects(data.projects);- success = true;- setTimeout(() => goto('/'), 1500);- } catch (e) {- error = e instanceof Error ? e.message : 'Failed to accept invitation';- } finally {- submitting = false;- }- }+ const data = await response.json();+ projectsState.setProjects(data.projects);+ success = true;+ setTimeout(() => goto('/'), 1500);+ } catch (e) {+ error = e instanceof Error ? e.message : 'Failed to accept invitation';+ } finally {+ submitting = false;+ }+ }- function handleLoginRedirect() {- const returnTo = encodeURIComponent(`/accept-invitation?token=${token}`);- goto(`/login?returnTo=${returnTo}`);- }+ function handleLoginRedirect() {+ const returnTo = encodeURIComponent(`/accept-invitation?token=${token}`);+ goto(`/login?returnTo=${returnTo}`);+ }- function getRoleLabel(role: string): string {- switch (role) {- case 'admin': return 'Admin';- case 'readonly': return 'Read Only';- default: return 'Member';- }- }+ function getRoleLabel(role: string): string {+ switch (role) {+ case 'admin':+ return 'Admin';+ case 'readonly':+ return 'Read Only';+ default:+ return 'Member';+ }+ }</script><div class="flex min-h-screen w-full items-center justify-center px-4 py-8">- <Card class="w-[400px]">- <CardHeader>- <CardTitle class="text-2xl">- <div class="flex flex-row items-center justify-center gap-2">- {#if themeState.isDark}- <img src="/traceway-logo-white.svg" alt="Traceway Logo" class="h-8 w-auto" />- {:else}- <img src="/traceway-logo.png" alt="Traceway Logo" class="h-8 w-auto" />- {/if}- </div>- </CardTitle>- {#if invitationInfo && !success}- <CardDescription class="text-center">- You've been invited to join <strong>{invitationInfo.organizationName}</strong>- </CardDescription>- {/if}- </CardHeader>- <CardContent>- {#if loading}- <div class="flex items-center justify-center py-8">- <div class="animate-spin rounded-full h-8 w-8 border-b-2 border-primary"></div>- </div>- {:else if success}- <div class="flex flex-col items-center justify-center py-8 gap-4">- <div class="rounded-full bg-green-100 p-3">- <Check class="h-8 w-8 text-green-600" />- </div>- <p class="text-center text-lg font-medium">Welcome to {invitationInfo?.organizationName}!</p>- <p class="text-center text-muted-foreground">Redirecting to dashboard...</p>- </div>- {:else if error && !invitationInfo}- <Alert variant="destructive" class="bg-red-50 border-red-200">- <CircleAlert class="h-4 w-4 text-red-700" />- <AlertTitle class="text-red-800">Error</AlertTitle>- <AlertDescription class="text-red-700">- {error}- </AlertDescription>- </Alert>- <div class="mt-4 text-center">- <Button variant="outline" onclick={() => goto('/login')}>- Go to Login- </Button>- </div>- {:else if invitationInfo}- <div class="space-y-4">- <div class="bg-muted/50 rounded-lg p-4 text-sm">- <p><strong>{invitationInfo.inviterName}</strong> invited you to join as a <strong>{getRoleLabel(invitationInfo.role)}</strong></p>- </div>+ <Card class="w-[400px]">+ <CardHeader>+ <CardTitle class="text-2xl">+ <div class="flex flex-row items-center justify-center gap-2">+ {#if themeState.isDark}+ <img src="/traceway-logo-white.svg" alt="Traceway Logo" class="h-8 w-auto" />+ {:else}+ <img src="/traceway-logo.png" alt="Traceway Logo" class="h-8 w-auto" />+ {/if}+ </div>+ </CardTitle>+ {#if invitationInfo && !success}+ <CardDescription class="text-center">+ You've been invited to join <strong>{invitationInfo.organizationName}</strong>+ </CardDescription>+ {/if}+ </CardHeader>+ <CardContent>+ {#if loading}+ <div class="flex items-center justify-center py-8">+ <div class="h-8 w-8 animate-spin rounded-full border-b-2 border-primary"></div>+ </div>+ {:else if success}+ <div class="flex flex-col items-center justify-center gap-4 py-8">+ <div class="rounded-full bg-green-100 p-3">+ <Check class="h-8 w-8 text-green-600" />+ </div>+ <p class="text-center text-lg font-medium">+ Welcome to {invitationInfo?.organizationName}!+ </p>+ <p class="text-center text-muted-foreground">Redirecting to dashboard...</p>+ </div>+ {:else if error && !invitationInfo}+ <ErrorAlert {error} />+ <div class="mt-4 text-center">+ <Button variant="outline" onclick={() => goto('/login')}>Go to Login</Button>+ </div>+ {:else if invitationInfo}+ <div class="space-y-4">+ <div class="rounded-md bg-muted/50 p-4 text-sm">+ <p>+ <strong>{invitationInfo.inviterName}</strong> invited you to join as a+ <strong>{getRoleLabel(invitationInfo.role)}</strong>+ </p>+ </div>- {#if error}- <Alert variant="destructive" class="bg-red-50 border-red-200">- <CircleAlert class="h-4 w-4 text-red-700" />- <AlertDescription class="text-red-700">- {error}- </AlertDescription>- </Alert>- {/if}+ {#if error}+ <ErrorAlert {error} />+ {/if}- {#if invitationInfo.existsAsUser}- {#if authState.isAuthenticated}- <p class="text-center text-muted-foreground">- Click below to join the organization- </p>- <Button class="w-full" onclick={handleExistingUserAccept} disabled={submitting}>- {#if submitting}- Joining...- {:else}- Accept Invitation- {/if}- </Button>- <div>- <p class="text-sm text-muted-foreground">- To go to the Login page <a href="/login" class="text-primary hover:underline">Click Here</a>- </p>- </div>- {:else}- <p class="text-center text-muted-foreground">- You already have an account. Please log in to accept this invitation.- </p>- <Button class="w-full" onclick={handleLoginRedirect}>- Login to Accept- </Button>- {/if}- {:else}- <form onsubmit={(e) => { e.preventDefault(); handleNewUserSubmit(); }} class="space-y-4">- <div class="space-y-2">- <Label for="email">Email</Label>- <Input id="email" type="email" value={invitationInfo.email} disabled />- </div>- <div class="space-y-2">- <Label for="name">Your Name</Label>- <Input id="name" type="text" bind:value={name} placeholder="Your name" required />- </div>- <div class="space-y-2">- <Label for="password">Password</Label>- <Input id="password" type="password" bind:value={password} placeholder="Min 8 characters" required />- </div>- <div class="space-y-2">- <Label for="confirmPassword">Confirm Password</Label>- <Input id="confirmPassword" type="password" bind:value={confirmPassword} placeholder="Confirm password" required />- </div>- <Button type="submit" class="w-full" disabled={submitting}>- {#if submitting}- Creating account...- {:else}- Create Account & Join- {/if}- </Button>- </form>- {/if}- </div>- {/if}- </CardContent>- </Card>+ {#if invitationInfo.existsAsUser}+ {#if authState.isAuthenticated}+ <p class="text-center text-muted-foreground">Click below to join the organization</p>+ <Button class="w-full" onclick={handleExistingUserAccept} disabled={submitting}>+ {#if submitting}+ Joining...+ {:else}+ Accept Invitation+ {/if}+ </Button>+ <div>+ <p class="text-sm text-muted-foreground">+ To go to the Login page <a href="/login" class="text-primary hover:underline"+ >Click Here</a+ >+ </p>+ </div>+ {:else}+ <p class="text-center text-muted-foreground">+ You already have an account. Please log in to accept this invitation.+ </p>+ <Button class="w-full" onclick={handleLoginRedirect}>Login to Accept</Button>+ {/if}+ {:else}+ <form+ onsubmit={(e) => {+ e.preventDefault();+ handleNewUserSubmit();+ }}+ class="space-y-4"+ >+ <div class="space-y-2">+ <Label for="email">Email</Label>+ <Input id="email" type="email" value={invitationInfo.email} disabled />+ </div>+ <div class="space-y-2">+ <Label for="name">Your Name</Label>+ <Input id="name" type="text" bind:value={name} placeholder="Your name" required />+ </div>+ <div class="space-y-2">+ <Label for="password">Password</Label>+ <Input+ id="password"+ type="password"+ bind:value={password}+ placeholder="Min 8 characters"+ required+ />+ </div>+ <div class="space-y-2">+ <Label for="confirmPassword">Confirm Password</Label>+ <Input+ id="confirmPassword"+ type="password"+ bind:value={confirmPassword}+ placeholder="Confirm password"+ required+ />+ </div>+ <Button type="submit" class="w-full" disabled={submitting}>+ {#if submitting}+ Creating account...+ {:else}+ Create Account & Join+ {/if}+ </Button>+ </form>+ {/if}+ </div>+ {/if}+ </CardContent>+ </Card></div>diff --git a/frontend/src/routes/account/+page.svelte b/frontend/src/routes/account/+page.svelteindex bcdb662e..23c7d28e 100644--- a/frontend/src/routes/account/+page.svelte+++ b/frontend/src/routes/account/+page.svelte@@ -2,9 +2,9 @@import PersonalAccessTokens from './personal-access-tokens.svelte';</script>-<div class="space-y-6">+<div class="space-y-4"><div>- <h1 class="text-2xl font-semibold tracking-tight">Account</h1>+ <h1 class="text-3xl font-semibold tracking-tight">Account</h1></div><PersonalAccessTokens /></div>diff --git a/frontend/src/routes/account/create-token-dialog.svelte b/frontend/src/routes/account/create-token-dialog.svelteindex 10b62ade..e4735e73 100644--- a/frontend/src/routes/account/create-token-dialog.svelte+++ b/frontend/src/routes/account/create-token-dialog.svelte@@ -1,10 +1,12 @@<script lang="ts">+ import * as Alert from '$lib/components/ui/alert';import * as AlertDialog from '$lib/components/ui/alert-dialog';import { Button } from '$lib/components/ui/button';import { Input } from '$lib/components/ui/input';import { Label } from '$lib/components/ui/label';import * as Select from '$lib/components/ui/select';import { Plus, TriangleAlert } from '@lucide/svelte';+ import { ErrorAlert } from '$lib/components/ui/error-alert';import { toast } from 'svelte-sonner';import CopyableInline from '$lib/components/setup/copyable-inline.svelte';import { personalAccessTokensState } from '$lib/state/personal-access-tokens.svelte';@@ -31,7 +33,7 @@const days = parseInt(expiry, 10);const res = await personalAccessTokensState.create(name.trim(), days > 0 ? days : null);createdToken = res.token;- toast.success('Successfully created the token', { position: 'top-center' });+ toast.success('Successfully created the Token', { position: 'top-center' });} catch (e: unknown) {error = e instanceof Error ? e.message : 'Failed to create token';} finally {@@ -60,23 +62,28 @@</AlertDialog.Description></AlertDialog.Header><div class="space-y-3">+ <Alert.Root+ class="border-amber-200 bg-amber-50 text-amber-900 dark:border-amber-800 dark:bg-amber-950/50 dark:text-amber-200"+ >+ <TriangleAlert class="text-amber-600 dark:text-amber-400" />+ <Alert.Description class="text-amber-800 dark:text-amber-300">+ Store it somewhere safe. This is the only time it will be shown.+ </Alert.Description>+ </Alert.Root><CopyableInline value={createdToken} />- <p class="flex items-center gap-2 text-sm text-amber-600">- <TriangleAlert class="h-4 w-4 shrink-0" />- Store it somewhere safe — this is the only time it will be shown.- </p></div><AlertDialog.Footer><Button onclick={() => handleOpenChange(false)}>Done</Button></AlertDialog.Footer>{:else}<AlertDialog.Header>- <AlertDialog.Title>Create personal access token</AlertDialog.Title>+ <AlertDialog.Title>New Token</AlertDialog.Title><AlertDialog.Description>Use this token to authenticate the Traceway CLI or scripts.</AlertDialog.Description></AlertDialog.Header><form onsubmit={(e) => { e.preventDefault(); handleCreate(); }} class="space-y-4">+ <ErrorAlert {error} /><div class="space-y-2"><Label for="token-name">Name</Label><Input id="token-name" bind:value={name} placeholder="e.g. laptop CLI" required />@@ -94,15 +101,12 @@</Select.Content></Select.Root></div>- {#if error}- <p class="text-sm text-destructive">{error}</p>- {/if}</form><AlertDialog.Footer><AlertDialog.Cancel disabled={loading}>Cancel</AlertDialog.Cancel>- <Button onclick={handleCreate} disabled={loading}>+ <Button variant="success" onclick={handleCreate} disabled={loading}><Plus class="mr-2 h-4 w-4" />- {loading ? 'Creating…' : 'Create token'}+ {loading ? 'Creating…' : 'New Token'}</Button></AlertDialog.Footer>{/if}diff --git a/frontend/src/routes/account/personal-access-tokens.svelte b/frontend/src/routes/account/personal-access-tokens.svelteindex b8e54239..7c79eec4 100644--- a/frontend/src/routes/account/personal-access-tokens.svelte+++ b/frontend/src/routes/account/personal-access-tokens.svelte@@ -1,13 +1,13 @@<script lang="ts">import { onMount } from 'svelte';- import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '$lib/components/ui/card';import { Button } from '$lib/components/ui/button';import * as Table from '$lib/components/ui/table';+ import * as Alert from '$lib/components/ui/alert';import * as AlertDialog from '$lib/components/ui/alert-dialog';import { Badge } from '$lib/components/ui/badge';- import TableEmptyState from '$lib/components/ui/table-empty-state/table-empty-state.svelte';+ import { ErrorAlert } from '$lib/components/ui/error-alert';import { LoadingCircle } from '$lib/components/ui/loading-circle';- import { Plus, Trash2 } from '@lucide/svelte';+ import { Plus, Trash2, Info } from '@lucide/svelte';import { toast } from 'svelte-sonner';import {personalAccessTokensState,@@ -18,6 +18,7 @@let showCreate = $state(false);let tokenToRevoke = $state<PersonalAccessToken | null>(null);let revoking = $state(false);+ let revokeError = $state('');onMount(() => personalAccessTokensState.load());@@ -37,104 +38,123 @@async function confirmRevoke() {if (!tokenToRevoke) return;revoking = true;+ revokeError = '';try {await personalAccessTokensState.revoke(tokenToRevoke.id);- toast.success('Successfully revoked the token', { position: 'top-center' });+ toast.success('Successfully revoked the Token', { position: 'top-center' });tokenToRevoke = null;} catch (e: unknown) {- toast.error(e instanceof Error ? e.message : 'Failed to revoke token');+ revokeError = e instanceof Error ? e.message : 'Failed to revoke token';} finally {revoking = false;}}</script>-<Card class="pb-0">- <CardHeader class="flex flex-row items-start justify-between gap-4 space-y-0 pb-4">- <div class="min-w-0 space-y-1.5">- <CardTitle>Personal Access Tokens</CardTitle>- <CardDescription>- Authenticate the Traceway CLI or scripts without a browser. Treat tokens like passwords.- </CardDescription>- </div>- <Button variant="outline" class="shrink-0" onclick={() => (showCreate = true)}>- <Plus class="mr-2 h-4 w-4" />- Create token+<div class="flex items-center justify-between">+ <h2 class="text-xl font-semibold tracking-tight">Personal Access Tokens</h2>+ <Button variant="success" onclick={() => (showCreate = true)}>+ <Plus class="mr-1 h-4 w-4" /> New Token+ </Button>+</div>++<Alert.Root+ class="border-blue-200 bg-blue-50 text-blue-900 dark:border-blue-800 dark:bg-blue-950/50 dark:text-blue-200"+>+ <Info class="text-blue-600 dark:text-blue-400" />+ <Alert.Description class="text-blue-800 dark:text-blue-300">+ Authenticate the Traceway CLI or scripts without a browser. Treat tokens like passwords.+ </Alert.Description>+</Alert.Root>++{#if personalAccessTokensState.loading}+ <div class="flex justify-center py-12"><LoadingCircle size="lg" /></div>+{:else if personalAccessTokensState.tokens.length === 0}+ <div+ class="flex flex-col items-center justify-center rounded-md bg-muted py-20 text-center text-muted-foreground"+ >+ <p class="mb-4">No tokens yet. Create one to get started.</p>+ <Button variant="success" onclick={() => (showCreate = true)}>+ <Plus class="mr-1 h-4 w-4" />+ Create your first Token</Button>- </CardHeader>- <CardContent class="p-0">- {#if personalAccessTokensState.loading}- <div class="flex items-center justify-center py-12">- <LoadingCircle size="lg" />- </div>- {:else}- <Table.Root>- <Table.Header>- <Table.Row class="hover:bg-transparent">- <Table.Head>Name</Table.Head>- <Table.Head>Prefix</Table.Head>- <Table.Head>Created</Table.Head>- <Table.Head>Last used</Table.Head>- <Table.Head>Expires</Table.Head>- <Table.Head class="w-[80px]"></Table.Head>+ </div>+{:else}+ <div class="overflow-hidden rounded-md border">+ <Table.Root>+ <Table.Header>+ <Table.Row class="hover:bg-transparent">+ <Table.Head>Name</Table.Head>+ <Table.Head>Prefix</Table.Head>+ <Table.Head>Created</Table.Head>+ <Table.Head>Last used</Table.Head>+ <Table.Head>Expires</Table.Head>+ <Table.Head class="w-[80px]"></Table.Head>+ </Table.Row>+ </Table.Header>+ <Table.Body>+ {#each personalAccessTokensState.tokens as token (token.id)}+ <Table.Row>+ <Table.Cell class="font-medium">{token.name}</Table.Cell>+ <Table.Cell>+ <code class="rounded bg-muted px-1.5 py-0.5 font-mono text-xs">{token.prefix}…</code>+ </Table.Cell>+ <Table.Cell>{formatDate(token.createdAt)}</Table.Cell>+ <Table.Cell>+ {#if token.lastUsedAt}+ {formatDate(token.lastUsedAt)}+ {:else}+ <Badge variant="outline">Never</Badge>+ {/if}+ </Table.Cell>+ <Table.Cell>+ {#if !token.expiresAt}+ <span class="text-muted-foreground">Never</span>+ {:else if isExpired(token.expiresAt)}+ <Badge variant="outline" class="border-amber-200 bg-amber-50 text-amber-700"+ >Expired</Badge+ >+ {:else}+ {formatDate(token.expiresAt)}+ {/if}+ </Table.Cell>+ <Table.Cell>+ <Button variant="ghost" size="icon" onclick={() => (tokenToRevoke = token)}>+ <Trash2 class="h-4 w-4 text-destructive" />+ </Button>+ </Table.Cell></Table.Row>- </Table.Header>- <Table.Body>- {#if personalAccessTokensState.tokens.length === 0}- <TableEmptyState colspan={6} message="No tokens yet." />- {:else}- {#each personalAccessTokensState.tokens as token (token.id)}- <Table.Row>- <Table.Cell class="font-medium">{token.name}</Table.Cell>- <Table.Cell>- <code class="rounded bg-muted px-1.5 py-0.5 font-mono text-xs">{token.prefix}…</code>- </Table.Cell>- <Table.Cell>{formatDate(token.createdAt)}</Table.Cell>- <Table.Cell>- {#if token.lastUsedAt}- {formatDate(token.lastUsedAt)}- {:else}- <Badge variant="outline">Never</Badge>- {/if}- </Table.Cell>- <Table.Cell>- {#if !token.expiresAt}- <span class="text-muted-foreground">Never</span>- {:else if isExpired(token.expiresAt)}- <Badge variant="outline" class="border-amber-200 bg-amber-50 text-amber-700">Expired</Badge>- {:else}- {formatDate(token.expiresAt)}- {/if}- </Table.Cell>- <Table.Cell>- <Button variant="ghost" size="icon" onclick={() => (tokenToRevoke = token)}>- <Trash2 class="h-4 w-4 text-destructive" />- </Button>- </Table.Cell>- </Table.Row>- {/each}- {/if}- </Table.Body>- </Table.Root>- {/if}- </CardContent>-</Card>+ {/each}+ </Table.Body>+ </Table.Root>+ </div>+{/if}<CreateTokenDialog bind:open={showCreate} />-<AlertDialog.Root open={tokenToRevoke !== null} onOpenChange={(open) => { if (!open) tokenToRevoke = null; }}>+<AlertDialog.Root+ open={tokenToRevoke !== null}+ onOpenChange={(open) => {+ if (!open) {+ tokenToRevoke = null;+ revokeError = '';+ }+ }}+><AlertDialog.Content><AlertDialog.Header>- <AlertDialog.Title>Revoke token</AlertDialog.Title>+ <AlertDialog.Title>Revoke Token</AlertDialog.Title><AlertDialog.Description>- This permanently revokes {tokenToRevoke?.name ? `"${tokenToRevoke.name}"` : 'this token'}. Any- CLI or script using it will stop working immediately.+ This permanently revokes {tokenToRevoke?.name ? `"${tokenToRevoke.name}"` : 'this token'}.+ Any CLI or script using it will stop working immediately.</AlertDialog.Description></AlertDialog.Header>+ <ErrorAlert error={revokeError} /><AlertDialog.Footer><AlertDialog.Cancel disabled={revoking}>Cancel</AlertDialog.Cancel><Button variant="destructive" onclick={confirmRevoke} disabled={revoking}>- {revoking ? 'Revoking…' : 'Revoke token'}+ <Trash2 class="mr-2 h-4 w-4" />+ {revoking ? 'Revoking…' : 'Revoke Token'}</Button></AlertDialog.Footer></AlertDialog.Content>diff --git a/frontend/src/routes/ai-traces/[traceName]/[traceId]/+page.svelte b/frontend/src/routes/ai-traces/[traceName]/[traceId]/+page.svelteindex 6cb92844..6544474d 100644--- a/frontend/src/routes/ai-traces/[traceName]/[traceId]/+page.svelte+++ b/frontend/src/routes/ai-traces/[traceName]/[traceId]/+page.svelte@@ -91,7 +91,7 @@const messages: ChatMessage[] = [];- // Extract input messages — could be {messages: [...]} or just [...]+ // Extract input messages - could be {messages: [...]} or just [...]const inputMessages =inputParsed?.messages ?? (Array.isArray(inputParsed) ? inputParsed : null);if (!Array.isArray(inputMessages)) return null;@@ -383,7 +383,7 @@{/each}{#if getMessageText(msg.content)}<div- class="rounded-lg px-3 py-2 text-sm break-words whitespace-pre-wrap+ class="rounded-md px-3 py-2 text-sm break-words whitespace-pre-wrap{msg.role === 'user'? 'bg-primary/10': msg.role === 'system'diff --git a/frontend/src/routes/auth/callback/+page.svelte b/frontend/src/routes/auth/callback/+page.svelteindex dd575e76..2a3813c3 100644--- a/frontend/src/routes/auth/callback/+page.svelte+++ b/frontend/src/routes/auth/callback/+page.svelte@@ -5,6 +5,7 @@import { projectsState } from '$lib/state/projects.svelte';import { consumeSsoReturnTo, safeLocalPath } from '$lib/utils/navigation';import { Alert, AlertDescription, AlertTitle } from "$lib/components/ui/alert";+ import { ErrorAlert } from "$lib/components/ui/error-alert";import { CircleAlert } from "@lucide/svelte";import { LoadingCircle } from '$lib/components/ui/loading-circle';@@ -53,11 +54,7 @@<div class="flex h-screen w-full items-center justify-center px-4">{#if error}- <Alert variant="destructive" class="max-w-md bg-red-50 border-red-200">- <CircleAlert class="h-4 w-4 text-red-700" />- <AlertTitle class="text-red-800">Error</AlertTitle>- <AlertDescription class="text-red-700">{error}</AlertDescription>- </Alert>+ <ErrorAlert {error} class="max-w-md" />{:else}<LoadingCircle size="xlg" />{/if}diff --git a/frontend/src/routes/connection/+page.svelte b/frontend/src/routes/connection/+page.svelteindex f40cb4ff..90cc53ef 100644--- a/frontend/src/routes/connection/+page.svelte+++ b/frontend/src/routes/connection/+page.svelte@@ -171,7 +171,7 @@ service:<div class="space-y-4"><div>- <h2 class="text-2xl font-bold tracking-tight">Connection</h2>+ <h2 class="text-3xl font-semibold tracking-tight">Connection</h2><p class="text-muted-foreground">Connect your application to Traceway using the SDK</p></div>@@ -214,7 +214,7 @@ service:<CardContent><div class="space-y-6"><div>- <p class="mb-2 text-sm font-medium">Step 1 — OTLP Traces Endpoint</p>+ <p class="mb-2 text-sm font-medium">Step 1: OTLP Traces Endpoint</p><p class="mb-2 text-xs text-muted-foreground">Enter this URL when creating your OTLP destination in the Cloudflare dashboard.</p>@@ -232,7 +232,7 @@ service:</div></div><div>- <p class="mb-2 text-sm font-medium">Step 2 — Authorization Header</p>+ <p class="mb-2 text-sm font-medium">Step 2: Authorization Header</p><p class="mb-2 text-xs text-muted-foreground">Add this as an authorization header in your OTLP destination settings.</p>@@ -250,7 +250,7 @@ service:</div></div><div>- <p class="mb-2 text-sm font-medium">Step 3 — wrangler.jsonc</p>+ <p class="mb-2 text-sm font-medium">Step 3: wrangler.jsonc</p><p class="mb-2 text-xs text-muted-foreground">Enable observability traces in your wrangler.jsonc configuration file.</p>@@ -267,7 +267,7 @@ service:</Button></div><div- class="overflow-x-auto rounded-lg text-sm {themeState.isDark+ class="overflow-x-auto rounded-md text-sm {themeState.isDark? 'dark-code': 'light-code'}">@@ -276,7 +276,7 @@ service:</div></div><div>- <p class="mb-2 text-sm font-medium">Step 4 — Deploy</p>+ <p class="mb-2 text-sm font-medium">Step 4: Deploy</p><div class="flex items-center gap-2"><code class="flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all">npx wrangler deploy</code@@ -318,7 +318,7 @@ service:</Button></div><div- class="overflow-x-auto rounded-lg text-sm {themeState.isDark+ class="overflow-x-auto rounded-md text-sm {themeState.isDark? 'dark-code': 'light-code'}">@@ -347,7 +347,7 @@ service:</Button></div><div- class="overflow-x-auto rounded-lg text-sm {themeState.isDark+ class="overflow-x-auto rounded-md text-sm {themeState.isDark? 'dark-code': 'light-code'}">diff --git a/frontend/src/routes/device/+page.svelte b/frontend/src/routes/device/+page.svelteindex 1f496012..139f4bac 100644--- a/frontend/src/routes/device/+page.svelte+++ b/frontend/src/routes/device/+page.svelte@@ -7,6 +7,7 @@import { Label } from '$lib/components/ui/label';import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '$lib/components/ui/card';import { Alert, AlertDescription, AlertTitle } from '$lib/components/ui/alert';+ import { ErrorAlert } from '$lib/components/ui/error-alert';import { CircleAlert, Check, ShieldCheck } from '@lucide/svelte';import { authState } from '$lib/state/auth.svelte';import { themeState } from '$lib/state/theme.svelte';@@ -213,18 +214,18 @@<AlertDescription>The device login was denied. You can close this page.</AlertDescription></Alert>{:else if status === 'notFound'}- <Alert variant="destructive" class="border-red-200 bg-red-50">- <CircleAlert class="h-4 w-4 text-red-700" />- <AlertTitle class="text-red-800">Code not found</AlertTitle>- <AlertDescription class="text-red-700">+ <Alert variant="destructive">+ <CircleAlert class="h-4 w-4" />+ <AlertTitle>Code not found</AlertTitle>+ <AlertDescription>We couldn't find that code. Start a new login from your terminal.</AlertDescription></Alert>{:else if status === 'expired'}- <Alert variant="destructive" class="border-red-200 bg-red-50">- <CircleAlert class="h-4 w-4 text-red-700" />- <AlertTitle class="text-red-800">Code expired</AlertTitle>- <AlertDescription class="text-red-700">+ <Alert variant="destructive">+ <CircleAlert class="h-4 w-4" />+ <AlertTitle>Code expired</AlertTitle>+ <AlertDescription>This login request has expired. Start a new login from your terminal.</AlertDescription></Alert>@@ -235,11 +236,7 @@<AlertDescription>This login request was already approved or denied.</AlertDescription></Alert>{:else}- <Alert variant="destructive" class="border-red-200 bg-red-50">- <CircleAlert class="h-4 w-4 text-red-700" />- <AlertTitle class="text-red-800">Something went wrong</AlertTitle>- <AlertDescription class="text-red-700">{error || 'Please try again.'}</AlertDescription>- </Alert>+ <ErrorAlert title="Something went wrong" error={error || 'Please try again.'} />{/if}</CardContent></Card>diff --git a/frontend/src/routes/endpoints/+page.svelte b/frontend/src/routes/endpoints/+page.svelteindex 6f2dc9b9..e14492d3 100644--- a/frontend/src/routes/endpoints/+page.svelte+++ b/frontend/src/routes/endpoints/+page.svelte@@ -18,6 +18,7 @@import { SearchBar } from "$lib/components/ui/search-bar";import { RootFilter } from "$lib/components/ui/root-filter";import { NonRootChip } from "$lib/components/ui/non-root-chip";+ import EndpointName from "$lib/components/endpoint-name.svelte";import { browser } from '$app/environment';import { CalendarDate } from "@internationalized/date";import { projectsState } from '$lib/state/projects.svelte';@@ -564,7 +565,7 @@><Table.Cell class="font-mono text-sm max-w-[50%] break-all whitespace-normal"><span class="inline-flex items-center gap-2">- {endpoint.endpoint}+ <span><EndpointName endpoint={endpoint.endpoint} /></span>{#if endpoint.isStream}<Badge variant="outline" class="font-sans text-xs" title="Streaming response (SSE / WebSocket / long-poll). Excluded from latency, Apdex, and impact scoring.">Stream</Badge>{/if}diff --git a/frontend/src/routes/endpoints/[endpoint]/+page.svelte b/frontend/src/routes/endpoints/[endpoint]/+page.svelteindex 982c3791..2ea8a560 100644--- a/frontend/src/routes/endpoints/[endpoint]/+page.svelte+++ b/frontend/src/routes/endpoints/[endpoint]/+page.svelte@@ -15,7 +15,7 @@import { Button } from '$lib/components/ui/button';import { LoadingCircle } from '$lib/components/ui/loading-circle';import { TimeRangePicker } from '$lib/components/ui/time-range-picker';- import { ArrowLeft, Snail } from '@lucide/svelte';+ import { ArrowLeft, Check, Snail } from '@lucide/svelte';import { TracewayTableHeader } from '$lib/components/ui/traceway-table-header';import { TableEmptyState } from '$lib/components/ui/table-empty-state';import { CalendarDate } from '@internationalized/date';@@ -305,7 +305,7 @@offsetMs = Math.max(0, value);reason = reasonInput;showSlowDialog = false;- toast.success('Expected performance updated');+ toast.success('Successfully updated the Expected Performance', { position: 'top-center' });} catch (e: any) {toast.error(e.message || 'Failed to save');} finally {@@ -373,7 +373,7 @@<Badge variant="outline" class="font-sans">Stream</Badge></Tooltip.Trigger><Tooltip.Content side="bottom" class="max-w-xs">- Streaming endpoint — latency metrics aren't tracked.+ Streaming endpoint. Latency metrics aren't tracked.</Tooltip.Content></Tooltip.Root>{/if}@@ -392,7 +392,7 @@<div class="flex items-start gap-2">{#if !stats?.isStream}- <Button variant="outline" size="sm" onclick={() => { offsetInput = offsetMs > 0 ? String(offsetMs) : ''; reasonInput = reason; showSlowDialog = true; }}>+ <Button variant="outline" onclick={() => { offsetInput = offsetMs > 0 ? String(offsetMs) : ''; reasonInput = reason; showSlowDialog = true; }}><Snail class="h-4 w-4" />{offsetMs > 0 ? `+${offsetMs}ms offset` : 'Expected Performance'}</Button>@@ -618,7 +618,8 @@<AlertDialog.Footer><Button variant="outline" onclick={() => showSlowDialog = false} disabled={slowLoading}>Cancel</Button><Button onclick={saveSlowEndpoint} disabled={slowLoading}>- {slowLoading ? 'Saving...' : 'Save'}+ <Check class="mr-2 h-4 w-4" />+ {slowLoading ? 'Updating...' : 'Update Expected Performance'}</Button></AlertDialog.Footer></AlertDialog.Content>diff --git a/frontend/src/routes/finish-setup/+page.svelte b/frontend/src/routes/finish-setup/+page.svelteindex 506b0f9e..31d7e9d1 100644--- a/frontend/src/routes/finish-setup/+page.svelte+++ b/frontend/src/routes/finish-setup/+page.svelte@@ -6,6 +6,7 @@import { Label } from "$lib/components/ui/label";import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "$lib/components/ui/card";import { Alert, AlertDescription, AlertTitle } from "$lib/components/ui/alert";+ import { ErrorAlert } from "$lib/components/ui/error-alert";import * as Select from "$lib/components/ui/select";import { CircleAlert, Check } from "@lucide/svelte";import { authState } from '$lib/state/auth.svelte';@@ -80,11 +81,7 @@</CardHeader><CardContent>{#if error}- <Alert variant="destructive" class="mb-4 bg-red-50 border-red-200">- <CircleAlert class="h-4 w-4 text-red-700" />- <AlertTitle class="text-red-800">Error</AlertTitle>- <AlertDescription class="text-red-700">{error}</AlertDescription>- </Alert>+ <ErrorAlert {error} class="mb-4" />{/if}<form onsubmit={(e) => { e.preventDefault(); handleSubmit(); }} class="grid w-full items-center gap-4"><div class="flex flex-col space-y-1.5">diff --git a/frontend/src/routes/forgot-password/+page.svelte b/frontend/src/routes/forgot-password/+page.svelteindex 3ceca50f..123fcdd0 100644--- a/frontend/src/routes/forgot-password/+page.svelte+++ b/frontend/src/routes/forgot-password/+page.svelte@@ -4,6 +4,7 @@import { Label } from "$lib/components/ui/label";import { Card, CardContent, CardFooter, CardHeader, CardTitle } from "$lib/components/ui/card";import { Alert, AlertDescription, AlertTitle } from "$lib/components/ui/alert";+ import { ErrorAlert } from "$lib/components/ui/error-alert";import { CircleAlert, CircleCheck } from "@lucide/svelte";import { themeState } from '$lib/state/theme.svelte';@@ -63,13 +64,7 @@</Alert>{:else}{#if error}- <Alert variant="destructive" class="mb-4 bg-red-50 border-red-200">- <CircleAlert class="h-4 w-4 text-red-700" />- <AlertTitle class="text-red-800">Error</AlertTitle>- <AlertDescription class="text-red-700">- {error}- </AlertDescription>- </Alert>+ <ErrorAlert {error} class="mb-4" />{/if}<p class="text-sm text-muted-foreground mb-4">Enter your email address and we'll send you a link to reset your password.diff --git a/frontend/src/routes/issues/+page.svelte b/frontend/src/routes/issues/+page.svelteindex c55bd187..e0a03b2c 100644--- a/frontend/src/routes/issues/+page.svelte+++ b/frontend/src/routes/issues/+page.svelte@@ -320,7 +320,7 @@<div class="space-y-4"><!-- Row 1: Title + TimeRangePicker --><div class="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">- <h2 class="text-2xl font-bold tracking-tight">Issues</h2>+ <h2 class="text-3xl font-semibold tracking-tight">Issues</h2><div class="w-full sm:w-auto"><TimeRangePickerbind:fromDate@@ -346,7 +346,7 @@<!-- Archive Toolbar - shown when items selected -->{#if selectedCount > 0}<div- class="flex animate-in items-center gap-3 rounded-lg border bg-muted/50 p-3 duration-200 fade-in slide-in-from-top-1"+ class="flex animate-in items-center gap-3 rounded-md border bg-muted/50 p-3 duration-200 fade-in slide-in-from-top-1"><span class="text-sm font-medium">{selectedCount} issue{selectedCount === 1 ? '' : 's'} selected</span@@ -444,9 +444,12 @@aria-label="Select row"/></Table.Cell>+ {@const firstLine = exception.stackTrace.split('\n')[0]}+ {@const colonIndex = firstLine.indexOf(':')}+ {@const errorType = colonIndex > 0 ? firstLine.slice(0, colonIndex) : firstLine}+ {@const errorMessage = colonIndex > 0 ? firstLine.slice(colonIndex + 1).trim() : ''}<Table.Cell- class="max-w-[400px] truncate font-mono text-sm"- title={exception.stackTrace}+ class="max-w-[520px] py-3"onclick={createRowClickHandler(`/issues/${exception.exceptionHash}`,'preset',@@ -454,7 +457,16 @@'to')}>- <span class="text-foreground">{exception.stackTrace.split('\n')[0]}</span>+ <div class="min-w-0">+ <div+ class="truncate text-[15px]/6 font-semibold text-foreground group-hover:text-primary dark:group-hover:text-blue-300"+ >+ {errorType}+ </div>+ {#if errorMessage}+ <div class="truncate text-sm text-muted-foreground">{errorMessage}</div>+ {/if}+ </div></Table.Cell><Table.Cellonclick={createRowClickHandler(@@ -467,7 +479,7 @@<IssueTrendChart trend={exception.hourlyTrend || []} /></Table.Cell><Table.Cell- class="text-right font-medium tabular-nums"+ class="text-right text-[15px] font-semibold tabular-nums"onclick={createRowClickHandler(`/issues/${exception.exceptionHash}`,'preset',@@ -478,7 +490,7 @@{exception.count.toLocaleString()}</Table.Cell><Table.Cell- class="text-muted-foreground"+ class="text-muted-foreground tabular-nums"onclick={createRowClickHandler(`/issues/${exception.exceptionHash}`,'preset',diff --git a/frontend/src/routes/layout.css b/frontend/src/routes/layout.cssindex 38939001..998fb5a0 100644--- a/frontend/src/routes/layout.css+++ b/frontend/src/routes/layout.css@@ -1,194 +1,184 @@-@import "tailwindcss";-@source "$BILLING_PATH";+@import 'tailwindcss';+@source '$BILLING_PATH';-@import "tw-animate-css";+@import 'tw-animate-css';-@import "@fontsource/jetbrains-mono/400.css";-@import "@fontsource/jetbrains-mono/500.css";-@import "@fontsource/jetbrains-mono/600.css";-@import "@fontsource/jetbrains-mono/700.css";-@import "@fontsource/ibm-plex-mono/400.css";-@import "@fontsource/ibm-plex-mono/500.css";-@import "@fontsource/ibm-plex-mono/600.css";+@import '@fontsource-variable/inter';+@import '@fontsource/jetbrains-mono/400.css';+@import '@fontsource/jetbrains-mono/500.css';+@import '@fontsource/jetbrains-mono/600.css';+@import '@fontsource/jetbrains-mono/700.css';@custom-variant dark (&:is(.dark *));/* =============================================================- :root — light mode shadcn tokens + Traceway palette (shared).+ :root — light mode tokens.Dark mode overrides are in the `.dark` block below.============================================================= */:root {- /* Traceway palette (same hex values in both modes — these are the- raw brand tokens that utility classes + custom components reach for). */- --ink-0: #05070c;- --ink-1: #0a0d14;- --ink-2: #0f131c;- --ink-3: #151a24;- --ink-4: #1d2430;- --ink-5: #283041;- --fg-0: #f4f6fb;- --fg-1: #c9d0dd;- --fg-2: #8a93a6;- --fg-3: #5a6374;- --a1: #7c5cff;- --a2: #00d4ff;- --a3: #ff4d8d;- --a4: #ffd166;- --ok: #22e0a8;- --crit: #ff5a5f;- --hair: rgba(0, 0, 0, 0.08);- --hair-2: rgba(0, 0, 0, 0.14);-- /* Fonts */- --font-display: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;- --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, monospace;- --f-display: var(--font-display);- --f-mono: var(--font-mono);- --f-body: var(--font-mono);-- /* Radius + layout */- --radius: 0.625rem;- --radius-lg: 10px;- --max: 1240px;-- /* Shadcn tokens — LIGHT MODE defaults (original oklch values). */- --background: oklch(1 0 0);- --foreground: oklch(0.129 0.042 264.695);- --card: oklch(1 0 0);- --card-foreground: oklch(0.129 0.042 264.695);- --popover: oklch(1 0 0);- --popover-foreground: oklch(0.129 0.042 264.695);- --primary: oklch(0.208 0.042 265.755);- --primary-foreground: oklch(0.984 0.003 247.858);- --secondary: oklch(0.968 0.007 247.896);- --secondary-foreground: oklch(0.208 0.042 265.755);- --muted: oklch(0.968 0.007 247.896);- --muted-foreground: oklch(0.554 0.046 257.417);- --accent: oklch(0.968 0.007 247.896);- --accent-foreground: oklch(0.208 0.042 265.755);- --destructive: oklch(0.577 0.245 27.325);- --border: oklch(0.929 0.013 255.508);- --input: oklch(0.929 0.013 255.508);- --ring: oklch(0.704 0.04 256.788);- --chart-1: oklch(0.7 0.15 250);- --chart-2: oklch(0.6 0.118 184.704);- --chart-3: oklch(0.398 0.07 227.392);- --chart-4: oklch(0.828 0.189 84.429);- --chart-5: oklch(0.769 0.188 70.08);- --trend-bar: oklch(0.7 0.15 250);- --sidebar: oklch(0.984 0.003 247.858);- --sidebar-foreground: oklch(0.129 0.042 264.695);- --sidebar-primary: oklch(0.208 0.042 265.755);- --sidebar-primary-foreground: oklch(0.984 0.003 247.858);- --sidebar-accent: oklch(0.7 0.15 250);- --sidebar-accent-foreground: oklch(0.98 0 0);- --sidebar-border: oklch(0.929 0.013 255.508);- --sidebar-ring: oklch(0.704 0.04 256.788);+ /* Dark surface scale, consumed by the .dark alias block */+ --ink-0: #0b0d16;+ --ink-1: #0f1220;+ --ink-2: #151a2c;+ --ink-3: #1b2138;+ --ink-4: #252c47;+ --ink-5: #313a5b;+ --fg-0: #f4f6fc;+ --fg-1: #cbd2e4;+ --fg-2: #929bb4;+ --fg-3: #5f6780;++ /* Accent family — shared by both modes */+ --blue: oklch(0.623 0.214 259.815);+ --blue-bright: oklch(0.707 0.165 254.624);+ --blue-deep: oklch(0.546 0.245 262.881);+ --violet: oklch(0.606 0.25 292.717);+ --violet-bright: oklch(0.702 0.183 293.541);+ --cyan: oklch(0.715 0.143 215.221);+ --cyan-bright: oklch(0.789 0.154 211.53);+ --amber: oklch(0.769 0.188 70.08);+ --amber-bright: oklch(0.828 0.189 84.429);+ --pink: oklch(0.656 0.241 354.308);+ --pink-bright: oklch(0.718 0.202 349.761);+ --emerald: oklch(0.696 0.17 162.48);+ --emerald-bright: oklch(0.765 0.177 163.223);+ --ok: #22c08a;+ --crit: #f43f5e;++ /* Fonts */+ --font-body: 'Inter Variable', ui-sans-serif, system-ui, sans-serif;+ --font-code: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;++ /* Radius + layout */+ --radius: 0.75rem;++ --background: oklch(1 0 0);+ --foreground: oklch(0.185 0.032 275);+ --card: oklch(1 0 0);+ --card-foreground: oklch(0.185 0.032 275);+ --popover: oklch(1 0 0);+ --popover-foreground: oklch(0.185 0.032 275);+ --primary: var(--blue-deep);+ --primary-foreground: oklch(0.985 0.003 255);+ --secondary: oklch(0.948 0.01 260);+ --secondary-foreground: oklch(0.3 0.05 262);+ --muted: oklch(0.955 0.007 275);+ --muted-foreground: oklch(0.492 0.028 276);+ --accent: oklch(0.936 0.024 258);+ --accent-foreground: oklch(0.42 0.16 260);+ --destructive: oklch(0.577 0.245 27.325);+ --border: oklch(0.185 0.032 275 / 10%);+ --input: oklch(0.185 0.032 275 / 16%);+ --ring: oklch(0.623 0.214 259.815);+ --chart-1: var(--blue);+ --chart-2: var(--amber);+ --chart-3: var(--cyan);+ --chart-4: var(--pink);+ --chart-5: var(--emerald);+ --trend-bar: var(--blue);+ --sidebar: oklch(0.973 0.005 270);+ --sidebar-foreground: oklch(0.32 0.032 275);+ --sidebar-primary: var(--blue-deep);+ --sidebar-primary-foreground: oklch(0.985 0.003 255);+ --sidebar-accent: oklch(0.7 0.15 250);+ --sidebar-accent-foreground: oklch(0.98 0 0);+ --sidebar-border: oklch(0.185 0.032 275 / 8%);+ --sidebar-ring: oklch(0.623 0.214 259.815 / 60%);}/* =============================================================- .dark — Traceway-aliased shadcn tokens + translucent-white hair+ .dark — ink surfaces with vivid accents============================================================= */.dark {- --hair: rgba(255, 255, 255, 0.06);- --hair-2: rgba(255, 255, 255, 0.10);-- --background: var(--ink-0);- --foreground: var(--fg-0);- --card: var(--ink-3);- --card-foreground: var(--fg-0);- --popover: var(--ink-3);- --popover-foreground: var(--fg-0);- --primary: var(--fg-0);- --primary-foreground: var(--ink-0);- --secondary: var(--ink-3);- --secondary-foreground: var(--fg-0);- --muted: var(--ink-2);- --muted-foreground: var(--fg-2);- --accent: var(--ink-5);- --accent-foreground: var(--fg-0);- --destructive: var(--crit);- --border: var(--hair);- --input: var(--hair-2);- --ring: color-mix(in oklab, var(--a1) 70%, transparent);- --chart-1: var(--a1);- --chart-2: var(--a2);- --chart-3: var(--a3);- --chart-4: var(--a4);- --chart-5: var(--ok);- --trend-bar: oklch(0.7 0.15 250);- --sidebar: var(--ink-2);- --sidebar-foreground: var(--fg-1);- --sidebar-primary: var(--a1);- --sidebar-primary-foreground: var(--fg-0);- --sidebar-accent: var(--ink-3);- --sidebar-accent-foreground: var(--fg-0);- --sidebar-border: var(--hair);- --sidebar-ring: color-mix(in oklab, var(--a1) 70%, transparent);+ --background: var(--ink-0);+ --foreground: var(--fg-0);+ --card: var(--ink-2);+ --card-foreground: var(--fg-0);+ --popover: var(--ink-3);+ --popover-foreground: var(--fg-0);+ --primary: var(--blue-bright);+ --primary-foreground: oklch(0.18 0.05 258);+ --secondary: var(--ink-3);+ --secondary-foreground: var(--fg-0);+ --muted: var(--ink-3);+ --muted-foreground: var(--fg-2);+ --accent: var(--ink-4);+ --accent-foreground: var(--fg-0);+ --destructive: var(--crit);+ --border: oklch(1 0 0 / 8%);+ --input: oklch(1 0 0 / 12%);+ --ring: oklch(0.707 0.165 254.624 / 70%);+ --chart-1: var(--blue-bright);+ --chart-2: var(--amber-bright);+ --chart-3: var(--cyan-bright);+ --chart-4: var(--pink-bright);+ --chart-5: var(--emerald-bright);+ --trend-bar: var(--blue-bright);+ --sidebar: var(--ink-1);+ --sidebar-foreground: var(--fg-1);+ --sidebar-primary: var(--blue-bright);+ --sidebar-primary-foreground: var(--fg-0);+ --sidebar-accent: oklch(0.707 0.165 254.624 / 15%);+ --sidebar-accent-foreground: oklch(0.882 0.059 254.128);+ --sidebar-border: oklch(1 0 0 / 6%);+ --sidebar-ring: oklch(0.707 0.165 254.624 / 70%);}@theme inline {- --radius-sm: calc(var(--radius) - 6px);- --radius-md: calc(var(--radius) - 2px);- --radius-lg: var(--radius);- --radius-xl: calc(var(--radius) + 4px);- --color-background: var(--background);- --color-foreground: var(--foreground);- --color-card: var(--card);- --color-card-foreground: var(--card-foreground);- --color-popover: var(--popover);- --color-popover-foreground: var(--popover-foreground);- --color-primary: var(--primary);- --color-primary-foreground: var(--primary-foreground);- --color-secondary: var(--secondary);- --color-secondary-foreground: var(--secondary-foreground);- --color-muted: var(--muted);- --color-muted-foreground: var(--muted-foreground);- --color-accent: var(--accent);- --color-accent-foreground: var(--accent-foreground);- --color-destructive: var(--destructive);- --color-border: var(--border);- --color-input: var(--input);- --color-ring: var(--ring);- --color-chart-1: var(--chart-1);- --color-chart-2: var(--chart-2);- --color-chart-3: var(--chart-3);- --color-chart-4: var(--chart-4);- --color-chart-5: var(--chart-5);- --color-sidebar: var(--sidebar);- --color-sidebar-foreground: var(--sidebar-foreground);- --color-sidebar-primary: var(--sidebar-primary);- --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);- --color-sidebar-accent: var(--sidebar-accent);- --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);- --color-sidebar-border: var(--sidebar-border);- --color-sidebar-ring: var(--sidebar-ring);-- /* Traceway palette as Tailwind colors (always available in both modes) */- --color-ink-0: var(--ink-0);- --color-ink-1: var(--ink-1);- --color-ink-2: var(--ink-2);- --color-ink-3: var(--ink-3);- --color-ink-4: var(--ink-4);- --color-ink-5: var(--ink-5);- --color-fg-0: var(--fg-0);- --color-fg-1: var(--fg-1);- --color-fg-2: var(--fg-2);- --color-fg-3: var(--fg-3);- --color-a1: var(--a1);- --color-a2: var(--a2);- --color-a3: var(--a3);- --color-a4: var(--a4);- --color-ok: var(--ok);- --color-crit: var(--crit);- --color-hair: var(--hair);- --color-hair-2: var(--hair-2);-- --font-sans: var(--font-display);- --font-display: var(--font-display);- --font-mono: var(--font-mono);+ --radius-sm: calc(var(--radius) - 6px);+ --radius-md: calc(var(--radius) - 4px);+ --radius-lg: var(--radius);+ --radius-xl: calc(var(--radius) + 4px);+ --color-background: var(--background);+ --color-foreground: var(--foreground);+ --color-card: var(--card);+ --color-card-foreground: var(--card-foreground);+ --color-popover: var(--popover);+ --color-popover-foreground: var(--popover-foreground);+ --color-primary: var(--primary);+ --color-primary-foreground: var(--primary-foreground);+ --color-secondary: var(--secondary);+ --color-secondary-foreground: var(--secondary-foreground);+ --color-muted: var(--muted);+ --color-muted-foreground: var(--muted-foreground);+ --color-accent: var(--accent);+ --color-accent-foreground: var(--accent-foreground);+ --color-destructive: var(--destructive);+ --color-border: var(--border);+ --color-input: var(--input);+ --color-ring: var(--ring);+ --color-chart-1: var(--chart-1);+ --color-chart-2: var(--chart-2);+ --color-chart-3: var(--chart-3);+ --color-chart-4: var(--chart-4);+ --color-chart-5: var(--chart-5);+ --color-sidebar: var(--sidebar);+ --color-sidebar-foreground: var(--sidebar-foreground);+ --color-sidebar-primary: var(--sidebar-primary);+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);+ --color-sidebar-accent: var(--sidebar-accent);+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);+ --color-sidebar-border: var(--sidebar-border);+ --color-sidebar-ring: var(--sidebar-ring);++ --color-ink-0: var(--ink-0);+ --color-ink-1: var(--ink-1);+ --color-ink-2: var(--ink-2);+ --color-ink-3: var(--ink-3);+ --color-ink-4: var(--ink-4);+ --color-ink-5: var(--ink-5);+ --color-fg-0: var(--fg-0);+ --color-fg-1: var(--fg-1);+ --color-fg-2: var(--fg-2);+ --color-fg-3: var(--fg-3);+ --color-ok: var(--ok);+ --color-crit: var(--crit);++ --font-sans: var(--font-body);+ --font-display: var(--font-body);+ --font-mono: var(--font-code);}/* =============================================================@@ -196,196 +186,114 @@============================================================= */@layer base {- * {- @apply border-border outline-ring/50;- }-- html {- font-family: var(--font-mono);- }-- body {- font-family: var(--font-mono);- font-feature-settings: "ss01", "cv11";- -webkit-font-smoothing: antialiased;- @apply bg-background text-foreground;- }-- /* Traceway dark-mode signature: radial glow + ss01/cv11 feature set */- html.dark {- background: var(--ink-0);- }- html.dark body {- color: var(--fg-1);- background:- radial-gradient(1200px 700px at 85% -10%, color-mix(in oklab, var(--a1) 18%, transparent), transparent 60%),- radial-gradient(900px 600px at -10% 20%, color-mix(in oklab, var(--a2) 10%, transparent), transparent 60%),- var(--ink-0);- }-- h1, h2, h3, h4, h5, h6 {- font-family: var(--font-display);- letter-spacing: -0.01em;- }-- html.dark h1,- html.dark h2,- html.dark h3,- html.dark h4,- html.dark h5,- html.dark h6 {- color: var(--fg-0);- }-- /* Tri-color gradient em only in dark mode — the light-bg version would- be illegible. In light mode em keeps the accent color instead. */- html.dark h1 em,- html.dark h2 em {- font-style: normal;- font-weight: inherit;- background: linear-gradient(90deg, var(--a2), var(--a1) 60%, var(--a3));- -webkit-background-clip: text;- background-clip: text;- color: transparent;- }- h1 em, h2 em {- font-style: normal;- font-weight: inherit;- color: var(--a1);- }+ * {+ @apply border-border outline-ring/50;+ }++ html {+ font-family: var(--font-body);+ }++ body {+ font-family: var(--font-body);+ font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11', 'ss01', 'ss03';+ -webkit-font-smoothing: antialiased;+ @apply bg-background text-foreground;+ }++ html.dark {+ background: var(--ink-0);+ }+ html.dark body {+ background:+ radial-gradient(1100px 600px at 88% -12%, oklch(0.623 0.214 259.815 / 10%), transparent 60%),+ radial-gradient(800px 500px at -8% 15%, oklch(0.715 0.143 215.221 / 5%), transparent 60%),+ var(--ink-0);+ }++ html.dark h1,+ html.dark h2,+ html.dark h3,+ html.dark h4,+ html.dark h5,+ html.dark h6 {+ color: var(--fg-0);+ }}/* =============================================================- Utility components — ported from website design guidelines.- These assume a dark surface; on light mode they still read but- lose the design-system context. Use them inside dark panels.+ Sonner toast overrides============================================================= */-@layer components {- .eyebrow {- font-family: var(--font-mono);- font-size: 11px;- letter-spacing: 0.14em;- text-transform: uppercase;- color: var(--a2);- font-weight: 500;- display: inline-block;- }- .eyebrow::before {- content: "// ";- opacity: 0.5;- }-- .muted-text { color: var(--fg-2); }- .dim-text { color: var(--fg-3); }-- .hair-rule {- height: 1px;- background: var(--hair);- width: 100%;- }-- .surface-card {- background: linear-gradient(180deg, var(--ink-3), var(--ink-2));- border: 1px solid var(--hair);- border-radius: var(--radius-lg);- padding: 22px;- }-- .chip {- display: inline-flex;- align-items: center;- gap: 6px;- padding: 4px 8px;- border-radius: 999px;- font-family: var(--font-mono);- font-size: 11px;- letter-spacing: 0.04em;- color: var(--fg-1);- background: var(--ink-3);- border: 1px solid var(--hair);- }- .chip .dot {- width: 6px;- height: 6px;- border-radius: 50%;- background: var(--a2);- box-shadow: 0 0 8px var(--a2);- flex-shrink: 0;- }- .chip.ok .dot { background: var(--ok); box-shadow: 0 0 8px var(--ok); }- .chip.crit .dot { background: var(--crit); box-shadow: 0 0 8px var(--crit); }-- .btn-traceway {- display: inline-flex;- align-items: center;- gap: 8px;- padding: 12px 18px;- border-radius: var(--radius);- font-family: var(--font-display);- font-weight: 500;- font-size: 14px;- letter-spacing: -0.01em;- transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;- border: 1px solid transparent;- white-space: nowrap;- cursor: pointer;- }- .btn-traceway.primary {- background: var(--fg-0);- color: var(--ink-0);- box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 0 0 1px rgba(255, 255, 255, 0.12);- }- .btn-traceway.accent {- background: linear-gradient(180deg, color-mix(in oklab, var(--a1) 100%, white 12%), var(--a1));- color: #0a0612;- box-shadow: 0 10px 30px -12px color-mix(in oklab, var(--a1) 80%, transparent),- 0 0 0 1px color-mix(in oklab, var(--a1) 40%, transparent);- }- .btn-traceway.accent:hover {- background: linear-gradient(180deg, color-mix(in oklab, var(--a1) 100%, white 18%), var(--a1));- }- .btn-traceway.ghost {- border-color: var(--hair-2);- color: var(--fg-0);- background: transparent;- }- .btn-traceway.ghost:hover { background: var(--ink-3); }+[data-sonner-toaster] {+ --width: 440px !important;}-/* =============================================================- Sonner toast overrides- ============================================================= */+[data-sonner-toaster] [data-sonner-toast] [data-title] {+ font-size: 15px;+}-[data-sonner-toaster] [data-sonner-toast] {- --normal-bg: white;- --normal-text: #1a1a1a;- --normal-border: #e5e5e5;- background: var(--normal-bg);- color: var(--normal-text);- border-color: var(--normal-border);+[data-sonner-toaster] [data-sonner-toast] [data-description] {+ font-size: 14px;}-[data-sonner-toaster] [data-sonner-toast][data-type="warning"],-[data-sonner-toaster] [data-sonner-toast][data-type="success"],-[data-sonner-toaster] [data-sonner-toast][data-type="error"],-[data-sonner-toaster] [data-sonner-toast][data-type="info"] {- background: var(--normal-bg);- color: var(--normal-text);- border-color: var(--normal-border);+[data-sonner-toaster] [data-sonner-toast][data-styled='true'] {+ padding: 10px !important;+ padding-left: 12px !important;+ padding-right: 12px !important;+}++[data-sonner-toaster] [data-sonner-toast] {+ --normal-bg: white;+ --normal-text: #1a1a1a;+ --normal-border: #e5e5e5;+ background: var(--normal-bg);+ color: var(--normal-text);+ border-color: var(--normal-border);}.dark [data-sonner-toaster] [data-sonner-toast] {- --normal-bg: var(--ink-3);- --normal-text: var(--fg-0);- --normal-border: var(--hair-2);+ --normal-bg: var(--ink-3);+ --normal-text: var(--fg-0);+ --normal-border: oklch(1 0 0 / 10%);+}++/* Intent colors matching the button system: green create/success,+ blue info, red error, amber warning. Same in both modes. */+[data-sonner-toaster] [data-sonner-toast][data-type='success'],+.dark [data-sonner-toaster] [data-sonner-toast][data-type='success'] {+ background: #00a73d;+ color: white;+ border-color: #008f34;+}++[data-sonner-toaster] [data-sonner-toast][data-type='info'],+.dark [data-sonner-toaster] [data-sonner-toast][data-type='info'] {+ background: oklch(0.546 0.245 262.881);+ color: white;+ border-color: oklch(0.488 0.243 264.376);+}++[data-sonner-toaster] [data-sonner-toast][data-type='error'],+.dark [data-sonner-toaster] [data-sonner-toast][data-type='error'] {+ background: oklch(0.577 0.245 27.325);+ color: white;+ border-color: oklch(0.505 0.213 27.518);+}++[data-sonner-toaster] [data-sonner-toast][data-type='warning'],+.dark [data-sonner-toaster] [data-sonner-toast][data-type='warning'] {+ background: oklch(0.828 0.189 84.429);+ color: oklch(0.279 0.077 45.635);+ border-color: oklch(0.769 0.188 70.08);+}++[data-sonner-toaster] [data-sonner-toast][data-type='success'] [data-description],+[data-sonner-toaster] [data-sonner-toast][data-type='info'] [data-description],+[data-sonner-toaster] [data-sonner-toast][data-type='error'] [data-description] {+ color: oklch(1 0 0 / 85%);}-.dark [data-sonner-toaster] [data-sonner-toast][data-type="warning"],-.dark [data-sonner-toaster] [data-sonner-toast][data-type="success"],-.dark [data-sonner-toaster] [data-sonner-toast][data-type="error"],-.dark [data-sonner-toaster] [data-sonner-toast][data-type="info"] {- background: var(--normal-bg);- color: var(--normal-text);- border-color: var(--normal-border);+[data-sonner-toaster] [data-sonner-toast][data-type='warning'] [data-description] {+ color: oklch(0.279 0.077 45.635 / 85%);}diff --git a/frontend/src/routes/login/+page.svelte b/frontend/src/routes/login/+page.svelteindex dfbef8d8..6f0d2f78 100644--- a/frontend/src/routes/login/+page.svelte+++ b/frontend/src/routes/login/+page.svelte@@ -6,6 +6,7 @@import { Label } from "$lib/components/ui/label";import { Card, CardContent, CardFooter, CardHeader, CardTitle } from "$lib/components/ui/card";import { Alert, AlertDescription, AlertTitle } from "$lib/components/ui/alert";+ import { ErrorAlert } from "$lib/components/ui/error-alert";import { CircleAlert } from "@lucide/svelte";import { authState } from '$lib/state/auth.svelte';import { projectsState } from '$lib/state/projects.svelte';@@ -40,7 +41,7 @@if (!__CLOUD_MODE__) {$effect(() => {- // Wait for providers to load — if password login is disabled, skip the /register redirect.+ // Wait for providers to load - if password login is disabled, skip the /register redirect.if (!providersLoaded) return;if (!passwordLoginEnabled) return;@@ -112,13 +113,7 @@</CardHeader><CardContent>{#if error}- <Alert variant="destructive" class="mb-4 bg-red-50 border-red-200">- <CircleAlert class="h-4 w-4 text-red-700" />- <AlertTitle class="text-red-800">Error</AlertTitle>- <AlertDescription class="text-red-700">- {error}- </AlertDescription>- </Alert>+ <ErrorAlert {error} class="mb-4" />{/if}<OauthButtons bind:passwordLoginEnabled bind:loaded={providersLoaded} />{#if providersLoaded && passwordLoginEnabled}diff --git a/frontend/src/routes/logs/+page.svelte b/frontend/src/routes/logs/+page.svelteindex 8204031b..f70f823b 100644--- a/frontend/src/routes/logs/+page.svelte+++ b/frontend/src/routes/logs/+page.svelte@@ -323,7 +323,7 @@}function handleSeverityChange(value: string) {- // Keep severity as pending query state — applied on the next Go press,+ // Keep severity as pending query state - applied on the next Go press,// same as the search input. Avoids triggering a re-fetch on every// dropdown change.minSeverity = Number(value) || 0;@@ -380,7 +380,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-2xl font-bold tracking-tight">Logs</h2>+ <h2 class="text-3xl font-semibold tracking-tight">Logs</h2><div class="w-full sm:w-auto"><TimeRangePickerbind:fromDatediff --git a/frontend/src/routes/metrics/+page.svelte b/frontend/src/routes/metrics/+page.svelteindex f7640087..d507305b 100644--- a/frontend/src/routes/metrics/+page.svelte+++ b/frontend/src/routes/metrics/+page.svelte@@ -24,6 +24,7 @@import { CalendarDate } from '@internationalized/date';import { Trash2, Plus, Pencil, Check, RefreshCw, CircleAlert, EllipsisVertical, Sparkles } from 'lucide-svelte';import * as Alert from '$lib/components/ui/alert';+ import { ErrorAlert } from '$lib/components/ui/error-alert';import * as DropdownMenu from '$lib/components/ui/dropdown-menu';import { toast } from 'svelte-sonner';import type { DiscoveredMetric } from '$lib/types/dashboard';@@ -237,7 +238,7 @@{ name: newName },{ projectId: projectsState.currentProjectId ?? undefined });- toast.success('Successfully created a new Widget Group', { position: 'top-center' });+ toast.success('Successfully created the Widget Group', { position: 'top-center' });showCreateDialog = false;newName = '';await loadWidgetGroups();@@ -491,7 +492,7 @@await api.post(`/widget-groups/${activeGroup.id}/widgets`, data, {projectId: projectsState.currentProjectId ?? undefined});- toast.success('Successfully added the Widget', { position: 'top-center' });+ toast.success('Successfully created the Widget', { position: 'top-center' });}showWidgetConfig = false;editingWidget = null;@@ -524,8 +525,8 @@</script><div class="space-y-4">- <div class="mb-2 flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">- <h2 class="text-2xl font-bold tracking-tight">Metrics</h2>+ <div class="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">+ <h2 class="text-3xl font-semibold tracking-tight">Metrics</h2><div class="flex items-center gap-2"><TimeRangePickerbind:fromDate@@ -558,7 +559,7 @@: 'Populate default charts'}</Button>{/if}- <Button variant="outline" onclick={() => (showCreateDialog = true)}>+ <Button variant="success" onclick={() => (showCreateDialog = true)}><Plus class="mr-1 h-4 w-4" />Create your own Widget Group</Button>@@ -721,13 +722,7 @@<AlertDialog.Header><AlertDialog.Title>New Widget Group</AlertDialog.Title></AlertDialog.Header>- {#if createError}- <Alert.Root variant="destructive" class="border-red-200 bg-red-50">- <CircleAlert class="h-4 w-4 text-red-700" />- <Alert.Title class="text-red-800">Error</Alert.Title>- <Alert.Description class="text-red-700">{createError}</Alert.Description>- </Alert.Root>- {/if}+ <ErrorAlert error={createError} /><div class="space-y-4"><div><label class="text-sm font-medium" for="new-group-name">Name</label>@@ -736,7 +731,7 @@</div><AlertDialog.Footer><Button variant="outline" onclick={() => (showCreateDialog = false)}>Cancel</Button>- <Button onclick={createWidgetGroup} disabled={creating}>+ <Button variant="success" onclick={createWidgetGroup} disabled={creating}>{#if creating}Creating...{:else}<Plus class="mr-1 h-4 w-4" /> New Widget Group{/if}</Button></AlertDialog.Footer>@@ -753,13 +748,7 @@<AlertDialog.Header><AlertDialog.Title>Rename Widget Group</AlertDialog.Title></AlertDialog.Header>- {#if renameError}- <Alert.Root variant="destructive" class="border-red-200 bg-red-50">- <CircleAlert class="h-4 w-4 text-red-700" />- <Alert.Title class="text-red-800">Error</Alert.Title>- <Alert.Description class="text-red-700">{renameError}</Alert.Description>- </Alert.Root>- {/if}+ <ErrorAlert error={renameError} /><div class="space-y-4"><div><label class="text-sm font-medium" for="rename-group-name">Name</label>@@ -794,19 +783,14 @@group. This action cannot be undone.</AlertDialog.Description></AlertDialog.Header>- {#if deleteError}- <Alert.Root variant="destructive" class="border-red-200 bg-red-50">- <CircleAlert class="h-4 w-4 text-red-700" />- <Alert.Title class="text-red-800">Error</Alert.Title>- <Alert.Description class="text-red-700">{deleteError}</Alert.Description>- </Alert.Root>- {/if}+ <ErrorAlert error={deleteError} /><AlertDialog.Footer><Button variant="outline" onclick={() => (showDeleteDialog = false)} disabled={deleting}>Cancel</Button><Button variant="destructive" onclick={deleteWidgetGroup} disabled={deleting}>- {deleting ? 'Deleting...' : 'Delete'}+ <Trash2 class="mr-1 h-4 w-4" />+ {deleting ? 'Deleting...' : 'Delete Widget Group'}</Button></AlertDialog.Footer></AlertDialog.Content>@@ -825,13 +809,7 @@Are you sure you want to delete "{deletingWidget?.title}"? This action cannot be undone.</AlertDialog.Description></AlertDialog.Header>- {#if deleteWidgetError}- <Alert.Root variant="destructive" class="border-red-200 bg-red-50">- <CircleAlert class="h-4 w-4 text-red-700" />- <Alert.Title class="text-red-800">Error</Alert.Title>- <Alert.Description class="text-red-700">{deleteWidgetError}</Alert.Description>- </Alert.Root>- {/if}+ <ErrorAlert error={deleteWidgetError} /><AlertDialog.Footer><Buttonvariant="outline"@@ -839,7 +817,8 @@disabled={deletingWidgetLoading}>Cancel</Button><Button variant="destructive" onclick={confirmDeleteWidget} disabled={deletingWidgetLoading}>- {deletingWidgetLoading ? 'Deleting...' : 'Delete'}+ <Trash2 class="mr-1 h-4 w-4" />+ {deletingWidgetLoading ? 'Deleting...' : 'Delete Widget'}</Button></AlertDialog.Footer></AlertDialog.Content>diff --git a/frontend/src/routes/notifications/+page.svelte b/frontend/src/routes/notifications/+page.svelteindex 32a8bb39..0362243a 100644--- a/frontend/src/routes/notifications/+page.svelte+++ b/frontend/src/routes/notifications/+page.svelte@@ -87,7 +87,7 @@const tabDescriptions: Record<string, string> = {channels:- 'Channels define where your notifications are delivered — such as Email, Slack, Webhooks, GitHub Issues, or Pushover. Create a channel first, then attach it to a rule.',+ 'Channels define where your notifications are delivered, such as Email, Slack, Webhooks, GitHub Issues, or Pushover. Create a channel first, then attach it to a rule.',rules: 'Rules define when notifications are triggered. Each rule monitors a specific condition and sends an alert through the attached channel when that condition is met.',history:'A log of all notifications that have been sent, including their status and the rule that triggered them.'@@ -452,9 +452,9 @@});</script>-<div class="space-y-2">+<div class="space-y-4"><div>- <h1 class="text-2xl font-semibold tracking-tight">Alerts</h1>+ <h1 class="text-3xl font-semibold tracking-tight">Alerts</h1></div><div class="flex items-center justify-between">@@ -466,11 +466,11 @@</Tabs.List></Tabs.Root>{#if activeTab === 'channels'}- <Button size="sm" onclick={openNewChannel}>+ <Button size="sm" variant="success" onclick={openNewChannel}><Plus class="mr-1 h-4 w-4" /> New Channel</Button>{:else if activeTab === 'rules'}- <Button size="sm" onclick={openNewRule}>+ <Button size="sm" variant="success" onclick={openNewRule}><Plus class="mr-1 h-4 w-4" /> New Rule</Button>{/if}@@ -489,7 +489,7 @@class="flex flex-col items-center justify-center rounded-md bg-muted py-20 text-center text-muted-foreground"><p class="mb-4">No channels yet. Create one to get started.</p>- <Button onclick={openNewChannel}>+ <Button variant="success" onclick={openNewChannel}><Plus class="mr-1 h-4 w-4" />Create your first Channel</Button>@@ -568,7 +568,7 @@class="flex flex-col items-center justify-center rounded-md bg-muted py-20 text-center text-muted-foreground"><p class="mb-4">No rules yet. Create one to get started.</p>- <Button onclick={openNewRule}>+ <Button variant="success" onclick={openNewRule}><Plus class="mr-1 h-4 w-4" />Create your first Rule</Button>@@ -651,7 +651,7 @@</div>{/if}{:else if activeTab === 'history'}- <div class="flex flex-col gap-2 pt-2 sm:flex-row sm:items-center sm:justify-between">+ <div class="flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between"><SearchBarplaceholder="Search Historic Alerts..."bind:value={searchQuery}@@ -787,7 +787,10 @@</AlertDialog.Header><AlertDialog.Footer><Button variant="outline" onclick={() => (showDeleteChannelDialog = false)}>Cancel</Button>- <Button variant="destructive" onclick={deleteChannel}>Delete</Button>+ <Button variant="destructive" onclick={deleteChannel}>+ <Trash2 class="mr-1 h-4 w-4" />+ Delete Channel+ </Button></AlertDialog.Footer></AlertDialog.Content></AlertDialog.Root>@@ -802,7 +805,10 @@</AlertDialog.Header><AlertDialog.Footer><Button variant="outline" onclick={() => (showDeleteRuleDialog = false)}>Cancel</Button>- <Button variant="destructive" onclick={deleteRule}>Delete</Button>+ <Button variant="destructive" onclick={deleteRule}>+ <Trash2 class="mr-1 h-4 w-4" />+ Delete Rule+ </Button></AlertDialog.Footer></AlertDialog.Content></AlertDialog.Root>diff --git a/frontend/src/routes/notifications/channel-dialog.svelte b/frontend/src/routes/notifications/channel-dialog.svelteindex d8c694cb..662def63 100644--- a/frontend/src/routes/notifications/channel-dialog.svelte+++ b/frontend/src/routes/notifications/channel-dialog.svelte@@ -3,6 +3,7 @@import { Button } from '$lib/components/ui/button';import { Input } from '$lib/components/ui/input';import { Label } from '$lib/components/ui/label';+ import { ErrorAlert } from '$lib/components/ui/error-alert';import * as Select from '$lib/components/ui/select';import { Plus, Check, Trash2 } from '@lucide/svelte';import { toast } from 'svelte-sonner';@@ -281,6 +282,8 @@}}class="space-y-4">+ <ErrorAlert {error} />+<div class="space-y-2"><Label for="channel-name">Name</Label><Input id="channel-name" bind:value={name} placeholder="e.g. Team Slack" required />@@ -525,14 +528,11 @@</div>{/if}- {#if error}- <p class="text-sm text-destructive">{error}</p>- {/if}</form><AlertDialog.Footer><AlertDialog.Cancel disabled={loading}>Cancel</AlertDialog.Cancel>- <Button onclick={handleSubmit} disabled={loading}>+ <Button variant={isEditing ? 'default' : 'success'} onclick={handleSubmit} disabled={loading}>{#if isEditing}<Check class="mr-2 h-4 w-4" />{#if loading}diff --git a/frontend/src/routes/notifications/rule-dialog.svelte b/frontend/src/routes/notifications/rule-dialog.svelteindex 1d80bebd..c8f165c6 100644--- a/frontend/src/routes/notifications/rule-dialog.svelte+++ b/frontend/src/routes/notifications/rule-dialog.svelte@@ -3,6 +3,7 @@import { Button } from '$lib/components/ui/button';import { Input } from '$lib/components/ui/input';import { Label } from '$lib/components/ui/label';+ import { ErrorAlert } from '$lib/components/ui/error-alert';import * as Select from '$lib/components/ui/select';import { Plus, Check, TriangleAlert } from '@lucide/svelte';import * as Alert from '$lib/components/ui/alert';@@ -380,6 +381,8 @@}}class="space-y-4">+ <ErrorAlert {error} />+<div class="space-y-2"><Label for="rule-name">Name</Label><Input@@ -794,14 +797,11 @@</Select.Root></div>- {#if error}- <p class="text-sm text-destructive">{error}</p>- {/if}</form><AlertDialog.Footer><AlertDialog.Cancel disabled={loading}>Cancel</AlertDialog.Cancel>- <Button onclick={handleSubmit} disabled={loading}>+ <Button variant={isEditing ? 'default' : 'success'} onclick={handleSubmit} disabled={loading}>{#if isEditing}<Check class="mr-2 h-4 w-4" />{#if loading}diff --git a/frontend/src/routes/oauth/authorize/+page.svelte b/frontend/src/routes/oauth/authorize/+page.svelteindex 96422f2c..a792590f 100644--- a/frontend/src/routes/oauth/authorize/+page.svelte+++ b/frontend/src/routes/oauth/authorize/+page.svelte@@ -5,6 +5,7 @@import { Button } from '$lib/components/ui/button';import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '$lib/components/ui/card';import { Alert, AlertDescription, AlertTitle } from '$lib/components/ui/alert';+ import { ErrorAlert } from '$lib/components/ui/error-alert';import { CircleAlert, ShieldCheck } from '@lucide/svelte';import { authState } from '$lib/state/auth.svelte';import { themeState } from '$lib/state/theme.svelte';@@ -180,29 +181,25 @@</div></div>{:else if status === 'invalid'}- <Alert variant="destructive" class="border-red-200 bg-red-50">- <CircleAlert class="h-4 w-4 text-red-700" />- <AlertTitle class="text-red-800">Invalid authorization request</AlertTitle>- <AlertDescription class="text-red-700">+ <Alert variant="destructive">+ <CircleAlert class="h-4 w-4" />+ <AlertTitle>Invalid authorization request</AlertTitle>+ <AlertDescription>The request is missing required parameters or uses an unsupported flow. Restart theconnection from your application.</AlertDescription></Alert>{:else if status === 'unknownClient'}- <Alert variant="destructive" class="border-red-200 bg-red-50">- <CircleAlert class="h-4 w-4 text-red-700" />- <AlertTitle class="text-red-800">Unknown application</AlertTitle>- <AlertDescription class="text-red-700">+ <Alert variant="destructive">+ <CircleAlert class="h-4 w-4" />+ <AlertTitle>Unknown application</AlertTitle>+ <AlertDescription>We don't recognize the application making this request. Restart the connection fromyour application.</AlertDescription></Alert>{:else}- <Alert variant="destructive" class="border-red-200 bg-red-50">- <CircleAlert class="h-4 w-4 text-red-700" />- <AlertTitle class="text-red-800">Something went wrong</AlertTitle>- <AlertDescription class="text-red-700">{error || 'Please try again.'}</AlertDescription>- </Alert>+ <ErrorAlert title="Something went wrong" error={error || 'Please try again.'} />{/if}</CardContent></Card>diff --git a/frontend/src/routes/profiles/[service]/+page.svelte b/frontend/src/routes/profiles/[service]/+page.svelteindex 11bd7fee..9e569aed 100644--- a/frontend/src/routes/profiles/[service]/+page.svelte+++ b/frontend/src/routes/profiles/[service]/+page.svelte@@ -9,9 +9,10 @@import { ErrorDisplay } from '$lib/components/ui/error-display';import * as Tabs from '$lib/components/ui/tabs';import * as Select from '$lib/components/ui/select';- import { ArrowLeft, GitCompareArrows, Download, Layers, Gauge, X } from '@lucide/svelte';+ import { GitCompareArrows, Download, Layers, Gauge, X } from '@lucide/svelte';import { goto } from '$app/navigation';import { resolve } from '$app/paths';+ import { createSmartBackHandler } from '$lib/utils/back-navigation';import { projectsState } from '$lib/state/projects.svelte';import PageHeader from '$lib/components/issues/page-header.svelte';import ExperimentalBanner from '$lib/components/profiles/experimental-banner.svelte';@@ -318,7 +319,11 @@const interval = intervalMinutes(fromIso, toIso);const [tree, points, labels, top, dims, groups] = await Promise.all([- api.post('/profiles/flamegraph', { ...body, isGauge, labels: selectedLabels }, { projectId }),+ api.post(+ '/profiles/flamegraph',+ { ...body, isGauge, labels: selectedLabels },+ { projectId }+ ),api.post('/profiles/series',{ ...body, isGauge, intervalMinutes: interval, labels: selectedLabels, normalize },@@ -326,7 +331,11 @@),api.post('/profiles/labels', body, { projectId }).catch(() => ({})),api- .post('/profiles/top', { ...body, isGauge, labels: selectedLabels, limit: 100 }, { projectId })+ .post(+ '/profiles/top',+ { ...body, isGauge, labels: selectedLabels, limit: 100 },+ { projectId }+ ).catch(() => []),api.post('/profiles/dimensions', body, { projectId }).catch(() => ({})),groupBy@@ -502,12 +511,11 @@<div class="space-y-4"><div class="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">- <div class="flex items-center gap-3">- <Button variant="ghost" size="sm" onclick={() => goto(resolve('/profiles'))}>- <ArrowLeft class="h-4 w-4" />- </Button>- <PageHeader title={data.service} subtitle="Profiles" />- </div>+ <PageHeader+ title={data.service}+ subtitle="Profiles"+ onBack={createSmartBackHandler({ fallbackPath: resolve('/profiles') })}+ /><div class="flex flex-col"><TimeRangePicker@@ -624,7 +632,7 @@<ErrorDisplay status={400} title="Error" description={error} onRetry={() => loadData()} />{:else}<div class="grid gap-4 sm:grid-cols-2">- <div class="rounded-lg border p-4">+ <div class="rounded-md border p-4"><div class="text-sm text-muted-foreground">Total {activeType ? humanizeType(activeType) : ''}</div>@@ -632,7 +640,7 @@{formatValue(activeUnit, totalValue)}</div></div>- <div class="rounded-lg border p-4">+ <div class="rounded-md border p-4"><div class="text-sm text-muted-foreground">Peak {rateActive? rateUnitIsTime@@ -648,7 +656,7 @@</div></div>- <div class="rounded-lg border p-4">+ <div class="rounded-md border p-4"><div class="mb-1 text-sm text-muted-foreground">Trend{groupBy ? ` · by ${groupByLabel.toLowerCase()}` : ''}</div>@@ -661,7 +669,7 @@/></div>- <div class="space-y-3 rounded-lg border p-4">+ <div class="space-y-3 rounded-md border p-4"><div class="flex flex-wrap items-center gap-2"><Buttonvariant={compareMode ? 'secondary' : 'outline'}@@ -805,7 +813,7 @@</div>{#if sandwich && !compareMode}- <div class="space-y-3 rounded-lg border p-4">+ <div class="space-y-3 rounded-md border p-4"><div class="flex items-center justify-between gap-2"><div class="min-w-0"><div class="text-sm font-medium">Function detail</div>@@ -820,7 +828,12 @@<div class="grid gap-4 lg:grid-cols-2"><div><div class="mb-1 text-xs font-medium text-muted-foreground">Callers</div>- <FlameGraph data={sandwich.callers} unit={activeUnit} controls={false} inverted={true} />+ <FlameGraph+ data={sandwich.callers}+ unit={activeUnit}+ controls={false}+ inverted={true}+ /></div><div><div class="mb-1 text-xs font-medium text-muted-foreground">Callees</div>diff --git a/frontend/src/routes/register/+page.svelte b/frontend/src/routes/register/+page.svelteindex 6564d395..13e7b553 100644--- a/frontend/src/routes/register/+page.svelte+++ b/frontend/src/routes/register/+page.svelte@@ -6,6 +6,7 @@import { Label } from "$lib/components/ui/label";import { Card, CardContent, CardFooter, CardHeader, CardTitle, CardDescription } from "$lib/components/ui/card";import { Alert, AlertDescription, AlertTitle } from "$lib/components/ui/alert";+ import { ErrorAlert } from "$lib/components/ui/error-alert";import * as Select from "$lib/components/ui/select";import { CircleAlert, Check } from "@lucide/svelte";import { authState } from '$lib/state/auth.svelte';@@ -46,7 +47,7 @@$effect(() => {if (!providersLoaded) return;- // Password login is disabled — this page is inaccessible, send to login.+ // Password login is disabled - this page is inaccessible, send to login.if (!passwordLoginEnabled) {goto("/login");return;@@ -147,13 +148,7 @@</CardHeader><CardContent>{#if error}- <Alert variant="destructive" class="mb-4 bg-red-50 border-red-200">- <CircleAlert class="h-4 w-4 text-red-700" />- <AlertTitle class="text-red-800">Error</AlertTitle>- <AlertDescription class="text-red-700">- {error}- </AlertDescription>- </Alert>+ <ErrorAlert {error} class="mb-4" />{/if}<OauthButtons bind:passwordLoginEnabled bind:loaded={providersLoaded} />{#if providersLoaded && passwordLoginEnabled}diff --git a/frontend/src/routes/reset-password/+page.svelte b/frontend/src/routes/reset-password/+page.svelteindex 4ed3f579..1112fb68 100644--- a/frontend/src/routes/reset-password/+page.svelte+++ b/frontend/src/routes/reset-password/+page.svelte@@ -6,6 +6,7 @@import { Label } from "$lib/components/ui/label";import { Card, CardContent, CardFooter, CardHeader, CardTitle } from "$lib/components/ui/card";import { Alert, AlertDescription, AlertTitle } from "$lib/components/ui/alert";+ import { ErrorAlert } from "$lib/components/ui/error-alert";import { CircleAlert, CircleCheck, Loader2 } from "@lucide/svelte";import { themeState } from '$lib/state/theme.svelte';@@ -107,10 +108,10 @@<p class="mt-4 text-sm text-muted-foreground">Validating reset link...</p></div>{:else if !tokenValid}- <Alert variant="destructive" class="bg-red-50 border-red-200">- <CircleAlert class="h-4 w-4 text-red-700" />- <AlertTitle class="text-red-800">Invalid Link</AlertTitle>- <AlertDescription class="text-red-700">+ <Alert variant="destructive">+ <CircleAlert class="h-4 w-4" />+ <AlertTitle>Invalid Link</AlertTitle>+ <AlertDescription>This password reset link is invalid or has expired. Please request a new one.</AlertDescription></Alert>@@ -124,13 +125,7 @@</Alert>{:else}{#if error}- <Alert variant="destructive" class="mb-4 bg-red-50 border-red-200">- <CircleAlert class="h-4 w-4 text-red-700" />- <AlertTitle class="text-red-800">Error</AlertTitle>- <AlertDescription class="text-red-700">- {error}- </AlertDescription>- </Alert>+ <ErrorAlert {error} class="mb-4" />{/if}<p class="text-sm text-muted-foreground mb-4">Enter a new password for your account.diff --git a/frontend/src/routes/sessions/+page.svelte b/frontend/src/routes/sessions/+page.svelteindex 0e57eed3..bb71a02a 100644--- a/frontend/src/routes/sessions/+page.svelte+++ b/frontend/src/routes/sessions/+page.svelte@@ -413,12 +413,12 @@</Table.Body>{:else if sessions.length === 0}<Table.Body>- <TableEmptyState colspan={4} message="No sessions recorded yet — enable recordAllSessions in the SDK to start capturing them." />+ <TableEmptyState colspan={4} message="No sessions recorded yet. Enable recordAllSessions in the SDK to start capturing them." /></Table.Body>{:else}<Table.Header><Table.Row>- <TracewayTableHeader label="Session" tooltip="Session UUID — open to play back the recording" />+ <TracewayTableHeader label="Session" tooltip="Session UUID. Open to play back the recording." /><TracewayTableHeaderlabel="Started"tooltip="When the session began"diff --git a/frontend/src/routes/sessions/[sessionId]/+page.svelte b/frontend/src/routes/sessions/[sessionId]/+page.svelteindex 6f753f7a..1ee4b993 100644--- a/frontend/src/routes/sessions/[sessionId]/+page.svelte+++ b/frontend/src/routes/sessions/[sessionId]/+page.svelte@@ -7,6 +7,7 @@import { projectsState } from '$lib/state/projects.svelte';import { getTimezone } from '$lib/state/timezone.svelte';import { formatDuration, formatDateTime } from '$lib/utils/formatters';+ import { createSmartBackHandler } from '$lib/utils/back-navigation';import * as Card from '$lib/components/ui/card';import * as Table from '$lib/components/ui/table';import * as Tabs from '$lib/components/ui/tabs';@@ -116,7 +117,7 @@</script><div class="space-y-4">- <PageHeader title="Session" />+ <PageHeader title="Session" onBack={createSmartBackHandler({ fallbackPath: resolve('/sessions') })} />{#if loading}<div class="flex justify-center items-center h-64">diff --git a/frontend/src/routes/settings/+page.svelte b/frontend/src/routes/settings/+page.svelteindex 18f0ab0c..be7abed1 100644--- a/frontend/src/routes/settings/+page.svelte+++ b/frontend/src/routes/settings/+page.svelte@@ -54,9 +54,9 @@});</script>-<div class="space-y-6">+<div class="space-y-4"><div>- <h1 class="text-2xl font-semibold tracking-tight">Settings</h1>+ <h1 class="text-3xl font-semibold tracking-tight">Settings</h1></div>{#if loading}@@ -68,7 +68,7 @@{error}</div>{:else}- <div class="space-y-6">+ <div class="space-y-4"><OrganizationTab /><UsersTab organizationId={currentOrganizationId!} />{#if BillingTab}diff --git a/frontend/src/routes/settings/invite-user-dialog.svelte b/frontend/src/routes/settings/invite-user-dialog.svelteindex e8c60882..393784a9 100644--- a/frontend/src/routes/settings/invite-user-dialog.svelte+++ b/frontend/src/routes/settings/invite-user-dialog.svelte@@ -3,8 +3,9 @@import { Button } from "$lib/components/ui/button";import { Input } from "$lib/components/ui/input";import { Label } from "$lib/components/ui/label";+ import { ErrorAlert } from "$lib/components/ui/error-alert";import * as Select from "$lib/components/ui/select";- import { UserPlus } from "@lucide/svelte";+ import { Plus } from "@lucide/svelte";import { toast } from 'svelte-sonner';import { organizationState } from '$lib/state/organization.svelte';@@ -37,7 +38,7 @@try {await organizationState.inviteUser(organizationId, email, role);- toast.success('Invitation sent', { position: 'top-center' });+ toast.success('Successfully created the Invitation', { position: 'top-center' });email = '';role = 'user';open = false;@@ -62,13 +63,15 @@<AlertDialog.Root {open} onOpenChange={handleOpenChange}><AlertDialog.Content class="max-w-md"><AlertDialog.Header>- <AlertDialog.Title>Invite Team Member</AlertDialog.Title>+ <AlertDialog.Title>New Invitation</AlertDialog.Title><AlertDialog.Description>Send an invitation to join your organization</AlertDialog.Description></AlertDialog.Header><form onsubmit={(e) => { e.preventDefault(); handleSubmit(); }} class="space-y-4 py-4">+ <ErrorAlert {error} />+<div class="space-y-2"><Label for="email">Email Address</Label><Input@@ -99,19 +102,16 @@</Select.Root></div>- {#if error}- <p class="text-sm text-destructive">{error}</p>- {/if}</form><AlertDialog.Footer><AlertDialog.Cancel disabled={loading}>Cancel</AlertDialog.Cancel>- <Button onclick={handleSubmit} disabled={loading}>- <UserPlus class="mr-2 h-4 w-4" />+ <Button variant="success" onclick={handleSubmit} disabled={loading}>+ <Plus class="mr-2 h-4 w-4" />{#if loading}- Inviting...+ Creating...{:else}- Invite User+ New Invitation{/if}</Button></AlertDialog.Footer>diff --git a/frontend/src/routes/settings/organization-tab.svelte b/frontend/src/routes/settings/organization-tab.svelteindex 3d81ab5c..2dc1751e 100644--- a/frontend/src/routes/settings/organization-tab.svelte+++ b/frontend/src/routes/settings/organization-tab.svelte@@ -1,4 +1,5 @@<script lang="ts">+ import { Check } from "@lucide/svelte";import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "$lib/components/ui/card";import { Label } from "$lib/components/ui/label";import { Button } from "$lib/components/ui/button";@@ -134,7 +135,8 @@</Select.Root>{#if hasChanges}<Button onclick={handleSave} disabled={saving} size="sm">- {saving ? 'Saving...' : 'Save'}+ <Check class="mr-1 h-4 w-4" />+ {saving ? 'Updating...' : 'Update Timezone'}</Button>{/if}</div>diff --git a/frontend/src/routes/settings/users-tab.svelte b/frontend/src/routes/settings/users-tab.svelteindex b39729eb..a9e85a29 100644--- a/frontend/src/routes/settings/users-tab.svelte+++ b/frontend/src/routes/settings/users-tab.svelte@@ -5,7 +5,7 @@import * as Select from "$lib/components/ui/select";import * as AlertDialog from "$lib/components/ui/alert-dialog";import { Badge } from "$lib/components/ui/badge";- import { UserPlus, Trash2 } from "@lucide/svelte";+ import { Plus, Trash2 } from "@lucide/svelte";import { toast } from 'svelte-sonner';import { organizationState, type OrganizationMember, type Invitation } from '$lib/state/organization.svelte';import { authState } from '$lib/state/auth.svelte';@@ -37,7 +37,7 @@processingRoleChange = userId;try {await organizationState.updateMemberRole(organizationId, userId, newRole);- toast.success('Role updated', { position: 'top-center' });+ toast.success('Successfully updated the Role', { position: 'top-center' });} catch (e) {toast.error(e instanceof Error ? e.message : 'Failed to update role', { position: 'top-center' });} finally {@@ -97,9 +97,9 @@<CardTitle>Team Members</CardTitle><CardDescription>Manage your organization's team members</CardDescription></div>- <Button variant="outline" class="shrink-0" onclick={() => showInviteDialog = true} disabled={!canInvite}>- <UserPlus class="mr-2 h-4 w-4" />- Invite User+ <Button variant="success" class="shrink-0" onclick={() => showInviteDialog = true} disabled={!canInvite}>+ <Plus class="mr-2 h-4 w-4" />+ New Invitation</Button></CardHeader><CardContent class="p-0">@@ -237,8 +237,9 @@</AlertDialog.Header><AlertDialog.Footer><AlertDialog.Cancel>Cancel</AlertDialog.Cancel>- <AlertDialog.Action onclick={handleRemoveMember}>- Remove+ <AlertDialog.Action variant="destructive" onclick={handleRemoveMember}>+ <Trash2 class="mr-2 h-4 w-4" />+ Remove Member</AlertDialog.Action></AlertDialog.Footer></AlertDialog.Content>@@ -254,8 +255,9 @@</AlertDialog.Header><AlertDialog.Footer><AlertDialog.Cancel>Cancel</AlertDialog.Cancel>- <AlertDialog.Action onclick={handleRevokeInvitation}>- Revoke+ <AlertDialog.Action variant="destructive" onclick={handleRevokeInvitation}>+ <Trash2 class="mr-2 h-4 w-4" />+ Revoke Invitation</AlertDialog.Action></AlertDialog.Footer></AlertDialog.Content>