Skip to content

Commit bb08e7b

Browse files
fix links
1 parent 462e44f commit bb08e7b

File tree

12 files changed

+53
-8
lines changed

12 files changed

+53
-8
lines changed

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/engine/cloud/analytics/analytics-page.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export function TransactionsAnalyticsPageContent(props: {
1414
project: Project;
1515
hasTransactions: boolean;
1616
wallets?: Wallet[];
17+
teamSlug: string;
1718
}) {
1819
return (
1920
<ResponsiveSearchParamsProvider value={props.searchParams}>
@@ -27,10 +28,15 @@ export function TransactionsAnalyticsPageContent(props: {
2728
searchParams={props.searchParams}
2829
project={props.project}
2930
wallets={props.wallets ?? []}
31+
teamSlug={props.teamSlug}
3032
/>
3133
</>
3234
)}
33-
<TransactionsTable project={props.project} wallets={props.wallets} />
35+
<TransactionsTable
36+
project={props.project}
37+
wallets={props.wallets}
38+
teamSlug={props.teamSlug}
39+
/>
3440
</div>
3541
</ResponsiveSearchParamsProvider>
3642
);

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/engine/cloud/analytics/ftux.client.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ interface Props {
1414
project: Project;
1515
wallets: Wallet[];
1616
hasTransactions: boolean;
17+
teamSlug: string;
1718
}
1819

1920
export const EngineChecklist: React.FC<Props> = (props) => {
@@ -28,6 +29,7 @@ export const EngineChecklist: React.FC<Props> = (props) => {
2829
children: (
2930
<CreateVaultAccountStep
3031
project={props.project}
32+
teamSlug={props.teamSlug}
3133
onUserAccessTokenCreated={(token) => setUserAccessToken(token)}
3234
/>
3335
),
@@ -41,6 +43,7 @@ export const EngineChecklist: React.FC<Props> = (props) => {
4143
children: (
4244
<CreateServerWalletStep
4345
project={props.project}
46+
teamSlug={props.teamSlug}
4447
managementAccessToken={props.managementAccessToken}
4548
/>
4649
),
@@ -70,6 +73,7 @@ export const EngineChecklist: React.FC<Props> = (props) => {
7073
props.wallets,
7174
props.hasTransactions,
7275
userAccessToken,
76+
props.teamSlug,
7377
]);
7478

7579
if (finalSteps.length === 1) {
@@ -83,6 +87,7 @@ export const EngineChecklist: React.FC<Props> = (props) => {
8387

8488
function CreateVaultAccountStep(props: {
8589
project: Project;
90+
teamSlug: string;
8691
onUserAccessTokenCreated: (userAccessToken: string) => void;
8792
}) {
8893
return (
@@ -100,12 +105,14 @@ function CreateVaultAccountStep(props: {
100105

101106
function CreateServerWalletStep(props: {
102107
project: Project;
108+
teamSlug: string;
103109
managementAccessToken: string | undefined;
104110
}) {
105111
return (
106112
<div className="mt-4 flex flex-row gap-4">
107113
<CreateServerWallet
108114
project={props.project}
115+
teamSlug={props.teamSlug}
109116
managementAccessToken={props.managementAccessToken}
110117
/>
111118
</div>

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/engine/cloud/analytics/tx-chart/tx-chart-ui.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export function TransactionsChartCardUI(props: {
2424
isPending: boolean;
2525
project: Project;
2626
wallets: Wallet[];
27+
teamSlug: string;
2728
}) {
2829
const { userOpStats } = props;
2930
const topChainsToShow = 10;
@@ -146,7 +147,11 @@ export function TransactionsChartCardUI(props: {
146147
}}
147148
toolTipValueFormatter={(value) => formatTickerNumber(Number(value))}
148149
emptyChartState={
149-
<EmptyChartContent project={props.project} wallets={props.wallets} />
150+
<EmptyChartContent
151+
teamSlug={props.teamSlug}
152+
project={props.project}
153+
wallets={props.wallets}
154+
/>
150155
}
151156
/>
152157
);
@@ -155,6 +160,7 @@ export function TransactionsChartCardUI(props: {
155160
// TODO - update the title and doc links
156161
function EmptyChartContent(props: {
157162
project: Project;
163+
teamSlug: string;
158164
wallets: Wallet[];
159165
}) {
160166
const router = useDashboardRouter();
@@ -177,7 +183,9 @@ function EmptyChartContent(props: {
177183
<Button
178184
variant="primary"
179185
onClick={() => {
180-
router.push("engine/vault");
186+
router.push(
187+
`/team/${props.teamSlug}/${props.project.slug}/engine/cloud/vault`,
188+
);
181189
}}
182190
>
183191
Create Vault Admin Account

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/engine/cloud/analytics/tx-chart/tx-chart.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ async function AsyncTransactionsChartCard(props: {
1111
interval: "day" | "week";
1212
project: Project;
1313
wallets: Wallet[];
14+
teamSlug: string;
1415
}) {
1516
const data = await getTransactionsChart({
1617
clientId: props.project.publishableKey,
@@ -26,6 +27,7 @@ async function AsyncTransactionsChartCard(props: {
2627
userOpStats={data}
2728
project={props.project}
2829
wallets={props.wallets}
30+
teamSlug={props.teamSlug}
2931
/>
3032
);
3133
}
@@ -38,6 +40,7 @@ export function TransactionsChartCard(props: {
3840
};
3941
project: Project;
4042
wallets: Wallet[];
43+
teamSlug: string;
4144
}) {
4245
const { range, interval } = getTxAnalyticsFiltersFromSearchParams(
4346
props.searchParams,
@@ -53,6 +56,7 @@ export function TransactionsChartCard(props: {
5356
userOpStats={[]}
5457
project={props.project}
5558
wallets={[]}
59+
teamSlug={props.teamSlug}
5660
/>
5761
}
5862
>
@@ -62,6 +66,7 @@ export function TransactionsChartCard(props: {
6266
interval={interval}
6367
project={props.project}
6468
wallets={props.wallets}
69+
teamSlug={props.teamSlug}
6570
/>
6671
</ResponsiveSuspense>
6772
);

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/engine/cloud/analytics/tx-table/tx-table-ui.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ import type {
4949
export function TransactionsTableUI(props: {
5050
getData: (params: { page: number }) => Promise<TransactionsResponse>;
5151
project: Project;
52+
teamSlug: string;
5253
wallets?: Wallet[];
5354
}) {
5455
const router = useDashboardRouter();
@@ -136,7 +137,9 @@ export function TransactionsTableUI(props: {
136137
key={`${tx.id}${tx.chainId}`}
137138
className="cursor-pointer hover:bg-accent/50"
138139
onClick={() => {
139-
router.push(`engine/tx/${tx.id}`);
140+
router.push(
141+
`/team/${props.teamSlug}/${props.project.slug}/engine/cloud/tx/${tx.id}`,
142+
);
140143
}}
141144
>
142145
{/* Queue ID */}

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/engine/cloud/analytics/tx-table/tx-table.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import type { TransactionsResponse } from "./types";
99
export function TransactionsTable(props: {
1010
project: Project;
1111
wallets?: Wallet[];
12+
teamSlug: string;
1213
}) {
1314
return (
1415
<TransactionsTableUI
@@ -20,6 +21,7 @@ export function TransactionsTable(props: {
2021
}}
2122
project={props.project}
2223
wallets={props.wallets}
24+
teamSlug={props.teamSlug}
2325
/>
2426
);
2527
}

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/engine/cloud/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export default async function TransactionsAnalyticsPage(props: {
7979
return (
8080
<div className="flex grow flex-col">
8181
<EngineChecklist
82+
teamSlug={params.team_slug}
8283
managementAccessToken={managementAccessToken ?? undefined}
8384
hasTransactions={hasTransactions}
8485
project={project}
@@ -93,6 +94,7 @@ export default async function TransactionsAnalyticsPage(props: {
9394
)}
9495
<div className="h-10" />
9596
<TransactionsAnalyticsPageContent
97+
teamSlug={params.team_slug}
9698
searchParams={searchParams}
9799
project={project}
98100
hasTransactions={hasTransactions}

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/engine/cloud/server-wallets/components/create-server-wallet.client.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import { initVaultClient } from "../../lib/vault.client";
1919

2020
export default function CreateServerWallet(props: {
2121
project: Project;
22+
teamSlug: string;
2223
managementAccessToken: string | undefined;
2324
}) {
2425
const router = useDashboardRouter();
@@ -68,7 +69,9 @@ export default function CreateServerWallet(props: {
6869

6970
const handleCreateServerWallet = async () => {
7071
if (!props.managementAccessToken) {
71-
router.push("vault");
72+
router.push(
73+
`/team/${props.teamSlug}/${props.project.slug}/engine/cloud/vault`,
74+
);
7275
} else {
7376
await createEoaMutation.mutateAsync({
7477
managementAccessToken: props.managementAccessToken,
@@ -86,7 +89,9 @@ export default function CreateServerWallet(props: {
8689
onClick={() =>
8790
props.managementAccessToken
8891
? setModalOpen(true)
89-
: router.push("vault")
92+
: router.push(
93+
`/team/${props.teamSlug}/${props.project.slug}/engine/cloud/vault`,
94+
)
9095
}
9196
className="flex flex-row items-center gap-2"
9297
>

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/engine/cloud/server-wallets/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export default async function TransactionsServerWalletsPage(props: {
5252
<ServerWalletsTable
5353
wallets={eoas.data.items as Wallet[]}
5454
project={project}
55+
teamSlug={team_slug}
5556
managementAccessToken={managementAccessToken ?? undefined}
5657
/>
5758
<TryItOut

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/engine/cloud/server-wallets/wallet-table/wallet-table-ui.client.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@ import type { Wallet } from "./types";
3131
export function ServerWalletsTableUI({
3232
wallets,
3333
project,
34+
teamSlug,
3435
managementAccessToken,
3536
}: {
3637
wallets: Wallet[];
3738
project: Project;
39+
teamSlug: string;
3840
managementAccessToken: string | undefined;
3941
}) {
4042
const [showSigners, setShowSigners] = useState(false);
@@ -63,6 +65,7 @@ export function ServerWalletsTableUI({
6365
</div>
6466
<CreateServerWallet
6567
project={project}
68+
teamSlug={teamSlug}
6669
managementAccessToken={managementAccessToken}
6770
/>
6871
</div>

0 commit comments

Comments
 (0)