Commit Graph

20358 Commits

Author SHA1 Message Date
Sebastia
68445bb7fd Merge pull request #6003 from consuldemocracy/dependabot/bundler/view_component-3.23.2
Bump view_component from 3.23.1 to 3.23.2
2025-06-11 17:38:13 +02:00
Sebastia
2235315dae Merge pull request #6001 from consuldemocracy/dependabot/bundler/groupdate-6.6.0
Bump groupdate from 6.5.1 to 6.7.0
2025-06-11 17:12:45 +02:00
dependabot[bot]
cd8d3fc8d3 Bump groupdate from 6.5.1 to 6.6.0
Bumps [groupdate](https://github.com/ankane/groupdate) from 6.5.1 to 6.6.0.
- [Changelog](https://github.com/ankane/groupdate/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ankane/groupdate/compare/v6.5.1...v6.6.0)

---
updated-dependencies:
- dependency-name: groupdate
  dependency-version: 6.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-11 14:27:29 +00:00
dependabot[bot]
4ce272be98 Bump view_component from 3.23.1 to 3.23.2
Bumps [view_component](https://github.com/viewcomponent/view_component) from 3.23.1 to 3.23.2.
- [Release notes](https://github.com/viewcomponent/view_component/releases)
- [Changelog](https://github.com/ViewComponent/view_component/blob/main/docs/CHANGELOG.md)
- [Commits](https://github.com/viewcomponent/view_component/compare/v3.23.1...v3.23.2)

---
updated-dependencies:
- dependency-name: view_component
  dependency-version: 3.23.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-11 14:12:09 +00:00
Sebastia
304055edbd Merge pull request #5994 from consuldemocracy/remove-legacy-ahoy-patch
Remove Ahoy ensure_uuid logic and uuidtools dependency
2025-06-11 16:10:45 +02:00
Sebastia
1d61f332c1 Merge pull request #5995 from consuldemocracy/remove-spring-gem
Remove Spring from the project
2025-06-11 15:46:24 +02:00
taitus
f45f5fe98f Remove Ahoy ensure_uuid logic and uuidtools dependency
Ahoy 2.0.0 [1] introduced automatic UUID generation for visit_token and
visitor_token. As a result, the custom ensure_uuid method is no longer
needed and can be safely removed from the initializer.

Since we aren't manually generating UUIDs anymore, we no longer need
the uuidtools dependency.

[1] https://github.com/ankane/ahoy/blob/v2.0.0/README.md#token-generation
2025-06-11 15:45:40 +02:00
Sebastia
c8c7580e25 Merge pull request #5982 from consuldemocracy/dependabot/bundler/pronto-stylelint-0.11.1
Bump pronto-stylelint from 0.11.0 to 0.11.1
2025-06-11 15:43:09 +02:00
Sebastia
0332cd3a56 Merge pull request #5996 from consuldemocracy/dependabot/bundler/selenium-webdriver-4.33.0
Bump selenium-webdriver from 4.29.1 to 4.33.0
2025-06-11 15:20:01 +02:00
taitus
11e84159d9 Remove Spring from the project
IMHO, Spring no longer provides benefits in this project and:

- Spring was already disabled in the test environment since commit e4e0cb5d47
- Rails removed Spring as a default installation option in 2021 [1]

[1] PR #42997 from https://github.com/rails/rails/
2025-06-11 15:07:17 +02:00
Sebastia
72b92b3c30 Merge pull request #5999 from consuldemocracy/dependabot/bundler/acts-as-taggable-on-12.0.0
Bump acts-as-taggable-on from 11.0.0 to 12.0.0
2025-06-11 12:27:22 +02:00
Sebastia
b986038057 Merge pull request #5998 from consuldemocracy/dependabot/bundler/wkhtmltopdf-binary-0.12.6.9
Bump wkhtmltopdf-binary from 0.12.6.8 to 0.12.6.9
2025-06-11 11:52:58 +02:00
Sebastia
c37f77aad7 Merge pull request #5997 from consuldemocracy/dependabot/bundler/exiftool_vendored-13.30.0
Bump exiftool_vendored from 12.97.0 to 13.30.0
2025-06-11 11:35:54 +02:00
dependabot[bot]
e6d1d80de1 Bump selenium-webdriver from 4.29.1 to 4.33.0
Bumps [selenium-webdriver](https://github.com/SeleniumHQ/selenium) from 4.29.1 to 4.33.0.
- [Release notes](https://github.com/SeleniumHQ/selenium/releases)
- [Changelog](https://github.com/SeleniumHQ/selenium/blob/trunk/rb/CHANGES)
- [Commits](https://github.com/SeleniumHQ/selenium/commits/selenium-4.33.0)

---
updated-dependencies:
- dependency-name: selenium-webdriver
  dependency-version: 4.33.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-10 14:23:17 +00:00
dependabot[bot]
4501cc4e1c Bump pronto-stylelint from 0.11.0 to 0.11.1
Bumps [pronto-stylelint](https://github.com/kevinjalbert/pronto-stylelint) from 0.11.0 to 0.11.1.
- [Commits](https://github.com/kevinjalbert/pronto-stylelint/compare/v0.11.0...v0.11.1)

---
updated-dependencies:
- dependency-name: pronto-stylelint
  dependency-version: 0.11.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-10 15:50:51 +02:00
Sebastia
fbeae4f95e Merge pull request #5973 from consuldemocracy/dependabot/npm_and_yarn/stylelint-order-7.0.0
Bump stylelint-order from 6.0.4 to 7.0.0
2025-06-10 11:01:37 +02:00
dependabot[bot]
01f92311b7 Bump stylelint-order from 6.0.4 to 7.0.0
Bumps [stylelint-order](https://github.com/hudochenkov/stylelint-order) from 6.0.4 to 7.0.0.
- [Release notes](https://github.com/hudochenkov/stylelint-order/releases)
- [Changelog](https://github.com/hudochenkov/stylelint-order/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hudochenkov/stylelint-order/compare/6.0.4...7.0.0)

---
updated-dependencies:
- dependency-name: stylelint-order
  dependency-version: 7.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-10 08:14:11 +00:00
Sebastia
887ff116ea Merge pull request #6008 from consuldemocracy/dependabot/npm_and_yarn/stylelint-16.20.0
Bump stylelint from 16.14.1 to 16.20.0
2025-06-10 10:12:05 +02:00
Sebastia
7d6bf0589d Merge pull request #5989 from consuldemocracy/nested-documentable-specs
Make nested documentable specs faster
2025-06-10 09:30:18 +02:00
taitus
49facdca7d Refactor nested document tests to simplify contexts and remove duplication 2025-06-09 17:35:40 +02:00
taitus
44cfb9bcc2 Unify lets from documentable and imageable to attachables methods 2025-06-09 17:35:40 +02:00
taitus
472e244103 Move tests related with attached documents from documentable shared specs to nested documentable file
Note that we moved some system tests to component tests, since they don't involve user interaction and can
be fully covered at the component level.
2025-06-09 17:32:41 +02:00
dependabot[bot]
09acb6afd5 Bump stylelint from 16.14.1 to 16.20.0
Bumps [stylelint](https://github.com/stylelint/stylelint) from 16.14.1 to 16.20.0.
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/stylelint/stylelint/compare/16.14.1...16.20.0)

---
updated-dependencies:
- dependency-name: stylelint
  dependency-version: 16.20.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-09 14:21:32 +00:00
dependabot[bot]
8e9c3d366a Bump exiftool_vendored from 12.97.0 to 13.30.0
Bumps [exiftool_vendored](https://github.com/exiftool-rb/exiftool_vendored.rb) from 12.97.0 to 13.30.0.
- [Commits](https://github.com/exiftool-rb/exiftool_vendored.rb/compare/v12.97.0...v13.30.0)

---
updated-dependencies:
- dependency-name: exiftool_vendored
  dependency-version: 13.30.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-09 14:03:13 +00:00
Sebastia
e786f09964 Merge pull request #5983 from consuldemocracy/dependabot/bundler/autoprefixer-rails-10.4.21.0
Bump autoprefixer-rails from 10.4.19.0 to 10.4.21.0
2025-06-09 16:01:50 +02:00
taitus
7a317ef9c1 Unify and move documentable shared specs to nested documentable file 2025-06-09 15:23:59 +02:00
taitus
11f09c281c Move test for check metadata to nested documentable system 2025-06-09 15:23:59 +02:00
taitus
9e805d95de Unify tests from "Only for edit path" describe in order to reduce duplicated code 2025-06-09 15:23:59 +02:00
taitus
2420f27704 Unify tests when removing documents 2025-06-09 15:23:59 +02:00
Sebastia
a3f3f3658b Merge pull request #5907 from consuldemocracy/dependabot/bundler/omniauth-2.1.3
Bump omniauth from 2.1.2 to 2.1.3
2025-06-09 12:27:34 +02:00
dependabot[bot]
dcfd630928 Bump omniauth from 2.1.2 to 2.1.3
Bumps [omniauth](https://github.com/omniauth/omniauth) from 2.1.2 to 2.1.3.
- [Release notes](https://github.com/omniauth/omniauth/releases)
- [Commits](https://github.com/omniauth/omniauth/compare/v2.1.2...v2.1.3)

---
updated-dependencies:
- dependency-name: omniauth
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-09 09:57:35 +00:00
dependabot[bot]
b0735cfc92 Bump acts-as-taggable-on from 11.0.0 to 12.0.0
Bumps [acts-as-taggable-on](https://github.com/mbleigh/acts-as-taggable-on) from 11.0.0 to 12.0.0.
- [Release notes](https://github.com/mbleigh/acts-as-taggable-on/releases)
- [Changelog](https://github.com/mbleigh/acts-as-taggable-on/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mbleigh/acts-as-taggable-on/compare/v11.0.0...v12.0.0)

---
updated-dependencies:
- dependency-name: acts-as-taggable-on
  dependency-version: 12.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-09 09:57:24 +00:00
Sebastia
f2dce3ace7 Merge pull request #5864 from consuldemocracy/dependabot/bundler/omniauth-google-oauth2-1.2.1
Bump omniauth-google-oauth2 from 1.2.0 to 1.2.1
2025-06-09 11:55:56 +02:00
dependabot[bot]
c42ed076e8 Bump omniauth-google-oauth2 from 1.2.0 to 1.2.1
Bumps [omniauth-google-oauth2](https://github.com/zquestz/omniauth-google-oauth2) from 1.2.0 to 1.2.1.
- [Release notes](https://github.com/zquestz/omniauth-google-oauth2/releases)
- [Changelog](https://github.com/zquestz/omniauth-google-oauth2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zquestz/omniauth-google-oauth2/compare/v1.2.0...v1.2.1)

---
updated-dependencies:
- dependency-name: omniauth-google-oauth2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-09 09:22:59 +00:00
Sebastia
014b32da78 Merge pull request #5991 from consuldemocracy/fix-poster
Fix PDF poster generated in dashboard
2025-06-09 09:40:20 +02:00
taitus
e241e5b961 Unify poster preview with poster PDF styles
Since commit c5103d3025, the styles from application.scss no longer apply
to app/views/dashboard/poster/index.pdf.erb.

To recover the text-center alignment, we add the rule in dashboard.scss.

Note that we also remove text-center from the h2, since it wasn't applied
and there's no need to recover it because it doesn't exist in the preview
either.
2025-06-09 09:20:59 +02:00
taitus
59c61d02cc Remove redundant tests from "Only for edit path" describe
These tests already tested in previous tests.
2025-06-06 17:18:15 +02:00
taitus
28e9832c40 Unify tests in order to remove duplicated code
Note that we are removing a specific "context" that can be replaced
with an "if" in the previous spec.
2025-06-06 17:18:15 +02:00
taitus
b7025a8135 Remove "outdated" comment
Since commit 23682fadd8, we have had the comment:
> # Review
> # Doble check why the file is stored with a name different to empty.pdf

This might be outdated.
2025-06-06 17:18:15 +02:00
taitus
afdf65dec9 Remove unnecessary tests and expectations related with loading-bar
These expectations are already covered by attach_new_file, so they are no longer needed:
>  expect(page).to have_css ".loading-bar.complete"

We can remove the tests:
> "Should update loading bar style after invalid file upload"
because the expectation:
> expect(page).to have_css ".loading-bar.errors"
It is already tested in "Should not update document cached_attachment field after invalid file upload"
2025-06-06 17:18:15 +02:00
taitus
88ba548343 Unify fill_in field in one line 2025-06-06 17:18:15 +02:00
taitus
e6089c2b63 Remove expect_document_has_title method
I think tests are now clearer by using have_field.

Note that I have remove the within ".document-fields" because there is
only one document.
2025-06-06 17:18:15 +02:00
taitus
d7581955f8 Remove duplicated code in imageable and documentable attach file methods 2025-06-06 17:18:15 +02:00
taitus
82296a33e2 Use documentable_attach_new_file method where possible
Use this commit to unify two similar specs.
2025-06-06 17:18:15 +02:00
taitus
64c1c59a7a Unify tests related with shows or hides max documents warning 2025-06-06 17:18:15 +02:00
taitus
a4e7b70227 Unify tests related with shows or hides new document link 2025-06-06 17:18:15 +02:00
taitus
82dac1225c Simplify tests by setting "max documents allowed" to 1
Note that this commit also applies a similar change to the
imageable_attach_new_file method by removing an unnecessary variable.

In order to testing with more than 1 max documents allowed we
keep one test with this value.
2025-06-06 17:18:15 +02:00
taitus
addda0c773 Unify duplicated methods in common_actions folder
Replaced the user with a level_two one in the "Default whole city" test to
bypass the full name requirement, which only applies to unverified users.
2025-06-06 17:07:50 +02:00
taitus
2cc23309b8 Unify attachables methods 2025-06-06 16:00:16 +02:00
taitus
e7c5b03d8c Extract edit proposals from shared nested documentable to system specs
We can remove shared nested documentable file because has not references.
2025-06-06 16:00:15 +02:00