Łukasz Mierzwa
cfb56c65ea
refactor(ui): rename SilencePreview to PayloadPreview
2018-10-06 13:42:19 +01:00
Łukasz Mierzwa
8b8a7fb813
feat(ui): silence match preview should use selected Alertmanagers
...
Counter should use selected Alertmanager instances, rather than match all alerts from all instances
2018-10-06 13:34:37 +01:00
Łukasz Mierzwa
57017fa7b9
feat(ui): show number of hits for each matcher in silence form
2018-10-06 12:54:42 +01:00
Łukasz Mierzwa
e6b9041b01
refactor(ui): split silence modal files into submodules
...
Too many files in a single dir
2018-10-06 09:26:08 +01:00
Łukasz Mierzwa
fb5c38b528
fix(ui): set high z-index on react-select dropdown menu
...
It's currently 1 which is the same as buttons on the calendar picker used in the silence form, dropdown needs to have higher value
2018-10-05 22:44:17 +01:00
Łukasz Mierzwa
a20334aa59
chore(ui): add link icon to Alertmanager link in alert menu
2018-10-05 20:21:36 +01:00
Łukasz Mierzwa
19642a553f
fix(ui): use more compatible body style setter
...
This works on Firefox 33, style[] syntax is only supported for FF >=35
2018-10-05 08:22:54 +01:00
Łukasz Mierzwa
66588d10d3
chore(ui): better modal animation, based on bootstrap code
2018-10-04 19:39:29 +01:00
Łukasz Mierzwa
350823c16b
chore(tests): update snapshots for react-select 2.1 version bump
2018-10-03 18:19:55 +01:00
Łukasz Mierzwa
7243cfc149
fix(ui): don't use a for elements without href
2018-10-03 11:14:45 +01:00
Łukasz Mierzwa
4e3635bc98
fix(tests): reset mocks between tests
...
Ensures that tests don't rely on previous tests mocking things
2018-10-03 10:16:31 +01:00
Łukasz Mierzwa
699e2bafa8
fix(ui): fixing tests that stopped working with rca 2.0
2018-10-03 09:34:39 +01:00
Łukasz Mierzwa
e3c43453ea
chore(ui): use react-scripts 2.0 support for sass
2018-10-03 09:34:39 +01:00
Łukasz Mierzwa
af6c166259
feat(ui): allow editing exiting silences
...
Fixes #87
2018-10-01 21:26:51 +01:00
Łukasz Mierzwa
090d73350c
refactor(colors): move font color selection to the fronted
...
Right now backend sends both background and font color information, refactor to send background color and background brightness level (needed to pick font color) and let UI apply font color. Needed to implement #18
2018-09-30 13:50:21 +01:00
Łukasz Mierzwa
32f3ed4f60
fix(ui): break long words in annotations
2018-09-30 13:40:29 +01:00
Łukasz Mierzwa
455cb288ca
fix(tests): alert.alertmanager doesn't have uri key
2018-09-30 09:23:43 +01:00
Łukasz Mierzwa
83aa8b9649
feat(tests): strict validation for props
2018-09-24 15:28:25 +01:00
Łukasz Mierzwa
ce92c89076
fix(ui): switch to fade animation on navbar, hook to correct show event
2018-09-23 19:17:33 +01:00
Łukasz Mierzwa
843118176f
fix(ui): better navbar hiding when idle
...
Don't destroy navbar since modals are mounted on it + update visibility after transition so animations work as expected
2018-09-23 12:23:29 +01:00
Łukasz Mierzwa
bdbffd151f
feat(ui): use different idle value for desktop and mobile
...
Very simple version, no resize handling, but it will cover 95% cases
2018-09-22 20:59:46 +01:00
Łukasz Mierzwa
cc01e07726
feat(ui): animate navbar show/hide
2018-09-22 20:18:34 +01:00
Łukasz Mierzwa
9e72198efe
feat(ui): animate dropdown menus
2018-09-22 15:20:40 +01:00
Łukasz Mierzwa
285e1e98ac
feat(ui): add a dropdown animation
2018-09-22 15:20:40 +01:00
Łukasz Mierzwa
1b4f611406
feat(ui): animate modals
2018-09-22 15:20:40 +01:00
Łukasz Mierzwa
cff4528567
refactor(ui): move animations to a dedicated component
2018-09-22 12:59:44 +01:00
Łukasz Mierzwa
9ba495bbe7
feat(ui): pause fetching when alert/group menu is open
...
This will prevent whack-a-mole when user clicks on an action menu and then grid re-renders moving it around
2018-09-20 14:25:13 +01:00
Łukasz Mierzwa
08f7e6a9fa
refactor(ui): prevent concurrent fetches
...
Refactor the timer so instead of calling fetch directly every seconds we call it every 1 second, check if we could & should fetch (fetch isn't already/still in progress and seconds passed since last fetch) and if needed call fetch.
This will also allow us to pause fetches when user is interacting with alerts so there's no whack-a-mole with buttons
2018-09-20 11:34:13 +01:00
Łukasz Mierzwa
052d54c9fe
fix(ui): render correct link after adding new silence to Alertmanager
2018-09-18 21:48:25 +01:00
Łukasz Mierzwa
f55345437a
chore(tests): make it more obvious that silence should use am.uri, not am.publicURI
2018-09-18 21:27:45 +01:00
Łukasz Mierzwa
f049b97ba1
fix(ui): silence ID link doesn't point to the right URI
2018-09-18 21:25:12 +01:00
Łukasz Mierzwa
9822bce87c
feat(ui): colo fetch indicator with text-success when response is being processed
...
This add a visual indicator of the progress, helpful for big responses or slow connections
2018-09-18 19:49:43 +01:00
Łukasz Mierzwa
54a71bfa68
feat(ui): hide navbar after 3 minutes with no activity
2018-09-17 20:23:47 +01:00
Łukasz Mierzwa
32b7e494fd
chore(ui): make link annotations look more like links and less like labels
2018-09-16 21:47:11 +01:00
Łukasz Mierzwa
03a223ae00
feat(ui): reload app on version change
2018-09-16 21:21:23 +01:00
Łukasz Mierzwa
58779a2404
fix(ui): sort alert groups by id before slicing
...
This is a short term fix to reduce potential re-ordering of alert groups on the grid. This needs to be controlled by user.
2018-09-16 18:57:27 +01:00
Łukasz Mierzwa
7c55510d63
Revert "chore(ui): use transform positioning for grid elements"
...
This reverts commit bc72041222 .
Breaks alert action menu, it gets hidden under next alert group div.
2018-09-16 18:30:41 +01:00
Łukasz Mierzwa
abdce3bec6
Revert "chore(ui): avoid full grid repack on new alerts"
...
This reverts commit d896fa72b2 .
This causes issues with grid rendering - when alert is removed space it was using is not reclaimed.
2018-09-15 23:29:51 +01:00
Łukasz Mierzwa
c2a1468c51
fix(ui): always pass credentials with fetch()
...
Fixes #24
2018-09-15 13:22:26 +01:00
Łukasz Mierzwa
6a3bc39bf5
chore(ui): use fatal error screen if there's only 1 upstream and it's down
2018-09-12 21:50:51 +01:00
Łukasz Mierzwa
d896fa72b2
chore(ui): avoid full grid repack on new alerts
2018-09-12 20:52:41 +01:00
Łukasz Mierzwa
bc72041222
chore(ui): use transform positioning for grid elements
2018-09-12 20:12:32 +01:00
Łukasz Mierzwa
756539d744
fix(ui): use publicURI for alertmanager requests in the silence form
2018-09-11 21:03:54 +01:00
Łukasz Mierzwa
f7d5c8a614
fix(tests): add missing props to SilenceModalContent
2018-09-10 22:27:07 +01:00
Łukasz Mierzwa
d7c00213ff
refactor(ui): reorder alert action menu to make it look nicer with the header
2018-09-09 22:55:21 +01:00
Łukasz Mierzwa
ebf1dcd43a
fix(ui): silence form needs to be reset every time it's hidden
2018-09-09 22:55:21 +01:00
Łukasz Mierzwa
53a83a0b33
fix(ui): silence expiry progress bar should be updated every 30s
2018-09-09 22:55:21 +01:00
Łukasz Mierzwa
2fa7c8fab9
fix(ui): reset silence form duration on every mount
2018-09-09 20:51:05 +01:00
Łukasz Mierzwa
acd04833da
chore(ui): replace favicon after project rename
2018-09-09 15:25:59 +01:00
Łukasz Mierzwa
9c16ffa447
chore(project): rename from unsee to karma
...
Fixes prymitive/unsee#23
2018-09-09 14:12:26 +01:00