From e35fbf8e71fc34de7ee18a371198cf71c3e9e025 Mon Sep 17 00:00:00 2001 From: Adrian Bonpin Date: Sun, 10 May 2026 00:46:49 +0800 Subject: [PATCH] feat(manage): add wattHours and tdpMax inputs to hardware form --- .../manage/hardware/hardware-client.tsx | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/app/(manage)/manage/hardware/hardware-client.tsx b/app/(manage)/manage/hardware/hardware-client.tsx index 1d6cac1..4445f0b 100644 --- a/app/(manage)/manage/hardware/hardware-client.tsx +++ b/app/(manage)/manage/hardware/hardware-client.tsx @@ -339,6 +339,42 @@ export function HardwareClient() { className="w-full px-3 py-2 rounded-md bg-text/5 border border-border text-sm text-text placeholder:text-text/40 focus:outline-none focus:border-primary/60 transition-colors" /> +
+ + setForm((f) => ({ ...f, wattHours: e.target.value }))} + placeholder="e.g. 50.0" + min="0" + max="200" + step="0.1" + className="w-full px-3 py-2 rounded-md bg-text/5 border border-border text-sm text-text placeholder:text-text/40 focus:outline-none focus:border-primary/60 transition-colors" + /> +

+ Watt-hours (used for battery life estimation) +

+
+
+ + setForm((f) => ({ ...f, tdpMax: e.target.value }))} + placeholder="e.g. 15" + min="0" + max="100" + step="0.1" + className="w-full px-3 py-2 rounded-md bg-text/5 border border-border text-sm text-text placeholder:text-text/40 focus:outline-none focus:border-primary/60 transition-colors" + /> +

+ Maximum TDP in watts (used for battery life estimation) +

+