fix: Add task numbers to mobile task index

- Extract task number from title (#XX pattern) or Task ID field
- Display task number in gold before title
- Clean up redundant 'Task #XX:' from displayed title
- Sort by priority, then task number, then title

Chronicler #69
This commit is contained in:
Claude
2026-04-08 14:28:43 +00:00
parent 9bb4101ffe
commit 51b388902a
3 changed files with 75 additions and 4 deletions

View File

@@ -136,11 +136,18 @@ permalink: /tasks-index.html
text-decoration: underline;
}
.task-number {
color: var(--gold);
font-weight: 700;
margin-right: 6px;
}
.priority-badge {
font-size: 0.75rem;
padding: 2px 8px;
border-radius: 4px;
font-weight: 600;
white-space: nowrap;
}
.priority-badge.P1 { background: var(--fire); }
@@ -208,7 +215,7 @@ permalink: /tasks-index.html
<div class="task-header">
<div class="task-title">
<a href="{{ task.giteaUrl }}" target="_blank" rel="noopener">
{{ task.title }}
{% if task.taskNumber %}<span class="task-number">#{{ task.taskNumber }}</span>{% endif %}{{ task.title | replace("Task #" + task.taskNumber + ":", "") | replace("Task #" + task.taskNumber, "") | replace("Task:", "") | trim }}
</a>
</div>
<span class="priority-badge {{ task.priority }}">{{ task.priority }}</span>