- {format(new Date(payload[0].payload.period), 'd MMM HH:mm')}
+ {format(new Date(payload[0].payload.period), dateFormat)}
Avg: {payload[0].payload.avg_duration}s
diff --git a/apps/web/src/components/tools/vercel_logs/dashboard.tsx b/apps/web/src/components/tools/vercel_logs/dashboard.tsx
index 5ac59ec..ffdd8b2 100644
--- a/apps/web/src/components/tools/vercel_logs/dashboard.tsx
+++ b/apps/web/src/components/tools/vercel_logs/dashboard.tsx
@@ -9,7 +9,7 @@ import { CacheStatsChart } from './cache-stats-chart'
import { ResponseTimesChart } from './response-times-chart'
import { TopPathsTable } from './top-paths-table'
import { VercelFilters } from './filters'
-import { TimeRange } from '@/components/time-range'
+import { TimeRange, type TimeRange as TR } from '@/components/time-range'
import { format } from 'date-fns'
import { addDays } from 'date-fns'
import { DateRange } from 'react-day-picker'
@@ -34,7 +34,7 @@ export default function VercelLogsDashboard() {
const [cacheStatsData, setCacheStatsData] = useState
([])
const [topPathsPage, setTopPathsPage] = useState(0)
const [topPathsLoading, setTopPathsLoading] = useState(false)
- const [timeRange, setTimeRange] = useState('daily')
+ const [timeRange, setTimeRange] = useState('daily')
const [dateRange, setDateRange] = useState({
from: addDays(new Date(), -7),
to: new Date()
diff --git a/tinybird/pipes/vercel_deployment_duration.pipe b/tinybird/pipes/vercel_deployment_duration.pipe
index 0643086..da2061b 100644
--- a/tinybird/pipes/vercel_deployment_duration.pipe
+++ b/tinybird/pipes/vercel_deployment_duration.pipe
@@ -31,4 +31,4 @@ SQL >
HAVING count(DISTINCT event_type) = 2
)
GROUP BY period
- ORDER BY period DESC
\ No newline at end of file
+ ORDER BY period ASC
\ No newline at end of file
diff --git a/tinybird/pipes/vercel_deployments_over_time.pipe b/tinybird/pipes/vercel_deployments_over_time.pipe
index 2cd1d77..03339a6 100644
--- a/tinybird/pipes/vercel_deployments_over_time.pipe
+++ b/tinybird/pipes/vercel_deployments_over_time.pipe
@@ -23,4 +23,4 @@ SQL >
AND event_time >= {{DateTime(date_from, '2024-01-01 00:00:00')}}
AND event_time <= {{DateTime(date_to, '2024-12-31 23:59:59')}}
GROUP BY period, event_type
- ORDER BY period DESC
\ No newline at end of file
+ ORDER BY period ASC
\ No newline at end of file