Wire live activity widget patches

This commit is contained in:
2026-07-01 02:45:30 -04:00
parent 107b593002
commit 6497ee4dec
5 changed files with 348 additions and 2 deletions
+6 -1
View File
@@ -7,7 +7,11 @@ type RunningEntry = {
description: string;
startedAt: Date | string;
client?: { name: string } | null;
invoice?: { invoicePrefix: string | null; invoiceNumber: string } | null;
invoice?: {
invoicePrefix: string | null;
invoiceNumber: string;
business?: { name: string } | null;
} | null;
};
type LiveActivityHandle = {
@@ -64,6 +68,7 @@ export function buildTimeClockActivityProps(
}),
description: resolveClockDescription(running.description),
clientName: running.client?.name ?? "",
businessName: invoice?.business?.name ?? "",
invoiceLabel: invoice
? `${invoice.invoicePrefix ?? "#"}${invoice.invoiceNumber}`
: "",
+1
View File
@@ -9,5 +9,6 @@ export type TimeClockActivityProps = {
clockTime: string;
description: string;
clientName: string;
businessName: string;
invoiceLabel: string;
};