Commit Graph

9527 Commits

Author SHA1 Message Date
Juan Salvador Pérez García
e61eba4e97 locale key containing html has been renamed
locale key containing html has been renamed. Now it has the preffix:
_html.
2018-09-17 09:11:09 +02:00
Juan Salvador Pérez García
6412f95e56 Added comments
Added comment to clarify obscure method
2018-09-17 09:10:31 +02:00
Juan Salvador Pérez García
22907ad1fc Fixed failing specs 2018-09-17 09:10:12 +02:00
Juan Salvador Pérez García
091e1d492c Enhacements in navigation
Proposal menu will appear highlighted when the voting shown is related
to a proposal. The voting menu entry will appear disabled.
2018-09-14 16:52:30 +02:00
Juan Salvador Pérez García
2ca9a38915 Dashboard navigation enhancements
Dashboard links that bring the user outside the dashboard will be open
in a separate tab
2018-09-14 16:45:02 +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
4d0359f334 Changed defaults for new proposed action/resource.
Previously, action as requesting some action from administrators by
default. Now this flag is false by default when a new proposed
action/resource is created.
2018-09-14 16:36:47 +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
0bd381aa5e Enhancements and bugfixing
FIxed issue in last commit: supports controller were not correctly
filling the holes without data.

Fixed duplication in supports and successful supports controller using a
concer.

Successfull supports controller will fill the holes without data in the
same way that supports controller does.
2018-09-14 11:30:59 +02:00
Juan Salvador Pérez García
3590657777 Enhancements on supports controller
Supports controller now fill the holes in the results: When there are no
supports collected for one interval it takes the accumulated value from the
previous one.

Data starts in the publication date.
2018-09-14 10:49:29 +02:00
Juan Salvador Pérez García
f875ded0be Bugfixing and enhancements
* Fixed common ability: Retired draft proposal can't be published.
* Fixed proposal dashboard view: progress graph is not available for
draft proposals.
2018-09-13 18:22:59 +02:00
Juan Salvador Pérez García
5b5095b37b Bugfixing and several enhancements
* Added missing specs
* Removed models that were refactored previously
* Added simplecov when executing specs locally
* Fixed bug in poll model validation that was causing an 500 error.
2018-08-01 13:26:30 +02:00
Juan Salvador Pérez García
0e20247682 Merge pull request #248 from medialab-prado/issue_231
Issue 231
2018-08-01 09:48:35 +02:00
Juan Salvador Pérez García
983c108272 Second atempt to fix issue with sprockets 2018-07-31 13:02:57 +02:00
Juan Salvador Pérez García
87d92b2553 Fixed issue with sprockets in production 2018-07-31 12:59:02 +02:00
Juan Salvador Pérez García
6cc1ddb9af Fixes #231
Implements a poster feature for the proposals dashboard
2018-07-31 12:50:25 +02:00
Juan Salvador Pérez García
06fbc8bbb4 Merge pull request #247 from medialab-prado/issue_245
Fixes #245
2018-07-30 07:58:17 +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
3d5390dfb0 Fixes #245
Poll card now shows the responses to the poll in the public side
2018-07-27 20:11:19 +02:00
Juan Salvador Pérez García
741aae6846 Merge pull request #246 from medialab-prado/issue_243
Fixes #voodoorai2000 comments
2018-07-27 20:09:46 +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
a41ce7a0bd Merge pull request #242 from medialab-prado/issue_229
Fixes #229
2018-07-26 09:08:40 +02:00
Juan Salvador Pérez García
9eaa990145 Added default image for proposal dashboard mailing 2018-07-25 17:01:30 +02:00
Juan Salvador Pérez García
8876b285ce Fixes #229
Adds email feature for proposals dashboard
2018-07-25 13:28:44 +02:00
Juan Salvador Pérez García
9b83291b16 Merge pull request #241 from medialab-prado/issue_239
Fixed #239
2018-07-25 13:16:24 +02:00
Juan Salvador Pérez García
e5f9cf6710 Fixed #239
Proposals dashboard refactored to dashboard.
Added missing specs for the dashboard.
2018-07-24 15:52:43 +02:00
Juan Salvador Pérez García
0ea0a0031c Merge pull request #240 from medialab-prado/issue_238
Fixes #238
2018-07-24 11:29:14 +02:00
Juan Salvador Pérez García
a64bcc0c75 Attempt to build using 4 nodes
Trying to fix the timeout issues when building with two nodes
2018-07-24 07:06:17 +02:00
Juan Salvador Pérez García
3b37b4b09d Fixes #238
Applies new card design for polls in proposals dashboard.
Fixes warnings during tests.
Adds tests for new card design for polls in proposals dashboard.
2018-07-23 10:31:50 +02:00
Juan Salvador Pérez García
f632fa8b6e Merge pull request #237 from medialab-prado/issue_236
Fixes #236
2018-07-23 10:30:44 +02:00
Juan Salvador Pérez García
01846089d4 Fixes #236
Addressed comments related to CSS and views.
2018-07-23 07:25:22 +02:00
Juan Salvador Pérez García
4e808c7729 Merge pull request #235 from medialab-prado/issue_234
Fixes #234
2018-07-23 07:24:03 +02:00
Juan Salvador Pérez García
4b8cc85c49 Fixes #234
View questions now is View results and redirects to results
in public view.

Fixed flaky spec that was making the tests fail.

Added missing specs for polls feature as well as poll model.
2018-07-19 17:15:05 +02:00
Juan Salvador Pérez García
2823d53121 Merge pull request #233 from medialab-prado/issue_232
Fixes #232
2018-07-19 11:18:54 +02:00
Juan Salvador Pérez García
c68061219d Removed edit poll button from view responses 2018-07-19 10:07:41 +02:00
Juan Salvador Pérez García
4ee0a94241 Fixed last minute bugs
Fixed last minute bugs with polls
2018-07-19 10:00:37 +02:00
Juan Salvador Pérez García
0e8746299d Fixes #232
In proposal's dashboard, inside community section, the latests topics
has been replaced by latest messages.
2018-07-18 16:50:51 +02:00
Juan Salvador Pérez García
ea421980b5 Rebased to upstream/master 2018-07-17 19:34:58 +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
7a9faef775 Fixes #224
Resource cards show the request status:

* Green solved by administrator.
* Blue + button: Available
* Blue + help text: Requested
* Red: Locked

A tooltip has been added to the card to improve its readability.
2018-07-17 17:59:12 +02:00
Juan Salvador Pérez García
3ca90634d3 Fixed issue with locales after renaming a view 2018-07-17 17:59:12 +02:00
Juan Salvador Pérez García
ba753f3649 Fixes #222
Community view shows the polls for the given proposal.
2018-07-17 17:59:12 +02:00
Juan Salvador Pérez García
7e43206ac0 Fixes #220
Description as well as short description will be optional for proposal
dashboard actions.

Additionally some minor bugfixes have been fixed.
2018-07-17 17:59:12 +02:00
Juan Salvador Pérez García
f439fc7371 Fixes #218
Added check in poll card that allows setting the value of
results_enabled flag.

Access to stats/results now is controlled with abilities.

Polls related to proposals will be accessible to the proposal author
like they were administrators.
2018-07-17 17:59:12 +02:00
Juan Salvador Pérez García
0daaf9e7db Fixes #216
Button group that allows selecting the current grouping now shows
visually the selected grouping.
2018-07-17 17:59:12 +02:00
Juan Salvador Pérez García
c0c23e270b Fixes #214
redesign how proposed actions are shown in progress view inside the
proposal's dashboard
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
256c0d72a5 Fixes issues with successful proposal generation task 2018-07-17 17:59:12 +02:00