Add 180-day analytics time range options
All checks were successful
Build Frontend / build (push) Successful in 1m6s
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:
@@ -290,6 +290,7 @@ export default function AnalyticsDashboard({
|
||||
<SelectItem value="7">Last 7 days</SelectItem>
|
||||
<SelectItem value="30">Last 30 days</SelectItem>
|
||||
<SelectItem value="90">Last 90 days</SelectItem>
|
||||
<SelectItem value="180">Last 180 days</SelectItem>
|
||||
</SelectContent>
|
||||
</Select>
|
||||
</div>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user