feat(hook): add display name to template ID mapping and improve translation fallback logic

This commit is contained in:
catlog22
2026-02-27 13:58:45 +08:00
parent e61f539d44
commit b449b225fe
2 changed files with 40 additions and 6 deletions

View File

@@ -86,7 +86,7 @@ export function useLoops(options: UseLoopsOptions = {}): UseLoopsReturn {
return loops;
})();
// Group by status for Kanban
// Group by status for Kanban (use filteredLoops to respect search filter)
const loopsByStatus: Record<Loop['status'], Loop[]> = {
created: [],
running: [],
@@ -95,7 +95,7 @@ export function useLoops(options: UseLoopsOptions = {}): UseLoopsReturn {
failed: [],
};
for (const loop of allLoops) {
for (const loop of filteredLoops) {
loopsByStatus[loop.status].push(loop);
}