Commit Graph

55 Commits

Author SHA1 Message Date
Łukasz Mierzwa
83aa8b9649 feat(tests): strict validation for props 2018-09-24 15:28:25 +01:00
Łukasz Mierzwa
9e72198efe feat(ui): animate dropdown menus 2018-09-22 15:20:40 +01:00
Łukasz Mierzwa
cff4528567 refactor(ui): move animations to a dedicated component 2018-09-22 12:59:44 +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
052d54c9fe fix(ui): render correct link after adding new silence to Alertmanager 2018-09-18 21:48:25 +01:00
Łukasz Mierzwa
f55345437a chore(tests): make it more obvious that silence should use am.uri, not am.publicURI 2018-09-18 21:27:45 +01:00
Łukasz Mierzwa
f049b97ba1 fix(ui): silence ID link doesn't point to the right URI 2018-09-18 21:25:12 +01:00
Łukasz Mierzwa
32b7e494fd chore(ui): make link annotations look more like links and less like labels 2018-09-16 21:47:11 +01:00
Łukasz Mierzwa
03a223ae00 feat(ui): reload app on version change 2018-09-16 21:21:23 +01:00
Łukasz Mierzwa
58779a2404 fix(ui): sort alert groups by id before slicing
This is a short term fix to reduce potential re-ordering of alert groups on the grid. This needs to be controlled by user.
2018-09-16 18:57:27 +01:00
Łukasz Mierzwa
7c55510d63 Revert "chore(ui): use transform positioning for grid elements"
This reverts commit bc72041222.

Breaks alert action menu, it gets hidden under next alert group div.
2018-09-16 18:30:41 +01:00
Łukasz Mierzwa
abdce3bec6 Revert "chore(ui): avoid full grid repack on new alerts"
This reverts commit d896fa72b2.

This causes issues with grid rendering - when alert is removed space it was using is not reclaimed.
2018-09-15 23:29:51 +01:00
Łukasz Mierzwa
6a3bc39bf5 chore(ui): use fatal error screen if there's only 1 upstream and it's down 2018-09-12 21:50:51 +01:00
Łukasz Mierzwa
d896fa72b2 chore(ui): avoid full grid repack on new alerts 2018-09-12 20:52:41 +01:00
Łukasz Mierzwa
bc72041222 chore(ui): use transform positioning for grid elements 2018-09-12 20:12:32 +01:00
Łukasz Mierzwa
d7c00213ff refactor(ui): reorder alert action menu to make it look nicer with the header 2018-09-09 22:55:21 +01:00
Łukasz Mierzwa
53a83a0b33 fix(ui): silence expiry progress bar should be updated every 30s 2018-09-09 22:55:21 +01:00
Łukasz Mierzwa
26abcc632b fix(ui): pass unique class to alert action button, so clicking it doesn't trigger click outside handler 2018-09-08 23:35:21 +01:00
Łukasz Mierzwa
7da2c66200 feat(ui): add source links in the alert action menu 2018-09-08 23:28:10 +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
a4557cfc49 feat(ui): add alert menu with actions specific to that alert 2018-09-08 21:11:15 +01:00
Łukasz Mierzwa
e526095f6e fix(ui): annotation should have same hover style as other elements using badge class 2018-09-08 19:15:40 +01:00
Łukasz Mierzwa
6d4b3d6746 fix(tests): use diffable html for annotation snapshot test 2018-09-07 19:23:17 +01:00
Łukasz Mierzwa
096b3985a4 chore(tests): migrate tests to enzyme 2018-09-06 22:37:05 +01:00
Łukasz Mierzwa
e286cf2f1c fix(ui): remove dead check 2018-09-02 19:58:36 +01:00
Łukasz Mierzwa
bd4e549b27 fix(tests): cover regex matches in silence tests 2018-09-02 18:02:58 +01:00
Łukasz Mierzwa
a95b919872 fix(tests): add missing linkify test coverage 2018-09-02 17:59:51 +01:00
Łukasz Mierzwa
2bb0f2ffb0 fix(ui): fix the logic for deciding when to show @alertmanager labels in the footer, add a test 2018-09-02 17:50:34 +01:00
Łukasz Mierzwa
ba6ed7f9ff fix(tests): add test coverage for missed branches in AlertGrid 2018-09-02 16:50:50 +01:00
Łukasz Mierzwa
dc31861bab feat(tests): add GroupMenu tests 2018-09-01 23:47:37 +01:00
Łukasz Mierzwa
9332c5e4b2 feat(tests): add Alert tests 2018-09-01 22:58:15 +01:00
Łukasz Mierzwa
7e2f1fb446 feat(tests): add annotation tests 2018-09-01 21:59:18 +01:00
Łukasz Mierzwa
1e37a2f130 feat(tests): add GroupFoote snapshot test 2018-09-01 21:23:48 +01:00
Łukasz Mierzwa
2dbbef2f3e fix(ui): UI doesn't need to calculate which annotation is hidden by default, backend provides this information 2018-09-01 21:20:22 +01:00
Łukasz Mierzwa
4dfd044cc3 feat(tests): add Silence component tests 2018-09-01 19:36:01 +01:00
Łukasz Mierzwa
1550025336 fix(ui): don't hardcode matchers 2018-09-01 10:17:38 +01:00
Łukasz Mierzwa
879276e017 feat(tests): add AlertGroup tests 2018-08-31 23:25:05 +01:00
Łukasz Mierzwa
4b9b1556c9 feat(tests): add AlertGrid test coverage 2018-08-31 21:43:06 +01:00
Łukasz Mierzwa
572f58ea04 fix(ui): no need to wrap this 2018-08-31 21:18:51 +01:00
Łukasz Mierzwa
b1a347592d feat(tests): add tests for Grid component 2018-08-31 21:00:00 +01:00
Łukasz Mierzwa
da945dbe52 fix(ui): tweak css clases so collapsed alert group doesn't have smaller bottom margin 2018-08-17 17:16:41 +01:00
Łukasz Mierzwa
e7b7c8154d fix(ui): group dropdown item should copy rather than open new tab 2018-08-10 19:54:28 +01:00
Łukasz Mierzwa
18344959d7 feat(ui): allow silencing alerts
This adds a modal dialog for silencing alerts
2018-08-10 17:38:27 +01:00
Łukasz Mierzwa
d8476f389f fix(ui): drop debug logs 2018-08-10 17:36:00 +01:00
Łukasz Mierzwa
9f96918c14 fix(ui): fix group menu after popper update 2018-08-10 15:48:48 +01:00
Łukasz Mierzwa
78e2108164 feat(ui): allow configuring default number of alerts to display per group 2018-07-20 18:44:51 +02:00
Łukasz Mierzwa
310e5ad1ea refactor(ui): use object-hash for react array keys instead of JSON.stringify
JSON.stringify can produce huge strings, use hashes instead
2018-07-20 11:56:17 +02:00
Łukasz Mierzwa
fbda7d1f73 fix(ui): make annotation text smaller to better match labels 2018-07-20 11:34:26 +02:00
Łukasz Mierzwa
a9223adbed fix(ui): better rendering and life cycle for annotations 2018-07-19 23:38:11 +02:00
Łukasz Mierzwa
b1d9a9c34c feat(ui): respect annotation visibility settings in the UI 2018-07-19 23:38:11 +02:00