diff --git a/packages/morph/CLAUDE.md b/packages/morph/CLAUDE.md new file mode 100644 index 00000000..2e684bb1 --- /dev/null +++ b/packages/morph/CLAUDE.md @@ -0,0 +1,30 @@ +# CLAUDE.md + +This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. + +## Build Commands + +- Development: `pnpm dev` +- Build: `pnpm build` +- Lint: `pnpm lint` +- Format: `pnpm format` +- Format check: `pnpm format:check` +- Database migrations: `pnpm migrate` + +## Code Style Guidelines + +- TypeScript with strict typing (avoid `any` when possible) +- Use Next.js and React best practices with functional components +- Format: 100 char width, single quotes, no semicolons, trailing commas +- Naming: camelCase for variables/functions, PascalCase for components/classes, and snake-case for filenames. +- Imports: Follow order - React/Next imports first, then external libs, internal modules +- Error handling: Prefer early returns over deep nesting +- Component organization: Keep components focused on single responsibility +- Performance: Use memoization where appropriate, ensure proper cleanup in useEffect + +## Architecture + +- Next.js frontend with TypeScript +- DrizzleORM for database operations +- React Context for state management +- Follow existing patterns when adding new components or features diff --git a/packages/morph/app/globals.css b/packages/morph/app/globals.css index d9dd4a39..157ec87f 100644 --- a/packages/morph/app/globals.css +++ b/packages/morph/app/globals.css @@ -1973,7 +1973,9 @@ canvas { max-width: 300px; min-width: 260px; width: auto; - box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 5px 10px -5px rgba(0, 0, 0, 0.05); + box-shadow: + 0 10px 25px -5px rgba(0, 0, 0, 0.1), + 0 5px 10px -5px rgba(0, 0, 0, 0.05); } /* Hide the default CodeMirror search panel */ diff --git a/packages/morph/app/layout.tsx b/packages/morph/app/layout.tsx index 2ce38e08..8f0602e4 100644 --- a/packages/morph/app/layout.tsx +++ b/packages/morph/app/layout.tsx @@ -3,7 +3,7 @@ import PlausibleProvider from "next-plausible" import Script from "next/script" import type React from "react" -import { Toaster } from "@/components/ui/toaster" +import { Toaster } from "@/components/ui/sonner" import ClientProvider from "@/context/providers" @@ -49,7 +49,7 @@ export default async function RootLayout({ children }: { children: React.ReactNo {children} - + {process.env.NODE_ENV === "production" && (