analytics/assets/js/dashboard
Vini Brasil 0cfbcedd84
Fix date picker shifting day bug (#2848)
* Fix date picker shifting day bug

This commit fixes a bug where picking a specific date in custom range
takes you to the stats of the day before.

This was caused because Flatpickr returns a Date instance, and we were
trying to parse this Date instance into day.js using the `utc` function,
assuming it was a ISO-8601 string.

This commit fixes it by casting Date into dayjs using the `dayjs`
function instead of `utc`.

* Fix invalid date Flatpickr bug

This commit fixes a bug where the Flatpickr was not setting the minDate
correctly based on statsBegin. This was failing because parseUTCDate is
now returning a day.js instance, and Flatpickr cannot handle that type.

* Hide dayjs usage in util/date
2023-04-25 12:26:24 +01:00
..
components Filter modal refactor (#2806) 2023-04-05 16:20:35 +01:00
stats Show detailed comparison dates in top stats (#2804) 2023-04-11 09:59:10 -03:00
util Fix date picker shifting day bug (#2848) 2023-04-25 12:26:24 +01:00
api.js Match day of the week feature for comparisons (#2822) 2023-04-13 14:01:54 +01:00
comparison-consumer-hoc.js Adds Main Graph Metric Selection (#1364) 2022-04-13 10:38:47 +03:00
comparison-context.js Adds Main Graph Metric Selection (#1364) 2022-04-13 10:38:47 +03:00
comparison-input.js Fix date picker shifting day bug (#2848) 2023-04-25 12:26:24 +01:00
comparison-provider-hoc.js Adds Main Graph Metric Selection (#1364) 2022-04-13 10:38:47 +03:00
datepicker.js Fix date picker shifting day bug (#2848) 2023-04-25 12:26:24 +01:00
error-boundary.js Adds dark mode to entire dashboard (#467) 2020-12-16 11:57:28 +02:00
fade-in.js Additional pre-commit hooks (#1428) 2021-11-03 15:46:12 +01:00
filters.js Support multiple filters - frontend (#2773) 2023-03-27 16:51:31 +03:00
historical.js First pass at Comparisons (#2650) 2023-02-07 10:00:49 -03:00
index.js Last updated tooltip (#2576) 2023-01-16 10:30:22 +02:00
keybinding.js Support multiple filters - frontend (#2773) 2023-03-27 16:51:31 +03:00
mount.js Realtime dashboard improvements (#2445) 2023-01-02 17:42:57 +02:00
pinned-header-hoc.js Add fallback if InteractionObserver is unavailable 2022-02-08 15:07:40 -06:00
query.js Match day of the week feature for comparisons (#2822) 2023-04-13 14:01:54 +01:00
realtime.js Last updated tooltip (#2576) 2023-01-16 10:30:22 +02:00
router.js Filter modal refactor (#2806) 2023-04-05 16:20:35 +01:00
site-switcher.js Fix svg favicons (#2295) 2022-10-04 13:20:51 +03:00