Gaetan Craig-Riou
c641fae2b9
Merge pull request #13699 from openfoodfoundation/dependabot/bundler/rails-7.1.6
...
Bump rails from 7.1.5.2 to 7.1.6
2025-11-14 11:23:21 +11:00
Gaetan Craig-Riou
526df1cb9c
Merge pull request #13698 from openfoodfoundation/dependabot/bundler/acts-as-taggable-on-13.0.0
...
Bump acts-as-taggable-on from 10.0.0 to 13.0.0
2025-11-14 11:20:47 +11:00
Gaetan Craig-Riou
f4e9daec80
Merge pull request #13706 from deivid-rodriguez/tweak-reviewdog
...
Let reviewdog use github-pr-annotation formatter
2025-11-14 10:44:51 +11:00
Ahmed Ejaz
3e2cd839cc
add .tools-versions for asdf version manager
2025-11-14 04:38:52 +05:00
Gaetan Craig-Riou
b9a790ba20
Per review, comment out transform configuration
...
We are using the default one, no need to actually specify it, and also
updated the documentaion link to the latest documentation.
2025-11-14 10:32:14 +11:00
Maikel Linke
aaad1bc0b3
Accept short client ids in tokens
2025-11-14 10:00:16 +11:00
Maikel Linke
d7f4a5c874
Allow Market.Organic to access DFC API
2025-11-14 10:00:16 +11:00
Maikel Linke
f8ca8ae942
Trust FDC dev realm to sign tokens
2025-11-14 10:00:16 +11:00
Maikel Linke
2805ea4926
Allow LiteFarm to access DFC API
2025-11-14 10:00:16 +11:00
David Rodríguez
36ac5dc44e
Let reviewdog use github-pr-annotation formatter
...
This is already the default for forked PRs, and most (if not all) PRs to
this repository come from forks anyways.
2025-11-13 20:39:09 +01:00
David Rodríguez
49a976810b
Update all webpack related dependencies together
2025-11-13 08:45:18 +01:00
David Rodríguez
f6d605a3aa
Dismiss success message automatically after 5 seconds
...
We were already eventually removing the "success" border style on
inputs. I think it makes sense to do the same for the success message
itself. That's how our standard "flash messages" already work.
2025-11-13 08:37:52 +01:00
David Rodríguez
6901323827
Fix success message taking 5 seconds to show up
...
This is pretty black magic to me, but my understanding is that:
* When submitting customer forms, we use `$q.all()` on the result of
submitting each form asynchronously in order to decide whether to
display a success message (no errors) or a failure message.
* The value returned for each particular form submission was the return
value of either `change.scope.success()` or `change.scope.error()`.
These use the `switchClass` factory, which changes a particular DOM
element's class to the proper pending/success/error class, but in the
success case, it also sets a timeout to remove the class using
`$timeout()`, which is a promise, and that was its return value.
* Because of the above, `$q.all()` was actually waiting for the
`$timeout()` promise to be fulfilled before proceeding.
The fix is to not return a `$timeout()` promise from the `switchClass`
factory when a timeout is passed, but instead set a timeout on the
element, but return the element itself regardless.
2025-11-13 08:37:52 +01:00
David Rodríguez
186fe0503f
Show orange border when input has changes
...
Even if it's on focus.
2025-11-13 08:37:52 +01:00
David Rodríguez
e990e5ffd5
Don't show flash messages in customer edition form
...
They don't actually show up when the customer is saved, but the next
time the page is reloaded. We already have the save bar for the same
purpose so it's not necessary.
2025-11-13 08:37:52 +01:00
David Rodríguez
3d7207d8c5
Properly track changes in code attribute
...
If the code was initially nil, some value is added, and then removed, we
would not detect that the code has not actually changed.
2025-11-13 08:37:52 +01:00
David Rodríguez
4b31352e4f
Wait for page before checking DB
2025-11-13 08:37:51 +01:00
David Rodríguez
278a8b1ec2
Let save-bar properly track form state
...
* Keep save bar visible as long as there's a customer form displayed.
* Only display "You have unsaved changes" when there's any difference
from the original values. If form changes are reverted, hide that
note.
* Similarly, only let the button be enabled if there are any actual
changes to be saved.
2025-11-13 08:37:51 +01:00
Gaetan Craig-Riou
b96a0875f3
Turn on cleaning up of globals.
...
It will be come default in future jest release, currently jest isn't
emitting any warning so there is no reason to wait to turn it on.
2025-11-13 09:44:22 +11:00
Gaetan Craig-Riou
4e62e20fa8
Fix test to work with new jsdom restriction
...
since jsdom 21, it's no longer possible to mock window.location
See : https://github.com/jsdom/jsdom/issues/3492
2025-11-11 14:58:48 +11:00
Gaetan Craig-Riou
2729fb14d6
Fix jest configuration to work with version 28
...
Per migration guide : https://jest-archive-august-2023.netlify.app/docs/28.x/upgrading-to-jest28/
2025-11-11 14:58:43 +11:00
dependabot[bot]
5dab6f67f2
Bump jest from 27.5.1 to 30.2.0
...
Bumps [jest](https://github.com/jestjs/jest/tree/HEAD/packages/jest ) from 27.5.1 to 30.2.0.
- [Release notes](https://github.com/jestjs/jest/releases )
- [Changelog](https://github.com/jestjs/jest/blob/main/CHANGELOG.md )
- [Commits](https://github.com/jestjs/jest/commits/v30.2.0/packages/jest )
---
updated-dependencies:
- dependency-name: jest
dependency-version: 30.2.0
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-11 14:56:15 +11:00
dependabot[bot]
3aa48fcd18
Bump angular-rails-templates from 1.2.1 to 1.3.1
...
Bumps [angular-rails-templates](https://github.com/pitr/angular-rails-templates ) from 1.2.1 to 1.3.1.
- [Release notes](https://github.com/pitr/angular-rails-templates/releases )
- [Changelog](https://github.com/pitr/angular-rails-templates/blob/master/CHANGELOG.md )
- [Commits](https://github.com/pitr/angular-rails-templates/commits )
---
updated-dependencies:
- dependency-name: angular-rails-templates
dependency-version: 1.3.1
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-11 02:50:19 +00:00
dependabot[bot]
e5fd5a0d4c
Bump rswag-ui from 2.16.0 to 2.17.0
...
Bumps [rswag-ui](https://github.com/rswag/rswag ) from 2.16.0 to 2.17.0.
- [Release notes](https://github.com/rswag/rswag/releases )
- [Changelog](https://github.com/rswag/rswag/blob/2.17.0/CHANGELOG.md )
- [Commits](https://github.com/rswag/rswag/compare/2.16.0...2.17.0 )
---
updated-dependencies:
- dependency-name: rswag-ui
dependency-version: 2.17.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-11 02:48:08 +00:00
David Cook
ad5a22a69b
Merge pull request #13691 from rioug/fix-order-cycle-flaky-spec
...
Fix flaky spec
2025-11-11 13:47:41 +11:00
dependabot[bot]
43b3114237
Bump rails from 7.1.5.2 to 7.1.6
...
Bumps [rails](https://github.com/rails/rails ) from 7.1.5.2 to 7.1.6.
- [Release notes](https://github.com/rails/rails/releases )
- [Commits](https://github.com/rails/rails/compare/v7.1.5.2...v7.1.6 )
---
updated-dependencies:
- dependency-name: rails
dependency-version: 7.1.6
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-11 02:47:34 +00:00
dependabot[bot]
a83109cb05
Bump acts-as-taggable-on from 10.0.0 to 13.0.0
...
Bumps [acts-as-taggable-on](https://github.com/mbleigh/acts-as-taggable-on ) from 10.0.0 to 13.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/v10.0.0...v13.0.0 )
---
updated-dependencies:
- dependency-name: acts-as-taggable-on
dependency-version: 13.0.0
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-11 02:46:59 +00:00
David Cook
72327a352e
Merge pull request #13685 from deivid-rodriguez/no-raw-credit-card-data
...
Change CreditCardRemover specs to not send raw credit card data
2025-11-11 13:46:45 +11:00
David Cook
35ef895cff
Merge pull request #13677 from deivid-rodriguez/tweak-dependabot
...
Update turbo_power npm and rubygem packages together
2025-11-11 13:44:21 +11:00
David Cook
52e4293e90
Merge pull request #13673 from deivid-rodriguez/bump-state-machines
...
Bump state_machines related gems again
2025-11-11 13:22:53 +11:00
Gaetan Craig-Riou
460d109bd2
Update product ability
...
A user has product permission if it is a supplier of at least one of the
product's variants
2025-11-11 11:35:19 +11:00
Gaetan Craig-Riou
7d0f17fe1a
Merge pull request #13693 from openfoodfoundation/dependabot/npm_and_yarn/testing-library/dom-10.4.1
...
Bump @testing-library/dom from 9.3.4 to 10.4.1
2025-11-11 09:55:17 +11:00
Gaetan Craig-Riou
cff6fcf52e
Merge pull request #13697 from openfoodfoundation/dependabot/bundler/roadie-rails-3.4.0
...
Bump roadie-rails from 3.2.0 to 3.4.0
2025-11-11 09:50:52 +11:00
Gaetan Craig-Riou
4083aa82b8
Merge pull request #13696 from openfoodfoundation/dependabot/bundler/digest-3.2.1
...
Bump digest from 3.2.0 to 3.2.1
2025-11-11 09:47:02 +11:00
Gaetan Craig-Riou
ac61ef1f81
Merge pull request #13695 from openfoodfoundation/dependabot/bundler/paper_trail-17.0.0
...
Bump paper_trail from 15.1.0 to 17.0.0
2025-11-11 09:45:13 +11:00
Gaetan Craig-Riou
924c421b75
Merge pull request #13694 from openfoodfoundation/dependabot/bundler/devise-i18n-1.15.0
...
Bump devise-i18n from 1.12.1 to 1.15.0
2025-11-11 09:41:43 +11:00
dependabot[bot]
71262d18a0
Bump @testing-library/dom from 9.3.4 to 10.4.1
...
Bumps [@testing-library/dom](https://github.com/testing-library/dom-testing-library ) from 9.3.4 to 10.4.1.
- [Release notes](https://github.com/testing-library/dom-testing-library/releases )
- [Changelog](https://github.com/testing-library/dom-testing-library/blob/main/CHANGELOG.md )
- [Commits](https://github.com/testing-library/dom-testing-library/compare/v9.3.4...v10.4.1 )
---
updated-dependencies:
- dependency-name: "@testing-library/dom"
dependency-version: 10.4.1
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-10 22:41:11 +00:00
David Rodríguez
9645660d87
Fix tag rule visibility select box options hidden by save bar
2025-11-10 17:32:11 +01:00
filipefurtad0
f18487ea68
Update all locales with the latest Transifex translations
v5.3.5
2025-11-10 11:22:54 +00:00
dependabot[bot]
13a955d45a
Bump roadie-rails from 3.2.0 to 3.4.0
...
Bumps [roadie-rails](https://github.com/Mange/roadie-rails ) from 3.2.0 to 3.4.0.
- [Changelog](https://github.com/Mange/roadie-rails/blob/master/Changelog.md )
- [Commits](https://github.com/Mange/roadie-rails/compare/v3.2.0...v3.4.0 )
---
updated-dependencies:
- dependency-name: roadie-rails
dependency-version: 3.4.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-10 09:41:12 +00:00
dependabot[bot]
7a06c72534
Bump digest from 3.2.0 to 3.2.1
...
Bumps [digest](https://github.com/ruby/digest ) from 3.2.0 to 3.2.1.
- [Release notes](https://github.com/ruby/digest/releases )
- [Commits](https://github.com/ruby/digest/compare/v3.2.0...v3.2.1 )
---
updated-dependencies:
- dependency-name: digest
dependency-version: 3.2.1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-10 09:40:38 +00:00
dependabot[bot]
cdb572f347
Bump paper_trail from 15.1.0 to 17.0.0
...
Bumps [paper_trail](https://github.com/paper-trail-gem/paper_trail ) from 15.1.0 to 17.0.0.
- [Release notes](https://github.com/paper-trail-gem/paper_trail/releases )
- [Changelog](https://github.com/paper-trail-gem/paper_trail/blob/master/CHANGELOG.md )
- [Commits](https://github.com/paper-trail-gem/paper_trail/compare/v15.1.0...v17.0.0 )
---
updated-dependencies:
- dependency-name: paper_trail
dependency-version: 17.0.0
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-10 09:39:38 +00:00
dependabot[bot]
8f44b06244
Bump devise-i18n from 1.12.1 to 1.15.0
...
Bumps [devise-i18n](https://github.com/devise-i18n/devise-i18n ) from 1.12.1 to 1.15.0.
- [Release notes](https://github.com/devise-i18n/devise-i18n/releases )
- [Changelog](https://github.com/devise-i18n/devise-i18n/blob/master/CHANGELOG.md )
- [Commits](https://github.com/devise-i18n/devise-i18n/compare/v1.12.1...v1.15.0 )
---
updated-dependencies:
- dependency-name: devise-i18n
dependency-version: 1.15.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-10 09:39:04 +00:00
Gaetan Craig-Riou
e8b81c1ff6
Fix variant filtering
...
We don't want to filter out variant missing producer, so that the user
can address the problem.
2025-11-10 16:29:27 +11:00
Gaetan Craig-Riou
ab443fa50f
Refactor the clone template to use local variable
...
and add define locals on the template
2025-11-10 16:29:27 +11:00
Gaetan Craig-Riou
25d55fec24
Filter out variant the user is not allowed to update
...
With a product with mutiple variant, we can end in a scenario where a
user sees variant associated to producer it doesn't have permission for.
This prevents the user from updating any variant. This fix filter out
variant a user shoudn't be seeing
2025-11-10 16:29:27 +11:00
Gaetan Craig-Riou
61f8b5c7f4
Add strict locals for some products V3 templates
...
Rails now allows you to define which local a template is expecting:
https://edgeguides.rubyonrails.org/7_1_release_notes.html#allow-templates-to-set-strict-locals
2025-11-10 16:29:27 +11:00
Maikel
7c4714288d
Merge pull request #13675 from deivid-rodriguez/unify-linters
...
Unify linters and linter related tools
2025-11-10 16:24:36 +11:00
Maikel
b6e393eabb
Merge pull request #13662 from filipefurtad0/spec_deprecation_nil_in_sum
...
Catches exceptions on final_weight_volume inputs
2025-11-10 15:25:49 +11:00
Gaetan Craig-Riou
d18aeb9918
Merge pull request #13687 from openfoodfoundation/dependabot/bundler/openid_connect-2.3.1
...
Bump openid_connect from 2.3.0 to 2.3.1
2025-11-10 15:15:32 +11:00