Łukasz Mierzwa
92496d5fc0
fix(tests): reformat code
2023-07-25 19:16:46 +01:00
Łukasz Mierzwa
adc5b437a0
fix(tests): add missing tests
2023-03-08 10:55:35 +00:00
David Caro
f1006314c0
feat: add default alertmanagers to silence form
...
That will allow setting some default alertmanagers to select when
creating a new silence, overriding the current behavior of getting all
the ones that are not readonly.
Signed-off-by: David Caro <dcaro@wikimedia.org >
2023-03-08 10:55:35 +00:00
Łukasz Mierzwa
0c52a528b1
fix(tests): update snapshots
2022-12-01 18:38:20 +00:00
Łukasz Mierzwa
236c66c73c
fix(project): drop support for alertmanger <0.22.0
2022-04-16 14:57:02 +01:00
Łukasz Mierzwa
fd555e0dd8
fix(tests): update snapshots
2022-04-11 06:48:22 +00:00
Łukasz Mierzwa
5a1854f92d
fix(ui): migrate to FontAwesome 6
2022-02-09 16:21:35 +00:00
Łukasz Mierzwa
3a40cdf56d
chore(ui): upgrade all 3rd party dependencies
2021-11-15 23:25:35 +00:00
Łukasz Mierzwa
1e98944d4b
fix(ui): migrate to react-select 5.x
2021-11-15 21:48:44 +00:00
Łukasz Mierzwa
7b4aef27b6
fix(tests): reformat snapshots
2021-10-19 18:37:42 +01:00
Łukasz Mierzwa
504a44d135
fix(ci): enable more checks in tsconfig
2021-05-25 12:46:10 +01:00
Łukasz Mierzwa
e45debed58
fix(ui): enable mobx strict mode in tests
2021-05-03 19:29:05 +01:00
Łukasz Mierzwa
0de58da467
chore(ui): add UI animations to react-select menus
2021-04-22 14:41:26 +01:00
Łukasz Mierzwa
7638d655a7
fix(ui): fix typescript warnings
2021-04-07 14:17:48 +01:00
Łukasz Mierzwa
119e762985
fix(tests): update snapshots
2021-03-05 11:50:35 +00:00
renovate[bot]
ab6745bbbf
fix(deps): update dependency react-select to v4.1.0 ( #2734 )
...
* fix(deps): update dependency react-select to v4.1.0
* fix(tests): update snapshots
Co-authored-by: Renovate Bot <bot@renovateapp.com >
Co-authored-by: Łukasz Mierzwa <l.mierzwa@gmail.com >
2021-02-07 12:18:29 +00:00
renovate[bot]
dc8d21a2cb
fix(deps): update dependency react-select to v4 ( #2663 )
...
* fix(deps): update dependency react-select to v4
* fix(tests): fix tests for react-select v4
Co-authored-by: Renovate Bot <bot@renovateapp.com >
Co-authored-by: Łukasz Mierzwa <l.mierzwa@gmail.com >
2021-01-25 18:37:28 +00:00
Łukasz Mierzwa
a3e9a7e0ba
fix(ui): migrate to @types/react-select v3.1.x
2021-01-02 16:23:39 +00:00
Łukasz Mierzwa
db0aa0bab9
fix(ui): migrate to cra v4
2020-11-23 19:04:14 +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
fcc795b7c9
chore(tests): migrate jest tests to typescript
2020-07-21 17:58:08 +01:00
Łukasz Mierzwa
e55988588c
chore(ui): migrate more components to typescript
2020-07-17 11:58:41 +01:00
Łukasz Mierzwa
2d3458b688
feat(ui): allow sharing pre-filled silence form via a link
...
Fixes #1820
2020-06-29 13:25:03 +01:00
Łukasz Mierzwa
f83c2c4743
fix(tests): update AlertManagerInput with new cluster label
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
22e1c7c05e
fix(ui): drop unused MultiSelect component
2020-05-12 18:01:47 +01:00
Łukasz Mierzwa
65e7f7e33d
fix(ui): rewrite AlertManagerInput with hooks
2020-05-11 12:49:24 +01:00
Łukasz Mierzwa
fd08799a42
fix(ui): ensure that react-select input gets correct color
2020-04-01 21:03:38 +01:00
Łukasz Mierzwa
c12f218b4e
fix(ui): reformat code using prettier v2
2020-03-25 21:43:39 +00:00
Łukasz Mierzwa
8795f1d132
fix(tests): update snapshots
2020-03-25 15:43:29 +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
10ec1a84fc
fix(ui): left side of a select needs radius
2019-11-29 22:04:58 +00:00
Łukasz Mierzwa
a7b409e661
fix(ui): reduce bundle size
2019-11-29 15:58:16 +00:00
Łukasz Mierzwa
de43f1ac4a
feat(ui): theme switching
...
This add "proper" dark mode using darkly bootstrap theme
2019-11-27 12:18:13 +00:00
Łukasz Mierzwa
a5255d5d16
chore(ui): use pure css instead of react-truncate
2019-10-27 15:27:04 +00: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
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