Compare commits

..
1 Commits
Author SHA1 Message Date
bot-ci 3254648849 fix(system): sort recent tasks by started_at desc
「最近任务」原先按 kv 键名排序。改为后端 `_task_records` 按
started_at 倒序写入 dict(缺开始时间排末尾,含进行中);
前端不再参与排序。配套 test_system_tasks_sorted_by_started_at_desc。
2026-11-02 19:52:46 +08:00
@@ -6,7 +6,6 @@ import {
} from "../format.js";
function taskRows(tasks) {
// Order comes from backend (_task_records started_at DESC); do not re-sort here.
const entries = Object.entries(tasks || {});
if (!entries.length) return emptyState("暂无任务记录", "运行一次同步、快照或发现后会写入最近结果。");
return `<div class="table-wrap">