Dashboard: add trend arrows (▲/▼/●) with color to Website stats — compares day-over-day + update-to-update

This commit is contained in:
Oliver
2026-06-11 06:00:59 -03:00
parent e06572d0a6
commit 52dd17384a
3 changed files with 43 additions and 7 deletions
+18 -1
View File
@@ -1,9 +1,26 @@
{
"period": "2026-06-09 to 2026-06-10",
"updated": "2026-06-11 08:30",
"updated": "2026-06-11 08:59",
"visitors": 9,
"visitors_trend": {
"dir": "same",
"change": "+0",
"pct": "+0%"
},
"visitors_change": "",
"latest_day": "2026-06-10",
"latest_day_visitors": 5,
"dod_trend": {
"dir": "up",
"change": "+1",
"pct": "+25%"
},
"pageviews": 37,
"pageviews_trend": {
"dir": "same",
"change": "+0",
"pct": "+0%"
},
"pageviews_change": "",
"bounce_rate": "\u2014",
"bounce_rate_change": "",
+2 -2
View File
@@ -1,6 +1,6 @@
{
"date": "Wednesday, June 10, 2026",
"updated": "2026-06-11T08:30:10-04:00",
"updated": "2026-06-11T08:59:40-04:00",
"goals": [
{
"current": 1,
@@ -111,5 +111,5 @@
"Email capture (newsletter signup or lead magnet) needed before 10K/mo path is realistic."
],
"day": 3,
"notes": "Day 3 auto-update at 08:30 UTC"
"notes": "Day 3 auto-update at 08:59 UTC"
}