Commit Graph

354 Commits

Author SHA1 Message Date
Łukasz Mierzwa
6b497217d9 fix(backend): remove endsAt from alerts
This is unused but keeps changing
2019-08-08 15:45:00 +01:00
Łukasz Mierzwa
9b6273595d chore: move sorting to the backend 2019-08-08 15:45:00 +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
716644494f chore(ui): upgrade all 3rd party dependencies 2019-08-01 21:43:55 +01:00
Łukasz Mierzwa
9548dc705a fix(ui): don't reset scroll lock on hidden modal update 2019-08-01 20:02:39 +01:00
Łukasz Mierzwa
443dfc02be Revert "feat(ui): lazy render alert group content"
This reverts commit 42a9998f14.

Lazy render conflicts with grid packing and alert groups being move around, this is because it only listens to scroll events.
Need a visibility sensor for this feature to work properly.
2019-07-31 23:22:53 +01:00
Łukasz Mierzwa
34a0fa1dc4 fix(ui): disable hotkeys when modal is hidden
HotKeys component needs to be unmounted on hide, otherwise we might have multiple modals responding to key events
2019-07-31 22:19:23 +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
42a9998f14 feat(ui): lazy render alert group content
This is to avoid rendering lots of expensive components while they're not in the viewport.
Should provide some performance improvements when there's plenty of alerts.
2019-07-26 22:03:05 +01:00
Łukasz Mierzwa
559870b861 chore(ui): switch to column render for navbar icons with only 1 filter 2019-07-19 16:25:46 +01:00
Łukasz Mierzwa
7f42965a84 fix(ui): break words on upstream error messages to avoid overflow 2019-07-18 23:21:49 +01:00
Łukasz Mierzwa
4734c9882c chore(ui): don't focus input on mobile
Focusing input on a mobile browser pulls in the keyboard view, which takes half of the screen. Let user click it manually if needed
2019-07-16 22:35:11 +01:00
Łukasz Mierzwa
d1e1d7fe2f feat(ui): show only common labels in the overview modal by default 2019-07-16 19:39:14 +01:00
Łukasz Mierzwa
8439a56cc9 chore(ui): update snapshots after package-lock upgrades 2019-07-14 23:04:27 +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
610e08356e chore(ui): disable tooltips on the overview modal
These get triggered too often, blocking view of other labels
2019-07-14 19:32:57 +01:00
Łukasz Mierzwa
d41fbff99e feat(ui): show the number of hidden label on the overview modal
We only render top 9 labels, add a counter showing how many were skipped
2019-07-14 19:09:20 +01:00
Łukasz Mierzwa
2bdbfeb16f chore(ui): user offset and raw filter from the api response 2019-07-14 18:22:55 +01:00
Łukasz Mierzwa
88ba0cc657 feat(ui): allow removing filters from the overview modal 2019-07-14 18:22:55 +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
9b348c2437 feat(ui): add an offset to overview modal labels
A little nicer and cleaner view of the percent bar below labels
2019-07-11 22:41:31 +01:00
Łukasz Mierzwa
6201133df9 fix(ui): tweak display of labels on the overview modal 2019-07-11 17:42:32 +01:00
Łukasz Mierzwa
ee5efc6023 chore(ui): use xl size for the overview modal 2019-07-11 13:16:12 +01:00
Łukasz Mierzwa
7d7d6d5e93 fix(ui): add missing tests 2019-07-11 10:59:35 +01:00
Łukasz Mierzwa
3b2ed27e25 fix(ui): fix warning progress bar in overview modal 2019-07-11 10:23:15 +01:00
Łukasz Mierzwa
0b7386f777 chore(ui): show navbar button indicator on hover 2019-07-10 22:39:17 +01:00
Łukasz Mierzwa
70e69fda09 feat(ui): add a modal with labels overview
Fixes #766
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
39b6c1105c fix(ui): add margin to upstream alerts 2019-06-22 20:07:08 +01:00
Łukasz Mierzwa
32463d6435 chore(ui): switch from Lato to Open Sans fonts 2019-06-20 18:52:23 +01:00
Łukasz Mierzwa
f4528721f3 fix(ui): reset filter input badge top offset 2019-06-17 20:11:45 +01:00
Łukasz Mierzwa
f343d450df feat(ui): show a spinner while silence is being deleted
Makes it obvious that the UI didn't freeze on slow connections
2019-06-12 20:37:13 +01:00
Łukasz Mierzwa
acc14d37a9 fix(ui): don't hide the navbar on idle when updates are paused
Updates are now paused when editing filters, so we shouldn't try to hide the entire navbar (including edited filter) when that happens
2019-06-10 23:14:12 +01:00
Łukasz Mierzwa
f2c24edff9 fix(ui): check for string className when handling clicks in filter input
For SVG elements there might be no className attribute so split() might raise an exception
2019-06-10 23:13:07 +01:00
Łukasz Mierzwa
ed379a0600 feat(ui): pause updates while a filter is being edited 2019-06-10 18:50:03 +01:00
Łukasz Mierzwa
e1782df1a7 chore(ui): use FontAwesome icon instead of 'x' for FilterInputLabel 2019-06-07 14:22:42 +01:00
Renovate Bot
bc1d540da7 fix(deps): update dependency react-select to v3.0.4 2019-06-02 22:53:30 +01:00
Łukasz Mierzwa
4465808287 fix(ui): apply correct font color to filter input labels
Bootstrap classes for.btn are getting priorioty so the text is always black, even when background color is dark
2019-06-01 14:17:37 +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
685a0220e0 fix(ui): use width passed by ReactResizeDetector instead of body width
Trying to fix #721.
2019-05-27 11:39:35 +01:00
Łukasz Mierzwa
78660cd374 feat(ui): animate alert counter on changes 2019-05-12 11:09:34 +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
e2dc16b1b2 fix(ui): remove pointless prop definition
It's defined on Tooltip instead of the wrapper and it's not needed
2019-05-11 18:51:28 +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
f50ac75363 fix(ui): fix alert menu content being under other alert groups
Because every alert group uses 'position: absolute' our menu content rendered after clicking on group header or each alert dropdown is hidden under neighbour groups. To fix this we'll add 'z-index: 100' to the group with currently open menu.
2019-05-10 20:06:02 +01:00
Łukasz Mierzwa
884bbe8398 feat(ui): add shadows to dropdown menus 2019-05-09 22:56:27 +01:00
Łukasz Mierzwa
1a106a0de7 fix(ui): use rem as unit for badge-pill in the group header 2019-05-08 15:26:50 +01:00
Łukasz Mierzwa
adc9ccc95c fix(ui): use label class for silence matchers to prevent overflow 2019-05-07 08:05:40 +01:00