Commit Graph

34 Commits

Author SHA1 Message Date
Łukasz Mierzwa
c3bfc77734 fix(tests): fix tests for react v17 2020-11-09 20:54:59 +00:00
Łukasz Mierzwa
836cf67fe8 fix(tests): move fixtures to a dedicated folder 2020-10-28 12:26:51 +00:00
Łukasz Mierzwa
fd155db464 fix(ui): migrate to mobx-react-lite v3 2020-10-02 17:28:34 +01:00
Łukasz Mierzwa
632a111056 fix(ui): migrate code to mobx v6 2020-10-02 14:08:11 +01:00
Łukasz Mierzwa
ef908e300a feat(ui): add a countdown indicator for refresh timer 2020-08-24 17:15:50 +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
4d4dd111c1 chore(ui): migrate more code to typescript 2020-07-17 11:58:41 +01:00
Łukasz Mierzwa
6a7cc1c72f feat(ui): drop moment.js to reduce bundle size 2020-06-17 18:57:13 +01:00
Łukasz Mierzwa
50b7b848ca feat(ui): add @alertmanager & @receiver as multi-grid options 2020-06-12 19:14:17 +01:00
Łukasz Mierzwa
508e47f5c4 fix(ui): drop mobx-react 2020-06-10 18:15:51 +01:00
Łukasz Mierzwa
ca7a8fceaf fix(ui): rewrite Fetcher with hooks 2020-06-10 18:15:51 +01:00
Łukasz Mierzwa
0f3dabb517 fix(tests): use fetch-mock instead of jest-fetch-mock 2020-05-12 18:01:47 +01:00
Łukasz Mierzwa
55463e9ef5 fix(tests): avoid using instance() in tests 2020-05-01 17:57:42 +01:00
Łukasz Mierzwa
a178a6bed8 fix(ui): add multi-grid label options to settingsStore 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
2e57e4af49 chore(ui): only fetch updates if seconds passed since last fetch
Right now fetcher will always trigger fetch if enough time passes, make it aware of the last fetch timestamp so the timer resets after each fetch
2019-10-31 22:39:38 +00:00
Łukasz Mierzwa
49325fcca5 fix(tests): always use UTC timestamps in UI tests 2019-10-05 11:31:18 +01:00
Łukasz Mierzwa
1b3c15a8eb fix(tests): add missing test coverage 2019-08-08 15:45:01 +01:00
Łukasz Mierzwa
548be9e861 feat(ui): pass sort parameters when fetching alerts 2019-08-08 15:45:01 +01:00
Łukasz Mierzwa
9b6273595d chore: move sorting to the backend 2019-08-08 15:45:00 +01:00
Łukasz Mierzwa
c298a6cd69 fix(ui): delay initial fetch until browser is idle
Right now the very fist fetch() happens right after Fetcher instance is created, which might be while a lot of other components are still being created. Wrap it inside requestAnimationFrame so it's executed once the browser is (fairly) idle
2019-05-04 22:48:40 +01:00
Łukasz Mierzwa
4e3635bc98 fix(tests): reset mocks between tests
Ensures that tests don't rely on previous tests mocking things
2018-10-03 10:16:31 +01:00
Łukasz Mierzwa
9ba495bbe7 feat(ui): pause fetching when alert/group menu is open
This will prevent whack-a-mole when user clicks on an action menu and then grid re-renders moving it around
2018-09-20 14:25:13 +01:00
Łukasz Mierzwa
08f7e6a9fa refactor(ui): prevent concurrent fetches
Refactor the timer so instead of calling fetch directly every  seconds we call it every 1 second, check if we could & should fetch (fetch isn't already/still in progress and  seconds passed since last fetch) and if needed call fetch.
This will also allow us to pause fetches when user is interacting with alerts so there's no whack-a-mole with buttons
2018-09-20 11:34:13 +01:00
Łukasz Mierzwa
4d64b0b3ea chore(tests): drop console mock, fix all tests that throw console errors 2018-09-08 21:11:15 +01:00
Łukasz Mierzwa
096b3985a4 chore(tests): migrate tests to enzyme 2018-09-06 22:37:05 +01:00
Łukasz Mierzwa
99f5f3999e refactor(tests): use jest-fetch-mock for mocking fetch() calls 2018-08-22 15:34:58 +01:00
Łukasz Mierzwa
992158d714 feat(test): basic tests for Fetcher component 2018-08-21 23:06:14 +01:00
Łukasz Mierzwa
2e36eff52e fix(ui): all components should use alertStore.fetchWithThrottle() 2018-08-21 20:39:32 +01:00
Łukasz Mierzwa
0f2ebbcbc7 refactor(ui): split settings into dedicated classes 2018-07-20 11:30:40 +02:00
Łukasz Mierzwa
3aa1d868c8 feat(ui): configurable refresh interval 2018-07-19 23:38:11 +02:00
Łukasz Mierzwa
a4a20ea3ef feat(ui): new UI written in React 2018-07-19 23:38:11 +02:00