Łukasz Mierzwa
c24ebe1124
fix(tests): update snapshots after font-awesome bump
2019-09-19 14:00:32 +01:00
Łukasz Mierzwa
8a6244d8e8
fix(ui): set lower minimum height for Percy snapshots
2019-09-18 13:27:40 +01:00
Łukasz Mierzwa
77ea39afcc
chore(ui): pass upgrade screen reload timer as props
...
Makes it easier to test
2019-09-18 12:12:19 +01:00
Łukasz Mierzwa
cacc954b92
fix(ui): allow sort label dropdown to overflow accordian container
2019-09-17 21:29:11 +01:00
Łukasz Mierzwa
4f3a0c2e63
feat(ui): use accordion layout for main modal
2019-09-16 21:35:39 +01:00
Łukasz Mierzwa
2444e9a66a
feat(ui): add Accordion component
2019-09-16 21:35:39 +01:00
Łukasz Mierzwa
465373ab2d
fix(ci): force default font for percy
2019-09-13 12:35:11 +01:00
Łukasz Mierzwa
6200328afc
chore(ci): set different alert start for storybook snapshots
2019-09-10 18:35:31 +01:00
Łukasz Mierzwa
f16676f283
fix(ui): revert style changes for upgrade screen
...
It's more noisy with the background
2019-09-10 12:07:54 +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
c0b00fbdd1
feat(tests): add storybook for visual testing of components
2019-09-09 21:21:12 +01:00
Łukasz Mierzwa
f781af3165
fix(ui): improve readability of error / upgrade messages
2019-09-09 20:33:35 +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
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