Łukasz Mierzwa
efa1c2025b
Merge pull request #80 from cloudflare/fix-silence-json-padding
...
Add some space between submit button and the silence JSON preview
v0.4.0
2017-04-26 14:59:35 -07:00
Łukasz Mierzwa
aed3cf1f29
Add some space between submit button and the silence JSON preview
2017-04-26 14:17:33 -07:00
Łukasz Mierzwa
47b245efcf
Merge pull request #79 from cloudflare/raven-init
...
Better sentry javascript handling
2017-04-26 07:50:36 -07:00
Łukasz Mierzwa
bd5b9688ac
Handle load exceptions better
...
If js fails on startup (syntax error, can't load some files) then instead of showing blank page that doesn't work render a message with exception
2017-04-25 23:05:22 -07:00
Łukasz Mierzwa
45ba69cf76
Ensure raven-js is loaded first and works if enabled
...
This moves raven init into a dedicated file where it's configured on load, we no longer load it on /help, but there's only css there so there wasn't anything that could fail anyway. We will also now fail in the most visible way if the value passed to raven is invalid (as in invalid syntax)
2017-04-25 23:05:22 -07:00
Łukasz Mierzwa
1e9d1edc14
Merge pull request #78 from cloudflare/jshint-fixes
...
Jshint fixes
2017-04-25 20:24:25 -07:00
Łukasz Mierzwa
fcebd0dba7
Install nodejs & jshint on travis
2017-04-25 20:22:08 -07:00
Łukasz Mierzwa
5a53aa1ff7
Add jshint comments in modules that require ES6
...
This is to supress warnings about ES6 syntax usage, all modern browsers support 'class' so it's ok
2017-04-25 20:21:47 -07:00
Łukasz Mierzwa
acabd448ae
Ignore lru.js when running jshint tests
...
This is third party module not present on cdnjs, requires es6 so jshint generates warnings
2017-04-25 20:15:28 -07:00
Łukasz Mierzwa
9f7a7dd899
Run optional jshint tests if it's installed
2017-04-25 20:15:27 -07:00
Łukasz Mierzwa
9152aeff04
Prevent a chain of click events
...
Click events in some weird cases cause this function to be called twice, ensure that we stop processing this event after first pass
2017-04-25 19:14:18 -07:00
Łukasz Mierzwa
0c37254a71
Fix jshint warnings
2017-04-25 18:51:10 -07:00
Łukasz Mierzwa
21c7318ed4
Merge pull request #77 from cloudflare/fix-silence-label
...
Polish silence form UI
2017-04-25 17:08:22 -07:00
Łukasz Mierzwa
46ea7ebc94
Remove dead element
...
This isn't used by anything
2017-04-25 16:42:52 -07:00
Łukasz Mierzwa
ca0b70f3a8
Better logic for updating minutes in the duration
...
This makes it more consistien when user resets the duration to the minimum of 1 minute
2017-04-25 16:19:21 -07:00
Łukasz Mierzwa
3460b3003a
Add a delay to the top labels popover
2017-04-25 14:59:45 -07:00
Łukasz Mierzwa
c425952b62
Don't fail if startsAt wasn't yet initialized
2017-04-25 14:59:45 -07:00
Łukasz Mierzwa
e76531a165
Make decr button reset duration to minimun if needed
...
With this the user is able to reset duration to minimum by clickin on the day button when only 1 hour duration is set
2017-04-25 14:59:45 -07:00
Łukasz Mierzwa
e56ec68752
Correctly update min date of the silence end time
...
Move it to the right place, having it in silenceFormCalculateDuration means that we can trigger recursive updates
2017-04-25 14:59:45 -07:00
Łukasz Mierzwa
c07402d353
Fix warning from jshint
...
jshint needs to be added to 'make lint' target eventually, let's start with fixing some of the warnings it's generating
2017-04-25 14:59:44 -07:00
Łukasz Mierzwa
e26bb6e492
Cleanup silence form controls
...
Drop separators and replace submit button text with an icon
2017-04-25 14:59:44 -07:00
Łukasz Mierzwa
92efd51adc
Merge pull request #76 from cloudflare/cache-flush
...
Always flush cache after timer run
2017-04-25 14:59:06 -07:00
Łukasz Mierzwa
f7dc5173d6
Always flush cache after timer run
2017-04-25 13:58:43 -07:00
Łukasz Mierzwa
b261e853a5
Merge pull request #75 from cloudflare/silence-ui-rework
...
Default to duration only UI controls
2017-04-25 09:34:19 -07:00
Łukasz Mierzwa
4ba54f5573
Default to duration only UI controls
...
Instead of showing start & end inputs show duration input element, explicit start & end are still present under tabs, where datatime picker is inlined (so it doesn't require any click to show controls). Tabs will also show desription of relative start and end, so it should be more readable what is the real duration of a silence
2017-04-24 23:02:32 -07:00
Łukasz Mierzwa
22f35f9f31
Merge pull request #74 from cloudflare/silence-counters
...
Silence counters
2017-04-24 22:56:28 -07:00
Łukasz Mierzwa
540530488b
Fix select button padding
...
There's an extra 25px right padding that makes no sense and creates an ugly frame when user clicks on a select, fix it
2017-04-24 16:16:37 -07:00
Łukasz Mierzwa
14cb221b6a
Make the badge clickable
...
Clicking the badge will toggle select / deselect all values, for easy flipping labels when an alert contains large number of labels
2017-04-24 14:55:15 -07:00
Łukasz Mierzwa
03e793dd74
Add badges to selects
...
This gives the user a hint when a label contains more than one value in the select
2017-04-24 14:55:05 -07:00
Łukasz Mierzwa
bfabf514ab
Merge pull request #73 from cloudflare/silence-duration
...
Set default silence duration to 1h
2017-04-24 09:17:45 -07:00
Łukasz Mierzwa
2886421b7a
Drop date class from datetime picker input group
...
Not needed with our setup and it makes the calendar icon clickable, which doesn't really do anything, so it's just confusing
2017-04-23 19:56:16 -07:00
Łukasz Mierzwa
9bbb81212b
Default to 1 hour silence
2017-04-23 19:32:21 -07:00
Łukasz Mierzwa
4d3200d3fd
Don't set text 'none', it can be a valid label value
2017-04-23 19:32:07 -07:00
Łukasz Mierzwa
a59ed26d57
Merge pull request #70 from cloudflare/silence-multiselect
...
Allow selecting multiple label values when creating silence.
2017-04-23 09:12:55 -07:00
Łukasz Mierzwa
2c3a24afb7
Add a note about security
2017-04-23 09:05:58 -07:00
Łukasz Mierzwa
639e9bbee5
Use icons for action box
2017-04-23 09:02:29 -07:00
Łukasz Mierzwa
e9af43402e
Sort labels
2017-04-23 09:02:29 -07:00
Łukasz Mierzwa
d323fdd322
Turn text into labels
2017-04-23 09:02:29 -07:00
Łukasz Mierzwa
907949b9a3
Custom formatting for countSelectedText
2017-04-23 09:02:28 -07:00
Łukasz Mierzwa
f83660c43d
Don't show action box when there's only one value
2017-04-23 09:02:28 -07:00
Łukasz Mierzwa
1e05406a02
Make submit button green
2017-04-23 09:02:28 -07:00
Łukasz Mierzwa
e740d5ea0c
Generate more descriptive text when no value is matched
2017-04-23 09:02:28 -07:00
Łukasz Mierzwa
020b1a2728
Show loading placeholder
...
Form loads after ajax call, so it can take some time on big responses and slow connection
2017-04-23 09:02:27 -07:00
Łukasz Mierzwa
575dc245b1
Enable live search for labels with >10 values
2017-04-23 09:02:27 -07:00
Łukasz Mierzwa
087458b767
Allow selecting multiple label values when creating silence.
...
This commit turns label checkboxes into multiselect dropdowns that are populated from all labels of all instances of current alert (matched by alertname label). There is also a cocollapsible preview box that allows user to inspect raw silence JSON object we will send to the Alertmanager API. Fixes #69
2017-04-23 09:02:27 -07:00
Łukasz Mierzwa
9a5419efb1
Merge pull request #71 from cloudflare/metrics-docs
...
Obey WEB_PREFIX for metrics endpoint
2017-04-23 08:58:12 -07:00
Łukasz Mierzwa
acea192a3d
Obey WEB_PREFIX for metrics endpoint
2017-04-23 08:56:53 -07:00
Łukasz Mierzwa
b02a88e737
Add a note about metrics
2017-04-23 08:56:53 -07:00
Łukasz Mierzwa
d08996b4ee
Merge pull request #72 from cloudflare/run-docker-mock
...
Fix mock data usage with 'make run-docker'
2017-04-23 08:55:22 -07:00
Łukasz Mierzwa
0e7b40c995
Reformat run-docker target
2017-04-23 08:53:48 -07:00