Commit Graph

363 Commits

Author SHA1 Message Date
Ł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
548623fef4 chore(ui): flash counter badge on value change 2019-08-17 11:03:40 +01:00
Łukasz Mierzwa
a36fd55627 fix(ui): generate correct group URL
current filters got appended to the group url, fix it by stripping query args away
2019-08-14 19:18:12 +01:00
Łukasz Mierzwa
3f89c54d68 fix(ui): ensure that progress bar height is always enforced 2019-08-09 18:51:39 +01:00
Łukasz Mierzwa
1b3c15a8eb fix(tests): add missing test coverage 2019-08-08 15:45:01 +01:00
Łukasz Mierzwa
548be9e861 feat(ui): pass sort parameters when fetching alerts 2019-08-08 15:45:01 +01:00
Ł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