From 4f1e140da53237dc21333961eee8a97ebfbc75b5 Mon Sep 17 00:00:00 2001 From: Christian Screen Date: Sat, 24 Jan 2026 14:39:31 -0500 Subject: [PATCH] some changes on refactoring to erd-viewer... --- AGENTS.md | 9 ++++++++- frontend/packages/cli/CHANGELOG.md | 6 +++--- frontend/packages/erd-core/CHANGELOG.md | 2 +- .../CommandPalettePreview/CommandPreview.tsx | 5 +++++ 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index fbf3cd7042..a885d0e458 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,12 +1,14 @@ # Repository Guidelines ## Project Structure & Modules + - frontend/apps/*: Next.js apps (e.g., `@dlh/erd-viewer-app`, `@dlh/erd-viewer-docs`). -- frontend/packages/*: Shared libraries and tools (e.g., `schema`, `erd-core`, `cli`, `ui`). +- frontend/packages/*: Shared libraries and tools (e.g., `erd-viewer-schema`, `erd-viewer-core`, `erd-viewer-cli`, `erd-viewer-ui`). - frontend/internal-packages/*: Infra and tooling (`e2e`, `configs`, `storybook`, `agent`). - assets/: Images and media. docs/: Documentation. scripts/: Repo utilities. ## Build, Test, and Development + - Install: `pnpm install` - All apps/packages (Turbo): - Dev: `pnpm dev` (or one app: `pnpm -F @dlh/erd-viewer-app dev`) @@ -19,26 +21,31 @@ - Build Next: `pnpm -F @dlh/erd-viewer-app build` ## Coding Style & Naming + - Language: TypeScript/TSX; React components in PascalCase (e.g., `App.tsx`); utilities in camelCase (e.g., `mergeSchema.ts`). - CSS Modules: `*.module.css` with typed CSS via `typed-css-modules`. - Lint/Format: Biome and ESLint. Run `pnpm fmt` and `pnpm lint`. Pre-commit hooks run `pnpm lint` (see `lefthook.yml`). ## Testing Guidelines + - Unit tests: Vitest. Place near source as `*.test.ts(x)` or in `__tests__/`. - E2E tests: Playwright in `frontend/internal-packages/e2e`. - Commands: `pnpm test` for unit, `pnpm test:e2e` for Playwright, `pnpm test:coverage` for V8 coverage. ## Commit & Pull Requests + - Commit style: Conventional Commits (e.g., `feat:`, `fix:`, `chore(deps): ...`). - Before pushing: `pnpm fmt && pnpm lint && pnpm test`. - PRs: clear description, linked issues, screenshots for UI changes, and note any env or migration impacts. - Versioning: If you change a publishable package, add a changeset: `pnpm changeset`. ## Security & Configuration + - Environment: use `.env`/`.env.local` (created automatically by `pnpm prebuild`). Never commit secrets. - Sync Vercel envs (optional): `pnpm vercel:env-pull` and link with `pnpm vercel:link`. - Common vars: `NEXT_PUBLIC_*`, Sentry keys, and job runner tokens (see `turbo.json` env list). ## Tips + - Target a single package with `pnpm -F