From 29eefdea27783d84f256f4183deb9eb2bf4a5810 Mon Sep 17 00:00:00 2001 From: Amirhossein Khalili Date: Sat, 25 Apr 2026 19:07:39 +0330 Subject: [PATCH] refactor(timesheet): use icon actions for the main timer --- src/pages/Timesheet.tsx | 67 +++++++++++++++++++++++++++-------------- 1 file changed, 45 insertions(+), 22 deletions(-) diff --git a/src/pages/Timesheet.tsx b/src/pages/Timesheet.tsx index 0de1ad8..5d629b9 100644 --- a/src/pages/Timesheet.tsx +++ b/src/pages/Timesheet.tsx @@ -1,6 +1,6 @@ import { useCallback, useEffect, useMemo, useRef, useState } from "react"; import { createPortal } from "react-dom"; -import { CalendarDays, Check, ChevronDown, Clock3, DollarSign, MoreVertical, Pencil, Play, Plus, Tag as TagIcon, Trash2 } from "lucide-react"; +import { CalendarDays, Check, ChevronDown, Clock3, DollarSign, MoreVertical, Pencil, Play, Plus, Search, Square, Tag as TagIcon, Trash2 } from "lucide-react"; import { toast } from "sonner"; import { getProjects, type Project } from "../api/projects"; @@ -658,10 +658,16 @@ function TagMultiSelect({ {selected && } ); - })} - - )} - , + })} + {filteredTags.length === 0 && ( +
+ No tags found. +
+ )} + + + )} + , document.body ) )} @@ -2155,23 +2161,40 @@ export default function Timesheet() {
{runningEntry ? ( <> - - - - ) : ( - - )} + + + + ) : ( + + )}