From 56efdb1e4262e5e161a4261c5a4735818c3e959b Mon Sep 17 00:00:00 2001 From: ArticOdin Date: Sat, 18 Apr 2026 16:56:23 +1000 Subject: [PATCH] feat(dashboard): apply Plaintext Labs design system Reskin dashboard from glassmorphism to PTL terminal aesthetic: - JetBrains Mono exclusively (removed Outfit) - PTL 5-color palette: Ink, Bone, Signal, Amber, Muted - Flat cards with 1px borders, no blur/gradients/shadows - ~/pricehawk terminal wordmark with blinking cursor - Sentence case labels, removed SVG icons - Dark mode only (removed light mode toggle) - All functionality preserved (WebSocket, charts, CSV, backfill) Co-Authored-By: Claude Opus 4.6 (1M context) --- .../pricehawk/www/dashboard.html | 1082 +++++++---------- 1 file changed, 450 insertions(+), 632 deletions(-) diff --git a/custom_components/pricehawk/www/dashboard.html b/custom_components/pricehawk/www/dashboard.html index 33086b9..5c88bca 100644 --- a/custom_components/pricehawk/www/dashboard.html +++ b/custom_components/pricehawk/www/dashboard.html @@ -1,212 +1,116 @@ - + -PriceHawk Dashboard +PriceHawk - + -
-
-
+ +
+
+ // ~/pricehawk/home.md +
+

+ Rate comparison +

+
+ # amber electric vs globird energy +
+
+ -
+
-
BEST RATE RIGHT NOW
+
best rate right now
---
-
Cheapest right now
+
cheapest right now
--.-c/kWh
-
+
- Cheap - Average - Expensive + cheap + average + expensive
-
TODAY'S SAVING
+
today's saving
$0.00
-
MONTH SAVING
+
month saving
$0.00
-
WIN %
+
win %
--%
-
LAST UPDATED
-
--:--
+
last updated
+
--:--
@@ -698,24 +615,21 @@
-
- - Current Rates -
+
Current rates
Amber Electric
- Wholesale + wholesale
- Import + import 0.00 c/kWh
- Feed-in + feed-in 0.00 c/kWh
@@ -724,14 +638,14 @@
GloBird Energy
- Shoulder + shoulder
- Import + import 0.00 c/kWh
- Feed-in + feed-in 0.00 c/kWh
@@ -739,47 +653,44 @@
-
+
-
- - Rate Comparison -
-
TODAY
+
Rate comparison
+
today
--:--
-
Amber--
-
GloBird--
+
Amber--
+
GloBird--
-
Amber Import
-
GloBird Import
-
Amber Feed-in
-
GloBird Feed-in
-
Forecast (dashed)
+
Amber import
+
GloBird import
+
Amber feed-in
+
GloBird feed-in
+
Forecast
-
AMBER TOTAL
-
$0.00
+
amber total
+
$0.00
-
GLOBIRD TOTAL
-
$0.00
+
globird total
+
$0.00
-
DIFFERENCE
+
difference
$0.00
-
CHEAPEST TODAY
+
cheapest today
---
@@ -788,14 +699,11 @@
-
- - Cost Breakdown -
+
Cost breakdown
- - + +
@@ -804,52 +712,49 @@
-
+
-
- - GloBird Incentives -
+
GloBird incentives
- ZEROHERO Credit - Pending + ZEROHERO credit + pending
$1/day credit if grid imports stay low 6-8pm
- Super Export - Tracking + Super export + tracking
15c/kWh bonus for exports during 6-8pm window
-
+
- 0.0 kWh - / 15.0 kWh + 0.0 kWh + / 15.0 kWh
- Free Power Window - Inactive + Free power window + inactive
Free electricity during promotional windows
- Critical Peak - No event + Critical peak + no event
Demand response events with bonus credits
@@ -858,84 +763,75 @@
-
- - Savings History -
-
--
+
Savings history
+
--
- - - - + + + +
-
Amber won
-
GloBird won
+
Amber won
+
GloBird won
-
- History will appear after the first full day +
+ No history yet. Data appears after the first full day.
-
- BEST DAY - -- +
+ best day + --
-
-
+
+
-
- - Import Amber CSV -
+
Import Amber CSV
-
Compare your Amber usage against GloBird rates
-
+ background:var(--ptl-signal); border:none; border-radius:4px; + padding:12px 24px; color:var(--ptl-ink); font-family:var(--ptl-font); + font-weight:500; font-size:13px; cursor:pointer; + transition:opacity 200ms; + ">Upload CSV +
Compare your Amber usage against GloBird rates
+
-
+
-
- - Backfill History -
+
Backfill history
- + - (max 90) + (max 90)
-
Uses HA history + Amber API (90 day limit)
-
+ background:var(--ptl-amber); border:none; border-radius:4px; + padding:12px 24px; color:var(--ptl-ink); font-family:var(--ptl-font); + font-weight:500; font-size:13px; cursor:pointer; + transition:opacity 200ms; + ">Recover missing data +
Uses HA history + Amber API (90 day limit)
+
-