Łukasz Mierzwa
4d138ddca7
fix(ui): tweak animations
...
Cleanup props by removing 'in' which is passed in from parent.
Set dropdown max-height to be biggish, so that the dropdown doesn't need to expand more after animation is complete.
Drop margin, padding and border overrides so transitions can't alter the size of the dropdown.
2019-03-14 18:04:21 +00:00
Renovate Bot
9dfac092c3
fix(deps): update dependency react-datepicker to v2.2.0
2019-03-14 12:38:33 +00:00
Renovate Bot
0d26e98cdd
fix(deps): update dependency react-transition-group to v2.6.1
2019-03-14 10:35:58 +00:00
Renovate Bot
f250e81ddc
fix(deps): update dependency react-json-pretty to v2.1.0
2019-03-14 08:28:22 +00:00
Renovate Bot
dedc9d1ef7
chore(deps): update dependency enzyme-adapter-react-16 to v1.11.2
2019-03-14 07:03:45 +00:00
Łukasz Mierzwa
bd0a32ec8a
chore(ui): hide annotation details only when clicking on the - icon
...
This changes handling of annotation hide/show clicks. Right now annotation details are toggled when anything inside the annotation div is clicked. With this change showing annotation details stays the same (click anywhere), but hiding those details only works when clicking the minus icon. A tooltip was added and cursor changes to pointer only when hoovering over clickable elements.
Fixes #518
2019-03-13 18:06:15 +00:00
Renovate Bot
84b5d79b44
chore(deps): update dependency enzyme-adapter-react-16 to v1.11.0
2019-03-13 07:47:09 +00:00
Renovate Bot
9bbafdfab8
fix(deps): update dependency react-json-pretty to v2.0.1
2019-03-13 05:52:19 +00:00
Renovate Bot
1ee6410273
fix(deps): update dependency react-select to v2.4.2
2019-03-12 10:35:04 +00:00
Łukasz Mierzwa
6f24026ae0
fix(ui): update grid after long silence is truncated
...
Ensures that grid is always packed correctly, since truncating silence comment can alter the size of alert group card
2019-03-08 20:10:57 +00:00
Łukasz Mierzwa
41cca9e501
feat(ui): deduplicate silences
...
If all alerts in a group are silenced and the same silence ID is used for all of them then there's no point in rendering silence object for each of the alerts, since they are all identical. Move the silence rendering to the footer if that happens so we save screen space
2019-03-08 17:41:22 +00:00
Łukasz Mierzwa
e3596dfbf4
feat(ui): truncate silences with long comments
...
Only show first 2 lines of a silence comment by default, the rest should be visible only when silence details are visible
2019-03-07 23:01:11 +00:00
Renovate Bot
2f4f686d49
fix(deps): update dependency react-scripts to v2.1.8
2019-03-07 01:01:39 +00:00
Renovate Bot
69cf07130b
fix(deps): update react monorepo to v16.8.4
2019-03-05 23:43:20 +00:00
Renovate Bot
3624aa67af
fix(deps): update dependency react-resize-detector to v4.0.2
2019-03-05 19:36:54 +00:00
Łukasz Mierzwa
95ef07bb25
chore(ui): upgrade all 3rd party dependencies
2019-03-05 14:44:48 +00:00
Łukasz Mierzwa
f099ccc0ea
feat(ui): render an indicator icon when alert is inhibited
...
Right now we don't mark inhibted alerts in any way, so they look like silenced alerts with no silence details. Add an icon with tooltip so inhibited alerts can be easily distinguished from silenced onces
2019-03-05 11:02:08 +00:00
Renovate Bot
bfb07eae54
fix(deps): update dependency react-resize-detector to v4
2019-03-04 14:41:18 +00:00
Łukasz Mierzwa
a41c07bcee
fix(ui): pass credentials when sending silences to alertmanager
...
Fixes #484
2019-03-01 20:47:36 +00:00
Łukasz Mierzwa
1093b38164
feat(ui): use not-equal operator when user alt+clicks on a label
...
When user clicks on a label we apply a foo=bar filter, this change allows to add a foo!=bar filter by holding Alt key when clicking.
Fixes #485
2019-03-01 19:44:08 +00:00
Renovate Bot
3d6b8d32ed
fix(deps): update dependency react-transition-group to v2.6.0
2019-02-26 14:48:15 +00:00
Renovate Bot
e0e7eacd40
fix(deps): update dependency @sentry/browser to v4.6.4
2019-02-26 12:05:03 +00:00
Renovate Bot
c5f97f80b9
chore(deps): update dependency enzyme-adapter-react-16 to v1.10.0
2019-02-26 08:59:35 +00:00
Renovate Bot
40c2310cc8
chore(deps): update dependency markdownlint-cli to v0.14.0
2019-02-25 06:52:43 +00:00
Łukasz Mierzwa
6ac1d17c18
refactor(ui): use bootstrap utilities for word breaks
...
Using bootstrap means that we don't need to worry about browser compatibility, which in this case means Edge where this wasn't enough
2019-02-24 22:35:39 +00:00
Łukasz Mierzwa
e20f75e09c
fix(ui): use current number of alerts in the count label
...
alertsToRender can be higher than the number of alerts in a group if the number keeps changing. This means we might end up with 'Showing 30/10', so ensuring that we don't show a number higher than the actual group size will make it more accurate
2019-02-23 11:18:44 +00:00
Łukasz Mierzwa
56a4150b86
chore(ui): upgrade all 3rd party dependencies
2019-02-22 22:47:12 +00:00
Renovate Bot
63fb461b01
fix(deps): update react monorepo to v16.8.3
2019-02-21 23:27:18 +00:00
Łukasz Mierzwa
3bd6ebbf3a
feat(ui): use grid sorting settings from the API as defaults
2019-02-20 22:24:54 +00:00
Renovate Bot
76709f4d3f
fix(deps): update dependency react-onclickoutside to v6.8.0
2019-02-20 20:32:45 +00:00
Renovate Bot
ff33045fcb
fix(deps): update dependency @sentry/browser to v4.6.3
2019-02-20 14:19:06 +00:00
Renovate Bot
624577cd61
fix(deps): update dependency @sentry/browser to v4.6.2
2019-02-19 15:43:04 +00:00
Łukasz Mierzwa
397bbe5783
feat(config): allow configuring label value mapping for sorting
...
This feature solves the problem of sorting by label when values have special meaning and alphabetic sort doesn't make sense for it.
2019-02-18 23:17:47 +00:00
Renovate Bot
7993c39442
fix(deps): update dependency react-select to v2.4.1
2019-02-18 02:16:34 +00:00
Łukasz Mierzwa
15f8af9a4a
fix(tests): update snapshot after upgrading enzyme
...
Those extra lines are 2 buttons that should be present: Back and Submit. Not sure why those were missing before, but looks like new enzyme fixes this snapshot test as those are expected.
2019-02-17 09:50:40 +00:00
Renovate Bot
ff3afef036
chore(deps): update dependency enzyme to v3.9.0
2019-02-17 07:44:16 +00:00
Łukasz Mierzwa
c40be083bd
fix(ui): revert react-select to 2.3.0
...
2.4.0 doesn't work on mobile, revert to 2.3.0 until the issue is fixed upstream
2019-02-16 11:21:37 +00:00
Renovate Bot
d649b7b158
chore(deps): update dependency jest-fetch-mock to v2.1.1
2019-02-15 18:22:01 +00:00
Łukasz Mierzwa
da6368288a
feat(ui): allow sorting alert grid
...
This adds the ability for user to sort the grid of alerts via selected attribute.
UI configuration is provided to setup if timestamps or labels should be used to sort alerts.
2019-02-15 17:23:37 +00:00
Łukasz Mierzwa
4100486127
fix(tests): add css classes to react-select components
...
react-select 2.4 drops role['option'] from Option components, which makes it harder to find those in the DOM while testing. Set classNamePrefix so that all components get extra react-select-* css classes, which allows to easily reference them in tests via enzyme selectors.
2019-02-15 09:51:19 +00:00
Renovate Bot
e6bdeba028
fix(deps): update dependency react-select to v2.4.0
2019-02-15 04:57:53 +00:00
Renovate Bot
59f071e656
fix(deps): update react monorepo to v16.8.2
2019-02-14 19:20:15 +00:00
Renovate Bot
5fd08940f2
fix(deps): update dependency @sentry/browser to v4.6.1
2019-02-14 16:25:50 +00:00
Renovate Bot
4997523b8b
fix(deps): update dependency @sentry/browser to v4.6.0
2019-02-14 14:13:48 +00:00
Renovate Bot
d2db8e8776
fix(deps): update dependency bootswatch to v4.3.1
2019-02-14 10:42:54 +00:00
Renovate Bot
3a551acc69
fix(deps): update dependency bootstrap to v4.3.1
2019-02-14 08:27:33 +00:00
Renovate Bot
0a5593f5ce
fix(deps): update dependency prop-types to v15.7.2
2019-02-13 20:20:46 +00:00
Renovate Bot
d4dcc4ddff
fix(deps): update font awesome
2019-02-12 17:20:42 +00:00
Renovate Bot
be516777d3
chore(deps): update dependency @commitlint/travis-cli to v7.5.2
2019-02-12 08:18:20 +00:00
Łukasz Mierzwa
17628fec8e
feat(ui): set font-display swap policy
...
This tells the browser to use a fallback font until Leto is loaded, which speeds up initial rendering, especially on slow clients
2019-02-11 19:23:09 +00:00