48 Commits

Author SHA1 Message Date
dependabot[bot]
d8706fad35 Bump http-proxy-middleware (#22367)
Bumps the npm_and_yarn group in /graylog2-web-interface/docs with 1 update: [http-proxy-middleware](https://github.com/chimurai/http-proxy-middleware).


Updates `http-proxy-middleware` from 2.0.7 to 2.0.9
- [Release notes](https://github.com/chimurai/http-proxy-middleware/releases)
- [Changelog](https://github.com/chimurai/http-proxy-middleware/blob/v2.0.9/CHANGELOG.md)
- [Commits](https://github.com/chimurai/http-proxy-middleware/compare/v2.0.7...v2.0.9)

---
updated-dependencies:
- dependency-name: http-proxy-middleware
  dependency-version: 2.0.9
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-17 09:52:18 +02:00
dependabot[bot]
a434d2b891 Bump prismjs in /graylog2-web-interface/docs in the npm_and_yarn group (#21936)
Bumps the npm_and_yarn group in /graylog2-web-interface/docs with 1 update: [prismjs](https://github.com/PrismJS/prism).


Updates `prismjs` from 1.27.0 to 1.30.0
- [Release notes](https://github.com/PrismJS/prism/releases)
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PrismJS/prism/compare/v1.27.0...v1.30.0)

---
updated-dependencies:
- dependency-name: prismjs
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-11 07:44:05 +01:00
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
dependabot[bot]
57935d8caf Bump serialize-javascript in /graylog2-web-interface/docs (#21581)
Bumps [serialize-javascript](https://github.com/yahoo/serialize-javascript) from 6.0.0 to 6.0.2.
- [Release notes](https://github.com/yahoo/serialize-javascript/releases)
- [Commits](https://github.com/yahoo/serialize-javascript/compare/v6.0.0...v6.0.2)

---
updated-dependencies:
- dependency-name: serialize-javascript
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-11 08:06:43 +01:00
dependabot[bot]
ebfe566c9c Bump react-styleguidist in /graylog2-web-interface/docs (#21284)
Bumps [react-styleguidist](https://github.com/styleguidist/react-styleguidist) from 13.1.3 to 13.1.4.
- [Release notes](https://github.com/styleguidist/react-styleguidist/releases)
- [Commits](https://github.com/styleguidist/react-styleguidist/compare/v13.1.3...v13.1.4)

---
updated-dependencies:
- dependency-name: react-styleguidist
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-08 08:36:45 +01:00
dependabot[bot]
0febd8f300 Bump react-styleguidist from 12.0.1 to 13.1.3 in /graylog2-web-interface/docs (#20719)
* Bump react-styleguidist in /graylog2-web-interface/docs

Bumps [react-styleguidist](https://github.com/styleguidist/react-styleguidist) from 12.0.1 to 13.1.3.
- [Release notes](https://github.com/styleguidist/react-styleguidist/releases)
- [Commits](https://github.com/styleguidist/react-styleguidist/compare/v12.0.1...v13.1.3)

---
updated-dependencies:
- dependency-name: react-styleguidist
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fixing up example.

* Disabling error overlay.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dennis Oelkers <dennis@graylog.com>
2024-11-18 13:05:56 +01:00
dependabot[bot]
099fc94bb0 Bump cross-spawn from 7.0.3 to 7.0.5 in /graylog2-web-interface/docs (#20973)
Bumps [cross-spawn](https://github.com/moxystudio/node-cross-spawn) from 7.0.3 to 7.0.5.
- [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md)
- [Commits](https://github.com/moxystudio/node-cross-spawn/compare/v7.0.3...v7.0.5)

---
updated-dependencies:
- dependency-name: cross-spawn
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-18 08:11:18 +01:00
dependabot[bot]
81997d19ae Bump http-proxy-middleware in /graylog2-web-interface/docs (#20761)
Bumps [http-proxy-middleware](https://github.com/chimurai/http-proxy-middleware) from 2.0.6 to 2.0.7.
- [Release notes](https://github.com/chimurai/http-proxy-middleware/releases)
- [Changelog](https://github.com/chimurai/http-proxy-middleware/blob/v2.0.7/CHANGELOG.md)
- [Commits](https://github.com/chimurai/http-proxy-middleware/compare/v2.0.6...v2.0.7)

---
updated-dependencies:
- dependency-name: http-proxy-middleware
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-14 09:14:51 +01:00
dependabot[bot]
a64e4cc8f5 Bump express from 4.19.2 to 4.20.0 in /graylog2-web-interface/docs (#20415)
Bumps [express](https://github.com/expressjs/express) from 4.19.2 to 4.20.0.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.19.2...4.20.0)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-11 10:09:26 +02:00
dependabot[bot]
ad63fb35a3 Bump micromatch from 4.0.5 to 4.0.8 in /graylog2-web-interface/docs (#20254)
Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.5 to 4.0.8.
- [Release notes](https://github.com/micromatch/micromatch/releases)
- [Changelog](https://github.com/micromatch/micromatch/blob/4.0.8/CHANGELOG.md)
- [Commits](https://github.com/micromatch/micromatch/compare/4.0.5...4.0.8)

---
updated-dependencies:
- dependency-name: micromatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-28 09:21:48 +02: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
dependabot[bot]
36cbe1223c Bump ws from 8.8.1 to 8.17.1 in /graylog2-web-interface/docs (#19666)
Bumps [ws](https://github.com/websockets/ws) from 8.8.1 to 8.17.1.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.8.1...8.17.1)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-18 10:28:00 +02:00
dependabot[bot]
2e951e0508 Bump braces from 3.0.2 to 3.0.3 in /graylog2-web-interface/docs (#19595)
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-11 09:45: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
dependabot[bot]
f82bc704d0 Bump express from 4.18.1 to 4.19.2 in /graylog2-web-interface/docs (#18800)
Bumps [express](https://github.com/expressjs/express) from 4.18.1 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.1...4.19.2)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-26 11:43:41 +01:00
dependabot[bot]
0b56edea92 Bump webpack-dev-middleware in /graylog2-web-interface/docs (#18746)
Bumps [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) from 5.3.3 to 5.3.4.
- [Release notes](https://github.com/webpack/webpack-dev-middleware/releases)
- [Changelog](https://github.com/webpack/webpack-dev-middleware/blob/v5.3.4/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-middleware/compare/v5.3.3...v5.3.4)

---
updated-dependencies:
- dependency-name: webpack-dev-middleware
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-25 10:17:51 +01:00
dependabot[bot]
a9883522b6 Bump follow-redirects in /graylog2-web-interface/docs (#18642)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.4 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.4...v1.15.6)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-15 13:22:18 +01: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
dependabot[bot]
a831276441 Bump follow-redirects in /graylog2-web-interface/docs (#17873)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.9 to 1.15.4.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.9...v1.15.4)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-09 09:43:16 +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
dependabot[bot]
7190c64ff7 Bump @babel/traverse in /graylog2-web-interface/docs (#16955)
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.17.3 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-17 12:11: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
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
dependabot[bot]
9f7e772a18 Bump word-wrap from 1.2.3 to 1.2.4 in /graylog2-web-interface/docs (#15989)
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-19 16:19:57 +02:00
dependabot[bot]
9fdcd08e02 Bump semver from 6.3.0 to 6.3.1 in /graylog2-web-interface/docs (#15929) 2023-07-11 08:02:48 +00:00
Dennis Oelkers
e176de11a4 Make path suffix optional in frontend gallery router. (#15850) 2023-07-04 08:03:24 +02:00
Dennis Oelkers
18e521690e Mock fetch in frontend docs. (#15845) 2023-06-30 15:47:25 +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
Dennis Oelkers
9e1ed4190f Revert "Bump react-styleguidist in /graylog2-web-interface/docs (#14665)" (#14689)
This reverts commit 4846904bf5.
2023-02-16 11:51:47 +01:00
dependabot[bot]
4846904bf5 Bump react-styleguidist in /graylog2-web-interface/docs (#14665)
Bumps [react-styleguidist](https://github.com/styleguidist/react-styleguidist) from 12.0.1 to 13.1.1.
- [Release notes](https://github.com/styleguidist/react-styleguidist/releases)
- [Commits](https://github.com/styleguidist/react-styleguidist/compare/v12.0.1...v13.1.1)

---
updated-dependencies:
- dependency-name: react-styleguidist
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-15 09:53:39 +01:00
dependabot[bot]
56689acfe4 Bump json5 from 2.2.1 to 2.2.2 in /graylog2-web-interface/docs (#14326)
Bumps [json5](https://github.com/json5/json5) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v2.2.1...v2.2.2)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-29 13:07:07 +01:00
simonychuang
edbab47e4c Feature/no results no entities alerts (#13683)
* Handle empty cases for streams and dashboards

* Handle empty cases for alerts, outputs, sidecars, and streams

* Adding default props to remove linter hints

* Rename shared component and use in streams page

* Refactor and add usage of <NoEntitiesExist> and <NoSearchResults>

* Fix NoEntitiesExist props to fix failing tests

* correct import names

* Fix linter hints and comments

* Fix tests

* Adding markdown files and description comment for NoSearchResult

* Make changes based on PR review

* Add descriptions for components in the ux-patterns markdown file

* Fixing linter hints

* Fixing dashboard list.

Co-authored-by: Linus Pahl <linus@graylog.com>
2022-12-07 16:35:39 +01:00
dependabot[bot]
e0d7a6ce6b Bump loader-utils from 3.2.0 to 3.2.1 in /graylog2-web-interface/docs (#13977)
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 3.2.0 to 3.2.1.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v3.2.0...v3.2.1)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-24 08:24:28 +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
Linus Pahl
ae7d57a8e4 Restructure UI documentation and add section about UX patterns. (#13555)
* Update style guide introduction.

* Remove no longer needed section about tests and code style in styleguide beacuse they are now part of the `CONTRIBUTING.md`

* Remove section about util objects, because it does not provide a benefit.

* Move setion about how to document shared components into section about shared components.

* List theme font families and sizes dynamically.

* Add section about line heights

* Adding section about UX patterns.

* Adding section about UX patterns.

* Fixing font family section.

* Fixing typos

* Visualize different font families and sizes.

* Removing `tests.md`.

* Simlify `UX Patterns` section.
2022-10-11 10:55:42 +02:00
dependabot[bot]
385f035a86 Bump react-styleguidist in /graylog2-web-interface/docs (#13626)
Bumps [react-styleguidist](https://github.com/styleguidist/react-styleguidist) from 12.0.0 to 12.0.1.
- [Release notes](https://github.com/styleguidist/react-styleguidist/releases)
- [Commits](https://github.com/styleguidist/react-styleguidist/compare/v12.0.0...v12.0.1)

---
updated-dependencies:
- dependency-name: react-styleguidist
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-07 08:43:38 +02:00
dependabot[bot]
8c9d78838a Bump react-styleguidist in /graylog2-web-interface/docs (#13376)
Bumps [react-styleguidist](https://github.com/styleguidist/react-styleguidist) from 11.2.0 to 12.0.0.
- [Release notes](https://github.com/styleguidist/react-styleguidist/releases)
- [Commits](https://github.com/styleguidist/react-styleguidist/compare/v11.2.0...v12.0.0)

---
updated-dependencies:
- dependency-name: react-styleguidist
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-08 15:17:38 +02:00
dependabot[bot]
b073861826 Bump terser from 5.12.1 to 5.14.2 in /graylog2-web-interface/docs (#13086)
Bumps [terser](https://github.com/terser/terser) from 5.12.1 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-20 14:23:23 +02:00
dependabot[bot]
360cdcacf2 Bump eventsource from 1.1.0 to 1.1.1 in /graylog2-web-interface/docs (#12779)
Bumps [eventsource](https://github.com/EventSource/eventsource) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/EventSource/eventsource/releases)
- [Changelog](https://github.com/EventSource/eventsource/blob/master/HISTORY.md)
- [Commits](https://github.com/EventSource/eventsource/compare/v1.1.0...v1.1.1)

---
updated-dependencies:
- dependency-name: eventsource
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-01 11:59:24 +02:00
dependabot[bot]
7a32741f50 Bump async from 2.6.3 to 2.6.4 in /graylog2-web-interface/docs (#12712)
Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](https://github.com/caolan/async/compare/v2.6.3...v2.6.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-23 13:08:24 +02:00
Dennis Oelkers
d33420efea Isolate usage of react-styleguidist to separate directory. (#12351)
Prior to this change, `react-styleguidist` was a dependency of our main
web interface module. This lead to outdated dependencies being pulled in
transitively repeatedly. With this change, we are not moving the
`react-styleguidist` dependency to the `docs` subdirectory, isolating it
in a separate package.
2022-05-20 14:26:23 +02:00
Kyle Knight
12e87a3e45 Organize components between /common and /bootstrap (#11326)
* Update package

* Modify config to have theme utils and colors at top.
Ignore components that error on build.
Include babel polyfill in require array

* Update content, clean some errors, fix Color click to copy success alert

* Colors.jsx linting

* Moving Scratchpad out of common components

* organize components between common and bootstrap

* fix cyclic use errors

* final imports

* fix up

* Updating docs imports

* fix lingering errors

* remove unneeded file

* cleaning imports

* snapshots

* fix PublicNotifications test

* DataAdapterCreate fix

* RulesPage.tsx

* this was deleted (??)
2021-10-19 17:25:08 +02:00
Kyle Knight
8538925dc8 Frontend Documentation Updates (#11319)
* Update package

* Modify config to have theme utils and colors at top.
Ignore components that error on build.
Include babel polyfill in require array

* Update content, clean some errors, fix Color click to copy success alert

* Colors.jsx linting
2021-09-28 11:40:09 +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
Kyle Knight
e8154d8e1c Booststrap Abstraction (#6385)
* Migrate rest of the ui library over to an abstracted component

* fix lint config

* bootstrap import

updated snapshot

remove dupe Button

Removing duped destructs from merge
2019-09-09 15:33:31 +02:00
Kyle Knight
a51beb16dd Component Abstraction [Button] (#6372)
* Single Import

* multiple inputs

* linting A

* linting B

* lint C

* linting D

* linting E

* linting F

* linting G

* revert Number.isNaN changes

* updated snapshot

* remove dupe Button

* Removing duped destructs from merge
2019-09-09 13:28:15 +02:00
Edmundo Alvarez
84843a8ac5 Frontend documentation and components gallery (#4383)
* Add react-styleguidist module

* Add basic react styleguidist configuration

- Include shared components in the gallery
- Add build scripts to build the gallery and serve it

* Add some more content to UI documentation

* Add documentation

* Add stylesheets to component gallery

* Add EntityList documentation

* Add examples to documented common components

* Add some more documentation

* Add styles for typeahead

* Add documentation for PageErrorOverview

* Remove missing id warning in example

* Add documentation for Page component

* Add PageHeader documentation

* Add PaginatedList documentation

* Correct header tags

* Add SearchForm documentation

* Use deprecated annotation

* Let consumers of `Select` customize `displayKey`

React Select uses `labelKey` instead of `displayKey` so pass the right
prop down.

* Add documentation for Select component

* Add SelectableList documentation

* Add SortableList and SortableListItem documentation

* Fix props definition in TableList component

* Fix display of select all Input

This prop was not updated when we migrated to our own Input component.

* Add documentation for TableList component

* Add documentation for Timestamp component

* Add documentation for TimeUnit component

* Add TimeUnitInput documentation

* Fix error while rendering component

We used the wrong import here, `moment` doesn't know about timezones.

* Be more explicit about the prop we support

As we specify the `onChange` prop in the TimezoneSelect prop types, we
should at least use it instead of passing it down as other props that
are not listed.

We should restrict the supported props at some point, protecting
our code from changes in underlying components.

* Add documentation for TimezoneSelect component

* Add documentation for TypeAheadDataFilter component

* Add TypeAheadFieldInput documentation

* Fix some TypeAheadDataFilter documentation

* Add TypeAheadInput documentation

* Add documentation for ReactGridContainer

* Add some basic docs

* Update yarn.lock
2017-12-04 17:37:53 +01:00