Skip to content

Commit

Permalink
Merge pull request #506 from Vizzuality/develop
Browse files Browse the repository at this point in the history
Production deploy
  • Loading branch information
martintomas authored Dec 2, 2024
2 parents 72a6be4 + 2ef13e7 commit 55c9a3b
Show file tree
Hide file tree
Showing 81 changed files with 2,198 additions and 1,009 deletions.
5 changes: 5 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
GCS_CREDENTIALS_FILE=
GCS_BUCKET=
MQ_BETA_ENABLED=true

# SMTP API
SMTP_API_KEY=
SMTP_API_SECRET=
SMTP_DEFAULT_FROM=
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ gem 'react-rails'
gem 'appsignal'
gem 'roo'
gem 'caxlsx'
gem 'mailjet'

group :development, :test do
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
Expand Down
127 changes: 66 additions & 61 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
GEM
remote: https://rubygems.org/
specs:
actioncable (6.1.7.8)
actionpack (= 6.1.7.8)
activesupport (= 6.1.7.8)
actioncable (6.1.7.9)
actionpack (= 6.1.7.9)
activesupport (= 6.1.7.9)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
actionmailbox (6.1.7.8)
actionpack (= 6.1.7.8)
activejob (= 6.1.7.8)
activerecord (= 6.1.7.8)
activestorage (= 6.1.7.8)
activesupport (= 6.1.7.8)
actionmailbox (6.1.7.9)
actionpack (= 6.1.7.9)
activejob (= 6.1.7.9)
activerecord (= 6.1.7.9)
activestorage (= 6.1.7.9)
activesupport (= 6.1.7.9)
mail (>= 2.7.1)
actionmailer (6.1.7.8)
actionpack (= 6.1.7.8)
actionview (= 6.1.7.8)
activejob (= 6.1.7.8)
activesupport (= 6.1.7.8)
actionmailer (6.1.7.9)
actionpack (= 6.1.7.9)
actionview (= 6.1.7.9)
activejob (= 6.1.7.9)
activesupport (= 6.1.7.9)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0)
actionpack (6.1.7.8)
actionview (= 6.1.7.8)
activesupport (= 6.1.7.8)
actionpack (6.1.7.9)
actionview (= 6.1.7.9)
activesupport (= 6.1.7.9)
rack (~> 2.0, >= 2.0.9)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.2.0)
actiontext (6.1.7.8)
actionpack (= 6.1.7.8)
activerecord (= 6.1.7.8)
activestorage (= 6.1.7.8)
activesupport (= 6.1.7.8)
actiontext (6.1.7.9)
actionpack (= 6.1.7.9)
activerecord (= 6.1.7.9)
activestorage (= 6.1.7.9)
activesupport (= 6.1.7.9)
nokogiri (>= 1.8.5)
actionview (6.1.7.8)
activesupport (= 6.1.7.8)
actionview (6.1.7.9)
activesupport (= 6.1.7.9)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
Expand All @@ -60,28 +60,28 @@ GEM
sassc
sassc-rails
xdan-datetimepicker-rails (~> 2.5.1)
activejob (6.1.7.8)
activesupport (= 6.1.7.8)
activejob (6.1.7.9)
activesupport (= 6.1.7.9)
globalid (>= 0.3.6)
activemodel (6.1.7.8)
activesupport (= 6.1.7.8)
activemodel (6.1.7.9)
activesupport (= 6.1.7.9)
activemodel-serializers-xml (1.0.2)
activemodel (> 5.x)
activesupport (> 5.x)
builder (~> 3.1)
activerecord (6.1.7.8)
activemodel (= 6.1.7.8)
activesupport (= 6.1.7.8)
activerecord (6.1.7.9)
activemodel (= 6.1.7.9)
activesupport (= 6.1.7.9)
activerecord-import (1.4.0)
activerecord (>= 4.2)
activestorage (6.1.7.8)
actionpack (= 6.1.7.8)
activejob (= 6.1.7.8)
activerecord (= 6.1.7.8)
activesupport (= 6.1.7.8)
activestorage (6.1.7.9)
actionpack (= 6.1.7.9)
activejob (= 6.1.7.9)
activerecord (= 6.1.7.9)
activesupport (= 6.1.7.9)
marcel (~> 1.0)
mini_mime (>= 1.1.0)
activesupport (6.1.7.8)
activesupport (6.1.7.9)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
Expand Down Expand Up @@ -251,7 +251,7 @@ GEM
activesupport (>= 5.2)
htmlentities (4.3.4)
httpclient (2.8.3)
i18n (1.14.5)
i18n (1.14.6)
concurrent-ruby (~> 1.0)
image_processing (1.12.2)
mini_magick (>= 4.9.5, < 5)
Expand Down Expand Up @@ -291,6 +291,11 @@ GEM
net-imap
net-pop
net-smtp
mailjet (1.8.0)
activesupport (>= 5.0.0)
faraday (~> 2.1)
rack (>= 1.4.0)
yajl-ruby
marcel (1.0.4)
matrix (0.4.2)
memoist (0.16.2)
Expand All @@ -301,7 +306,7 @@ GEM
minitest (5.25.1)
msgpack (1.5.3)
multi_json (1.15.0)
net-imap (0.4.14)
net-imap (0.4.17)
date
net-protocol
net-pop (0.1.2)
Expand Down Expand Up @@ -341,27 +346,27 @@ GEM
puma (5.6.9)
nio4r (~> 2.0)
racc (1.8.1)
rack (2.2.9)
rack (2.2.10)
rack-cors (1.1.1)
rack (>= 2.0.0)
rack-proxy (0.7.2)
rack
rack-test (2.1.0)
rack (>= 1.3)
rails (6.1.7.8)
actioncable (= 6.1.7.8)
actionmailbox (= 6.1.7.8)
actionmailer (= 6.1.7.8)
actionpack (= 6.1.7.8)
actiontext (= 6.1.7.8)
actionview (= 6.1.7.8)
activejob (= 6.1.7.8)
activemodel (= 6.1.7.8)
activerecord (= 6.1.7.8)
activestorage (= 6.1.7.8)
activesupport (= 6.1.7.8)
rails (6.1.7.9)
actioncable (= 6.1.7.9)
actionmailbox (= 6.1.7.9)
actionmailer (= 6.1.7.9)
actionpack (= 6.1.7.9)
actiontext (= 6.1.7.9)
actionview (= 6.1.7.9)
activejob (= 6.1.7.9)
activemodel (= 6.1.7.9)
activerecord (= 6.1.7.9)
activestorage (= 6.1.7.9)
activesupport (= 6.1.7.9)
bundler (>= 1.15.0)
railties (= 6.1.7.8)
railties (= 6.1.7.9)
sprockets-rails (>= 2.0.0)
rails-controller-testing (1.0.5)
actionpack (>= 5.0.1.rc1)
Expand All @@ -374,9 +379,9 @@ GEM
rails-html-sanitizer (1.6.0)
loofah (~> 2.21)
nokogiri (~> 1.14)
railties (6.1.7.8)
actionpack (= 6.1.7.8)
activesupport (= 6.1.7.8)
railties (6.1.7.9)
actionpack (= 6.1.7.9)
activesupport (= 6.1.7.9)
method_source
rake (>= 12.2)
thor (~> 1.0)
Expand Down Expand Up @@ -407,8 +412,7 @@ GEM
actionpack (>= 5.2)
railties (>= 5.2)
retriable (3.1.2)
rexml (3.3.6)
strscan
rexml (3.3.9)
roo (2.10.0)
nokogiri (~> 1)
rubyzip (>= 1.3.0, < 3.0.0)
Expand Down Expand Up @@ -500,13 +504,12 @@ GEM
sshkit (1.21.2)
net-scp (>= 1.1.2)
net-ssh (>= 2.8.0)
strscan (3.1.0)
super_diff (0.9.0)
attr_extras (>= 6.2.4)
diff-lcs
patience_diff
test-prof (1.0.9)
thor (1.3.1)
thor (1.3.2)
tilt (2.0.10)
timecop (0.9.5)
timeout (0.4.1)
Expand Down Expand Up @@ -547,7 +550,8 @@ GEM
rails (>= 3.2.16)
xpath (3.2.0)
nokogiri (~> 1.8)
zeitwerk (2.6.17)
yajl-ruby (1.4.3)
zeitwerk (2.6.18)

PLATFORMS
ruby
Expand Down Expand Up @@ -589,6 +593,7 @@ DEPENDENCIES
image_processing
language_list
listen (>= 3.0.5, < 3.2)
mailjet
pg (>= 0.18, < 2.0)
pg_search (= 2.3.2)
pry
Expand Down
4 changes: 3 additions & 1 deletion app/admin/cp_assessments.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
permit_params :sector_id, :assessment_date, :publication_date, :cp_assessmentable_id, :last_reported_year,
:assumptions, :cp_alignment_2025, :cp_alignment_2027, :cp_alignment_2035, :cp_alignment_2050,
:region, :cp_regional_alignment_2025, :cp_regional_alignment_2027, :cp_regional_alignment_2035,
:cp_regional_alignment_2050, :years_with_targets_string, :emissions,
:cp_regional_alignment_2050, :years_with_targets_string, :emissions, :assessment_date_flag,
cp_matrices_attributes: [:id, :portfolio, :cp_alignment_2025, :cp_alignment_2035, :cp_alignment_2050, :_destroy]

filter :assessment_date
Expand Down Expand Up @@ -60,6 +60,7 @@
end
row :sector
row :assessment_date
row :assessment_date_flag
row :publication_date
row :last_reported_year
row :cp_alignment_2050
Expand Down Expand Up @@ -123,6 +124,7 @@
record.sector.name
end
column :assessment_date
column :assessment_date_flag
column :publication_date, &:publication_date_csv
year_columns.map do |year|
column year do |a|
Expand Down
3 changes: 3 additions & 0 deletions app/assets/images/icons/hover-cursor.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions app/assets/images/tpi/icons/download.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions app/assets/images/tpi/sectors-bubble-chart-legend.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions app/assets/stylesheets/tpi.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
@import "tpi/mq_beta_scores";
@import "tpi/mq-beta-modal";
@import "tpi/selector";
@import "tpi/download-form-modal";
@import "tpi/emissions-chart";
@import "tpi/ascor-benchmarks";
@import "tpi/pages/*";
Expand Down
3 changes: 3 additions & 0 deletions app/assets/stylesheets/tpi/_base-tooltip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ div[data-react-class=BaseTooltip] {

.base-tooltip {
position: relative;
>div:first-child {
height: auto;
}

&__default-trigger {
font-family: $font-family-bold;
Expand Down
Loading

0 comments on commit 55c9a3b

Please sign in to comment.