Show all sprints in task detail dialog (not filtered by project)

This commit is contained in:
OpenClaw Bot 2026-02-19 19:44:43 -06:00
parent 226e446f5f
commit 5bcb1a6468
2 changed files with 5 additions and 3 deletions

View File

@ -482,7 +482,7 @@
]
}
],
"lastUpdated": 1771551566326,
"lastUpdated": 1771551794092,
"sprints": [
{
"name": "Sprint 1",

View File

@ -615,8 +615,10 @@ export default function Home() {
className="w-full mt-2 px-3 py-2 bg-slate-800 border border-slate-700 rounded-lg text-white focus:outline-none focus:border-blue-500"
>
<option value="">No Sprint</option>
{sprints.filter(s => s.projectId === selectedProjectId).map((sprint) => (
<option key={sprint.id} value={sprint.id}>{sprint.name}</option>
{sprints.sort((a, b) => new Date(a.startDate).getTime() - new Date(b.startDate).getTime()).map((sprint) => (
<option key={sprint.id} value={sprint.id}>
{sprint.name} ({new Date(sprint.startDate).toLocaleDateString()})
</option>
))}
</select>
</div>