Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/dep-updates.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'tredaro': patch
---

Update dependencies to latest versions and patch security vulnerabilities.
34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@
"@eslint/js": "10.0.1",
"@fontsource-variable/geist": "5.3.0",
"@internationalized/date": "3.12.4",
"@lucide/svelte": "1.72.0",
"@sveltejs/adapter-node": "6.0.2",
"@sveltejs/kit": "3.2.0",
"@lucide/svelte": "1.77.0",
"@sveltejs/adapter-node": "6.0.5",
"@sveltejs/kit": "3.4.0",
"@sveltejs/vite-plugin-svelte": "7.3.1",
"@tailwindcss/vite": "4.3.5",
"@types/node": "26.6.6",
"@types/nodemailer": "8.0.2",
"@types/qrcode": "1.5.6",
"auth": "1.7.23",
"auth": "1.7.27",
"bits-ui": "2.21.0",
"cn": "0.5.2",
"drizzle-kit": "0.31.11",
Expand All @@ -46,45 +46,45 @@
"eslint-plugin-svelte": "3.24.1",
"formsnap": "2.1.0",
"globals": "17.14.0",
"layerchart": "2.10.1",
"layerchart": "2.11.0",
"mode-watcher": "1.1.0",
"paneforge": "1.0.2",
"prettier": "3.10.1",
"prettier-plugin-svelte": "4.1.1",
"prettier-plugin-svelte": "4.2.0",
"prettier-plugin-tailwindcss": "0.8.1",
"shadcn-svelte": "1.8.1",
"svelte": "5.57.3",
"svelte": "5.59.1",
"svelte-check": "4.7.8",
"svelte-sonner": "1.2.3",
"sveltekit-superforms": "3.1.0",
"tailwind-variants": "4.0.2",
"tailwindcss": "4.3.5",
"tw-animate-css": "1.4.0",
"typescript": "6.0.3",
"typescript-eslint": "8.72.2",
"typescript": "^6.0.3",
"typescript-eslint": "8.73.0",
"vaul-svelte": "1.0.0-next.7",
"vite": "8.3.8",
"vitest": "5.1.0"
"vitest": "5.1.1"
},
"imports": {
"#lib": "./src/lib/index.js",
"#lib/*": "./src/lib/*"
},
"dependencies": {
"@better-auth/api-key": "^1.7.23",
"@better-auth/passkey": "^1.7.23",
"@better-auth/sso": "^1.7.23",
"@better-auth/api-key": "^1.7.27",
"@better-auth/passkey": "^1.7.27",
"@better-auth/sso": "^1.7.27",
"@shadcn-svelte/primitives": "^0.0.1",
"@sveltejs/adapter-vercel": "^7.0.3",
"@sveltejs/adapter-vercel": "^7.0.5",
"@tredaro/sdk": "workspace:*",
"better-auth": "^1.7.23",
"better-auth": "^1.7.27",
"drizzle-orm": "^0.45.4",
"nodemailer": "^10.5.0",
"nodemailer": "^10.6.1",
"postgres": "^4.1.1",
"qrcode": "^1.5.4",
"runed": "^0.38.0",
"shiki": "^4.6.0",
"stripe": "~23.1.0",
"stripe": "~23.2.0",
"valibot": "^1.5.0"
},
"engines": {
Expand Down
1,019 changes: 520 additions & 499 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions src/lib/components/app/app-sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@
tooltipContent={`${item.label} G ${item.key.toUpperCase()}`}
>
{#snippet child({ props })}
<a href={item.href} {...props} data-tour="nav-{item.label.toLowerCase()}"
><item.icon /><span>{item.label}</span></a
>
<a href={item.href} {...props} data-tour="nav-{item.label.toLowerCase()}">
<item.icon /><span>{item.label}</span>
</a>
{/snippet}
</Sidebar.MenuButton>
</Sidebar.MenuItem>
Expand All @@ -105,19 +105,19 @@
<Sidebar.MenuItem>
<Sidebar.MenuButton tooltipContent="Customer portal">
{#snippet child({ props })}
<a href="/portal" target="_blank" {...props} data-tour="nav-portal"
><ExternalLink /><span>Customer portal</span></a
>
<a href="/portal" target="_blank" {...props} data-tour="nav-portal">
<ExternalLink /><span>Customer portal</span>
</a>
{/snippet}
</Sidebar.MenuButton>
</Sidebar.MenuItem>
{#each secondaryNav as item (item.href)}
<Sidebar.MenuItem>
<Sidebar.MenuButton isActive={isActive(item.href)} tooltipContent={item.label}>
{#snippet child({ props })}
<a href={item.href} {...props} data-tour="nav-{item.label.toLowerCase()}"
><item.icon /><span>{item.label}</span></a
>
<a href={item.href} {...props} data-tour="nav-{item.label.toLowerCase()}">
<item.icon /><span>{item.label}</span>
</a>
{/snippet}
</Sidebar.MenuButton>
</Sidebar.MenuItem>
Expand Down Expand Up @@ -152,9 +152,9 @@
<DropdownMenu.Item onclick={toggleMode}>
{#if mode.current === 'dark'}<Sun /> Light mode{:else}<Moon /> Dark mode{/if}
</DropdownMenu.Item>
<DropdownMenu.Item onclick={() => tour.start()}
><GraduationCap /> Replay guided tour</DropdownMenu.Item
>
<DropdownMenu.Item onclick={() => tour.start()}>
<GraduationCap /> Replay guided tour
</DropdownMenu.Item>
<DropdownMenu.Separator />
<DropdownMenu.Item onclick={signOut}><LogOut /> Sign out</DropdownMenu.Item>
</DropdownMenu.Content>
Expand Down
7 changes: 4 additions & 3 deletions src/lib/components/app/command-palette.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,10 @@
</Command.Group>
<Command.Group heading="Create">
{#each actions as action (action.href)}
<Command.Item value={action.label} onSelect={() => go(action.href)}
><Plus /> {action.label}</Command.Item
>
<Command.Item value={action.label} onSelect={() => go(action.href)}>
<Plus />
{action.label}
</Command.Item>
{/each}
</Command.Group>
</Command.List>
Expand Down
4 changes: 3 additions & 1 deletion src/lib/components/app/demo-banner.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@
role="timer"
aria-label="Demo session time remaining"
aria-live="off"
class="font-medium tabular-nums">{countdown}</span
class="font-medium tabular-nums"
>
{countdown}
</span>
</span>
<a class="font-medium underline underline-offset-2" href={deployUrl}>Deploy your own</a>
</div>
17 changes: 11 additions & 6 deletions src/lib/components/app/inbox-bell.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@
{#if unread}
<span
class="absolute -top-1 -right-1 flex size-4 items-center justify-center rounded-full bg-primary text-[10px] font-bold text-primary-foreground"
>{unread > 9 ? '9+' : unread}</span
>
{unread > 9 ? '9+' : unread}
</span>
{/if}
</Sidebar.MenuButton>
{/snippet}
Expand Down Expand Up @@ -93,11 +94,13 @@
<span
class="block truncate text-sm {n.readAt
? 'text-muted-foreground'
: 'font-medium'}">{notificationLabel(n.kind)}</span
>
<span class="mt-1 block text-[11px] text-muted-foreground/70"
>{formatRelative(n.createdAt)}</span
: 'font-medium'}"
>
{notificationLabel(n.kind)}
</span>
<span class="mt-1 block text-[11px] text-muted-foreground/70">
{formatRelative(n.createdAt)}
</span>
</span>
</button>
</li>
Expand All @@ -108,8 +111,10 @@
<a
href="/notifications"
class="text-xs text-muted-foreground hover:text-foreground"
onclick={() => (open = false)}>View all notifications</a
onclick={() => (open = false)}
>
View all notifications
</a>
</div>
</Popover.Content>
</Popover.Root>
6 changes: 3 additions & 3 deletions src/lib/components/app/page-header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
</Breadcrumb.Item>
<Breadcrumb.Separator class="hidden md:block" />
{/each}
<Breadcrumb.Item class="min-w-0"
><Breadcrumb.Page class="truncate font-medium">{title}</Breadcrumb.Page></Breadcrumb.Item
>
<Breadcrumb.Item class="min-w-0">
<Breadcrumb.Page class="truncate font-medium">{title}</Breadcrumb.Page>
</Breadcrumb.Item>
</Breadcrumb.List>
</Breadcrumb.Root>
{#if actions}<div class="ml-auto flex min-w-0 items-center gap-2 overflow-x-auto">
Expand Down
28 changes: 15 additions & 13 deletions src/lib/components/app/portal-profile.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@
{#if p.hub}
<Card.Root>
<Card.Header>
<Card.Title class="flex items-center gap-2 text-base"
><UserRound class="size-4" /> Leroa Profile</Card.Title
>
<Card.Title class="flex items-center gap-2 text-base">
<UserRound class="size-4" /> Leroa Profile
</Card.Title>
<Card.Description>
{#if p.link}
Connected to {p.link.hubHost} · sharing {scopeLabels(p.link.scopes)} · updated {formatRelative(
Expand Down Expand Up @@ -98,9 +98,9 @@
<div class="flex items-center justify-between gap-4 rounded-lg border p-3">
<Label for="sync-{c.id}" class="flex-col items-start gap-0.5 font-normal">
<span class="font-medium">Keep {c.orgName} up to date</span>
<span class="text-xs text-muted-foreground"
>Changes to your name, email and phone are copied over automatically</span
>
<span class="text-xs text-muted-foreground">
Changes to your name, email and phone are copied over automatically
</span>
</Label>
<Switch
id="sync-{c.id}"
Expand All @@ -118,19 +118,21 @@
{/if}
<Card.Footer class="flex flex-col gap-2 sm:flex-row sm:flex-wrap">
{#if p.link}
<Button variant="outline" class="w-full sm:w-auto" disabled={busy} onclick={sync}
>Sync now</Button
>
<Button variant="outline" class="w-full sm:w-auto" disabled={busy} onclick={sync}>
Sync now
</Button>
<Button
variant="ghost"
class="w-full sm:w-auto"
disabled={busy}
onclick={() => run(disconnectProfile, 'Disconnected')}>Disconnect</Button
onclick={() => run(disconnectProfile, 'Disconnected')}
>
Disconnect
</Button>
{:else}
<Button class="w-full sm:w-auto" href="/api/profile/connect?next=/portal&keep=1"
>Connect your Leroa profile</Button
>
<Button class="w-full sm:w-auto" href="/api/profile/connect?next=/portal&keep=1">
Connect your Leroa profile
</Button>
{/if}
</Card.Footer>
</Card.Root>
Expand Down
22 changes: 12 additions & 10 deletions src/lib/components/app/tour.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -100,26 +100,28 @@
size="icon"
class="-mt-1 -mr-2 size-7 text-muted-foreground"
title="End tour"
onclick={() => tour.finish()}><X class="size-4" /></Button
onclick={() => tour.finish()}
>
<X class="size-4" />
</Button>
</div>
</Card.Header>
<Card.Content class="pb-3">
<p class="text-sm text-muted-foreground">{tour.step.body}</p>
</Card.Content>
<Card.Footer class="flex items-center justify-between">
<span class="text-xs text-muted-foreground tabular-nums"
>{tour.index + 1} / {tour.total}</span
>
<span class="text-xs text-muted-foreground tabular-nums">
{tour.index + 1} / {tour.total}
</span>
<div class="flex gap-2">
{#if tour.index > 0}
<Button variant="ghost" size="sm" onclick={() => tour.back()}
><ChevronLeft class="size-4" /> Back</Button
>
<Button variant="ghost" size="sm" onclick={() => tour.back()}>
<ChevronLeft class="size-4" /> Back
</Button>
{/if}
<Button size="sm" onclick={() => tour.next()}
>{tour.index + 1 === tour.total ? 'Done' : 'Next'}</Button
>
<Button size="sm" onclick={() => tour.next()}>
{tour.index + 1 === tour.total ? 'Done' : 'Next'}
</Button>
</div>
</Card.Footer>
</Card.Root>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/ui/chart/chart-style.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

{#if themeContents}
{#key id}
<svelte:element this={"style"}>
<svelte:element this={'style'}>
{themeContents}
</svelte:element>
{/key}
Expand Down
26 changes: 13 additions & 13 deletions src/routes/(app)/activity/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,9 @@
{/if}
{#if actors.length}
<Select.Root type="single" value={actorId} onValueChange={refilterActor}>
<Select.Trigger class="w-48"
>{actorId
? (actors.find((a) => a.actorId === actorId)?.name ?? 'Anyone')
: 'Anyone'}</Select.Trigger
>
<Select.Trigger class="w-48">
{actorId ? (actors.find((a) => a.actorId === actorId)?.name ?? 'Anyone') : 'Anyone'}
</Select.Trigger>
<Select.Content>
<Select.Item value="">Anyone</Select.Item>
{#each actors as a (a.actorId)}
Expand Down Expand Up @@ -124,12 +122,12 @@
{r.actorName ?? r.actorEmail ?? 'System'}
</Table.Cell>
<Table.Cell class="hidden md:table-cell">
<Badge variant="secondary" class="font-normal capitalize"
>{r.activity.entityType.replaceAll('_', ' ')} · {r.activity.action.replaceAll(
<Badge variant="secondary" class="font-normal capitalize">
{r.activity.entityType.replaceAll('_', ' ')} · {r.activity.action.replaceAll(
'_',
' '
)}</Badge
>
)}
</Badge>
</Table.Cell>
</Table.Row>
{:else}
Expand All @@ -139,9 +137,9 @@
<Empty.Header>
<Empty.Media><History /></Empty.Media>
<Empty.Title>No activity yet</Empty.Title>
<Empty.Description
>Jobs, invoices, and customer changes show up here as they happen.</Empty.Description
>
<Empty.Description>
Jobs, invoices, and customer changes show up here as they happen.
</Empty.Description>
</Empty.Header>
</Empty.Root>
</Table.Cell>
Expand All @@ -161,8 +159,10 @@
actorId: actorId || undefined,
limit
});
}}>Load more</Button
}}
>
Load more
</Button>
</div>
{/if}
</Card.Content>
Expand Down
Loading
Loading