added tags and tag manager

This commit is contained in:
2026-01-31 14:14:39 -06:00
parent 9ca490075b
commit d6864a9443
11 changed files with 633 additions and 43 deletions
+3 -2
View File
@@ -1,5 +1,5 @@
import { type Component, For, createMemo } from "solid-js";
import { store, calculateUrgencyScore } from "@/store";
import { store, calculateUrgencyScore, getCombinedScore } from "@/store";
import { TaskCard } from "@/components/TaskCard";
export const UrgencyView: Component = () => {
@@ -9,7 +9,8 @@ export const UrgencyView: Component = () => {
const uA = calculateUrgencyScore(a.dueDate);
const uB = calculateUrgencyScore(b.dueDate);
if (uA !== uB) return uB - uA;
return b.priority - a.priority;
// Tie-break with combined score (Priority + Tags)
return getCombinedScore(b) - getCombinedScore(a);
});
});