Conversation
- Use type-only imports for NextRequest and FormEvent - Remove unused imports: useState, format, useMemo, formatDistanceToNow - Remove unused StatusBadge component in feedback page - Fix import group ordering (externals before internals, empty lines between groups) - Prefix unused variables and params with underscore (_isLoading, _currentPreset, _onPageChange, etc.)
- kal-admin/vercel.json: use turbo build pipeline (mirrors kal-frontend) so kal-shared and kal-backend are built before kal-admin on Vercel - kal-shared/package.json: add exports field for NodeNext module resolution - kal-backend/package.json: add types/exports fields pointing to compiled router declarations so consumers don't need deep source imports - kal-admin/src/lib/trpc.ts: replace deep source import with package root - kal-frontend/src/lib/trpc.ts: same fix
- Replace all `as any` casts with typed alternatives (Filter<Document>, User['_id']) - Fix import ordering across multiple files (auto-fixed by eslint --fix) - Merge duplicate kal-shared imports into single statement - Rename unused caught error to _error in chat router - Add eslint-disable comment for unfixable import/order edge case in rate-limit.ts
…kflows kal-frontend and kal-admin import AppRouter from kal-backend's compiled dist/. Without building kal-backend first, the module cannot be resolved in CI causing all trpc.* calls to fail type checking.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (27)
📝 WalkthroughWalkthroughThis PR modernizes the monorepo's module resolution and build setup. It adds kal-backend to GitHub Actions workflows for proper dependency building, updates package.json exports in kal-backend and kal-shared for module resolution, changes cross-package imports to use the new export paths, converts runtime imports to type-only imports, removes unused imports, and applies formatting normalization throughout the codebase. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~35 minutes Possibly related PRs
Poem
✨ Finishing Touches
🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
📝 Description
Brief description of what this PR does.
🔗 Related Issue
Fixes #(issue number)
🏷️ Type of Change
✅ Checklist
dev(notmain)pnpm lint:fixpnpm typecheck📸 Screenshots (if applicable)
Add screenshots to help explain your changes.
🧪 How to Test
Steps to test this PR:
📝 Additional Notes
Any additional information reviewers should know.
Summary by CodeRabbit