Łukasz Mierzwa
50177e75dc
fix(ui): ensure that pagination doesn't set active page to 0
2019-10-27 11:29:55 +00:00
Łukasz Mierzwa
1fbb5120e6
fix(ui): reset pagination if needed
2019-10-27 09:40:23 +00:00
Łukasz Mierzwa
40eedc8156
fix(ui): silence browser controls should switch from row to columns on small screen
2019-10-27 08:03:53 +00:00
Łukasz Mierzwa
392e39e621
fix(ui): don't allow overflow on silence details
2019-10-27 07:51:20 +00:00
Łukasz Mierzwa
5490cb39bb
fix(tests): only debounce user generated requests
2019-10-27 07:35:04 +00:00
Łukasz Mierzwa
166dd6e727
feat(ci): mock silence fetches in storybook
2019-10-27 07:35:04 +00:00
Łukasz Mierzwa
1fe5ced71c
fix(ui): workaround multiple modals conflicting with each other
2019-10-27 07:35:04 +00:00
Łukasz Mierzwa
9e8a30aa22
chore(ui): better pagination handling for large lists
2019-10-27 07:35:04 +00:00
Łukasz Mierzwa
c0f4e4aabb
fix(ui): center text in silence submit result view
2019-10-27 07:35:04 +00:00
Łukasz Mierzwa
6dc2ea985b
feat(ui): paginate silence list
2019-10-27 07:35:04 +00:00
Łukasz Mierzwa
87efb25cd8
feat(ui): add UI for managing all silences
...
This change adds a new view mode in the silence modal that allows to browse and edit any silence found in alertmanager upstream.
Fixes #625
2019-10-26 17:36:12 +01:00
Łukasz Mierzwa
072d700b43
fix(ci): expand silence payload preview on storybook
2019-10-12 10:50:54 +01:00
Łukasz Mierzwa
4554bb2371
feat(ui): show a spinner when alerts are being fetched on the silence preview
2019-10-11 23:39:03 +01:00
Łukasz Mierzwa
2e1e41ff15
fix(ui): tweak css for silence submit errors
2019-10-11 19:21:17 +01:00
Łukasz Mierzwa
1346237777
fix(project): refactor proxy & external_uri handling
...
Fixes #1024
2019-10-11 00:10:58 +01:00
Łukasz Mierzwa
16cb976e81
fix(ci): update snapshots after font-awesome upgrade
2019-10-10 16:08:22 +01:00
Łukasz Mierzwa
2b86aaaedb
chore(tests): update snapshots after font-awesome upgrade
2019-09-29 15:37:05 +01: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
8a6244d8e8
fix(ui): set lower minimum height for Percy snapshots
2019-09-18 13:27:40 +01:00
Łukasz Mierzwa
465373ab2d
fix(ci): force default font for percy
2019-09-13 12:35:11 +01:00
Łukasz Mierzwa
f8b233ae33
feat(ui): more storybooks
2019-09-10 10:25:43 +01:00
Łukasz Mierzwa
6e39196d40
feat(ci): use percy for visual testing
2019-09-09 21:21:12 +01:00
Łukasz Mierzwa
9b00153863
chore(tests): update snapshots after react-datepicker upgrade
2019-09-08 21:34:47 +01:00
Łukasz Mierzwa
0c002e5ce4
fix(tests): update tests for react-datepicker 2.9.3
2019-08-31 00:09:20 +01:00
Łukasz Mierzwa
5856a8421f
chore(tests): add snapshot tests for datetime picker
2019-08-29 16:34:34 +01:00
Łukasz Mierzwa
e166d10b23
chore(tests): update snapshots after dependency upgrade
2019-08-18 14:38:36 +01:00
Łukasz Mierzwa
845f3407d4
fix(ui): reformat ui code with prettier
2019-08-17 12:21:18 +01:00
Łukasz Mierzwa
a3be6e9a7f
fix(ui): cleanup scss variable imports
...
All scss imports needs to use App.scss, otherwise some overrides won't be present, like font swap Lato -> Open Sans
2019-08-03 18:29:27 +01:00
Łukasz Mierzwa
312b718b7a
feat(ui): close modal window when user hits the Escape key
...
Fixes #842
2019-07-31 19:56:57 +01:00
Łukasz Mierzwa
b78c47cb93
fix(ui): don't crash when removing last matcher value
...
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 #827
2019-07-14 22:15:57 +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
36617b2f49
feat(ui): prefer silence author from the API response over local storage
2019-07-12 23:22:08 +01:00
Łukasz Mierzwa
0b7386f777
chore(ui): show navbar button indicator on hover
2019-07-10 22:39:17 +01:00
Łukasz Mierzwa
d9c04616bf
feat(ui): add indicators on open modal buttons
2019-07-09 23:03:01 +01:00
Łukasz Mierzwa
3839d531e4
fix(ui): allow any string as silence author, not just email
...
Alertmanager doesn't restrict this field, so no need to force an email there.
Fixes #741
2019-05-30 23:08:13 +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
Łukasz Mierzwa
eb1181cd70
feat(ui): lazy load modals
...
This uses React code splitting to only load modal content components if they are used - all modal components will be loaded the first time user open a modal, rather than on initial page load
2019-05-11 18:38:54 +01:00
Łukasz Mierzwa
dc00ef86c8
fix(ui): cleanup css classes for labels
2019-05-03 19:14:29 +01:00
Łukasz Mierzwa
809c6c6fab
feat(ui): use api/v2 silence endpoints for alertmanager 0.16+
2019-04-24 20:58:15 +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
dfe9cb1426
fix(tests): mock fetch for LabelValueInput tests
...
Gettings lots of nodejs warnings about unhandled fetch errors due to lack of mocks for suggestion fetch requests, add mocks to supress those
2019-04-03 14:56:59 -07:00
Łukasz Mierzwa
549b5c2310
feat(ui): show progress indicators for silence form matchers
2019-04-02 17:12:46 -07:00
Łukasz Mierzwa
41cca9e501
feat(ui): deduplicate silences
...
If all alerts in a group are silenced and the same silence ID is used for all of them then there's no point in rendering silence object for each of the alerts, since they are all identical. Move the silence rendering to the footer if that happens so we save screen space
2019-03-08 17:41:22 +00:00
Łukasz Mierzwa
a41c07bcee
fix(ui): pass credentials when sending silences to alertmanager
...
Fixes #484
2019-03-01 20:47:36 +00: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
15f8af9a4a
fix(tests): update snapshot after upgrading enzyme
...
Those extra lines are 2 buttons that should be present: Back and Submit. Not sure why those were missing before, but looks like new enzyme fixes this snapshot test as those are expected.
2019-02-17 09:50:40 +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
bab4c20a27
chore(tests): update snapshots for react-json-pretty 2.0
2019-01-03 18:44:25 +00:00
Łukasz Mierzwa
fd7ece5364
fix(ui): use new import path for react-json-pretty theme
...
react-json-pretty 2.0 requires a different import path for themes
2019-01-03 18:41:51 +00:00