Commit Graph

11 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
1edb74a8d6 Move dropzone component to core (#20014)
* Move dropzone component to core.

* Update import
2024-07-29 09:09:42 +02:00
Linus Pahl
26655f5f9e Add cards and section component. (#19168)
* Add filled section component.

* Add card component.

* Add mantine css for styleguide.

* Update sawmill
2024-05-07 10:20:27 +02:00
Linus Pahl
7a75b81666 Make sure to render GraylogThemeProvider only once. Use browser color scheme preference for login screen. (#18240) 2024-02-15 16:26:21 +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
Linus Pahl
8a4185fc86 Further improvements related to mantine migration. (#16431)
* Add `@mantine/core` to `vendor.modules.js`.

* Fixing styleguide.

* Extend `styled-component` theme with `mantine` theme.
2023-09-13 08:41:25 +02:00
Dennis Oelkers
e176de11a4 Make path suffix optional in frontend gallery router. (#15850) 2023-07-04 08:03:24 +02:00
Dennis Oelkers
fd2979441f Updating to react-router v6. (#12911)
* Adding/updating packages.

* Make use of `Outlet`, migrate router config.

(cherry picked from commit ba22e4300c1fa967cb15f81fcdb458149a7dbf7d)

* Turning browser router into data router.

* Allowing to reuse `PageContentLayout` as well.

(cherry picked from commit 0937111630d76b0898494a86e1acf1fb5492bd07)

* Using `useNavigate` to navigate to link.

(cherry picked from commit 03d26a5bc862291c613985337e9ac925e1f09c1a)

* Making use of `useNavigate`.

(cherry picked from commit 84a8f6a0791db5345fa92af1b0972efb26708526)

* Using `navigate` instead of `history`.

(cherry picked from commit 5a73c7574f0012812be07c17a5cd08d9c95c2de9)

* Type is not generic anymore.

(cherry picked from commit b7d72912c40de190f9908728ddfe7ca49f350f0f)

* Fixing up.

* Replacing `useHistory` with `useNavigate`.

(cherry picked from commit e1965c7a976c09c554cecac40db9ff40b405ca92)

* Using `useNavigate`.

(cherry picked from commit 028589974244fa28fb512d7a837c1b9bc1671c7a)

* Removing generic parameter.

(cherry picked from commit 690a994e5a89026c15c638db085839404e6c0782)

* Using `useLinkClickHandler` instead of `useNavigate`.

(cherry picked from commit a637039d55cc4473893910702960394e42bee49b)

* Revert "Using `useLinkClickHandler` instead of `useNavigate`."

This reverts commit 17a219cc42ef48ad34001488e4f599c9e7342c8a.

* Making use of `useBlocker` to replace previous `Prompt`.

* Adjusting `LinkContainer` test.

* Using `useLinkClickHandler` instead of `useNavigate`.

(cherry picked from commit a637039d55cc4473893910702960394e42bee49b)

* Fixing up merge.

(cherry picked from commit 85fdb1fe33a79b319838c4536e49e772562c7a86)

* Fixing up `ReportedErrorBoundary` test.

* Improving typing in test.

(cherry picked from commit e62d80fb10be4fafb89c422892829adbd23fb9d0)

* Fixing up test.

(cherry picked from commit aec8daccb078b95abbee5c9e0923701d05289fbf)

* Improving `AppRouter` tests.

(cherry picked from commit dd7718a56a6064d02e528f7e7fe81e74fe7a6c59)

* Fixing up test.

(cherry picked from commit 18d1f047334ec4583dd1fc1e611f298d337427d8)

* Fixing up `AppRouter` test.

* Prevent double wrapping.

(cherry picked from commit d8e496131550bbf84bc986b53581c2927ac4acc8)

* Avoid double wrapping in test.

(cherry picked from commit 8020eac7becf144953ce58cc1ff3204c0679ac89)

* Updating test.

(cherry picked from commit 60bb82023aed585f021ab125cd04f2d069e89e42)

* Adding type.

* Improving tests for `WidgetFocusProvider`.

(cherry picked from commit 2b47daa1051b2a85a33a0fc727c79bf6dc46e319)

* Fixing up `Navigation` test.

(cherry picked from commit 3613e591e5e9e007b7d32eb74f7e4ab2213e256e)

* Fixing up type.

* Fixing up type.

* Adding `renderWithDataRouter`.

* Using `renderWithDataRouter` in test.

* Migrating test to `testing-library`.

* Fixing up test for `usePaginationQueryParameter`.

* Replacing usages of `util/History` with `useHistory`.

* Remove redirecting to start page when plain text request fails with 403.

* Removing `util/History`.

* Using `RouterProvider` in style guide wrapper.

* Adding license headers.

* Fixing up typing issues.

* Fixing up linter hints.

* Fixing up tests.
2023-03-21 10:16:52 +01:00
Linus Pahl
8b8f972099 Improve page subarea navigation. (#13677)
* Create shared component for alerts subarea navigation.

* Improve subearea navigation styling.

* Implement new subearea navigation for users pages.

* Implement new subearea navigation for authenitcation pages.

* Implement new subearea navigation for lookup table pages.

* Implement new subearea navigation for pipleline pages.

* Implement new subearea navigation for sidecars pages.

* Fixing linter hints

* Add documentation for `SuabreNavigation` component.

* Changing subearea navigation font family.

* Renaming `SubareaNavigation` to `PageNavigation`.
2022-10-20 11:00:08 +02:00
Kyle Knight
2c3b08bc70 Theme Spacings feature (#10719)
* Spacing concept

* generate

* generate type & props

* spacing theme

* type and faster calculations

* typing & remove console.log

* rename to plural

* fixing issues with plural

* Implementing theme spacings for `Row` bottom margin.

* Implementing theme spacings for `PageContentLayout` paddings.

* Implementing theme spacings for `ReactGridContainer` cell margins.

* Include spacings in `test/WrappingContainer`.

* Updating snapshots

* remove fib generate loop and hardcode values we want to use

* documentation

* styleguide font size from theme

* updated snapshots

Co-authored-by: Linus Pahl <linus@graylog.com>
2021-05-31 09:26:54 +02:00
Linus Pahl
00a787ec0b Fixing theme usage in style guide. (#10236) 2021-03-10 08:59:20 -06:00