Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-19 15:47:17 +00:00
co-authored by renee-png
parent db9f6d12fa
commit b37c52750c
+18 -5
View File
@@ -279,9 +279,15 @@ export function HeaderTimer() {
<div className="grid grid-cols-2 gap-3 pt-1">
<div>
<div className="text-[10px] uppercase tracking-wider text-muted-foreground">Rate</div>
<div className="text-[10px] uppercase tracking-wider text-muted-foreground">
{isFlatFee ? "Flat fee" : "Rate"}
</div>
<div className="text-sm font-medium mt-0.5">
{effectiveRate ? `${formatCurrency(effectiveRate)}/hr` : "—"}
{effectiveRate
? isFlatFee
? formatCurrency(effectiveRate)
: `${formatCurrency(effectiveRate)}/hr`
: "—"}
</div>
<div className="text-[10px] text-muted-foreground">
{selectedFee
@@ -300,17 +306,24 @@ export function HeaderTimer() {
</div>
<p className="text-[10px] text-muted-foreground">
Time saves rounded up to the nearest 1/10 hour (6 minutes).
{isFlatFee
? "Flat fee items save at the fixed amount regardless of elapsed time."
: "Time saves rounded up to the nearest 1/10 hour (6 minutes)."}
</p>
<Button
className="w-full"
onClick={handleSave}
disabled={saving || !timer.caseId || !timer.description.trim() || elapsedMs < 1000}
disabled={
saving ||
!timer.caseId ||
!timer.description.trim() ||
(!isFlatFee && elapsedMs < 1000)
}
>
{saving && <Loader2 className="h-4 w-4 mr-2 animate-spin" />}
<Square className="h-4 w-4 mr-2" />
Stop & save
{isFlatFee ? "Save flat fee" : "Stop & save"}
</Button>
</div>
</PopoverContent>