Skip to content

Commit 34cb186

Browse files
committed
feat: User Journey
1 parent 5f38560 commit 34cb186

File tree

11 files changed

+923
-21
lines changed

11 files changed

+923
-21
lines changed

apps/start/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"@faker-js/faker": "^9.6.0",
2626
"@hookform/resolvers": "^3.3.4",
2727
"@hyperdx/node-opentelemetry": "^0.8.1",
28+
"@nivo/sankey": "^0.99.0",
2829
"@number-flow/react": "0.3.5",
2930
"@openpanel/common": "workspace:^",
3031
"@openpanel/constants": "workspace:^",
@@ -172,4 +173,4 @@
172173
"web-vitals": "^4.2.4",
173174
"wrangler": "^4.42.2"
174175
}
175-
}
176+
}

apps/start/src/components/charts/chart-tooltip.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,15 @@ import { Tooltip as RechartsTooltip, type TooltipProps } from 'recharts';
55

66
export const ChartTooltipContainer = ({
77
children,
8-
}: { children: React.ReactNode }) => {
8+
className,
9+
}: { children: React.ReactNode; className?: string }) => {
910
return (
10-
<div className="min-w-[180px] col gap-2 rounded-xl border bg-background/80 p-3 shadow-xl backdrop-blur-sm">
11+
<div
12+
className={cn(
13+
'min-w-[180px] col gap-2 rounded-xl border bg-background/80 p-3 shadow-xl backdrop-blur-sm',
14+
className,
15+
)}
16+
>
1117
{children}
1218
</div>
1319
);

apps/start/src/components/overview/overview-top-geo.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export default function OverviewTopGeo({ projectId }: OverviewTopGeoProps) {
130130
/>
131131
)}
132132
</WidgetBody>
133-
<WidgetFooter>
133+
<WidgetFooter className="row items-center justify-between">
134134
<OverviewDetailsButton
135135
onClick={() =>
136136
pushModal('OverviewTopGenericModal', {
@@ -140,6 +140,17 @@ export default function OverviewTopGeo({ projectId }: OverviewTopGeoProps) {
140140
}
141141
/>
142142
{/* <OverviewChartToggle {...{ chartType, setChartType }} /> */}
143+
<span className="text-sm text-muted-foreground pr-2">
144+
Geo data provided by{' '}
145+
<a
146+
href="https://ipdata.co"
147+
target="_blank"
148+
rel="noopener noreferrer nofollow"
149+
className="hover:underline"
150+
>
151+
MaxMind
152+
</a>
153+
</span>
143154
</WidgetFooter>
144155
</Widget>
145156
<Widget className="col-span-6 md:col-span-3">

0 commit comments

Comments
 (0)