Commit Graph

79 Commits

Author SHA1 Message Date
Łukasz Mierzwa
e20f75e09c fix(ui): use current number of alerts in the count label
alertsToRender can be higher than the number of alerts in a group if the number keeps changing. This means we might end up with 'Showing 30/10', so ensuring that we don't show a number higher than the actual group size will make it more accurate
2019-02-23 11:18:44 +00:00
Łukasz Mierzwa
3bd6ebbf3a feat(ui): use grid sorting settings from the API as defaults 2019-02-20 22:24:54 +00:00
Łukasz Mierzwa
397bbe5783 feat(config): allow configuring label value mapping for sorting
This feature solves the problem of sorting by label when values have special meaning and alphabetic sort doesn't make sense for it.
2019-02-18 23:17:47 +00:00
Łukasz Mierzwa
da6368288a feat(ui): allow sorting alert grid
This adds the ability for user to sort the grid of alerts via selected attribute.
UI configuration is provided to setup if timestamps or labels should be used to sort alerts.
2019-02-15 17:23:37 +00:00
Łukasz Mierzwa
f013ec321a fix(tests): trigger click on the right element 2019-02-06 08:07:10 +00:00
Łukasz Mierzwa
675ec52cac fix(tests): remove async from tests that don't need it 2019-02-06 07:51:04 +00:00
Łukasz Mierzwa
b8f15819b8 chore(tests): update snapshots after fontawesome upgrade 2019-01-29 09:03:51 +00:00
Łukasz Mierzwa
6aed0de5df fix(tests): force using UTC so tests don't fail on a non-UTC timezone 2018-12-27 20:24:44 +01:00
Łukasz Mierzwa
9f4ee09a56 fix(ui): only show one silence per Alertmanager cluster
HA clusters share silences which means that they are currently duplicated for each alertmanager instance in that cluster
2018-12-01 10:47:24 +00:00
Łukasz Mierzwa
3a905b748e feat(api): consume Alertmanager cluster id in the UI 2018-12-01 09:57:59 +00:00
Łukasz Mierzwa
ffa446e8f6 chore(ui): update UI to consume cluster list as a dict 2018-11-30 23:59:58 +00:00
Łukasz Mierzwa
4babccbf0e fix(tests): add clusters to tests 2018-11-30 19:41:13 +00:00
Łukasz Mierzwa
0ec81e8427 fix(ui): don't show @alertmanager labels on HA setup
Only show @alertmanager labels when we have more than one cluster present
2018-11-30 19:27:12 +00:00
Łukasz Mierzwa
fd2e852050 feat(ui): consumer Alertmanager version and cluster members 2018-11-30 18:35:34 +00:00
Łukasz Mierzwa
406c2c19bf fix(ui): only break long words in annotations 2018-10-27 10:38:33 +01:00
Łukasz Mierzwa
87540017a4 chore(ui): drop margin between annotations and labels 2018-10-26 22:56:40 +01:00
Łukasz Mierzwa
6b4fce05e5 refactor(ui): cleanup label color/style selection
Merge into a single function since both className & style are tied together and as such are better of if selected using a single logic. Fixes some minor UI glitches like ellipsis color on truncated labels with custom color
2018-10-26 19:13:37 +01:00
Łukasz Mierzwa
cd29ae431e refactor(ui): use flex instead of float in alert group header 2018-10-15 19:05:49 +01:00
Łukasz Mierzwa
8bc2c83de3 refactor(ui): change label style to make the value more visible
Fixes #18
2018-10-15 19:05:49 +01:00
Łukasz Mierzwa
a0cca7f049 chore(ui): tweak affected alerts preview 2018-10-11 11:50:16 +01:00
Łukasz Mierzwa
66d9bba680 feat(ui): allow deleting silences (with preview) 2018-10-08 23:15:27 +01:00
Łukasz Mierzwa
8bd27f8ff7 feat(ui): add tooltips to clickable components 2018-10-07 13:14:45 +01:00
Łukasz Mierzwa
a20334aa59 chore(ui): add link icon to Alertmanager link in alert menu 2018-10-05 20:21:36 +01:00
Łukasz Mierzwa
7243cfc149 fix(ui): don't use a for elements without href 2018-10-03 11:14:45 +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
699e2bafa8 fix(ui): fixing tests that stopped working with rca 2.0 2018-10-03 09:34:39 +01:00
Łukasz Mierzwa
af6c166259 feat(ui): allow editing exiting silences
Fixes #87
2018-10-01 21:26:51 +01:00
Łukasz Mierzwa
32f3ed4f60 fix(ui): break long words in annotations 2018-09-30 13:40:29 +01:00
Łukasz Mierzwa
455cb288ca fix(tests): alert.alertmanager doesn't have uri key 2018-09-30 09:23:43 +01:00
Ł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
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
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