Conversation
projects tab in the team page
🚀 Preview Deployment:
|
Contributor
There was a problem hiding this comment.
Pull request overview
Implements initial “Project” support across the stack (DB schema, backend services + API routes, frontend hooks/controllers, and a basic dashboard UI) to enable listing and creating projects within a team context.
Changes:
- Added
projectdatabase table + Drizzle migration/snapshot, plus shared project types/schemas. - Introduced
ProjectServiceand/api/teams/[teamId]/projects*endpoints for CRUD + slug resolution. - Added client-side hooks/controller and a dashboard projects table with create dialog + project details page.
Reviewed changes
Copilot reviewed 19 out of 19 changed files in this pull request and generated 14 comments.
Show a summary per file
| File | Description |
|---|---|
| src/services/TeamService.ts | Reuses shared nameToSlug utility for team slug generation. |
| src/services/ProjectService.ts | Adds server-side project CRUD, permissions checks, and slug logic. |
| src/lib/utils/team-utils.ts | Introduces project-related permission actions. |
| src/lib/utils.ts | Adds nameToSlug helper for consistent slug generation. |
| src/lib/types/project-types.ts | Adds project select map + Zod schemas for create/rename. |
| src/hooks/useProject.ts | Adds useProject, useProjects, and project mutations for react-query. |
| src/db/schema/project.ts | Defines project table and unique (teamId, slug) constraint. |
| src/db/schema/index.ts | Re-exports project schema. |
| src/controllers/ProjectController.ts | Adds client API wrapper for project endpoints. |
| src/app/dashboard/[teamSlug]/projects/[projectSlug]/page.tsx | Adds basic project page rendering name/slug. |
| src/app/dashboard/[teamSlug]/page.tsx | Adds projects table, create dialog trigger, and row navigation. |
| src/app/dashboard/[teamSlug]/components/ProjectColumn.tsx | Defines table columns and per-row actions menu. |
| src/app/dashboard/[teamSlug]/components/CreateProjectDialog.tsx | Adds “create project” dialog with name input and mutation handling. |
| src/app/api/teams/[teamId]/projects/route.ts | Implements list/create projects API endpoints. |
| src/app/api/teams/[teamId]/projects/resolve-slug/[slug]/route.ts | Adds “resolve slug to project” API endpoint. |
| src/app/api/teams/[teamId]/projects/[projectId]/route.ts | Implements get/rename/delete project API endpoints. |
| drizzle/meta/0003_snapshot.json | Adds schema snapshot including new project table. |
| drizzle/meta/_journal.json | Registers migration 0003_happy_starhawk. |
| drizzle/0003_happy_starhawk.sql | Migration creating project table and unique index. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/app/dashboard/[teamSlug]/components/CreateProjectDialog.tsx
Outdated
Show resolved
Hide resolved
other tables in this project
rename function return undefined (team doesn't own the target project)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Issue #34