Skip to content

Commit 64919db

Browse files
authored
Merge branch 'main' into gi/howto-support-article
2 parents aac09ef + 9546b92 commit 64919db

File tree

197 files changed

+3238
-1684
lines changed

Some content is hidden

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

197 files changed

+3238
-1684
lines changed

.changeset/few-moments-add.md

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

.changeset/loud-clocks-begin.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@thirdweb-dev/service-utils": patch
3+
---
4+
5+
update nebula ratelimit type

.changeset/ninety-heads-work.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@thirdweb-dev/service-utils": patch
3+
---
4+
5+
update error response url

apps/dashboard/framer-rewrites.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = [
99
// -- build category
1010
"/wallets",
1111
"/account-abstraction",
12-
"/universal-bridge",
12+
"/payments",
1313
"/auth",
1414
"/in-app-wallets",
1515
"/transactions",

apps/dashboard/redirects.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ async function redirects() {
416416
source: "/connect/account-abstraction",
417417
},
418418
{
419-
destination: "/universal-bridge",
419+
destination: "/payments",
420420
permanent: false,
421421
source: "/connect/universal-bridge",
422422
},
@@ -440,6 +440,11 @@ async function redirects() {
440440
permanent: false,
441441
source: "/rpc-edge",
442442
},
443+
{
444+
destination: "/payments",
445+
permanent: false,
446+
source: "/universal-bridge",
447+
},
443448
...legacyDashboardToTeamRedirects,
444449
...projectPageRedirects,
445450
...teamPageRedirects,

apps/dashboard/src/app/(app)/login/auth-actions.ts renamed to apps/dashboard/src/@/actions/auth-actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { COOKIE_ACTIVE_ACCOUNT, COOKIE_PREFIX_TOKEN } from "@/constants/cookie";
1212
import { NEXT_PUBLIC_THIRDWEB_API_HOST } from "@/constants/public-envs";
1313
import { API_SERVER_SECRET } from "@/constants/server-envs";
1414
import { isVercel } from "@/utils/vercel";
15-
import { verifyTurnstileToken } from "./verifyTurnstileToken";
15+
import { verifyTurnstileToken } from "../../app/login/verifyTurnstileToken";
1616

1717
export async function getLoginPayload(
1818
params: GenerateLoginPayloadParams,

apps/dashboard/src/@/api/webhook-configs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ type WebhookConfigsResponse =
3737
};
3838

3939
interface CreateWebhookConfigRequest {
40-
topics: { id: string; filters: object | null }[];
40+
topicIdsWithFilters: { id: string; filters: object | null }[];
4141
destinationUrl: string;
4242
description: string;
4343
isPaused?: boolean;
@@ -76,7 +76,7 @@ type TopicsResponse =
7676

7777
interface UpdateWebhookConfigRequest {
7878
destinationUrl?: string;
79-
topics?: { id: string; filters: object | null }[];
79+
topicIdsWithFilters?: { id: string; filters: object | null }[];
8080
description?: string;
8181
isPaused?: boolean;
8282
}

apps/dashboard/src/@/components/blocks/charts/area-chart.tsx

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ type ThirdwebAreaChartProps<TConfig extends ChartConfig> = {
2929
title: string;
3030
description?: string;
3131
titleClassName?: string;
32+
headerClassName?: string;
3233
};
3334
customHeader?: React.ReactNode;
3435
// chart config
@@ -52,6 +53,12 @@ type ThirdwebAreaChartProps<TConfig extends ChartConfig> = {
5253
toolTipLabelFormatter?: (label: string, payload: unknown) => React.ReactNode;
5354
toolTipValueFormatter?: (value: unknown) => React.ReactNode;
5455
emptyChartState?: React.ReactElement;
56+
margin?: {
57+
top?: number;
58+
right?: number;
59+
bottom?: number;
60+
left?: number;
61+
};
5562
};
5663

5764
export function ThirdwebAreaChart<TConfig extends ChartConfig>(
@@ -62,7 +69,7 @@ export function ThirdwebAreaChart<TConfig extends ChartConfig>(
6269
return (
6370
<Card className={props.className}>
6471
{props.header && (
65-
<CardHeader>
72+
<CardHeader className={props.header.headerClassName}>
6673
<CardTitle className={cn("mb-2", props.header.titleClassName)}>
6774
{props.header.title}
6875
</CardTitle>
@@ -85,7 +92,16 @@ export function ThirdwebAreaChart<TConfig extends ChartConfig>(
8592
{props.emptyChartState}
8693
</EmptyChartState>
8794
) : (
88-
<AreaChart accessibilityLayer data={props.data}>
95+
<AreaChart
96+
accessibilityLayer
97+
data={props.data}
98+
margin={{
99+
right: props.margin?.right ?? 0,
100+
left: props.margin?.left ?? 0,
101+
bottom: props.margin?.bottom ?? 10,
102+
top: props.margin?.top ?? 0,
103+
}}
104+
>
89105
<CartesianGrid vertical={false} />
90106
{props.yAxis && <YAxis axisLine={false} tickLine={false} />}
91107
<XAxis

apps/dashboard/src/@/components/connect-wallet/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"use client";
22

33
import { useFavoriteChainIds } from "@app/(dashboard)/(chain)/components/client/star-button";
4-
import { doLogout } from "@app/login/auth-actions";
54
import Image from "next/image";
65
import Link from "next/link";
76
import { usePathname } from "next/navigation";
@@ -14,6 +13,7 @@ import {
1413
useActiveAccount,
1514
useConnectModal,
1615
} from "thirdweb/react";
16+
import { doLogout } from "@/actions/auth-actions";
1717
import { resetAnalytics } from "@/analytics/reset";
1818
import { CustomChainRenderer } from "@/components/misc/CustomChainRenderer";
1919
import { LazyConfigureNetworkModal } from "@/components/misc/configure-networks/LazyConfigureNetworkModal";

apps/dashboard/src/@/components/ui/CopyAddressButton.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export function CopyAddressButton(props: {
77
address: string;
88
className?: string;
99
iconClassName?: string;
10+
tooltip?: string;
1011
variant?:
1112
| "primary"
1213
| "default"
@@ -24,7 +25,7 @@ export function CopyAddressButton(props: {
2425
copyIconPosition={props.copyIconPosition}
2526
textToCopy={props.address}
2627
textToShow={shortenedAddress}
27-
tooltip="Copy Address"
28+
tooltip={props.tooltip || "Copy Address"}
2829
variant={props.variant}
2930
/>
3031
);

0 commit comments

Comments
 (0)