Commit Graph
424 Commits
Author SHA1 Message Date
Ł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 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 be5b19c8d8 fix(ui): deduplicate filter in query args
If we get same filter value multiple times we should only use it once
2019-08-14 18:51:52 +01:00
Łukasz Mierzwa 96b775dcb1 fix(tests): move node mocks to the ui folder
react-scripts 3.1.x fails while running all tests, this was caused by mocks being no longer loaded properly.
Looks like jsconfig.json options are now enforced and since ui/src is the root of the projects mock files
need to move there
2019-08-14 14:50:09 +01:00
Łukasz Mierzwa bbee4fce0d fix(tests): don't fail tests on react 16.9.0 deprecation warnings
There's a lot of 3rd party components using deprecated methods so there's a lot of warnings, and currently this is failing all tests.
Ignore these for now as we need to wait for components to be fixed
2019-08-09 19:41:52 +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 6b688d6ebb fix(ui): remove prune alert attributes from models 2019-08-08 15:45:01 +01:00
Łukasz Mierzwa 557e6cc86a feat(ui): pass sort settings to the API 2019-08-08 15:45:00 +01:00
Łukasz Mierzwa a176138a34 fix(ui): set default settings keys 2019-08-08 15:45:00 +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 f0fee594d9 feat(api): add labels stats to the api response
These will be used by an overview modal, showing top labels.
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