forked from decidim-ice/decidim-module-decidim_awesome
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Graded proposal voting (decidim-ice#238)
* Setup migrations and models (#13) * add migrations * change grade to weight * totals name * hooks (wip) * add total weight cache * graded voting/set defaults (#14) * initial defaults * add deface * add views to manifest * add cells view hacker * set weight validator for voting manifest * test fixing * add basic weight voting * add specs * manifest spec * add controller spec * add readme * fix awesome spec * rubocop * fix system checker spec * set openstreet map * used mocked openstreet maps * modernize actions * Prevent changin voting manifest if votes exist (#16) * update codecov report * Export weights (#17) * add label generation for the manifest * tweak exported * add weights to the exporter * fix tests * add graphql entry * Order proposals by my votes (#18) * override filters * add specs * FrontEnd vote action UI/implementation (#15) * add vote button, add modal, change votes counter view * change frontend * add voting to modal * add action cable, updating results * refactoring * isolate the specific implementation of the voting * add abstain setting * change modal, change voting * add abstain to voting * refactoring * change weight colors * add tests * add cells specs * fix lint * fix stylelint * normalize locale * change controller * fix proposal_vote_path * fix locale * fix locale --------- Co-authored-by: Ivan Vergés <[email protected]> * Minor fixes and improvements for frontend voting (#19) * change basic copies * namespace css * add link "change my vote" * change opacity method * add tests * add check settings for abstain * fix cell test --------- Co-authored-by: Anna Topalidi <[email protected]> * Add modal window with instructions (#20) * change basic copies * namespace css * introduce modal pre-voting * handle localstorage * refactor namespaces for copies * fix copy * copies * add finger * add svg icons * add margin * fix margins in modal * abstain style * fix tests * prevent voting abstain if not allowed * fix footer * normalize i18n * add additional specs * add conf var for sorting * fix cache proposal_m * proposal conf fixes * Rename manifest and minor fixes (#22) * rename voting_cards manifest * mend * abstain color * fix modal title * fix test * fix counter colors * fix xss * style fix --------- Co-authored-by: Anna Topalidi <[email protected]> Co-authored-by: Anna Topalidi <[email protected]>
- Loading branch information
1 parent
9f4732c
commit de30639
Showing
95 changed files
with
3,344 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
# frozen_string_literal: true | ||
|
||
SimpleCov.start do | ||
root ENV.fetch("ENGINE_ROOT", nil) | ||
if ENV["SIMPLECOV"] | ||
SimpleCov.start do | ||
# We ignore some of the files because they are never tested | ||
add_filter "/config/" | ||
add_filter "/db/" | ||
add_filter "lib/decidim/decidim_awesome/version.rb" | ||
add_filter "/spec" | ||
end | ||
|
||
add_filter "lib/decidim/decidim_awesome/version.rb" | ||
add_filter "/spec" | ||
end | ||
|
||
SimpleCov.command_name ENV.fetch("COMMAND_NAME", nil) || File.basename(Dir.pwd) | ||
SimpleCov.merge_timeout 1800 | ||
|
||
SimpleCov.merge_timeout 1800 | ||
if ENV["CI"] | ||
require "simplecov-cobertura" | ||
SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.