Łukasz Mierzwa
159bcc4e8a
fix(ui): use mode:no-cors for fetch GET requests
...
This should play better with auth middlewares that uses redirects since CORS will no longer break the redirect chain
2019-11-14 16:25:17 +00:00
Łukasz Mierzwa
09f31e172b
fix(ui): follow redirects when fetching alerts from the UI
2019-11-14 13:20:45 +00:00
Łukasz Mierzwa
da66604864
fix(ui): reformat js code
2019-11-09 14:57:50 +00:00
Łukasz Mierzwa
034206eaf8
chore(storybook): use bigger alert counters for silences"
2019-10-30 17:25:12 +00:00
Łukasz Mierzwa
96822e7f66
feat(ui): show matched alert count on silence browser
2019-10-30 17:25:11 +00:00
Łukasz Mierzwa
acae2cb2a5
chore(ui): remove all usage of Provider component
2019-10-30 13:44:18 +00:00
Łukasz Mierzwa
a5255d5d16
chore(ui): use pure css instead of react-truncate
2019-10-27 15:27:04 +00:00
Łukasz Mierzwa
037370a387
chore(ci): mock counters in storybook
2019-10-27 13:49:32 +00:00
Ł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