Commit Graph

27 Commits

Author SHA1 Message Date
Javi Martín
175c1a752b Remove old comment referencing the project name
It was obvious which project the comment was about. Also, no point
having a TODO referencing what to do after upgrading to Rails 5.1, since
we did it years ago.
2023-07-12 16:05:33 +02:00
Senén Rodero Rodríguez
d7efd748fa Apply jQuery 3.0 upgrade_guide recommendation
Use recommented way to define document-ready handlers. See [1]

[1] https://jquery.com/upgrade-guide/3.0/#deprecated-document-ready-handlers-other-than-jquery-function
2020-08-28 16:10:31 +02:00
Javi Martín
5211f47842 Add and apply ESLint spacing rules
For now we're only adding rules related to spacing and double quotes,
following the same rules we use in Ruby, which are the same rules
CoffeeScript followed when compiling these files.

We're also using the recommended ESLint rules, which will warn us about
many JavaScript common pitfalls, the `strict` rule which enforces using
strict mode, and the `no-console` rule, which will prevent us from
shipping code meant for debugging.

Although it's arguably more common to use the JSON format to define
these rules, I've chosen YAML because it's the format we use in all our
linters.
2019-09-11 14:03:24 +02:00
Javi Martín
d8be18d6a9 Use double quotes in CoffeeScript
We accidentally added some single quotes recently.
2019-09-11 03:14:17 +02:00
Javi Martín
3120e0aa41 Use ECMAScript 5 array and string methods
These methods were added in 2009 and are supported by 98.5% of the
browsers, including Internet Explorer 9, 10 and 11. We were already
using them in some places.
2019-09-11 03:14:16 +02:00
Javi Martín
eab35dc9b0 Don't call hasOwnProperty directly
Calling it directly might make it difficult to detect bugs, particularly
when we don't trust the data we receive:

https://eslint.org/docs/rules/no-prototype-builtins

If we trust the data we receive, then IMHO we shouldn't even check for
`hasOwnProperty`, since we know what we're going to receive.
2019-09-11 02:07:35 +02:00
Javi Martín
36a557927a Remove unused variables 2019-09-11 01:56:27 +02:00
decabeza
eda6ea7f12 Merge branch 'master' into dashboard 2019-03-26 16:45:48 +01:00
Juan Salvador Pérez García
2dc39e1498 Enhacements in proposal progress graph
Proposed action execution is shown with a red dot. Mouse hover event
shows a pop up for the points of the graph. Red dots will contain the
proposed acction executed for the given date.
2018-10-01 11:22:32 +02:00
Juan Salvador Pérez García
2a0664d473 Enabled zoom for proposal progress graph 2018-09-18 17:42:34 +02:00
Juan Salvador Pérez García
475323ddd5 User Interface enhancements
Progress graph for the proposal dashboard now has its legend on the
bottom. This improves the visualization on mobile platforms.
2018-09-18 17:18:16 +02:00
Juan Salvador Pérez García
6f1a866878 Dashboard graph shows achievents again
label has been moved to the bottom to improve its readability
2018-09-17 09:40:21 +02:00
Juan Salvador Pérez García
d6919155c8 Added comments regarding tests for dashboard graph
Added comment regarding tests for dashboard graph. This feature should
be migrated to Ecma6 and had its own tests once Consul reaches
compatibility with Rails 5.1.
2018-09-17 09:12:36 +02:00
Juan Salvador Pérez García
c763ca2f99 Fixed bug in x axis labels in dashboard
Dashboard progress graph was not showing all labels in x axis when there
were less than 12 samples.
2018-09-14 16:43:42 +02:00
Juan Salvador Pérez García
826ce8af25 Enhancements in proposal progress graph
x axis legend now show less labels in order to improve its readability.
2018-09-14 16:28:20 +02:00
Juan Salvador Pérez García
7143e10201 Graph enhancements
Y axis have received the following enhancement:

It won't show labels for each value in order to improve its readability.

Maximum value will be set according to the maximum number of supports
received for the current proposal.

In case no supports are received it will use the number of supports
required for a successful proposal.
2018-09-14 12:20:03 +02:00
Juan Salvador Pérez García
38472cb670 Fixed colours in the progress graphic
progress graph will be shown in blue
successful graph will be shown in orange
2018-09-14 11:54:57 +02:00
Juan Salvador Pérez García
e7eaf13f64 fixed issue preventing brant from being deployed 2018-07-27 20:15:18 +02:00
Juan Salvador Pérez García
50f73abb0c Fixes #voodoorai2000 comments
Fixes some comments from #voodoorai2000 for the PR to consul
2018-07-27 16:30:03 +02:00
Juan Salvador Pérez García
40e6cbc02b Fixes #226
Achievements query returns executed proposed actions.
Progress graph do not shows the achievements.
2018-07-17 17:59:12 +02:00
Juan Salvador Pérez García
e7b3965991 Fixes #212
Vertical lines appear only for executed resources
Labels for daily graph do not include the year in the x-axis.
2018-07-17 17:59:12 +02:00
Juan Salvador Pérez García
762c4faef6 Fixes #141
Adds ideal progress to progress graph
2018-07-17 17:59:11 +02:00
Juan Salvador Pérez García
8bc3b9e67e Fixed y axis
Y axis was showing 0 - 10% of max value
2018-07-17 17:59:11 +02:00
Juan Salvador Pérez García
0a790b4479 Fixes #191
Shows goals in progress graphic
2018-07-17 17:59:11 +02:00
Juan Salvador Pérez García
5236fba47e Fixed locales
Fixed locale related issues
2018-07-17 17:53:18 +02:00
Juan Salvador Pérez García
f9a085a400 Implements graph for dashboard
Implements graph secion for dashboard.

Dashboard related actions have been agrupated inside a menu in the admin
section.

Minor bugfixes.
2018-07-17 17:53:18 +02:00
Juan Salvador Pérez García
89f3da25b9 Implements #138 and #139
Implements graph with supports for the given  period.
2018-07-17 17:52:47 +02:00