Commit Graph

15 Commits

Author SHA1 Message Date
Ł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
e166d10b23 chore(tests): update snapshots after dependency upgrade 2019-08-18 14:38:36 +01:00
Łukasz Mierzwa
6152067ce1 fix(ui): don't crash when removing last Alertmanager instance
Removing last value sets the value that's expected to be a list to null, which breaks some logic, ensure we always have a list there.

Fixes #826
2019-07-14 21:50:00 +01:00
Łukasz Mierzwa
92a7c8c847 fix(ui): migrate to react-select v3 2019-05-27 16:50:30 +01:00
Łukasz Mierzwa
c374d627e6 fix(ui): matcher badge and close icon css fixes
Counter badge is misaligned, fix it by setting line-height.
Close icon border padding is different than parent, ensure it's inherited to avoid mismatch
2019-05-11 23:29:56 +01:00
Renovate Bot
abd85362a5 fix(deps): update dependency react-select to v2.4.3 2019-04-17 10:21:03 +01:00
Łukasz Mierzwa
6ac1d17c18 refactor(ui): use bootstrap utilities for word breaks
Using bootstrap means that we don't need to worry about browser compatibility, which in this case means Edge where this wasn't enough
2019-02-24 22:35:39 +00:00
Łukasz Mierzwa
4100486127 fix(tests): add css classes to react-select components
react-select 2.4 drops role['option'] from Option components, which makes it harder to find those in the DOM while testing. Set classNamePrefix so that all components get extra react-select-* css classes, which allows to easily reference them in tests via enzyme selectors.
2019-02-15 09:51:19 +00:00
Łukasz Mierzwa
8c80f74487 fix(ui): prevent duplicated Alertmanager input options
Select value is an array, turn it into a string before checking if it's already selected
2019-01-01 23:02:29 +00:00
Łukasz Mierzwa
62db6859ea fix(ui): use new style alertmanager input values 2019-01-01 23:02:29 +00:00
Łukasz Mierzwa
7d52626489 fix(ui): send silences only to a single cluster node
Silences are shared by HA cluster members, when submitting a silence to a cluster try each each member but stop after first successful fetch
2018-12-01 17:58:40 +00:00
Łukasz Mierzwa
3a905b748e feat(api): consume Alertmanager cluster id in the UI 2018-12-01 09:57:59 +00:00
Łukasz Mierzwa
fd2e852050 feat(ui): consumer Alertmanager version and cluster members 2018-11-30 18:35:34 +00:00
Łukasz Mierzwa
fa6f4b270a chore(ui): update snapshots for react-select 2.1.1 2018-10-24 18:05:14 +01:00
Łukasz Mierzwa
e6b9041b01 refactor(ui): split silence modal files into submodules
Too many files in a single dir
2018-10-06 09:26:08 +01:00