From b183c2849b632bee689195cc2955f8f3a5163ed1 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Sep 2026 22:37:59 +1000 Subject: [PATCH] UI: restyle task detail onto the new tokens Co-Authored-By: Claude Opus 5 --- app/src/app/task/[id].tsx | 76 ++++++++++++++++++++++++--------------- 1 file changed, 48 insertions(+), 28 deletions(-) diff --git a/app/src/app/task/[id].tsx b/app/src/app/task/[id].tsx index d365551..c3d60f2 100644 --- a/app/src/app/task/[id].tsx +++ b/app/src/app/task/[id].tsx @@ -4,11 +4,11 @@ import { Pressable, ScrollView, StyleSheet, Text, View } from "react-native"; import DateField from "../../components/DateField"; import EstimateChips from "../../components/EstimateChips"; import PriorityChips from "../../components/PriorityChips"; -import { Button, Chips, Field } from "../../components/ui"; +import { Button, Chips, Empty, Field } from "../../components/ui"; import { haptic } from "../../lib/haptics"; import { REPEAT_LABEL, REPEATS } from "../../lib/repeat"; import { activeProjects, knownContexts, trashTask, updateTask } from "../../lib/store"; -import { C } from "../../lib/theme"; +import { C, radius, space, type } from "../../lib/theme"; import { useStore } from "../../lib/useStore"; import type { Repeat, Task, TaskStatus } from "../../lib/types"; @@ -22,7 +22,7 @@ export default function TaskDetail() { // Draft is local to the screen; nothing is written until Save. const [draft, setDraft] = useState(original ?? null); - if (!draft) return Task not found.; + if (!draft) return Task not found.; const set = (patch: Partial) => setDraft({ ...draft, ...patch }); @@ -50,7 +50,7 @@ export default function TaskDetail() { if (draft.status === "trashed") { return ( - + {draft.title} In the trash.