From 7099e5cf77ad94a63f882481c9490af48003b6ac Mon Sep 17 00:00:00 2001 From: zhi Date: Thu, 12 Mar 2026 09:25:35 +0000 Subject: [PATCH] feat: remove issues/milestones from nav, show project code --- src/components/Sidebar.tsx | 2 -- src/pages/ProjectsPage.tsx | 2 +- src/types/index.ts | 1 + 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index 5999a9e..1b0ade5 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -31,9 +31,7 @@ export default function Sidebar({ user, onLogout }: Props) { const links = user ? [ { to: '/', icon: '📊', label: 'Dashboard' }, - { to: '/issues', icon: '📋', label: 'Issues' }, { to: '/projects', icon: '📁', label: 'Projects' }, - { to: '/milestones', icon: '🏁', label: 'Milestones' }, { to: '/notifications', icon: '🔔', label: 'Notifications' + (unreadCount > 0 ? ' (' + unreadCount + ')' : '') }, { to: '/monitor', icon: '📡', label: 'Monitor' }, ] : [ diff --git a/src/pages/ProjectsPage.tsx b/src/pages/ProjectsPage.tsx index 7374b66..6139645 100644 --- a/src/pages/ProjectsPage.tsx +++ b/src/pages/ProjectsPage.tsx @@ -50,7 +50,7 @@ export default function ProjectsPage() {
{projects.map((p) => (
navigate(`/projects/${p.id}`)}> -

{p.name}

+

{p.name}

{p.project_code && {p.project_code}}

{p.description || 'No description'}

Created {dayjs(p.created_at).format('YYYY-MM-DD')} diff --git a/src/types/index.ts b/src/types/index.ts index 3949d8b..9995807 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -13,6 +13,7 @@ export interface Project { name: string description: string | null owner_id: number + project_code: string | null created_at: string }