Add 180-day analytics time range options
All checks were successful
Build Frontend / build (push) Successful in 1m6s

Extended analytics dashboards and charts to support a 180-day time range selection. Also updated tooltip position in PredictionsChart for improved UI consistency.
This commit is contained in:
g
2026-01-12 05:51:29 +00:00
parent a05787a091
commit c209dd60fc
4 changed files with 9 additions and 3 deletions

View File

@@ -341,6 +341,9 @@ export default function PredictionsChart({
<SelectItem value="90" disabled={timeRange < 90}>
90 days {timeRange < 90 && "(Needs 90d history)"}
</SelectItem>
<SelectItem value="180" disabled={timeRange < 180}>
180 days {timeRange < 180 && "(Needs 180d history)"}
</SelectItem>
</SelectContent>
</Select>
<Button
@@ -600,7 +603,7 @@ export default function PredictionsChart({
<TooltipTrigger asChild>
<Info className="h-3 w-3 text-primary/30 cursor-help" />
</TooltipTrigger>
<TooltipContent side="top" className="max-w-[200px] z-[110] bg-black border-white/10 text-white p-2">
<TooltipContent side="bottom" className="max-w-[200px] z-[110] bg-black border-white/10 text-white p-2">
<p className="text-[11px] leading-relaxed">
Simulate traffic growth or decline to see how it might impact your future revenue and order volume.
</p>