Skip to content

Commit ae65c82

Browse files
committed
remove tests
2 parents dcbf98f + 259b76d commit ae65c82

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+926
-1849
lines changed

apps/api/package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
"test:watch": "vitest"
1010
},
1111
"devDependencies": {
12-
"@types/bun": "catalog:"
12+
"@types/bun": "^1.3.1"
1313
},
1414
"peerDependencies": {
15-
"typescript": "catalog:"
15+
"typescript": "^5.9.3"
1616
},
1717
"dependencies": {
1818
"@databuddy/auth": "workspace:*",
@@ -21,22 +21,22 @@
2121
"@databuddy/rpc": "workspace:*",
2222
"@databuddy/sdk": "^2.2.0",
2323
"@databuddy/shared": "workspace:*",
24-
"@elysiajs/cors": "^1.3.3",
24+
"@elysiajs/cors": "^1.4.0",
2525
"@elysiajs/trpc": "^1.1.0",
26-
"@logtail/edge": "catalog:",
27-
"@openrouter/ai-sdk-provider": "^1.1.2",
28-
"@trpc/server": "catalog:",
26+
"@logtail/edge": "^0.5.6",
27+
"@openrouter/ai-sdk-provider": "^1.2.0",
28+
"@trpc/server": "^11.7.1",
2929
"@upstash/ratelimit": "^2.0.6",
30-
"@upstash/redis": "^1.35.5",
31-
"ai": "^5.0.29",
30+
"@upstash/redis": "^1.35.6",
31+
"ai": "^5.0.81",
3232
"autumn": "^1.0.2",
33-
"autumn-js": "catalog:",
34-
"dayjs": "catalog:",
35-
"drizzle-orm": "catalog:",
36-
"elysia": "catalog:",
33+
"autumn-js": "^0.0.101",
34+
"dayjs": "^1.11.18",
35+
"drizzle-orm": "^0.42.0",
36+
"elysia": "^1.4.13",
3737
"jszip": "^3.10.1",
38-
"pino": "catalog:",
39-
"pino-pretty": "^13.1.1",
38+
"pino": "^9.14.0",
39+
"pino-pretty": "^13.1.2",
4040
"zod": "catalog:"
4141
}
4242
}

apps/dashboard/app/(main)/websites/[id]/_components/analytics-toolbar.tsx

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export function AnalyticsToolbar({
8787
const getGranularityButtonClass = (type: 'daily' | 'hourly') => {
8888
const isActive = currentGranularity === type;
8989
const baseClass =
90-
'h-8 cursor-pointer touch-manipulation rounded-none px-3 text-sm';
90+
'h-full w-24 cursor-pointer touch-manipulation rounded-none px-0 text-sm';
9191
const activeClass = isActive
9292
? 'bg-primary/10 font-medium text-primary'
9393
: 'text-muted-foreground';
@@ -114,23 +114,22 @@ export function AnalyticsToolbar({
114114
);
115115

116116
return (
117-
<div className="mt-3 flex flex-col gap-2 rounded border bg-card p-3 shadow-sm">
118-
<div className="flex items-center justify-between gap-3">
119-
<div className="flex h-8 overflow-hidden rounded border bg-background shadow-sm">
117+
<div className="flex h-22 flex-col border-b bg-card">
118+
<div className="flex h-12 items-center justify-between border-b border-border pr-4">
119+
<div className="flex h-full items-center">
120120
<Button
121121
className={getGranularityButtonClass('daily')}
122122
onClick={() => setCurrentGranularityAtomState('daily')}
123-
size="sm"
124123
title="View daily aggregated data"
125124
variant="ghost"
126125
>
127126
Daily
128127
</Button>
128+
<div className="h-full w-px bg-border/50" />
129129
<Button
130130
className={getGranularityButtonClass('hourly')}
131131
disabled={isHourlyDisabled}
132132
onClick={() => setCurrentGranularityAtomState('hourly')}
133-
size="sm"
134133
title={
135134
isHourlyDisabled
136135
? `Hourly view is only available for ${MAX_HOURLY_DAYS} days or less`
@@ -143,14 +142,13 @@ export function AnalyticsToolbar({
143142
</div>
144143

145144
<div className="flex items-center gap-2">
146-
<AddFilterForm addFilter={addFilter} buttonText="Filter" />
145+
<AddFilterForm addFilter={addFilter} buttonText="Filter" className="h-8" />
147146
<LiveUserIndicator websiteId={websiteId} />
148147
<Button
149148
aria-label="Refresh data"
150149
className="h-8 w-8"
151150
disabled={isRefreshing}
152151
onClick={onRefresh}
153-
size="icon"
154152
variant="outline"
155153
>
156154
<ArrowClockwiseIcon
@@ -161,24 +159,25 @@ export function AnalyticsToolbar({
161159
</div>
162160
</div>
163161

164-
<div className="flex items-center gap-1 overflow-x-auto rounded border bg-background p-1 shadow-sm">
165-
{QUICK_RANGES.map((range) => {
162+
<div className="flex h-10 items-center overflow-x-auto pr-4">
163+
{QUICK_RANGES.map((range, index) => {
166164
const isActive = isQuickRangeActive(range);
167165
return (
168-
<Button
169-
className={`h-8 cursor-pointer touch-manipulation whitespace-nowrap px-2 font-medium text-xs ${isActive ? 'bg-primary/10 text-primary shadow-sm' : 'text-muted-foreground hover:text-foreground'}`}
170-
key={range.label}
171-
onClick={() => handleQuickRangeSelect(range)}
172-
size="sm"
173-
title={range.fullLabel}
174-
variant={isActive ? 'secondary' : 'ghost'}
175-
>
176-
{range.label}
177-
</Button>
166+
<div className="flex h-full items-center" key={range.label}>
167+
{index > 0 && <div className="h-full w-px bg-border/50" />}
168+
<Button
169+
className={`h-full w-12 cursor-pointer rounded-none touch-manipulation whitespace-nowrap px-0 font-medium text-xs ${isActive ? 'bg-primary/10 text-primary' : 'text-muted-foreground hover:text-foreground'}`}
170+
onClick={() => handleQuickRangeSelect(range)}
171+
title={range.fullLabel}
172+
variant={isActive ? 'secondary' : 'ghost'}
173+
>
174+
{range.label}
175+
</Button>
176+
</div>
178177
);
179178
})}
180179

181-
<div className="ml-1 border-border/50 border-l pl-2">
180+
<div className="border-border/50 border-l pl-2">
182181
<DateRangePicker
183182
className="w-auto"
184183
maxDate={new Date()}

apps/dashboard/app/(main)/websites/[id]/_components/filters-section.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ export function FiltersSection() {
225225
}
226226

227227
return (
228-
<div className="slide-in-from-top-2 animate-in overflow-hidden rounded-lg border bg-card shadow-sm duration-300">
228+
<div className="slide-in-from-top-2 animate-in overflow-hidden border-x border-b bg-card shadow-sm duration-300">
229229
{editingFilter && (
230230
<div className="border-amber-200/50 border-b bg-gradient-to-r from-amber-50/80 to-amber-50/40 px-4 py-3 text-amber-900 text-sm">
231231
<div className="flex items-center justify-between">

apps/dashboard/app/(main)/websites/[id]/errors/_components/errors-page-content.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export const ErrorsPageContent = ({ params }: ErrorsPageContentProps) => {
8282

8383
if (error) {
8484
return (
85-
<div className="mx-auto max-w-[1600px] p-6 text-center">
85+
<div className="p-6 text-center">
8686
<div className="rounded border-red-200 bg-red-50 p-6 dark:border-red-800 dark:bg-red-950">
8787
<div className="mx-auto mb-4 w-fit rounded-full border border-destructive/20 bg-destructive/10 p-3">
8888
<BugIcon className="h-6 w-6 text-destructive" weight="duotone" />
@@ -100,7 +100,7 @@ export const ErrorsPageContent = ({ params }: ErrorsPageContentProps) => {
100100
}
101101

102102
return (
103-
<div className="mx-auto max-w-[1600px] space-y-6 py-6">
103+
<div className="space-y-6 p-6">
104104
{isLoading ? (
105105
<ErrorsLoadingSkeleton />
106106
) : (

apps/dashboard/app/(main)/websites/[id]/experiments/[experimentId]/results/_components/conversion-chart.tsx

Lines changed: 0 additions & 162 deletions
This file was deleted.

apps/dashboard/app/(main)/websites/[id]/experiments/[experimentId]/results/_components/experiment-results-header.tsx

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)