mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-11 09:36:08 +00:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user