- Default range changed from 30d to 7d
- Presets (today/7d/30d) now directly set customStart/customEnd dates,
eliminating duplicate getTimeRange() calculation
- "All" preset fetches actual data boundaries from /api/date-range
and backfills the custom date picker
- Clicking "custom" opens popover without triggering data refresh;
only confirm applies changes
- SQL trend dates cast to ::text to avoid pg driver Date timezone offset
- Fix created_at filter from < to <= for end timestamp
pg driver returns PostgreSQL date as JS Date object. String(date).slice(0,10)
produced "Mon Apr 07" instead of "2026-04-07", causing chart tooltips to
default to year 2001 when parsed by new Date().