From 54b2610e9a63ed9e2b9bb942d8a7672d94d3dba3 Mon Sep 17 00:00:00 2001
From: "gpt-engineer-app[bot]"
<159125892+gpt-engineer-app[bot]@users.noreply.github.com>
Date: Fri, 17 Apr 2026 00:26:53 +0000
Subject: [PATCH] Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
---
src/routes/cases.$caseId.tsx | 57 ++++++++++++++++++++------------
src/routes/clients.$clientId.tsx | 6 ++++
2 files changed, 42 insertions(+), 21 deletions(-)
diff --git a/src/routes/cases.$caseId.tsx b/src/routes/cases.$caseId.tsx
index 27741b1..19aecdb 100644
--- a/src/routes/cases.$caseId.tsx
+++ b/src/routes/cases.$caseId.tsx
@@ -18,6 +18,7 @@ import { CaseInvoicesTab } from "@/components/cases/invoices-tab";
import { CaseLitigationTab } from "@/components/cases/litigation-tab";
import { toast } from "sonner";
import { useAuth } from "@/lib/auth";
+import { StartTimerButton } from "@/components/timer/start-timer-button";
export const Route = createFileRoute("/cases/$caseId")({
component: () => (
@@ -105,27 +106,41 @@ function CaseDetail() {
{" · "}{data.practice_area || "—"}{" · "}opened {formatDate(data.opened_at)}
- {canManage && (
-
-
-
-
- )}
+
+
+ {canManage && (
+ <>
+
+
+ >
+ )}
+
{data.description && (
diff --git a/src/routes/clients.$clientId.tsx b/src/routes/clients.$clientId.tsx
index 72ec9d9..9102758 100644
--- a/src/routes/clients.$clientId.tsx
+++ b/src/routes/clients.$clientId.tsx
@@ -10,6 +10,7 @@ import { ClientFormDialog } from "@/components/clients/client-form-dialog";
import { useAuth } from "@/lib/auth";
import { ArrowLeft, Edit, Plus, Building2, User, Briefcase as Building, MapPin, Mail, Phone, Users } from "lucide-react";
import { formatDate, statusBadgeClass } from "@/lib/format";
+import { StartTimerButton } from "@/components/timer/start-timer-button";
import { toast } from "sonner";
export const Route = createFileRoute("/clients/$clientId")({
@@ -79,6 +80,11 @@ function ClientDetail() {
description={client.management_company || client.client_type.toUpperCase()}
actions={
<>
+
{canEdit && (