Skip to content

Commit ad2d225

Browse files
committed
Dashboard: File organization changes (#7788)
<!-- ## 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. --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a hook to fetch favorite chain IDs for user accounts. * Introduced contract verification functionality. * Added UI for saving deployed contracts to projects. * Provided new lightweight types for teams and projects. * **Bug Fixes** * Replaced NFT media cell rendering in marketplace tables for improved display and interaction. * **Refactor** * Standardized and reorganized import paths across the app for improved maintainability. * Renamed and updated fieldset components in contract deployment forms for consistency. * Centralized and simplified cookie and authentication token handling. * Removed or relocated obsolete and redundant components and types. * **Chores** * Cleaned up unused files and consolidated constants. * Updated and clarified type imports throughout the codebase. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 0aac9a8 commit ad2d225

File tree

414 files changed

+768
-779
lines changed

Some content is hidden

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

414 files changed

+768
-779
lines changed

apps/dashboard/src/@/actions/getAccount.ts renamed to apps/dashboard/src/@/actions/account/getAccount.ts

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

3-
import { getRawAccount } from "../../app/(app)/account/settings/getAccount";
3+
import { getRawAccount } from "@/api/account/get-account";
44

55
export async function getRawAccountAction() {
66
return getRawAccount();

apps/dashboard/src/@/actions/stripe-actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import "server-only";
22

33
import Stripe from "stripe";
4-
import type { Team } from "@/api/team";
4+
import type { Team } from "@/api/team/get-team";
55
import { STRIPE_SECRET_KEY } from "@/constants/server-envs";
66

77
let existingStripe: Stripe | undefined;

apps/dashboard/src/@/actions/createTeam.ts renamed to apps/dashboard/src/@/actions/team/createTeam.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import "server-only";
55
import { randomBytes } from "crypto";
66
import { format } from "date-fns";
77
import { getAuthToken } from "@/api/auth-token";
8-
import type { Team } from "@/api/team";
8+
import type { Team } from "@/api/team/get-team";
99
import { NEXT_PUBLIC_THIRDWEB_API_HOST } from "@/constants/public-envs";
1010

1111
export async function createTeam(options?: { name?: string; slug?: string }) {

apps/dashboard/src/@/analytics/report.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use client";
22
import posthog from "posthog-js";
33

4-
import type { Team } from "@/api/team";
4+
import type { Team } from "@/api/team/get-team";
55
import type { ProductSKU } from "../types/billing";
66

77
// ----------------------------

apps/dashboard/src/app/(app)/account/settings/getAccount.ts renamed to apps/dashboard/src/@/api/account/get-account.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { getAuthToken } from "@/api/auth-token";
22
import { NEXT_PUBLIC_THIRDWEB_API_HOST } from "@/constants/public-envs";
33
import type { Account } from "@/hooks/useApi";
4+
import { isAccountOnboardingComplete } from "@/utils/account-onboarding";
45
import { loginRedirect } from "@/utils/redirects";
5-
import { isAccountOnboardingComplete } from "../../../login/onboarding/isOnboardingRequired";
66

77
/**
88
* Just get the account object without enforcing onboarding.

0 commit comments

Comments
 (0)