-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Add custom proposal states * fix: Default filter params on proposals controller * lint: Fix rubocop offenses * fix: PP specs * fix: Explore meetings system specs * feat Bump Modules and add migrations * Bump homepage proposals * Update Gemfile.lock * fix: downgrade net-imap * fix: Add missing decidim-awesome migrations * lint: Fix rubocop offenses --------- Co-authored-by: Quentin Champenois <[email protected]> * revert: Downgrade Decidim version (#95) * Revert "feat Bump Modules and add migrations" This reverts commit 8b406ee. * fix: Bump homepage proposals and custom proposal states * fix: Add db/schema.rb * fix: Make the Half Signup TOS configurable with env var * fix: Button budgets projects focus on click * fix: Add Rails secret for half signup TOS * fix: Remove Google translate bar when loaded * fix: Change budgets_booth upstream branch * fix: Bump module budgets booth * fix: Update budgets booth revision * fix: Fix button add vote in modal * fix: warning on gems dependencies (#99) * fix: warning on gems dependencies * update bundler to 2.4.22 --------- Co-authored-by: quentinchampenois <[email protected]> Co-authored-by: moustachu <[email protected]>
- Loading branch information
1 parent
fc33d5b
commit 3c3ccba
Showing
11 changed files
with
123 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,3 +39,4 @@ TRANSLATION_SWITCH_REGEXP= | |
TWILIO_ACCOUNT_SID= | ||
TWILIO_AUTH_TOKEN= | ||
TWILIO_SENDER= | ||
HALF_SIGNUP_TOS=false |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<%= action_authorized_button_to( | ||
"vote", | ||
budget_order_line_item_path(model.budget, project_id: model), | ||
method: vote_button_method, | ||
remote: true, | ||
class: "button #{scale_up} #{selected_budget} customized-budget display-block project-vote-button", | ||
data: { | ||
add: !resource_added?, | ||
disable: true, | ||
budget: model.budget_amount, | ||
project_id: model.id, | ||
allocation: resource_allocation, | ||
"redirect-url": budget_voting_index_path | ||
}, | ||
disabled: vote_button_disabled?, | ||
title: vote_button_label | ||
) do %> | ||
<%= resource_added? ? t("remove_from_vote", scope: "decidim.budgets.project_vote_button") :t("add_to_vote", scope: "decidim.budgets.project_vote_button") %> | ||
<% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
Decidim::HalfSignup.configure do |config| | ||
config.show_tos_page_after_signup = Rails.application.secrets.dig(:decidim, :module, :half_signup, :show_tos_page_after_signup) | ||
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
13 changes: 13 additions & 0 deletions
13
db/migrate/20240103110734_change_default_value_for_decidim_endorsements.decidim.rb
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# frozen_string_literal: true | ||
|
||
# This migration comes from decidim (originally 20231027142329) | ||
|
||
class ChangeDefaultValueForDecidimEndorsements < ActiveRecord::Migration[6.0] | ||
def up | ||
change_column_default :decidim_endorsements, :decidim_user_group_id, 0 | ||
end | ||
|
||
def down | ||
change_column_default :decidim_endorsements, :decidim_user_group_id, nil | ||
end | ||
end |
15 changes: 15 additions & 0 deletions
15
db/migrate/20240103110735_create_decidim_awesome_vote_weights.decidim_decidim_awesome.rb
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# frozen_string_literal: true | ||
|
||
# This migration comes from decidim_decidim_awesome (originally 20231006113837) | ||
|
||
class CreateDecidimAwesomeVoteWeights < ActiveRecord::Migration[6.0] | ||
def change | ||
create_table :decidim_awesome_vote_weights do |t| | ||
# this might be polymorphic in the future (if other types of votes are supported) | ||
t.references :proposal_vote, null: false, index: { name: "decidim_awesome_proposals_weights_vote" } | ||
|
||
t.integer :weight, null: false, default: 1 | ||
t.timestamps | ||
end | ||
end | ||
end |
16 changes: 16 additions & 0 deletions
16
...te/20240103110736_create_decidim_awesome_proposal_extra_fields.decidim_decidim_awesome.rb
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# frozen_string_literal: true | ||
|
||
# This migration comes from decidim_decidim_awesome (originally 20231006113841) | ||
|
||
class CreateDecidimAwesomeProposalExtraFields < ActiveRecord::Migration[6.0] | ||
def change | ||
create_table :decidim_awesome_proposal_extra_fields do |t| | ||
# this might be polymorphic in the future (if other types of votes are supported) | ||
t.references :decidim_proposal, null: false, index: { name: "decidim_awesome_extra_fields_on_proposal" } | ||
|
||
t.jsonb :vote_weight_totals | ||
t.integer :weight_total, default: 0 | ||
t.timestamps | ||
end | ||
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