feat: remove issues/milestones from nav, show project code

This commit is contained in:
zhi
2026-03-12 09:25:35 +00:00
parent 5b37daed9b
commit 7099e5cf77
3 changed files with 2 additions and 3 deletions

View File

@@ -31,9 +31,7 @@ export default function Sidebar({ user, onLogout }: Props) {
const links = user ? [ const links = user ? [
{ to: '/', icon: '📊', label: 'Dashboard' }, { to: '/', icon: '📊', label: 'Dashboard' },
{ to: '/issues', icon: '📋', label: 'Issues' },
{ to: '/projects', icon: '📁', label: 'Projects' }, { to: '/projects', icon: '📁', label: 'Projects' },
{ to: '/milestones', icon: '🏁', label: 'Milestones' },
{ to: '/notifications', icon: '🔔', label: 'Notifications' + (unreadCount > 0 ? ' (' + unreadCount + ')' : '') }, { to: '/notifications', icon: '🔔', label: 'Notifications' + (unreadCount > 0 ? ' (' + unreadCount + ')' : '') },
{ to: '/monitor', icon: '📡', label: 'Monitor' }, { to: '/monitor', icon: '📡', label: 'Monitor' },
] : [ ] : [

View File

@@ -50,7 +50,7 @@ export default function ProjectsPage() {
<div className="project-grid"> <div className="project-grid">
{projects.map((p) => ( {projects.map((p) => (
<div key={p.id} className="project-card" onClick={() => navigate(`/projects/${p.id}`)}> <div key={p.id} className="project-card" onClick={() => navigate(`/projects/${p.id}`)}>
<h3>{p.name}</h3> <h3>{p.name}</h3>{p.project_code && <span className=badge style={{ marginLeft: 8 }}>{p.project_code}</span>}
<p className="project-desc">{p.description || 'No description'}</p> <p className="project-desc">{p.description || 'No description'}</p>
<div className="project-meta"> <div className="project-meta">
<span>Created {dayjs(p.created_at).format('YYYY-MM-DD')}</span> <span>Created {dayjs(p.created_at).format('YYYY-MM-DD')}</span>

View File

@@ -13,6 +13,7 @@ export interface Project {
name: string name: string
description: string | null description: string | null
owner_id: number owner_id: number
project_code: string | null
created_at: string created_at: string
} }