Łukasz Mierzwa
fd2e852050
feat(ui): consumer Alertmanager version and cluster members
2018-11-30 18:35:34 +00:00
Łukasz Mierzwa
44e4d90651
chore(ui): react-datepicker 2.0 uses Date instead of moment
...
Latest react-datepicker no longer accepts moment instances, it uses plain js Date objects instead.
Migrate code to pass props as Date.
2018-11-19 21:40:05 +00:00
Łukasz Mierzwa
6b4fce05e5
refactor(ui): cleanup label color/style selection
...
Merge into a single function since both className & style are tied together and as such are better of if selected using a single logic. Fixes some minor UI glitches like ellipsis color on truncated labels with custom color
2018-10-26 19:13:37 +01:00
Łukasz Mierzwa
fa6f4b270a
chore(ui): update snapshots for react-select 2.1.1
2018-10-24 18:05:14 +01:00
Łukasz Mierzwa
a85f3810aa
fix(ui): move ul to a dedicated div to prevent bottom border
...
The way list-group-flush is styled any extra element on the ul level seems to be causing top/bottom borders to show up, move it under a dedicated div to prevent that from happening, with list-group-flush we want borders only between label set elements
2018-10-16 18:43:16 +01:00
Łukasz Mierzwa
8bc2c83de3
refactor(ui): change label style to make the value more visible
...
Fixes #18
2018-10-15 19:05:49 +01:00
Łukasz Mierzwa
ba3a572604
feat(ui): add tooltips to silence matcher counters
2018-10-11 12:23:22 +01:00
Łukasz Mierzwa
a0cca7f049
chore(ui): tweak affected alerts preview
2018-10-11 11:50:16 +01:00
Łukasz Mierzwa
96acb5bbfe
fix(ui): fix silence form reset callbacks
...
resetProgress() should only be called *after* form is hidden, doing it before will cause it to re-render with UserInput stage which will trigger autocomplete requests
2018-10-11 10:25:31 +01:00
Łukasz Mierzwa
7a9168a606
fix(tests): drop broken test
...
Throwing errors in CI, not very useful, drop it for now
2018-10-08 23:32:50 +01:00
Łukasz Mierzwa
01c108fd41
refactor(ui): move label list preview to a dedicated component
...
This will be reused in delete confirmation modal
2018-10-08 23:02:39 +01:00
Łukasz Mierzwa
7adf1bbfd5
refactor(ui): move common modal code to a dedicated component
2018-10-08 21:54:22 +01:00
Łukasz Mierzwa
8bd27f8ff7
feat(ui): add tooltips to clickable components
2018-10-07 13:14:45 +01:00
Łukasz Mierzwa
6b08fc88cc
refactor(ui): drop alert count from silence preview
...
This will be confusing since we deduplicate receivers, drop the count and more info
2018-10-06 19:26:35 +01:00
Łukasz Mierzwa
6d44e9bb02
feat(ui): preview affected alerts before submitting silence
2018-10-06 17:04:20 +01:00
Ł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
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
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
83aa8b9649
feat(tests): strict validation for props
2018-09-24 15:28:25 +01:00
Łukasz Mierzwa
1b4f611406
feat(ui): animate modals
2018-09-22 15:20:40 +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
c2a1468c51
fix(ui): always pass credentials with fetch()
...
Fixes #24
2018-09-15 13:22:26 +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
ebf1dcd43a
fix(ui): silence form needs to be reset every time it's hidden
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
9c16ffa447
chore(project): rename from unsee to karma
...
Fixes prymitive/unsee#23
2018-09-09 14:12:26 +01:00
Łukasz Mierzwa
a3b906cb20
refactor(tests): use diffable HTML for all snapshot tests
2018-09-09 11:12:00 +01:00
Łukasz Mierzwa
d2a2945418
fix(ui): hide selected option in suggestion dropdown
2018-09-09 11:07:36 +01:00
Łukasz Mierzwa
525cd250b5
fix(tests): use async for fetches instead of setTimeout
2018-09-08 21:28:19 +01:00
Łukasz Mierzwa
4d64b0b3ea
chore(tests): drop console mock, fix all tests that throw console errors
2018-09-08 21:11:15 +01:00
Łukasz Mierzwa
01f3c25160
fix(ui): initialize timeNow so it's always set on initial render
2018-09-08 19:43:46 +01:00
Łukasz Mierzwa
0a966275b4
feat(ui): refresh offset badges on silence start/end tabs in the silence form
2018-09-08 11:51:11 +01:00
Łukasz Mierzwa
69229c079c
feat(ui): save last used silence author to local storage
...
Silence form should default to last used author email so there's no need to re-type it all the time
2018-09-08 11:03:07 +01:00
Łukasz Mierzwa
23071282e4
fix(ui): add body-scroll-lock to prevent body scrolling when modal is open on touch devices
2018-09-04 23:42:49 +01:00
Łukasz Mierzwa
ff25e30121
feat(ui): render validation error as placeholders if form failed to validate
2018-09-04 21:52:44 +01:00
Łukasz Mierzwa
3cb3ed6990
feat(ui): validate silence form data before submiting
2018-09-04 14:22:15 +01:00
Łukasz Mierzwa
38b0cb1557
fix(ui): remove dead code
2018-09-02 19:21:50 +01:00
Łukasz Mierzwa
b5112880a5
fix(tests): add missing coverage cases for LabelNameInput
2018-09-02 19:12:59 +01:00
Łukasz Mierzwa
48f9176cf9
fix(tests): add missing coverage cases for AlertManagerInput
2018-09-02 19:02:23 +01:00
Łukasz Mierzwa
d703fb66aa
fix(ui): remove dead code
...
This function isn't used by react-style, it doesn't match any valid function names, there's singleValue but we don't want break-word on that, it default to truncating too long text
2018-08-30 21:58:02 +01:00
Łukasz Mierzwa
24097ce041
fix(ui): always require a label
...
All code using Duration component is passing label prop, no need to make it optional
2018-08-29 23:52:43 +01:00
Łukasz Mierzwa
c6acd70f0d
feat(tests): add tests covering special minute value adjustement logic
2018-08-29 23:38:40 +01:00