feat: add workspace management features including member invitations and role updates

- Implemented API endpoints for managing workspace members (GET, POST, PATCH, DELETE).
- Added workspace creation and retrieval functionalities.
- Enhanced project model to associate with workspaces.
- Updated project member roles and access control logic.
- Created sign-out page and updated authentication flow.
- Modified header to include navigation to workspaces.
- Updated Prisma schema to include workspace and member models.
- Seed script updated to create demo workspaces and associated members.
This commit is contained in:
Yusuf İpek
2026-02-07 07:41:12 +03:00
parent d90ce4e1f6
commit 6e95f667e3
28 changed files with 2891 additions and 138 deletions
+3 -1
View File
@@ -5,6 +5,7 @@ import { usePathname } from 'next/navigation';
import {
Video,
FolderOpen,
Building2,
Plus,
Settings,
LogOut,
@@ -32,6 +33,7 @@ interface NavItem {
const navItems: NavItem[] = [
{ href: '/dashboard', label: 'Projects', icon: FolderOpen },
{ href: '/workspaces', label: 'Workspaces', icon: Building2 },
];
interface HeaderProps {
@@ -151,7 +153,7 @@ export function Header({ user }: HeaderProps) {
</DropdownMenuItem>
<DropdownMenuSeparator />
<DropdownMenuItem asChild>
<Link href="/api/auth/signout">
<Link href="/signout">
<LogOut className="h-4 w-4 mr-2" />
Sign out
</Link>