Łukasz Mierzwa
d5b5c81e8e
fix(tests): fix issues reported by react-app/jest eslint rules
2020-10-28 12:26:51 +00:00
Łukasz Mierzwa
367c05e1fa
fix(tests): use jest.mock for react-intersection-observer
2020-10-28 12:26:51 +00:00
Łukasz Mierzwa
865f36cdcb
fix(tests): migrate useFetchDelete mocks to jest.mock
2020-10-28 12:26:51 +00:00
Łukasz Mierzwa
836cf67fe8
fix(tests): move fixtures to a dedicated folder
2020-10-28 12:26:51 +00:00
Łukasz Mierzwa
0408e04900
fix(tests): move useFetchGet mocks to __fixtures__
2020-10-28 12:26:51 +00:00
Łukasz Mierzwa
45f30f6ce9
feat(ui): allow disabling animations
2020-10-11 17:09:37 +01:00
Łukasz Mierzwa
632a111056
fix(ui): migrate code to mobx v6
2020-10-02 14:08:11 +01:00
Łukasz Mierzwa
6d961fa09d
fix(ui): always pass type to useRef & useState
2020-07-22 21:39:43 +01:00
Łukasz Mierzwa
aa022796b4
fix(ui): resolve eslint reported issues
2020-07-21 17:58:08 +01:00
Łukasz Mierzwa
fcc795b7c9
chore(tests): migrate jest tests to typescript
2020-07-21 17:58:08 +01:00
Łukasz Mierzwa
a7540a1e76
fix(ui): better handling of scrollbar gap when modal is open
2020-07-06 18:22:17 +01:00
Łukasz Mierzwa
2f74561809
chore(ui): drop react-reveal animations
...
This library is not maintained anymore and it causes small glitches when rendering a lot of alerts - scrolling groups into view doesn't always trigger animation and they stay hidden.
2020-07-03 17:03:43 +01:00
Łukasz Mierzwa
2dd1897937
fix(tests): add alert fingerprint to prop validation
2020-07-02 14:31:15 +01:00
Łukasz Mierzwa
e15d8894d1
fix(ui): cancel debounced calls in useEffect cleanup
2020-06-30 11:29:10 +01:00
Łukasz Mierzwa
aab937adb8
fix(ui): use string formatted rgba label colors
2020-06-25 18:28:49 +01:00
Łukasz Mierzwa
78c1def776
fix(ui): handle canceled get requests in silence form
2020-06-25 15:58:11 +01:00
Łukasz Mierzwa
6a7cc1c72f
feat(ui): drop moment.js to reduce bundle size
2020-06-17 18:57:13 +01:00
Łukasz Mierzwa
83e802dd9b
fix(ui): migrate to react-hotkeys-hook
2020-06-15 19:47:21 +01:00
Łukasz Mierzwa
40d70cf2b0
chore(ci): update cluster names
2020-06-13 14:34:58 +01:00
Łukasz Mierzwa
2c68967928
fix(ui): use alert fingerprint instead of labels hash
2020-05-30 18:12:54 +01:00
Łukasz Mierzwa
d860dae3ca
fix(ui): reduce webpack bundle size by splitting lodash imports
2020-05-18 17:38:13 +01:00
Łukasz Mierzwa
5dd1251010
fix(ui): hide @receiver label when there's only one receiver configured
...
Fixes #1715
2020-05-14 16:45:49 +01:00
Łukasz Mierzwa
80bbc58090
fix(ui): use react-popper-tooltip instead of react-tippy
2020-05-14 11:14:45 +01:00
Łukasz Mierzwa
4eacd18cf6
fix(ui): drop react-onclickoutside
...
use a custom hook instad
2020-05-13 17:56:00 +01:00
Łukasz Mierzwa
65e7f7e33d
fix(ui): rewrite AlertManagerInput with hooks
2020-05-11 12:49:24 +01:00
Łukasz Mierzwa
60bdf96be1
feat(ui): use hooks for fetch requests
2020-05-11 12:49:24 +01:00
Łukasz Mierzwa
5a85ec239d
fix(ui): rewrite FaviconBadge using hooks
2020-04-17 15:03:14 +01:00
Łukasz Mierzwa
7eaa7cbf34
fix(ui): add animation settings to the theme context
2020-04-16 10:06:33 +01:00
Łukasz Mierzwa
2db0344a70
fix(tests): don't duplicate storybook grids
2020-03-31 11:12:44 +01:00
Łukasz Mierzwa
65a9623fb0
fix(tests): render grids on storybook
2020-03-31 09:16:56 +01:00
Łukasz Mierzwa
0efd3a9d3c
fix(ui): correctly pass UI defaults from config
2020-03-31 09:16:55 +01:00
Łukasz Mierzwa
ec1705a0f0
feat(ui): support multiple grids in the UI
2020-03-31 09:16:55 +01:00
Łukasz Mierzwa
1fc6aaf949
fix(tests): update mocks with grids
2020-03-31 09:16:55 +01:00
Łukasz Mierzwa
c12f218b4e
fix(ui): reformat code using prettier v2
2020-03-25 21:43:39 +00:00
Łukasz Mierzwa
26963b4d3b
feat(ui): add a pagination component with keyboard shortcuts
2020-02-29 10:16:41 +00:00
Łukasz Mierzwa
1f22a11e14
fix(ui): use CORS credential settings from each alertmanager configuration
...
Fixes #1432
2020-02-19 12:10:42 +00:00
Łukasz Mierzwa
d0f59977b0
fix(ui): remove alertmanager API V1 support
2020-02-12 16:09:55 +00:00
Łukasz Mierzwa
3df4d27efc
feat(ui): disable silence actions for read-only alertmanagers
2020-01-28 22:26:56 +00:00
Łukasz Mierzwa
378866ae34
fix(ui): remove hash tests, it's no longer exposed in the API
2020-01-06 22:23:16 +00:00
Łukasz Mierzwa
cc4da6d16b
feat(ui): follow browser preferences when setting theme
2019-11-29 22:00:41 +00:00
Łukasz Mierzwa
a7b409e661
fix(ui): reduce bundle size
2019-11-29 15:58:16 +00:00
Łukasz Mierzwa
5b4b218272
fix(storybook): add missing fetch mocks
2019-11-28 14:16:13 +00:00
Łukasz Mierzwa
c184323f09
fix(storybook): remove duplicated prop
2019-11-28 12:21:35 +00:00
Łukasz Mierzwa
f3e2ed2b00
feat(storybook): add more stories to storybook
2019-11-26 23:36:07 +00:00
Łukasz Mierzwa
ae86f9f10c
fix(ui): migrate to @silence_ticket filters
2019-11-11 23:24:06 +00:00
Łukasz Mierzwa
63a3d2a30b
feat(ui): allow acknowledging alerts using short lived silences
2019-11-05 14:11:23 +00:00
Łukasz Mierzwa
794607919a
feat(ui): experimental dark theme
...
Very ugly, might be buggy, but need to start somewhere
2019-10-28 18:38:12 +00:00
Łukasz Mierzwa
f43d9ece7d
feat(ui): ui default settings are populated from the config file
2019-10-04 23:28:34 +01:00
Łukasz Mierzwa
80c30f1879
fix(ui): pass configured alertmanager headers when making requests from the browser
...
Right now configured headers are only set on requests made from the backend to alertmanager API.
With this change fetch() calls in the browser will use those headers if proxy mode is not enabled.
2019-09-26 20:37:23 +01:00
Łukasz Mierzwa
96b775dcb1
fix(tests): move node mocks to the ui folder
...
react-scripts 3.1.x fails while running all tests, this was caused by mocks being no longer loaded properly.
Looks like jsconfig.json options are now enforced and since ui/src is the root of the projects mock files
need to move there
2019-08-14 14:50:09 +01:00