Łukasz Mierzwa
49325fcca5
fix(tests): always use UTC timestamps in UI tests
2019-10-05 11:31:18 +01:00
Łukasz Mierzwa
68b3793ef3
fix(ui): add a test for react-moment
2019-10-05 11:16:47 +01:00
Łukasz Mierzwa
f43d9ece7d
feat(ui): ui default settings are populated from the config file
2019-10-04 23:28:34 +01:00
Łukasz Mierzwa
1038b63b25
fix(ui): allow overflow for dropdowns inside accordion
2019-10-03 11:58:51 +01:00
Łukasz Mierzwa
ff7d83c211
fix(ui): reset grid size on settings change
2019-10-02 21:15:23 +01:00
Łukasz Mierzwa
9b78c96e1e
fix(ui): better handling of window resize events
2019-10-02 19:32:22 +01:00
Łukasz Mierzwa
2b86aaaedb
chore(tests): update snapshots after font-awesome upgrade
2019-09-29 15:37:05 +01:00
Łukasz Mierzwa
ce82ab3c86
fix(tests): update deprecation warning for react 16.10
2019-09-28 19:23:52 +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
456cbf0904
fix(ui): prevent grid resize loops
...
Fixes #721
2019-09-23 22:40:52 +01:00
Ł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