grafana/public/app/core/components/TimePicker
Haris Rozajac f285eb6717
Time Range: Copy-paste Time Range (#80107)
* Working copy-paste functionality with validation

* WIP; uses 't c' shortcut to copy time range

* shortcuts working for explore and dashboards

* cleanup

* Don't update url when pasting in explore

* Error handling, sync pane functionality, add to help modal

* cleanup

* add tests

* fix i18n

* Diferrentiate between explore and dashboard paste events; make on error prop generic

* Fix

* extract getting the copied time range logic into a function

* Remove comments

* Make error handling generic; markup for translations

* Additional translation markup

* markup for aria-label

* Fix test

* Replace fireEvent with userEvent

* fix translations to match the standard pattern

* Refactor keybindingSrv and TimeSrv to remove PasteTimeContext

* Fix test

* Remove unneccessary aria labels; update icons; buttons inline
2024-01-18 14:06:27 -07:00
..
TimePickerWithHistory.test.tsx Chore: Refactor TimeRangePicker for aria-label selectors (#78399) 2023-11-23 10:39:26 +00:00
TimePickerWithHistory.tsx Time Range: Copy-paste Time Range (#80107) 2024-01-18 14:06:27 -07:00