Skip to content

Add date/time range filter to events page #200

Description

@MathurAditya724

Problem

The events page at events.tsx:146-197 has status and repo filters, but no time range selector. The dashboard shows a "last 24h" stat, but there is no way to actually filter the events list by time period.

Operators investigating an incident need to quickly narrow down events to a specific time window (e.g., "last hour", "last 6 hours", "today", or a custom date range).

Affected File

  • apps/server/src/client/pages/events.tsx:146-197 — filter bar area

Expected Fix

  1. Add a time range filter alongside the existing status and repo filters
  2. Preset options: Last hour, Last 6 hours, Last 24 hours, Last 7 days, All time
  3. Optionally add a custom date range picker for precise windows
  4. Sync the selected time range to URL search params (e.g., ?timeRange=24h or ?from=...&to=...)
  5. The API may need to accept from/to query parameters — check if the backend already supports this, or add the filtering server-side

Design Guidance

  • Use a <Select> dropdown with preset options (consistent with the page-size selector pattern)
  • Place it in the filter bar after the repo search
  • The custom date range (if implemented) could use a popover with two date inputs
  • Keep the text-xs sizing consistent with other filter controls

Impact

Low — The current all-time flat list works for small event volumes, but becomes unwieldy as events accumulate. Time filtering is a standard expectation for any event/log viewer.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestjaredTrigger the Jared agent to work on stuff

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions