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,

0 commit comments

Comments
 (0)