mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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
This commit is contained in:
@@ -586,6 +586,7 @@
|
||||
"shortcuts-description": {
|
||||
"change-theme": "Change theme",
|
||||
"collapse-all-rows": "Collapse all rows",
|
||||
"copy-time-range": "Copy time range",
|
||||
"dashboard-settings": "Dashboard settings",
|
||||
"duplicate-panel": "Duplicate Panel",
|
||||
"exit-edit/setting-views": "Exit edit/setting views",
|
||||
@@ -599,6 +600,7 @@
|
||||
"move-time-range-forward": "Move time range forward",
|
||||
"open-search": "Open search",
|
||||
"open-shared-modal": "Open Panel Share Modal",
|
||||
"paste-time-range": "Paste time range",
|
||||
"refresh-all-panels": "Refresh all panels",
|
||||
"remove-panel": "Remove Panel",
|
||||
"save-dashboard": "Save dashboard",
|
||||
@@ -1394,6 +1396,13 @@
|
||||
"empty-recent-list-info": "It looks like you haven't used this time picker before. As soon as you enter some time intervals, recently used intervals will appear here.",
|
||||
"filter-placeholder": "Search quick ranges"
|
||||
},
|
||||
"copy-paste": {
|
||||
"copy-success-message": "Time range copied to clipboard",
|
||||
"default-error-message": "{{error}} is not a valid time range",
|
||||
"default-error-title": "Invalid time range",
|
||||
"tooltip-copy": "Copy time range to clipboard",
|
||||
"tooltip-paste": "Paste time range"
|
||||
},
|
||||
"footer": {
|
||||
"change-settings-button": "Change time settings",
|
||||
"fiscal-year-option": "Fiscal year",
|
||||
|
||||
Reference in New Issue
Block a user