Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore(logs): add 1hr as default in logs explorer (#21021)

Jordi Enric6251935cd21f
diff --git a/apps/studio/components/interfaces/Settings/Logs/Logs.constants.ts b/apps/studio/components/interfaces/Settings/Logs/Logs.constants.ts
index ebc12f6e57a..96ad0a57255 100644
--- a/apps/studio/components/interfaces/Settings/Logs/Logs.constants.ts
+++ b/apps/studio/components/interfaces/Settings/Logs/Logs.constants.ts
@@ -657,11 +657,16 @@ export const PREVIEWER_DATEPICKER_HELPERS: DatetimeHelper[] = [
},
]
export const EXPLORER_DATEPICKER_HELPERS: DatetimeHelper[] = [
+ {
+ text: 'Last hour',
+ calcFrom: () => dayjs().subtract(1, 'hour').startOf('hour').toISOString(),
+ calcTo: () => '',
+ default: true,
+ },
{
text: 'Last 24 hours',
calcFrom: () => dayjs().subtract(1, 'day').startOf('day').toISOString(),
calcTo: () => '',
- default: true,
},
{
text: 'Last 3 days',