Skip to content

Refactor: Migrate to Prisma-generated Project types (Updated with main sync) - #68

Merged
norberia merged 5 commits into
FullAgent:mainfrom
norberia:refactor/project-id-layout
Nov 9, 2025
Merged

Refactor: Migrate to Prisma-generated Project types (Updated with main sync)#68
norberia merged 5 commits into
FullAgent:mainfrom
norberia:refactor/project-id-layout

Conversation

@norberia

@norberia norberia commented Nov 9, 2025

Copy link
Copy Markdown
Collaborator

Summary

  • Remove custom Project type definition and migrate to Prisma-generated types
  • Update ProjectCard and projects page components to import from @prisma/client
  • Enhance type safety by using ProjectStatus enum instead of string
  • Ensure consistency with database schema across all components
  • Updated: Sync latest changes from main branch including React Query hooks

Changes included

  • Removed: types/project.ts (custom type definition)
  • Updated: components/features/projectList/ProjectCard.tsx
  • Updated: app/projects/page.tsx - now uses main branch's React Query implementation with Prisma types
  • Synced: All latest changes from main branch (terminal redesign, hooks, etc.)
  • Benefit: Better type safety and consistency with database schema

Resolved conflicts

  • app/projects/page.tsx: Kept Project import, adopted main's hooks implementation
  • app/projects/[id]/layout.tsx: Removed deleted components
  • app/settings/layout.tsx: File deleted in main, removed from branch

Test plan

  • Verify ProjectCard component renders correctly with Prisma types
  • Verify projects list page loads and displays projects with new hooks
  • Check that all TypeScript compilation passes
  • Confirm no runtime errors in components using Project types
  • Test project status display and filtering logic
  • Verify terminal functionality after main branch sync

🤖 Generated with Claude Code

norberia and others added 2 commits November 9, 2025 16:22
- Move primary-sidebar.tsx and project-sidebar.tsx to components/sidebars/
- Update import paths in app/settings/layout.tsx and app/projects/[id]/layout.tsx
- Improve code organization and modularity

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Remove custom Project type definition from types/project.ts
- Update imports in ProjectCard and projects page to use @prisma/client
- Enhance type safety by using ProjectStatus enum instead of string
- Ensure consistency with database schema across all components

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 9, 2025

Copy link
Copy Markdown

✅ PR Check Results: Passed

Build Checks

Check Status
Lint & Build ✅ Passed
Docker Build ✅ Passed

✨ Great work!

All checks passed successfully. Your PR is ready for review.

Details:

  • ✅ Code quality verified (linting passed)
  • ✅ Build successful
  • ✅ Docker image build verified (linux/amd64)
    Commit: 0c638517156684f4d2f9f160ed53063f63744d42
    Branch: refactor/project-id-layout

🔗 View Details:

- Sync latest changes from main branch
- Resolve conflicts in project layout and pages
- Maintain Project type import from @prisma/client
- Adopt main branch's React Query hooks approach for projects page

Conflicts resolved:
- app/projects/page.tsx: Keep Project import, use main's hooks implementation
- app/projects/[id]/layout.tsx: Remove deleted components
- app/settings/layout.tsx: File deleted in main, remove from branch

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@norberia norberia changed the title Refactor: Migrate to Prisma-generated Project types Refactor: Migrate to Prisma-generated Project types (Updated with main sync) Nov 9, 2025
norberia and others added 2 commits November 9, 2025 22:54
- Change from custom '@/types/project' to '@prisma/client'
- Fix ESLint import sorting issues
- Remove redundant variable to resolve linting warnings

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Remove unused Project import from app/projects/page.tsx (type inferred from hook)
- Update import order in hooks/use-projects.ts for ESLint compliance
- Clean up redundant imports after Prisma type migration

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@norberia
norberia merged commit 5c11860 into FullAgent:main Nov 9, 2025
9 checks passed
@norberia
norberia deleted the refactor/project-id-layout branch November 10, 2025 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant