fixed due today and made it due within 12 hrs either way. Also added 'complete until' language to recurring task status update dropdown

This commit is contained in:
2026-02-21 12:19:12 -06:00
parent 6356a7f653
commit 759c873b63
3 changed files with 56 additions and 10 deletions
+4 -2
View File
@@ -9,7 +9,7 @@ import { calculateDateFromUrgency, calculateUrgencyFromDate } from "@/store";
import { Button } from "./ui/button";
import { TagPicker } from "./TagPicker";
import { Badge } from "./ui/badge";
import { PRIORITY_OPTIONS, URGENCY_OPTIONS, SIZE_OPTIONS, STATUS_OPTIONS } from "@/lib/constants";
import { PRIORITY_OPTIONS, URGENCY_OPTIONS, SIZE_OPTIONS, getStatusOptionsForTask } from "@/lib/constants";
import { store } from "@/store";
import { cn } from "@/lib/utils";
import { toast } from "solid-sonner";
@@ -136,6 +136,8 @@ export const TaskDetail: Component<TaskDetailProps> = (props) => {
return tags;
});
const statusOptions = createMemo(() => getStatusOptionsForTask(props.task.recurrence));
return (
<Sheet open={props.isOpen} onOpenChange={(open) => {
if (!open) {
@@ -164,7 +166,7 @@ export const TaskDetail: Component<TaskDetailProps> = (props) => {
<Select<any>
value={(props.task.status ?? 0).toString()}
onChange={(val: string | null) => val && updateStatus(val)}
options={STATUS_OPTIONS}
options={statusOptions()}
optionValue="value"
optionTextValue="label"
placeholder="Status"