bitmagnet icon indicating copy to clipboard operation
bitmagnet copied to clipboard

feat: Filter on published at

Open dashed opened this issue 9 months ago • 1 comments

This adds time frame selection on published_at datetimes. Inspired by Datadog's timeframe syntax.

Custom timeframe:

Screenshot 2025-03-22 at 10 17 32 PM

Quick presets:

Screenshot 2025-03-22 at 10 18 13 PM

Date range selection:

Screenshot 2025-03-22 at 10 17 49 PM

dashed avatar Mar 23 '25 01:03 dashed

Thanks for making a start on this. There's too much going on in the backend here- the graphql API should accept only strict ISO-8601 date times and pass it onto go code using the go time types from stdlib. Anything like "last 7 days" etc can be handled in the web app and passed to the API as a strict date. If DataDog have provided open-source libs for their date range format I'd be happy to use them but otherwise I don't think we should attempt an implementation of it here as it looks too complex and too much maintenance burden for simply specifying a time range. There are pre-existing date pickers, libraries etc that we should leverage to avoid reinventing wheels, that will greatly simplify things here. The UI will need planning on how further filters can be added without overcrowding things.

mgdigital avatar Mar 23 '25 15:03 mgdigital