Commit Graph

3 Commits

Author SHA1 Message Date
github-actions[bot]
e913e0d5f3 Running lint --fix & prettier (#21515)
Co-authored-by: Dr. Lint-a-lot <garybot2@graylog.com>
2025-02-13 08:15:43 +01:00
Linus Pahl
392ed658bb Improve documentation how to handle date times in the graylog frontend. (#17007)
* Extend documentation for date time handling.

* Use h2 instead of h3 for ux patterns headlines.

* Move documentation into UserDateTimeProvider.

* Add documentation for Timestamp component.

* Extend documentation for date tiem utils and RelativeTime component.

* Improve documentation for toUTCFromTz date time util.

* Cleanup

* Fix toUTCFromTz test.
2023-10-20 11:36:23 +02:00
maxiadlovskii
868b639103 Implement foundation for keyboard shortcuts (#16396)
* Add hotkeys provider and usehotkeys hook

* refactoring

* Improving types.

* REmove not needed state in `HotkeysProvider`.

* Rename view scope to general.

* Categorize undo redo as search and dashboard hotkeys.

* Use mantine component to display keyboard keys in modal.

* Improve styling of hotkeys modal.

* Rename hotkeys to keyboard shortcuts in UI.

* Rename `hotKeysCollection` to `hotKeysCollections`.

* Adding documentation.

* Rename `useHotKeys` hook to `useHotkey`.

* Add feature flag for hotkeys functionality.

* Add telemetry for hotkeys, rename action keys to make sure we can use them as `app_action_value`.

* fix: show only enabled scopes in modal

* Make Option type explicit

* remove telemetryAppPathname

* remove scopes from options object

* Do not show browser dialog when saving view, when it is not dirty or loaded.

* Cleanup code

* Create container for hotkeys modal, to ensure we render related logic only when modal is visible.

* Alwyas allow triggering "save search as" action.

* Fixing test

* Adding test for `HotkeysContianerModal`.

* Adding further tests.

* Reimplement telemetry.

* Adding further test.

* Change registered hotkeys.

* Update feature flag description.

---------

Co-authored-by: Linus Pahl <linus@graylog.com>
Co-authored-by: Dennis Oelkers <dennis@graylog.com>
2023-09-27 15:17:37 +02:00