Landing page redesign, dashboard improvements & new settings sections #67

Merged
uz1mani merged 60 commits from staging into main 2026-03-22 16:17:38 +00:00
66 changed files with 8452 additions and 1647 deletions
Showing only changes of commit e626350f14 - Show all commits

View File

@@ -439,7 +439,7 @@ export default function Chart({
<VisxXAxis <VisxXAxis
numTicks={6} numTicks={6}
formatLabel={interval === 'minute' || interval === 'hour' formatLabel={interval === 'minute' || interval === 'hour'
? (d) => d.toLocaleTimeString('en-GB', { hour: '2-digit', minute: '2-digit' }) ? (d) => `${String(d.getUTCHours()).padStart(2, '0')}:${String(d.getUTCMinutes()).padStart(2, '0')}`
: (d) => d.toLocaleDateString('en-GB', { day: 'numeric', month: 'short' }) : (d) => d.toLocaleDateString('en-GB', { day: 'numeric', month: 'short' })
} }
/> />
@@ -456,7 +456,7 @@ export default function Chart({
const config = METRIC_CONFIGS.find((m) => m.key === metric) const config = METRIC_CONFIGS.find((m) => m.key === metric)
const value = point[metric] as number const value = point[metric] as number
const title = interval === 'minute' || interval === 'hour' const title = interval === 'minute' || interval === 'hour'
? dateObj.toLocaleTimeString('en-GB', { hour: '2-digit', minute: '2-digit' }) ? `${String(dateObj.getUTCHours()).padStart(2, '0')}:${String(dateObj.getUTCMinutes()).padStart(2, '0')}`
: dateObj.toLocaleDateString('en-GB', { weekday: 'short', day: 'numeric', month: 'short' }) : dateObj.toLocaleDateString('en-GB', { weekday: 'short', day: 'numeric', month: 'short' })
return ( return (
<div className="px-3 py-2.5"> <div className="px-3 py-2.5">