Commit Graph

9460 Commits

Author SHA1 Message Date
Juan Salvador Pérez García
caffd97cc8 Implements #182
Implements 182. resources are shown as cards in dashboard progress view.
Implements #182

Implements 182. resources are shown as cards in dashboard progress view.
2018-07-17 17:59:11 +02:00
Juan Salvador Pérez García
9f0ca0cec7 Fixes #180
Help text added for  actions form.
Fixed invialid redirection in dashboard
2018-07-17 17:59:11 +02:00
Juan Salvador Pérez García
6bb9b1be8a Fixed failing specs
Fixed failing specs after redesign of polls in dashboard
2018-07-17 17:59:11 +02:00
Juan Salvador Pérez García
33d227d5dd Proposal community
Poll participants become automatically members of the proposal community
2018-07-17 17:59:11 +02:00
Juan Salvador Pérez García
f5e5c62242 Changes in public view for porposal polls
Back to polls has dissapeared. A link 'Back to proposal' will be shown
instead.

The button that invites the user to take part in other polls has been
removed.

Stats will flagged as disabled when a poll for a proposal is created.
2018-07-17 17:59:11 +02:00
Juan Salvador Pérez García
d6013d15ab Fixed typo
Fixed typo in _poll.html.erb partial causing a translation not being
found.
2018-07-17 17:58:22 +02:00
Juan Salvador Pérez García
889a15a9bf Poll view redesigned for the dashboard.
Poll view has been redesigned. Now polls are shown like cards. There is
a link that allow sharing the poll.
2018-07-17 17:58:22 +02:00
Juan Salvador Pérez García
5e71a21975 Removed fields from poll create form.
Poll form won't include geozones related attributes, resume nor image.
2018-07-17 17:58:22 +02:00
Juan Salvador Pérez García
7cdb0c8ebf Proposal related polls won't appear in votes section
Proposal related polls won't be shown in the public votes section.
2018-07-17 17:58:22 +02:00
Juan Salvador Pérez García
c8b2f13cfd Fixed bug in rake task 2018-07-17 17:58:22 +02:00
Juan Salvador Pérez García
3c3f60dfcc Implements #173
Public view for suggested actions as well as resources has been
completelly redesigned.

Private side for this feature has been adapted as well in order to meet
the requirements.
2018-07-17 17:58:22 +02:00
Juan Salvador Pérez García
53baf983b5 Implements #169
Community counter now shows the community members. For performance
reasons this information is refresed once per hour.
2018-07-17 17:57:30 +02:00
Juan Salvador Pérez García
0e71de2bba Changes in foundation icons trying to fix an issue on staging 2018-07-17 17:57:30 +02:00
Juan Salvador Pérez García
921d567110 Implements #175
General menu has been refactored to look like the mockups.
The progress menu has been refactored as well.
2018-07-17 17:57:30 +02:00
Juan Salvador Pérez García
6baabf2a7e Fixes #171
Button that redirects to proposal in the proposals dashboard now:

* opens the proposal in a different tab.
* Text shown will be 'preview proposal' for proposals in draft state.
2018-07-17 17:57:30 +02:00
Juan Salvador Pérez García
a2e185c221 Fixed proposal notification specs 2018-07-17 17:57:30 +02:00
Juan Salvador Pérez García
084e9855e4 Fixed some failing specs 2018-07-17 17:57:30 +02:00
Juan Salvador Pérez García
59eb1a4f47 Adds progress indicator 2018-07-17 17:57:30 +02:00
Juan Salvador Pérez García
50d4523ded Current goal indicator
Indicator with current goal and the supports required to achieve it has
been added
2018-07-17 17:57:30 +02:00
Juan Salvador Pérez García
a22027a343 Added button that redirects to the proposal
Dashboard header includes a button that redirects to the proposal.
2018-07-17 17:57:30 +02:00
Juan Salvador Pérez García
cc3802746b Added totals counter
Added totals counter to dashboard header
2018-07-17 17:57:30 +02:00
Juan Salvador Pérez García
64cf7c1257 Body header
Body header contains the proposal name, a label with its status and an
action title.
2018-07-17 17:57:30 +02:00
Juan Salvador Pérez García
611a911793 Fixed missing background color
Fixed missing background color for the proposal dashboards menu
2018-07-17 17:57:30 +02:00
Juan Salvador Pérez García
d2a05ee779 Dashboard proposal menu redesign
Dashboard proposal menu has been redesigned to look like the available
mock-ups.
2018-07-17 17:57:30 +02:00
Juan Salvador Pérez García
2be107f4da Specs
Added specs and fixed some issues found after executing them
2018-07-17 17:57:30 +02:00
Juan Salvador Pérez García
2ce9f95283 Polls in the dashboard
A reduced version of polls has been added to the dashboard
2018-07-17 17:57:30 +02:00
Juan Salvador Pérez García
bafdd697b8 Dashboard controllers have been refactored
Proposal dashboard related controllers have been refactored inside its
own namespace.
2018-07-17 17:57:30 +02:00
Juan Salvador Pérez García
303584a06e Show will be reused in preview
Show view will be reused when a preview is required
2018-07-17 17:57:30 +02:00
Juan Salvador Pérez García
cae67c2f4d Undone change in debates spec
A patch previously added trying to get rid of a flaky spec has been
removed.
2018-07-17 17:53:18 +02:00
Juan Salvador Pérez García
565f1102fa Removed unused locales 2018-07-17 17:53:18 +02:00
Juan Salvador Pérez García
3eaf8dbe9f Fixed redundant scope condition
Redundant scope condition found in Proposal.created_by scope. It has
been removed.
2018-07-17 17:53:18 +02:00
Juan Salvador Pérez García
3ee9f9b059 Removed redundant partial
proposal dashboard actions views use shared/errors partial instead of
its current errors partial
2018-07-17 17:53:18 +02:00
Juan Salvador Pérez García
28e17abe72 Syntax for specs adjusted for consistency reasons
is_expected.to has been replaced by should
is_expected.not_to has been replaced by should_not
2018-07-17 17:53:18 +02:00
Juan Salvador Pérez García
0659bc2fab Replace it by scenario
In acceptance tests use scenario instead of it.
2018-07-17 17:53:18 +02:00
Juan Salvador Pérez García
47a055ea48 Use time.current instead of Time.now
Use time.current instead of Time.now in order to avoid flakies.
2018-07-17 17:53:18 +02:00
Juan Salvador Pérez García
e90f5f1ba4 can? helper called with parenthesis
can? helper called with parenthesis
2018-07-17 17:53:18 +02:00
Juan Salvador Pérez García
67de187bae t helper invoked with parenthesis
t helper is invoked with parenthesis
2018-07-17 17:53:18 +02:00
Juan Salvador Pérez García
706fdae6d5 %i arrays of symbols
%i arrays of symbols have been replaced by standard arrays of symbols in
order to keep the consistency.
2018-07-17 17:53:18 +02:00
Juan Salvador Pérez García
8bb3d5b3ab frozen_string_literal removed
frozen_string_literal magic comment has been removed until a decission
is taken regarding to its convenience.
2018-07-17 17:53:18 +02:00
Juan Salvador Pérez García
690cdd9b48 Removed blank line
Blank line has been removed
2018-07-17 17:53:18 +02:00
Juan Salvador Pérez García
fa86d27381 Blank files removal 2018-07-17 17:53:18 +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
c1a9f1d138 Addressed comments from sprint meeting 22/06/2018
New group created in administration menu including dashboard resources/
proposed tasks and pending tasks for the administrator.

Some unused files have been removed.
2018-07-17 17:52:48 +02:00
Juan Salvador Pérez García
3aff0e96b2 Fix proposal supports query
Proposal supports query was returning the supports received for each
group. Now it returns the supports received for the given group.
2018-07-17 17:52:48 +02:00
Juan Salvador Pérez García
7018c0fe45 Stats was not returning supports for the current day 2018-07-17 17:52:48 +02:00
Juan Salvador Pérez García
e1ac6bfa01 Fixed issue shown resources in the dashboard 2018-07-17 17:52:48 +02:00
Juan Salvador Pérez García
8239b789fa Fixed accidentally added } 2018-07-17 17:52:47 +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
Juan Salvador Pérez García
03e8d36fd1 Chaned max wait time for capybara 2018-07-17 17:52:47 +02:00