Skip to content

Commit 26980ab

Browse files
committed
Remove unused analytics components from server wallets overview
Eliminated EngineChecklist and TransactionAnalyticsSummary components, along with related imports and data fetching logic, from the server wallets overview page. The hasTransactions check now relies on the presence of wallets instead of analytics summary data.
1 parent 31f1d81 commit 26980ab

File tree

1 file changed

+1
-27
lines changed
  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/wallets/server-wallets/overview

1 file changed

+1
-27
lines changed

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

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ import { NEXT_PUBLIC_THIRDWEB_VAULT_URL } from "@/constants/public-envs";
66
import { getClientThirdwebClient } from "@/constants/thirdweb-client.client";
77
import { loginRedirect } from "@/utils/redirects";
88
import { TransactionsAnalyticsPageContent } from "../../../transactions/analytics/analytics-page";
9-
import { EngineChecklist } from "../../../transactions/analytics/ftux.client";
10-
import { TransactionAnalyticsSummary } from "../../../transactions/analytics/summary";
119
import { ServerWalletsTable } from "../../../transactions/components/server-wallets-table.client";
12-
import { getTransactionAnalyticsSummary } from "../../../transactions/lib/analytics";
1310
import type { Wallet } from "../../../transactions/server-wallets/wallet-table/types";
1411
import { listSolanaAccounts } from "../../../transactions/solana-wallets/lib/vault.client";
1512
import type { SolanaWallet } from "../../../transactions/solana-wallets/wallet-table/types";
@@ -118,11 +115,7 @@ export default async function Page(props: {
118115
? searchParams.testSolanaTxWithWallet
119116
: undefined;
120117

121-
const initialData = await getTransactionAnalyticsSummary({
122-
clientId: project.publishableKey,
123-
teamId: project.teamId,
124-
}).catch(() => undefined);
125-
const hasTransactions = initialData ? initialData.totalCount > 0 : false;
118+
const hasTransactions = wallets.length > 0;
126119

127120
const client = getClientThirdwebClient({
128121
jwt: authToken,
@@ -131,25 +124,6 @@ export default async function Page(props: {
131124

132125
return (
133126
<div className="flex flex-col gap-10">
134-
<EngineChecklist
135-
isManagedVault={isManagedVault}
136-
client={client}
137-
hasTransactions={hasTransactions}
138-
project={project}
139-
teamSlug={params.team_slug}
140-
testTxWithWallet={testTxWithWallet}
141-
testSolanaTxWithWallet={testSolanaTxWithWallet}
142-
wallets={wallets}
143-
solanaWallets={solanaAccounts.data.items}
144-
/>
145-
{hasTransactions && !testTxWithWallet && !testSolanaTxWithWallet && (
146-
<TransactionAnalyticsSummary
147-
clientId={project.publishableKey}
148-
initialData={initialData}
149-
teamId={project.teamId}
150-
/>
151-
)}
152-
153127
<TransactionsAnalyticsPageContent
154128
authToken={authToken}
155129
client={client}

0 commit comments

Comments
 (0)