feat: remove issues/milestones from nav, show project code
This commit is contained in:
@@ -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' },
|
||||
] : [
|
||||
|
||||
@@ -50,7 +50,7 @@ export default function ProjectsPage() {
|
||||
<div className="project-grid">
|
||||
{projects.map((p) => (
|
||||
<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>
|
||||
<div className="project-meta">
|
||||
<span>Created {dayjs(p.created_at).format('YYYY-MM-DD')}</span>
|
||||
|
||||
@@ -13,6 +13,7 @@ export interface Project {
|
||||
name: string
|
||||
description: string | null
|
||||
owner_id: number
|
||||
project_code: string | null
|
||||
created_at: string
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user