Skip to content

Commit 362c086

Browse files
committed
Dashboard: Move project pages inside (sidebar) layout (#7144)
<!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## PR-Codex overview This PR primarily focuses on refactoring the codebase to organize components and hooks into a new `(sidebar)` directory structure, enhancing modularity and maintainability. It also updates import paths to reflect these changes. ### Detailed summary - Moved various components and hooks to a new `(sidebar)` directory. - Updated import paths across multiple files. - Adjusted layout files to accommodate the new directory structure. - Ensured proper functionality of components post-migration. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Updated and standardized import paths across the dashboard and component files for improved code organization and maintainability. - No changes to end-user functionality or visible features. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent f9b609e commit 362c086

File tree

197 files changed

+109
-113
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

+109
-113
lines changed

apps/dashboard/src/@3rdweb-sdk/react/hooks/useEngine.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import type { EngineBackendWalletType } from "lib/engine";
1111
import { useState } from "react";
1212
import { useActiveAccount } from "thirdweb/react";
1313
import invariant from "tiny-invariant";
14-
import type { ResultItem } from "../../../app/(app)/team/[team_slug]/[project_slug]/engine/dedicated/(instance)/[engineId]/metrics/components/StatusCodes";
15-
import type { EngineStatus } from "../../../app/(app)/team/[team_slug]/[project_slug]/engine/dedicated/(instance)/[engineId]/overview/components/transactions-table";
14+
import type { ResultItem } from "../../../app/(app)/team/[team_slug]/[project_slug]/(sidebar)/engine/dedicated/(instance)/[engineId]/metrics/components/StatusCodes";
15+
import type { EngineStatus } from "../../../app/(app)/team/[team_slug]/[project_slug]/(sidebar)/engine/dedicated/(instance)/[engineId]/overview/components/transactions-table";
1616
import { engineKeys } from "../cache-keys";
1717

1818
// Engine instances

apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/_layout/primary-dashboard-button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { usePathname } from "next/navigation";
2525
import { useState } from "react";
2626
import { toast } from "sonner";
2727
import type { Chain, ThirdwebClient } from "thirdweb";
28-
import { useAddContractToProject } from "../../../../../team/[team_slug]/[project_slug]/hooks/project-contracts";
28+
import { useAddContractToProject } from "../../../../../team/[team_slug]/[project_slug]/(sidebar)/hooks/project-contracts";
2929

3030
const TRACKING_CATEGORY = "add_to_dashboard_upsell";
3131

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/assets/create/create-token-page.stories.tsx renamed to apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/assets/create/create-token-page.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Meta, StoryObj } from "@storybook/react";
2+
import { storybookThirdwebClient } from "stories/utils";
23
import { ConnectButton, ThirdwebProvider } from "thirdweb/react";
3-
import { storybookThirdwebClient } from "../../../../../../../stories/utils";
44
import { CreateTokenAssetPageUI } from "./create-token-page.client";
55

66
const meta = {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import {
55
DistributionBarChart,
66
type Segment,
77
} from "@/components/blocks/distribution-chart";
8+
import { Form } from "@/components/ui/form";
89
import { Input } from "@/components/ui/input";
910
import type { ThirdwebClient } from "thirdweb";
10-
import { Form } from "../../../../../../../../@/components/ui/form";
1111
import { StepCard } from "../create-token-card";
1212
import type {
1313
TokenDistributionForm,

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/assets/create/page.tsx renamed to apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/assets/create/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import { redirect } from "next/navigation";
1414
import {
1515
getAuthToken,
1616
getAuthTokenWalletAddress,
17-
} from "../../../../../api/lib/getAuthToken";
18-
import { loginRedirect } from "../../../../../login/loginRedirect";
17+
} from "../../../../../../api/lib/getAuthToken";
18+
import { loginRedirect } from "../../../../../../login/loginRedirect";
1919
import { CreateTokenAssetPage } from "./create-token-page-impl";
2020

2121
export default async function Page(props: {

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/assets/page.tsx renamed to apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/assets/page.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import { getClientThirdwebClient } from "@/constants/thirdweb-client.client";
55
import { redirect } from "next/navigation";
66
import { Suspense } from "react";
77
import type { ThirdwebClient } from "thirdweb";
8-
import { ClientOnly } from "../../../../../../components/ClientOnly/ClientOnly";
9-
import { ContractTable } from "../../../../../../components/contract-components/tables/contract-table";
10-
import { getSortedDeployedContracts } from "../../../../account/contracts/_components/getSortedDeployedContracts";
11-
import { getAuthToken } from "../../../../api/lib/getAuthToken";
12-
import { loginRedirect } from "../../../../login/loginRedirect";
8+
import { ClientOnly } from "../../../../../../../components/ClientOnly/ClientOnly";
9+
import { ContractTable } from "../../../../../../../components/contract-components/tables/contract-table";
10+
import { getSortedDeployedContracts } from "../../../../../account/contracts/_components/getSortedDeployedContracts";
11+
import { getAuthToken } from "../../../../../api/lib/getAuthToken";
12+
import { loginRedirect } from "../../../../../login/loginRedirect";
1313
import { Cards } from "./cards";
1414

1515
export default async function Page(props: {

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/components/ProjectFTUX/ProjectFTUX.tsx renamed to apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/components/ProjectFTUX/ProjectFTUX.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ import {
1414
CircleAlertIcon,
1515
ExternalLinkIcon,
1616
} from "lucide-react";
17-
import { ContractIcon } from "../../../../../(dashboard)/(chain)/components/server/icons/ContractIcon";
18-
import { EngineIcon } from "../../../../../(dashboard)/(chain)/components/server/icons/EngineIcon";
19-
import { InsightIcon } from "../../../../../(dashboard)/(chain)/components/server/icons/InsightIcon";
20-
import { NebulaIcon } from "../../../../../../nebula-app/(app)/icons/NebulaIcon";
17+
import { ContractIcon } from "../../../../../../(dashboard)/(chain)/components/server/icons/ContractIcon";
18+
import { EngineIcon } from "../../../../../../(dashboard)/(chain)/components/server/icons/EngineIcon";
19+
import { InsightIcon } from "../../../../../../(dashboard)/(chain)/components/server/icons/InsightIcon";
20+
import { NebulaIcon } from "../../../../../../../nebula-app/(app)/icons/NebulaIcon";
2121
import { ClientIDSection } from "./ClientIDSection";
2222
import { IntegrateAPIKeyCodeTabs } from "./IntegrateAPIKeyCodeTabs";
2323
import { SecretKeySection } from "./SecretKeySection";

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/components/ProjectSidebarLayout.tsx renamed to apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/components/ProjectSidebarLayout.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"use client";
22
import { FullWidthSidebarLayout } from "@/components/blocks/SidebarLayout";
3+
import { Badge } from "@/components/ui/badge";
34
import {
45
BookTextIcon,
56
BoxIcon,
@@ -8,13 +9,12 @@ import {
89
SettingsIcon,
910
WalletIcon,
1011
} from "lucide-react";
11-
import { ContractIcon } from "../../../../(dashboard)/(chain)/components/server/icons/ContractIcon";
12-
import { EngineIcon } from "../../../../(dashboard)/(chain)/components/server/icons/EngineIcon";
13-
import { InsightIcon } from "../../../../(dashboard)/(chain)/components/server/icons/InsightIcon";
14-
import { PayIcon } from "../../../../(dashboard)/(chain)/components/server/icons/PayIcon";
15-
import { SmartAccountIcon } from "../../../../(dashboard)/(chain)/components/server/icons/SmartAccountIcon";
16-
import { Badge } from "../../../../../../@/components/ui/badge";
17-
import { NebulaIcon } from "../../../../../nebula-app/(app)/icons/NebulaIcon";
12+
import { ContractIcon } from "../../../../../(dashboard)/(chain)/components/server/icons/ContractIcon";
13+
import { EngineIcon } from "../../../../../(dashboard)/(chain)/components/server/icons/EngineIcon";
14+
import { InsightIcon } from "../../../../../(dashboard)/(chain)/components/server/icons/InsightIcon";
15+
import { PayIcon } from "../../../../../(dashboard)/(chain)/components/server/icons/PayIcon";
16+
import { SmartAccountIcon } from "../../../../../(dashboard)/(chain)/components/server/icons/SmartAccountIcon";
17+
import { NebulaIcon } from "../../../../../../nebula-app/(app)/icons/NebulaIcon";
1818

1919
export function ProjectSidebarLayout(props: {
2020
layoutPath: string;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
XAxis,
1616
} from "recharts";
1717
import type { RpcMethodStats } from "types/analytics";
18-
import { EmptyStateCard } from "../../../../components/Analytics/EmptyStateCard";
18+
import { EmptyStateCard } from "../../../../../components/Analytics/EmptyStateCard";
1919

2020
export function RpcMethodBarChartCardUI({
2121
rawData,

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/components/Transactions/TransactionCharts.tsx renamed to apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/components/Transactions/TransactionCharts.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { fetchDashboardContractMetadata } from "@3rdweb-sdk/react/hooks/useDashb
22
import { type ThirdwebClient, defineChain, getContract } from "thirdweb";
33
import { getChainMetadata } from "thirdweb/chains";
44
import type { TransactionStats } from "types/analytics";
5-
import { TransactionsChartCardUI } from "../../../(team)/_components/TransactionsCard";
6-
import { PieChartCard } from "../../../../components/Analytics/PieChartCard";
5+
import { TransactionsChartCardUI } from "../../../../(team)/_components/TransactionsCard";
6+
import { PieChartCard } from "../../../../../components/Analytics/PieChartCard";
77

88
export function TransactionsChartsUI({
99
data,

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/connect/account-abstraction/factories/page.tsx renamed to apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/connect/account-abstraction/factories/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ import { redirect } from "next/navigation";
1313
import { Suspense } from "react";
1414
import { defineChain, getContract } from "thirdweb";
1515
import { getCompilerMetadata } from "thirdweb/contract";
16-
import { getSortedDeployedContracts } from "../../../../../../account/contracts/_components/getSortedDeployedContracts";
17-
import { getAuthToken } from "../../../../../../api/lib/getAuthToken";
18-
import { loginRedirect } from "../../../../../../login/loginRedirect";
16+
import { getSortedDeployedContracts } from "../../../../../../../account/contracts/_components/getSortedDeployedContracts";
17+
import { getAuthToken } from "../../../../../../../api/lib/getAuthToken";
18+
import { loginRedirect } from "../../../../../../../login/loginRedirect";
1919

2020
const trackingCategory = "smart-wallet";
2121

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/connect/account-abstraction/page.tsx renamed to apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/connect/account-abstraction/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { getUserOpUsage } from "@/api/analytics";
22
import { getProject } from "@/api/projects";
33
import { getTeamBySlug } from "@/api/team";
4+
import { getClientThirdwebClient } from "@/constants/thirdweb-client.client";
45
import {
56
type Range,
67
getLastNDaysRange,
@@ -9,8 +10,7 @@ import { AccountAbstractionAnalytics } from "components/smart-wallets/AccountAbs
910
import { AccountAbstractionSummary } from "components/smart-wallets/AccountAbstractionAnalytics/AccountAbstractionSummary";
1011
import { notFound, redirect } from "next/navigation";
1112
import type { SearchParams } from "nuqs/server";
12-
import { getClientThirdwebClient } from "../../../../../../../@/constants/thirdweb-client.client";
13-
import { getAuthToken } from "../../../../../api/lib/getAuthToken";
13+
import { getAuthToken } from "../../../../../../api/lib/getAuthToken";
1414
import { searchParamLoader } from "./search-params";
1515

1616
interface PageParams {

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/connect/account-abstraction/settings/page.tsx renamed to apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/connect/account-abstraction/settings/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import { getTeamBySlug } from "@/api/team";
33
import { ChakraProviderSetup } from "@/components/ChakraProviderSetup";
44
import { UnderlineLink } from "@/components/ui/UnderlineLink";
55
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
6+
import { getClientThirdwebClient } from "@/constants/thirdweb-client.client";
67
import { AccountAbstractionSettingsPage } from "components/smart-wallets/SponsorshipPolicies";
78
import { CircleAlertIcon } from "lucide-react";
89
import { redirect } from "next/navigation";
9-
import { getClientThirdwebClient } from "../../../../../../../../@/constants/thirdweb-client.client";
10-
import { getAuthToken } from "../../../../../../api/lib/getAuthToken";
11-
import { getValidTeamPlan } from "../../../../../components/TeamHeader/getValidTeamPlan";
10+
import { getAuthToken } from "../../../../../../../api/lib/getAuthToken";
11+
import { getValidTeamPlan } from "../../../../../../components/TeamHeader/getValidTeamPlan";
1212

1313
export default async function Page(props: {
1414
params: Promise<{ team_slug: string; project_slug: string }>;

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/connect/in-app-wallets/settings/page.tsx renamed to apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/connect/in-app-wallets/settings/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { getSMSCountryTiers } from "@/api/sms";
33
import { getTeamBySlug } from "@/api/team";
44
import { InAppWalletSettingsPage } from "components/embedded-wallets/Configure";
55
import { redirect } from "next/navigation";
6-
import { getValidTeamPlan } from "../../../../../components/TeamHeader/getValidTeamPlan";
6+
import { getValidTeamPlan } from "../../../../../../components/TeamHeader/getValidTeamPlan";
77

88
export default async function Page(props: {
99
params: Promise<{ team_slug: string; project_slug: string }>;

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/connect/in-app-wallets/users/page.tsx renamed to apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/connect/in-app-wallets/users/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { getProject } from "@/api/projects";
22
import { InAppWalletUsersPageContent } from "components/embedded-wallets/Users";
33
import { redirect } from "next/navigation";
4-
import { getAuthToken } from "../../../../../../api/lib/getAuthToken";
5-
import { loginRedirect } from "../../../../../../login/loginRedirect";
4+
import { getAuthToken } from "../../../../../../../api/lib/getAuthToken";
5+
import { loginRedirect } from "../../../../../../../login/loginRedirect";
66
import { TRACKING_CATEGORY } from "../_constants";
77

88
export default async function Page(props: {

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/connect/universal-bridge/page.tsx renamed to apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/connect/universal-bridge/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import { getProject } from "@/api/projects";
2+
import { Spinner } from "@/components/ui/Spinner/Spinner";
23
import { PayAnalytics } from "components/pay/PayAnalytics/PayAnalytics";
4+
import { PayAnalyticsFilter } from "components/pay/PayAnalytics/components/PayAnalyticsFilter";
5+
import { getUniversalBridgeFiltersFromSearchParams } from "lib/time";
36
import { ArrowUpRightIcon } from "lucide-react";
47
import { redirect } from "next/navigation";
58
import {
69
ResponsiveSearchParamsProvider,
710
ResponsiveSuspense,
811
} from "responsive-rsc";
9-
import { Spinner } from "../../../../../../../@/components/ui/Spinner/Spinner";
10-
import { PayAnalyticsFilter } from "../../../../../../../components/pay/PayAnalytics/components/PayAnalyticsFilter";
11-
import { getUniversalBridgeFiltersFromSearchParams } from "../../../../../../../lib/time";
1212

1313
export default async function Page(props: {
1414
params: Promise<{

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/connect/universal-bridge/webhooks/page.tsx renamed to apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/connect/universal-bridge/webhooks/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { getProject } from "@/api/projects";
2+
import { getTeamBySlug } from "@/api/team";
23
import { redirect } from "next/navigation";
3-
import { getTeamBySlug } from "../../../../../../../../@/api/team";
44
import { PayWebhooksPage } from "./components/webhooks.client";
55

66
export default async function Page(props: {

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/contracts/page.tsx renamed to apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/contracts/page.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { getProject } from "@/api/projects";
22
import { getTeamBySlug } from "@/api/team";
3+
import { getClientThirdwebClient } from "@/constants/thirdweb-client.client";
34
import { redirect } from "next/navigation";
4-
import { getClientThirdwebClient } from "../../../../../../@/constants/thirdweb-client.client";
5-
import { DeployedContractsPage } from "../../../../account/contracts/_components/DeployedContractsPage";
6-
import { getAuthToken } from "../../../../api/lib/getAuthToken";
7-
import { loginRedirect } from "../../../../login/loginRedirect";
5+
import { DeployedContractsPage } from "../../../../../account/contracts/_components/DeployedContractsPage";
6+
import { getAuthToken } from "../../../../../api/lib/getAuthToken";
7+
import { loginRedirect } from "../../../../../login/loginRedirect";
88
import { FooterLinksSection } from "../components/footer/FooterLinksSection";
99

1010
export default async function Page(props: {

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/engine/cloud/analytics/filter.tsx renamed to apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/engine/cloud/analytics/filter.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
"use client";
22

33
import { normalizeTimeISOString } from "@/lib/time";
4+
import { DateRangeSelector } from "components/analytics/date-range-selector";
5+
import { IntervalSelector } from "components/analytics/interval-selector";
46
import {
57
useResponsiveSearchParams,
68
useSetResponsiveSearchParams,
79
} from "responsive-rsc";
8-
import { DateRangeSelector } from "../../../../../../../../components/analytics/date-range-selector";
9-
import { IntervalSelector } from "../../../../../../../../components/analytics/interval-selector";
1010
import { getTxAnalyticsFiltersFromSearchParams } from "../lib/utils";
1111

1212
export function TransactionAnalyticsFilter() {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"use client";
22
import type { Project } from "@/api/projects";
3+
import { Button } from "@/components/ui/button";
34
import { type Step, StepsCard } from "components/dashboard/StepsCard";
45
import Link from "next/link";
56
import { useMemo, useState } from "react";
6-
import { Button } from "../../../../../../../../@/components/ui/button";
77
import CreateServerWallet from "../server-wallets/components/create-server-wallet.client";
88
import type { Wallet } from "../server-wallets/wallet-table/types";
99
import CreateVaultAccountButton from "../vault/components/create-vault-account.client";

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/engine/cloud/analytics/send-test-tx.client.tsx renamed to apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/engine/cloud/analytics/send-test-tx.client.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import { engineCloudProxy } from "@/actions/proxies";
33
import type { Project } from "@/api/projects";
44
import { SingleNetworkSelector } from "@/components/blocks/NetworkSelectors";
5+
import { CopyTextButton } from "@/components/ui/CopyTextButton";
56
import { Button } from "@/components/ui/button";
67
import { Input } from "@/components/ui/input";
78
import {
@@ -15,14 +16,13 @@ import { useThirdwebClient } from "@/constants/thirdweb.client";
1516
import { useDashboardRouter } from "@/lib/DashboardRouter";
1617
import { zodResolver } from "@hookform/resolvers/zod";
1718
import { useMutation, useQueryClient } from "@tanstack/react-query";
19+
import { useTrack } from "hooks/analytics/useTrack";
20+
import { useAllChainsData } from "hooks/chains/allChains";
1821
import { Loader2Icon, LockIcon } from "lucide-react";
1922
import { useState } from "react";
2023
import { useForm } from "react-hook-form";
2124
import { toast } from "sonner";
2225
import * as z from "zod";
23-
import { CopyTextButton } from "../../../../../../../../@/components/ui/CopyTextButton";
24-
import { useTrack } from "../../../../../../../../hooks/analytics/useTrack";
25-
import { useAllChainsData } from "../../../../../../../../hooks/chains/allChains";
2626
import type { Wallet } from "../server-wallets/wallet-table/types";
2727
import { SmartAccountCell } from "../server-wallets/wallet-table/wallet-table-ui.client";
2828
import { deleteUserAccessToken, getUserAccessToken } from "./utils";

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ import { ToolTipLabel } from "@/components/ui/tooltip";
3131
import { useThirdwebClient } from "@/constants/thirdweb.client";
3232
import { useDashboardRouter } from "@/lib/DashboardRouter";
3333
import { keepPreviousData, useQuery } from "@tanstack/react-query";
34+
import { ChainIconClient } from "components/icons/ChainIcon";
3435
import { formatDistanceToNowStrict } from "date-fns";
3536
import { format } from "date-fns/format";
3637
import { useAllChainsData } from "hooks/chains/allChains";
3738
import { ExternalLinkIcon, InfoIcon } from "lucide-react";
3839
import Link from "next/link";
3940
import { useState } from "react";
40-
import { ChainIconClient } from "../../../../../../../../../components/icons/ChainIcon";
4141
import type { Wallet } from "../../server-wallets/wallet-table/types";
4242
import type {
4343
Transaction,

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/engine/cloud/layout.tsx renamed to apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/engine/cloud/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Button } from "@/components/ui/button";
33
import { TabPathLinks } from "@/components/ui/tabs";
44
import { NEXT_PUBLIC_ENGINE_CLOUD_URL } from "@/constants/public-envs";
55
import Link from "next/link";
6-
import { EngineIcon } from "../../../../../(dashboard)/(chain)/components/server/icons/EngineIcon";
6+
import { EngineIcon } from "../../../../../../(dashboard)/(chain)/components/server/icons/EngineIcon";
77

88
export default async function Page(props: {
99
params: Promise<{ team_slug: string; project_slug: string }>;

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/engine/cloud/lib/analytics.ts renamed to apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/engine/cloud/lib/analytics.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { NEXT_PUBLIC_ENGINE_CLOUD_URL } from "@/constants/public-envs";
2-
import type { TransactionStats } from "../../../../../../../../types/analytics";
3-
import { getAuthToken } from "../../../../../../api/lib/getAuthToken";
2+
import type { TransactionStats } from "../../../../../../../../../types/analytics";
3+
import { getAuthToken } from "../../../../../../../api/lib/getAuthToken";
44
import type {
55
Transaction,
66
TransactionsResponse,

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/engine/cloud/lib/vault.client.ts renamed to apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/engine/cloud/lib/vault.client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
import type { Project } from "@/api/projects";
44
import { NEXT_PUBLIC_THIRDWEB_VAULT_URL } from "@/constants/public-envs";
5+
import { updateProjectClient } from "@3rdweb-sdk/react/hooks/useApi";
56
import {
67
type VaultClient,
78
createAccessToken,
89
createVaultClient,
910
} from "@thirdweb-dev/vault-sdk";
10-
import { updateProjectClient } from "../../../../../../../../@3rdweb-sdk/react/hooks/useApi";
1111

1212
const SERVER_WALLET_ACCESS_TOKEN_PURPOSE =
1313
"Access Token for All Server Wallets";

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { getProject } from "@/api/projects";
22
import { NEXT_PUBLIC_THIRDWEB_VAULT_URL } from "@/constants/public-envs";
33
import { createVaultClient, listEoas } from "@thirdweb-dev/vault-sdk";
44
import { notFound, redirect } from "next/navigation";
5-
import { getAuthToken } from "../../../../../api/lib/getAuthToken";
5+
import { getAuthToken } from "../../../../../../api/lib/getAuthToken";
66
import { TransactionsAnalyticsPageContent } from "./analytics/analytics-page";
77
import { EngineChecklist } from "./analytics/ftux.client";
88
import { TransactionAnalyticsSummary } from "./analytics/summary";
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"use client";
2+
import { engineCloudProxy } from "@/actions/proxies";
23
import type { Project } from "@/api/projects";
34
import { Button } from "@/components/ui/button";
45
import {
@@ -12,11 +13,10 @@ import { Input } from "@/components/ui/input";
1213
import { useDashboardRouter } from "@/lib/DashboardRouter";
1314
import { useMutation } from "@tanstack/react-query";
1415
import { createEoa } from "@thirdweb-dev/vault-sdk";
16+
import { useTrack } from "hooks/analytics/useTrack";
1517
import { Loader2Icon, WalletIcon } from "lucide-react";
1618
import { useState } from "react";
1719
import { toast } from "sonner";
18-
import { engineCloudProxy } from "../../../../../../../../../@/actions/proxies";
19-
import { useTrack } from "../../../../../../../../../hooks/analytics/useTrack";
2020
import { initVaultClient } from "../../lib/vault.client";
2121

2222
export default function CreateServerWallet(props: {

0 commit comments

Comments
 (0)