Commit Graph

15545 Commits

Author SHA1 Message Date
dependabot-preview[bot]
46868da3ed Bump turnout from 2.4.1 to 2.5.0
Bumps [turnout](https://github.com/biola/turnout) from 2.4.1 to 2.5.0.
- [Release notes](https://github.com/biola/turnout/releases)
- [Commits](https://github.com/biola/turnout/compare/v2.4.1...v2.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-27 18:15:28 +00:00
Javi Martín
e0e21696d4 Merge pull request #4150 from consul/dependabot/bundler/coveralls-0.8.23
Bump coveralls from 0.8.22 to 0.8.23
2020-09-27 20:13:46 +02:00
Javi Martín
cdfd80ff60 Merge pull request #4156 from consul/dependabot/bundler/delayed_job_active_record-4.1.4
Bump delayed_job_active_record from 4.1.3 to 4.1.4
2020-09-27 20:13:34 +02:00
dependabot-preview[bot]
891ff0ff8a Bump delayed_job_active_record from 4.1.3 to 4.1.4
Bumps [delayed_job_active_record](https://github.com/collectiveidea/delayed_job_active_record) from 4.1.3 to 4.1.4.
- [Release notes](https://github.com/collectiveidea/delayed_job_active_record/releases)
- [Commits](https://github.com/collectiveidea/delayed_job_active_record/compare/v4.1.3...v4.1.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-27 15:48:04 +00:00
dependabot-preview[bot]
0c6572b696 Bump coveralls from 0.8.22 to 0.8.23
Bumps [coveralls](https://coveralls.io) from 0.8.22 to 0.8.23.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-27 15:36:43 +00:00
Javi Martín
6ea5d21cda Merge pull request #4151 from consul/dependabot/bundler/devise-4.7.3
Bump devise from 4.7.1 to 4.7.3
2020-09-27 17:34:38 +02:00
dependabot-preview[bot]
eed6e5dec2 Bump letter_opener_web from 1.3.4 to 1.4.0
Bumps [letter_opener_web](https://github.com/fgrehm/letter_opener_web) from 1.3.4 to 1.4.0.
- [Release notes](https://github.com/fgrehm/letter_opener_web/releases)
- [Changelog](https://github.com/fgrehm/letter_opener_web/blob/master/CHANGELOG.md)
- [Commits](https://github.com/fgrehm/letter_opener_web/compare/v1.3.4...v1.4.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-27 14:52:24 +00:00
Javi Martín
25c3138422 Merge pull request #4148 from consul/dependabot/bundler/knapsack_pro-2.6.0
Bump knapsack_pro from 1.15.0 to 2.6.0
2020-09-27 16:50:34 +02:00
dependabot-preview[bot]
b4ec01eb49 Bump devise from 4.7.1 to 4.7.3
Bumps [devise](https://github.com/plataformatec/devise) from 4.7.1 to 4.7.3.
- [Release notes](https://github.com/plataformatec/devise/releases)
- [Changelog](https://github.com/heartcombo/devise/blob/master/CHANGELOG.md)
- [Commits](https://github.com/plataformatec/devise/compare/v4.7.1...v4.7.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-27 14:30:19 +00:00
dependabot-preview[bot]
4866f728b7 Bump knapsack_pro from 1.15.0 to 2.6.0
Bumps [knapsack_pro](https://github.com/KnapsackPro/knapsack_pro-ruby) from 1.15.0 to 2.6.0.
- [Release notes](https://github.com/KnapsackPro/knapsack_pro-ruby/releases)
- [Changelog](https://github.com/KnapsackPro/knapsack_pro-ruby/blob/master/CHANGELOG.md)
- [Commits](https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v1.15.0...v2.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-27 14:09:35 +00:00
dependabot-preview[bot]
24d4a82af9 Bump bullet from 5.9.0 to 6.1.0
Bumps [bullet](https://github.com/flyerhzm/bullet) from 5.9.0 to 6.1.0.
- [Release notes](https://github.com/flyerhzm/bullet/releases)
- [Changelog](https://github.com/flyerhzm/bullet/blob/master/CHANGELOG.md)
- [Commits](https://github.com/flyerhzm/bullet/compare/5.9.0...6.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-27 14:07:34 +00:00
Javi Martín
e61d2f53f3 Merge pull request #4109 from consul/dependabot/bundler/capistrano-bundler-2.0.1
Bump capistrano-bundler from 1.3.0 to 2.0.1
2020-09-27 15:50:41 +02:00
Javi Martín
721a87b06b Add .bundle to shared dirs in Capistrano
The 2.0.0 release of capistrano-bundler creates a configuration file
under `.bundle/config`. It was creating a new configuration file for
each release because we weren't using a shared folder.

Besides, quoting the capistrano-bundler README [1]:

> In order for Bundler to work efficiently on the server, its project
> configuration directory (<release_path>/.bundle/) should be persistent
> across releases. You need to add it to the linked_dirs Capistrano
> variable

[1] https://github.com/capistrano/bundler/blob/v2.0.1/README.md
2020-09-27 15:27:29 +02:00
dependabot-preview[bot]
750016f352 Bump capistrano-bundler from 1.3.0 to 2.0.1
Bumps [capistrano-bundler](https://github.com/capistrano/bundler) from 1.3.0 to 2.0.1.
- [Release notes](https://github.com/capistrano/bundler/releases)
- [Commits](https://github.com/capistrano/bundler/compare/v1.3.0...v2.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-27 13:01:33 +00:00
Javi Martín
5019d4b8a1 Merge pull request #4106 from consul/dependabot/bundler/capistrano-3.14.1
Bump capistrano from 3.10.1 to 3.14.1
2020-09-27 15:00:00 +02:00
dependabot-preview[bot]
f22dc29ad1 Bump capistrano from 3.10.1 to 3.14.1
Bumps [capistrano](https://github.com/capistrano/capistrano) from 3.10.1 to 3.14.1.
- [Release notes](https://github.com/capistrano/capistrano/releases)
- [Commits](https://github.com/capistrano/capistrano/compare/v3.10.1...v3.14.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-Authored-By: Javi Martín <javim@elretirao.net>
2020-09-27 14:46:55 +02:00
Javi Martín
0e03ca63c3 Merge pull request #4105 from consul/dependabot/bundler/whenever-1.0.0
Bump whenever from 0.10.0 to 1.0.0
2020-09-27 14:07:27 +02:00
dependabot-preview[bot]
d61ce40334 Bump whenever from 0.10.0 to 1.0.0
Bumps [whenever](https://github.com/javan/whenever) from 0.10.0 to 1.0.0.
- [Release notes](https://github.com/javan/whenever/releases)
- [Changelog](https://github.com/javan/whenever/blob/master/CHANGELOG.md)
- [Commits](https://github.com/javan/whenever/compare/v0.10.0...v1.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-27 11:54:04 +00:00
Javi Martín
afade76821 Merge pull request #4099 from consul/dependabot/bundler/foundation-rails-6.6.2.0
Bump foundation-rails from 6.6.1.0 to 6.6.2.0
2020-09-27 13:29:04 +02:00
dependabot-preview[bot]
4c4a46141a Bump foundation-rails from 6.6.1.0 to 6.6.2.0
Bumps [foundation-rails](https://get.foundation) from 6.6.1.0 to 6.6.2.0.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-27 10:47:00 +00:00
Javi Martín
d101e7e7c6 Merge pull request #4098 from consul/dependabot/bundler/globalize-5.3.0
Bump globalize from 5.2.0 to 5.3.0
2020-09-27 12:45:07 +02:00
dependabot-preview[bot]
e90e37a284 Bump globalize from 5.2.0 to 5.3.0
Bumps [globalize](https://github.com/globalize/globalize) from 5.2.0 to 5.3.0.
- [Release notes](https://github.com/globalize/globalize/releases)
- [Changelog](https://github.com/globalize/globalize/blob/master/CHANGELOG.md)
- [Commits](https://github.com/globalize/globalize/compare/v5.2.0...v5.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-27 10:29:08 +00:00
Javi Martín
8941a09e4c Update Travis badge to use travis-ci.com
The domain travis-ci.org will stop working on December 31st, 2020, so
we've now using travis-ci.com for continuous integration.
2020-09-27 12:10:31 +02:00
Javi Martín
5733130abc Remove slack notifications in Travis
We aren't using them and, besides, including it in version control means
builds from every fork would be notified in a slack channel.
2020-09-25 14:54:14 +02:00
Javi Martín
ad16c0f8a7 Merge pull request #4113 from consul/release_1.2.0
Release version 1.2.0
2020-09-25 13:39:45 +02:00
Javi Martín
eec5fd3c7e Fix 1.1.0 release date
December 31 was a placeholder. It was actually released on March 11.
2020-09-24 16:45:40 +02:00
Javi Martín
69efc32a65 Release version 1.2.0 2020-09-24 16:45:40 +02:00
Javi Martín
f44597ad17 Merge pull request #4140 from consul/i18n_crowdin
Update translations from Crowdin
2020-09-23 18:25:26 +02:00
Senén Rodero Rodríguez
3240f211b5 Update translations from Crowdin
Add translations files for two new languages: Indonesian and
Tagalog.

Change Serbian (Cyrillic) folder from `sr-SP` to `sr`, this is a
preference of us so we can run i18n-tasks without having to
rename the folder first.
2020-09-23 17:22:46 +02:00
Javi Martín
e6b3031247 Merge pull request #4129 from consul/fix_airbrake
Fix Airbrake crash with no project key
2020-09-23 13:17:57 +02:00
Javi Martín
a1bb9bd5d6 Fix Airbrake crash with no project key
We were checking tho project_id but not the project_key. However, in our
example secrets file we actually include a project_id but not a
project_key, and so new CONSUL installations would crash in production
environments.

Although technically the application doesn't crash if no host is
defined, we're also ignoring the current environment if no host is
defined, since errbit/airbrake is unlikely to work in this scenario.
2020-09-23 13:00:25 +02:00
Javi Martín
0b464f7ac1 Merge pull request #4138 from consul/manage_successful_proposal
Fix crash in management with successful proposals
2020-09-23 11:24:09 +02:00
Javi Martín
3e2d7fd707 Fix crash in management with successful proposals
The page was crashing because it was looking for the `supports` partial
under `management/proposals`, when the right path was `proposals/`.
2020-09-22 21:19:35 +02:00
Javi Martín
6c0fc33842 Merge pull request #4127 from consul/puma_start_after_upgrading_ruby
Make sure Puma has restarted properly
2020-09-22 13:49:09 +02:00
Javi Martín
0e496f9045 Merge pull request #3956 from consul/admin-front
Fix minor design details in admin front
2020-09-22 11:19:23 +02:00
Javi Martín
b1e3c52de0 Merge pull request #4006 from consul/blank_space
Make the admin menu fill the screen vertically
2020-09-22 11:12:18 +02:00
decabeza
c159f9c3b9 Fix icon sortable styles 2020-09-21 16:04:57 +02:00
decabeza
1339885910 Remove admin header box shadow
It has been removed to maintain consistency with the front views.
2020-09-21 16:04:57 +02:00
decabeza
732ad7fd6b Improve styles for admin sidebar
Also add a little animation on arrow when menu opens
2020-09-21 16:04:56 +02:00
Javi Martín
93cf9e22c3 Merge pull request #4005 from consul/off_canvas
Simplify code related to the admin menu
2020-09-21 15:51:05 +02:00
Javi Martín
c362e1190f Simplify main admin header margin rules
Instead of having a header with a bottom margin followed by an element
with a negative margin, it makes more sense to have no margin on either
element.
2020-09-21 15:15:52 +02:00
Javi Martín
7880573635 Make the admin menu fill the screen vertically
On high-resolution screens where neither the menu nor the main content
were filling the screen, there was a blank space at the bottom which
looked weird.
2020-09-21 15:15:52 +02:00
Javi Martín
fc3a7618b1 Simplify method to render admin menu
The `side_menu` helper method isn't necessary since commit 13b3d9cebc.
2020-09-21 15:14:20 +02:00
Javi Martín
a293dc013d Make management layout similar to admin layout
The <main> tag was including the navigation, and now we use the same
flex layout, making it more accessible for mobile phone users.

I'm not sure the <main> tag should actually include the account info and
the flash message. I'm keeping it like this in order to keep the layout
the way it was.
2020-09-21 15:14:20 +02:00
Javi Martín
125106f9c0 Simplify code to have an off-canvas menu
While Foundations's off-canvas menu allows us to forget about writing
CSS, it also leads to complicated HTML.

Ideally Foundation would provide an easy way to simplify what we're
doing, but I haven't found anything in the documentation.

We could simplify the HTML a bit more if we used a CSS grid layout
instead of a flex one, but old browsers have better support for the
latter.

Note we're using `breakpoint(medium)` so we can group the CSS for small
screens and follow SCSS-Lint rules at the same time.

Also note behavior of the main area when the menu appears on small
screens is slightly different: it doesn't move the main content to the
right. I've done it this way so we don't have any overflow issues,
unlike the previous version.

There's a small issue using a label and a checkbox to enable/disable the
menu: sighted keyboard users with a small screen might not be able to
enable the menu. So we're adding the `:focus-within` pseudoclass so the
menu can be normally navigated using the keyboard. Even if old browsers
don't support this pseudoclass, we believe the probability of a sighted
user using a small screen, navigating with the keyboard and using an old
browser is really low, particularly in the admin area.

We're also adding the `aria-hidden` attribute on the label, since the
menu is never hidden for screen readers and so having a control to show
it could be confusing. Since the label is not focusable, we're complying
with the fourth ARIA rule:

> Do not use role="presentation" or aria-hidden="true" on a focusable
> element .
>
> Using either of these on a focusable element will result in some users
> focusing on 'nothing'.
2020-09-21 15:14:20 +02:00
decabeza
2363aa4c76 Avoid using a mixin for side menu and content styles 2020-09-21 15:14:20 +02:00
Javi Martín
4b93437351 Remove unused layout
It isn't used since commit e5f9cf67.
2020-09-18 12:54:02 +02:00
Javi Martín
20b814da7c Merge pull request #4130 from consul/language_mapping
Add Serbian (Cyrillic) new language mapping
2020-09-17 12:20:05 +02:00
Senén Rodero Rodríguez
af987a2a4d Add Serbian (Cyrillic) new language mapping
This language_mapping setting was requested by Crowdin support
team to make Crowdin understand that we want Serbian (Latin)
translations files locale code `sr-CS` and Serbian (Cyrillic) with
locale code `sr`, we were asked to add the same mappings to
Crowdin project settings at [1]

[1] `Project Settings -> General -> Export -> Language mappings`
2020-09-16 16:31:02 +02:00
Javi Martín
40b3c9f2ce Make sure Puma has restarted properly
We were getting an error when restarting Puma after upgrading Ruby. Even
if the restart command was sent successfully, Puma silently crashed and
the log had the following error:

/home/deploy/.rvm/rubies/ruby-2.4.9/lib/ruby/site_ruby/2.4.0/bundler/spec_set.rb:91:in
`block in materialize': Could not find rake-13.0.1 in any of the sources
(Bundler::GemNotFound)

So it looks like the crash happens because Puma was started when the
application used Ruby 2.4 and now when it's restarted it still tries to
use Ruby 2.4, even if the application now uses Ruby 2.5.

I haven't found a proper way to configure Puma so we can avoid this, so
as a workaround I've added the `puma:start` task after restarting Puma.
If Puma was successfully restarted, `puma:start` will do nothing; if
Puma crashed, `puma:start` will start it.

To guarantee the tasks will be executed in the proper order, the tasks
introduced by capistrano3-delayed_job and capistrano3-puma are cleared,
and then we configure the order so first we restart Puma, then restart
the Delayed Jobs processes (so there's enough time for Puma to crash if
Ruby was upgraded) and then start Puma.
2020-09-16 10:53:22 +02:00