Todoist-style: priorities P1-P4, estimates, FAB add form, Today view, natural quick add, drag-and-drop with haptics
All checks were successful
Build & Release APK / build (push) Successful in 1m53s

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-07 19:46:11 -07:00
parent 035a114e58
commit 0487bc7e4e
17 changed files with 752 additions and 123 deletions

24
app/src/lib/priority.ts Normal file
View File

@@ -0,0 +1,24 @@
import type { Task } from "./types";
export const PRIORITIES: Task["priority"][] = [1, 2, 3, 4];
export const PRIORITY_LABEL: Record<Task["priority"], string> = {
1: "Urgent",
2: "High",
3: "Medium",
4: "Low",
};
export const PRIORITY_COLOR: Record<Task["priority"], string> = {
1: "#E05B5B",
2: "#E0A93E",
3: "#5B8DEF",
4: "#6B7280",
};
export function formatEstimate(min: number | null): string | null {
if (!min) return null;
const h = Math.floor(min / 60);
const m = min % 60;
return h ? (m ? `${h}h${m}` : `${h}h`) : `${m}m`;
}