feat(tasks): adopt canonical task statuses
This commit is contained in:
parent
da5aee6e38
commit
38835e9e79
61 changed files with 692 additions and 342 deletions
|
|
@ -44,7 +44,7 @@ if (raw.error) {
|
|||
<div><span>Tasks</span><strong>${taskRows.length}</strong></div>
|
||||
</div>`);
|
||||
|
||||
const statusOrder = {blocked: 0, in_progress: 1, todo: 2, done: 3, cancelled: 4};
|
||||
const statusOrder = {wait: 0, progress: 1, todo: 2, done: 3, cancel: 4};
|
||||
const sortedTasks = [...taskRows].sort((a, b) => {
|
||||
const statusCompare = (statusOrder[a.status] ?? 9) - (statusOrder[b.status] ?? 9);
|
||||
if (statusCompare !== 0) return statusCompare;
|
||||
|
|
@ -131,8 +131,8 @@ if (raw.error) {
|
|||
white-space: nowrap;
|
||||
}
|
||||
.task-status-done { background: #e8f5e9; color: #1b5e20; }
|
||||
.task-status-in_progress { background: #e3f2fd; color: #0d47a1; }
|
||||
.task-status-blocked { background: #fff3e0; color: #bf360c; }
|
||||
.task-status-progress { background: #ede9fe; color: #5b21b6; }
|
||||
.task-status-wait { background: #fff3e0; color: #bf360c; }
|
||||
.task-status-todo { background: #f1f5f9; color: #334155; }
|
||||
.task-status-cancelled { background: #f3f4f6; color: #6b7280; }
|
||||
.task-status-cancel { background: #f3f4f6; color: #6b7280; }
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue