feat: code-first navigation — use resource codes in links and displays
- DashboardPage: show task_code instead of #id, link via code - TasksPage: navigate to tasks via task_code - MilestoneDetailPage: navigate to tasks/supports/meetings via codes - MilestoneDetailPage: display codes in support/meeting tables - Fix support/meeting state types to any[] for code property access
This commit is contained in:
@@ -55,13 +55,13 @@ export default function DashboardPage() {
|
||||
<h3>Recent Tasks</h3>
|
||||
<table>
|
||||
<thead>
|
||||
<tr><th>ID</th><th>Title</th><th>Status</th><th>Priority</th><th>Type</th><th>Subtype</th></tr>
|
||||
<tr><th>Code</th><th>Title</th><th>Status</th><th>Priority</th><th>Type</th><th>Subtype</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{(stats.recent_tasks || []).map((i) => (
|
||||
<tr key={i.id}>
|
||||
<td>#{i.id}</td>
|
||||
<td><a href={`/tasks/${i.id}`}>{i.title}</a></td>
|
||||
<td>{i.task_code || `#${i.id}`}</td>
|
||||
<td><a href={`/tasks/${i.task_code || i.id}`}>{i.title}</a></td>
|
||||
<td><span className={`badge status-${i.status}`}>{i.status}</span></td>
|
||||
<td><span className={`badge priority-${i.priority}`}>{i.priority}</span></td>
|
||||
<td>{i.task_type}</td><td>{i.task_subtype || "-"}</td>
|
||||
|
||||
Reference in New Issue
Block a user