Skip to content

fix(insights): default date range to 24h - #274

Merged
gkhngyk merged 1 commit into
ansvisor:mainfrom
Srija-65:fix/insights-default-24h-range
Jun 18, 2026
Merged

gkhngyk merged 1 commit into
ansvisor:mainfrom
Srija-65:fix/insights-default-24h-range

Conversation

@Srija-65

Copy link
Copy Markdown
Contributor

Summary

Changes the default date range on the Answer Engine Insights page from All to 24h.

Related issue

Closes #262

Type of change

  • feat — New feature
  • fix — Bug fix
  • chore — Maintenance / dependencies
  • docs — Documentation only
  • refactor — Code change that neither fixes a bug nor adds a feature
  • test — Adding or updating tests

Checklist

Notes

  • Updated DEFAULT_FILTERS.datePreset from 'all' to '24h' in web/src/app/[locale]/(dashboard)/dashboard/insights/page.tsx.
  • yarn lint completed successfully with warnings only and no errors.
  • yarn typecheck passed successfully.
  • yarn format:check reports existing formatting issues across many files in the repository that are unrelated to this change.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome to Ansvisor, and thank you for your first PR! A maintainer will be by soon to review.

In the meantime, two things that make review faster:

  • A short description of why the change matters, not just what it does — most of our PRs link a Fixes #... to the issue that explains the why.
  • A quick local test note if there's anything worth eyeballing in the browser.

If you'd like to keep an eye on where Ansvisor goes next, a ⭐ on the repo helps others discover it (and Watch sends you a ping when related issues land). Either way — looking forward to your next one.

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified: defaults the Insights date range to 24h and the initial fetch derives the 24h window via getDateRange. Clean one-liner. 🙌 (Heads-up: the PR links #262, but the actual issue is #260 — closing that manually on merge.)

@gkhngyk
gkhngyk merged commit 70d6536 into ansvisor:main Jun 18, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants