Commit Graph

44 Commits

Author SHA1 Message Date
A fc2e6f4062 Improves sorting of metric's labels.
When selecting the time of metric's points only the time was selected,
not the date. The issue with this is mainly in the view "Last 12 hours".
Example:
It's 11:10 am and I choose the "Last 12 hours" view, the metrics points
will be from 23:00 yesterday to 11:00 am today.
When giving all these datas and labels to ChartJS, it sorts the points
by label from lower to highter. It means 23:00 (from yesterday) will be
after the datas of today, it doesn't have sense.

To fix it, I've added in the repositories the date in addition to the
time. So it's no longer 11:00 that is selected but 2018-01-15 11:00.
I've updated the Metric vue in order to cut the label when displaying so
it doesn't change the displaying.
Because there are metric views that are based on date but not time,
there is a condition in the Metric vue to cut the string only if the
time is present.

Related to CachetHQ/Cachet#2848
2018-01-15 11:28:41 +01:00
A 0f6512fbf1 Display the metric's suffix in tooltip.
When we mouseovered on a point on a metric, the value was shown but the
suffix wasn't.
It was due to a curly bracket issue, the "tooltip" option wasn't given
as an "option" sub-object, but as a third argument of the Chart
constructor. A curly bracket was closed to early.
This is fixed and the suffix is now displayed.

Related to CachetHQ/Cachet#2848
2018-01-15 13:00:56 +01:00
James Brooks 8746412467 Update language files 2017-12-03 17:47:45 +00:00
James Brooks 3ea1e959f9 Fix metrics not displaying. Closes #2737 2017-09-30 11:29:12 +01:00
James Brooks d807770ff6 Resource changes 2017-09-15 07:39:40 +01:00
James Brooks 824c812279 If not logged in, redirect to login page 2017-08-21 19:40:56 +01:00
James Brooks 3c55a47154 Setup Vue 2017-07-25 15:52:54 -04:00
James Brooks 2b22caf296 Use .on 2017-07-25 14:52:10 -04:00
James Brooks 861f0351c5 Fix JS for setup 2017-07-25 14:38:02 -04:00
James Brooks e5c3ff5e33 Polyfill Promise. Fixes #2375 2017-07-17 22:22:08 +01:00
James Brooks 7fb8a03ebe Fixes #2324
I've disabled autosize for now
2017-01-26 16:16:59 +00:00
James Brooks 826e4e6077 Use minified assets too. Closes #2258
Combine didn't improve the situation for us
2016-12-03 20:02:32 +00:00
James Brooks a0f2d6642e Add incident column for when an incident occurred at (#2212)
Add incident column for when an incident occurred at. Closes #2208
[ci skip] [skip ci]
2016-10-29 17:25:52 +01:00
James Brooks 423714f330 Don't use ES6 syntax yet 2016-08-31 16:41:02 +01:00
Joseph Cohen 588ab6d404 Split css between dashboard and status page 2016-08-30 13:11:49 -05:00
Connor S. Parks 486642df03 utilise a more generic sortable list system 2016-08-20 11:44:18 +01:00
Nick Peelman e61d24f685 Fixing indentation problems... 2016-07-18 09:08:48 -04:00
Nick Peelman 88e85d2dfb group components on manage subscriptions page 2016-07-18 08:49:38 -04:00
Peter Dave Hello 2f2ed53b58 remove executable permission from the files don't need it 2016-07-12 16:28:28 +08:00
James Brooks 947aa27e40 Move dashboard version check into version api endpoint 2016-06-10 17:27:21 +01:00
Joseph Cohen 31d47cfb35 Remove subscribers modal 2016-05-26 00:50:23 -05:00
James Brooks 4f886e15ed Fixes toggling of component status box. Fixes #1792 2016-05-24 15:07:36 +01:00
Joseph Cohen b8f89e97cd Fix [object object] notification error with js 2016-02-17 13:46:02 -06:00
James Brooks 3e834f0104 Fix some dashbiard issues 2016-02-01 19:26:00 +00:00
James Brooks ac3888f7c8 Added per-component subscriptions. Closes #734 2016-01-29 15:02:28 +00:00
agilmore 8cc807cfe5 Fixes #1339 - Ensure incident field names are the same everywhere 2016-01-18 14:31:49 +00:00
James Brooks b5b60fff45 Added update checking, part of #109 2015-11-29 11:00:10 +00:00
Joseph Cohen fcc21ce337 Drop the HQ on js 2015-11-20 12:02:19 -06:00
ulrik nielsen a374ae9abd removed the incident array 2015-10-07 21:48:23 +02:00
Davide Bellini e9702e4292 Merged branch master and fixed conflict
After Password Strength merge this branch have 2 conflict:
- gulpfile.js
- public/build/rev-manifest.json

All conflicts solved now
2015-10-03 12:53:43 +02:00
Antoine Augusti 130dc11740 Add a password strength indicator on relevant forms 2015-10-03 09:50:18 +02:00
Davide Bellini b6056faa72 Removed space before the question mark 2015-10-02 16:31:08 +02:00
Davide Bellini 3fca767624 Use SweetAlert for confirmation dialog 2015-10-01 23:28:01 +02:00
James Brooks eadedeecbf Autosize now works again 2015-09-23 21:25:10 +01:00
James Brooks 70a5022740 Working on a widget design for the dashboard index 2015-08-31 18:17:00 +01:00
James Brooks 502ae9d2a0 Closes #669 2015-05-26 19:13:46 +01:00
James Brooks e399fe4637 Default jQuery AJAX accept headers to JSON 2015-05-25 20:18:01 +01:00
James Brooks 9337c1a75b Allows ordering of component groups. Closes #573. 2015-05-19 22:54:28 +01:00
James Brooks 77d0c20015 Allow changing of incident dates. Closes #615 2015-05-19 17:40:04 +01:00
James Brooks f277d8b2bc Toggle component group visibility. Closes #572 2015-05-18 21:45:14 +01:00
EdeMeijer c4c55a73cb Use APC cache for Docker and fix bug with changing component sort order
By default, the file cache is used, but this breaks the throttling detection when authenticating.
The APC cache is tagged and will allow you to log in again after installation.
---
When changing the sort order, a form with hidden inputs for every component was serialized. The hidden inputs
had names in the form of `component[id]`. When you removed components, there would be holes in this ID sequence,
yielding a serialized array with empty values (since JS arrays always have every index until the highest one, even
if you don't specify a value).

This is fixed by just passing an array of component IDs in the desired sort order to the API endpoint. The API
will then update the components based on the implicit given sort order. Much simpler.
2015-04-25 12:00:53 +02:00
James Brooks fa12463ac2 Fix styles 2015-04-18 16:39:01 +01:00
James Brooks 191e17b1a6 Closes #552 - Autosize some textareas. 2015-04-06 09:31:19 +01:00
Joseph Cohen b4ac66d727 Cachet is now a Laravel 5 app 2015-03-20 18:30:45 -06:00