Ahmed Ejaz
913dded766
Refactor order cycle handling to simplify closed cycle checks and improve redirection messaging
2025-11-05 02:50:01 +05:00
filipefurtad0
a36b7ce01a
deletes all old VCR cassettes
2025-11-04 15:40:45 +00:00
David Cook
e4be336630
Bump Stripe to v13
2025-11-04 15:36:53 +00:00
David Cook
cae13df2c7
Bump Stripe to v12
...
re-recording cassettes with script/test-stripe-live
2025-11-04 15:32:05 +00:00
David Cook
81796db6e5
Fix date-dependent spec
2025-11-04 15:17:45 +00:00
David Cook
ba3553854e
Allow script to continue if you've already deleted the old files
2025-11-04 15:17:45 +00:00
David Rodríguez
c386d1af01
Remove debugger-linecache
...
This gem has not been updated since 2013 and serves no purpose these
days.
2025-11-04 10:22:37 +01:00
David Rodríguez
9566075dee
Tweak Dependabot config
2025-11-04 08:57:10 +01:00
dependabot[bot]
9916b361e4
Bump turbo_power from 0.6.2 to 0.7.0
...
Bumps [turbo_power](https://github.com/marcoroth/turbo_power-rails ) from 0.6.2 to 0.7.0.
- [Release notes](https://github.com/marcoroth/turbo_power-rails/releases )
- [Commits](https://github.com/marcoroth/turbo_power-rails/compare/v0.6.2...v0.7.0 )
---
updated-dependencies:
- dependency-name: turbo_power
dependency-version: 0.7.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-03 11:05:43 +00:00
François Turbelin
b2d7d797d9
Use wrap_parameters to handle address params on Customer v1 API
2025-11-03 11:35:39 +01:00
David Rodríguez
7076afecfb
Bump state_machines related gems again
...
This fixes warnings like
```
$ bundle exec rspec spec/system/admin/users_spec.rb:179
(...)
Instance method "invalid?" is already defined in Spree::Payment(id: integer, amount: decimal, order_id: integer, created_at: datetime, updated_at: datetime, source_id: integer, source_type: string, payment_method_id: integer, state: string, response_code: string, avs_response: string, identifier: string, cvv_response_code: string, cvv_response_message: text, captured_at: datetime, redirect_auth_url: string),
use generic helper instead or set StateMachines::Machine.ignore_method_conflicts = true.
(...)
```
2025-11-03 10:56:16 +01:00
François Turbelin
e385b9f708
Revert "Use customer-nested params for Customer v1 API writing operations"
...
This reverts commit cf4cd311b3 .
2025-11-03 10:32:26 +01:00
dependabot[bot]
2b9b02aeea
Bump i18n-tasks from 1.0.14 to 1.0.15
...
Bumps [i18n-tasks](https://github.com/glebm/i18n-tasks ) from 1.0.14 to 1.0.15.
- [Release notes](https://github.com/glebm/i18n-tasks/releases )
- [Changelog](https://github.com/glebm/i18n-tasks/blob/main/CHANGES.md )
- [Commits](https://github.com/glebm/i18n-tasks/compare/v1.0.14...v1.0.15 )
---
updated-dependencies:
- dependency-name: i18n-tasks
dependency-version: 1.0.15
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-03 09:06:01 +00:00
dependabot[bot]
009b5e5ff1
Bump flipper-ui from 1.3.0 to 1.3.6
...
Bumps [flipper-ui](https://github.com/flippercloud/flipper ) from 1.3.0 to 1.3.6.
- [Release notes](https://github.com/flippercloud/flipper/releases )
- [Changelog](https://github.com/flippercloud/flipper/blob/main/Changelog.md )
- [Commits](https://github.com/flippercloud/flipper/compare/v1.3.0...v1.3.6 )
---
updated-dependencies:
- dependency-name: flipper-ui
dependency-version: 1.3.6
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-03 17:31:57 +11:00
dependabot[bot]
7c310e7e46
Bump turbo_power from 0.7.0 to 0.7.1
...
Bumps [turbo_power](https://github.com/marcoroth/turbo_power ) from 0.7.0 to 0.7.1.
- [Release notes](https://github.com/marcoroth/turbo_power/releases )
- [Commits](https://github.com/marcoroth/turbo_power/compare/v0.7.0...v0.7.1 )
---
updated-dependencies:
- dependency-name: turbo_power
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-03 05:17:35 +00:00
Gaetan Craig-Riou
bd0db57768
Per review, more concise code
2025-11-03 15:58:27 +11:00
Gaetan Craig-Riou
bb8ecccc31
Fix variant tag rules endpoint
...
It now returns tag rules filtered on the preferred variant tags and not
the prefered customer tags
2025-11-03 15:50:12 +11:00
Gaetan Craig-Riou
ffd5817749
Add spec for variant_tag_rules
2025-11-03 14:25:48 +11:00
Gaetan Craig-Riou
1a68236c3c
Add variant_tag_rule ability
...
It's needed to allow enterprise user to get a tag autocomplete. Classic
mistake of not testing with a non superadmin user.
2025-11-03 14:25:48 +11:00
Gaetan Craig-Riou
c057bab493
Use route helpers for autocomplete url
...
Co-authored-by: Maikel <maikel@email.org.au >
2025-11-03 14:25:48 +11:00
Gaetan Craig-Riou
59340c7cff
Per review, remove unnecessary new translation
2025-11-03 14:25:48 +11:00
Gaetan Craig-Riou
aebb18da99
Per review, improve specs
2025-11-03 14:25:48 +11:00
Gaetan Craig-Riou
ce60335a60
Per review, fix leftover comment
2025-11-03 14:25:48 +11:00
Gaetan Craig-Riou
307acdd9d1
Per review, fixing specs descriptions
2025-11-03 14:25:48 +11:00
Gaetan Craig-Riou
d51e257904
Fix order cycle tag rule specs
...
It works better when you actually save the changes to the tag_list...
2025-11-03 14:25:48 +11:00
Gaetan Craig-Riou
07a3e83dc6
Fix enterprise specs
...
Plus small refactor
2025-11-03 14:25:48 +11:00
Gaetan Craig-Riou
38f58b168a
Fix tag rules spec
...
Make sure the autocomplete dropdown list is hidden by default
2025-11-03 14:25:48 +11:00
Gaetan Craig-Riou
34abca5ff1
Add missing js unit test got TagListInput component
2025-11-03 14:25:48 +11:00
Gaetan Craig-Riou
145764a921
Add testing library
...
See :https://testing-library.com/docs/
It allows us to query DOM node in way that's similar to how a user would
interect with element on the page. It's particularly usefull for
elements that trigger AJAX request.
2025-11-03 14:25:40 +11:00
Gaetan Craig-Riou
9bbe573335
Fix test to match the improved controller
2025-11-03 14:25:05 +11:00
Gaetan Craig-Riou
c5d5694f24
Tweaked jest configuration
...
- include app/components in the directories to search for modules, ie we
can require view component js controller like this :
`import tag_list_input_controller from "tag_list_input_component/tag_list_input_controller";`
- fixed the regexp to skip transformation so it skips any modules
starting by "stimulus"
2025-11-03 14:25:05 +11:00
Gaetan Craig-Riou
ab194a0e80
Add styling for the dropdown
...
It's mostly the same styling as the AngularJs version but with updated
colors
2025-11-03 14:25:05 +11:00
Gaetan Craig-Riou
749944fc25
Rework TagListInputComponent to integrate autocomplete
...
The component now will try to load a list of existing tag if you give an
`autocomplete_url`. I tried to keep the tag input and the autocomplete
functionality decoupled but is wasn't really possible. Instead I opted
to sub class the Autocomplete stimulus controller, but it only gets
initialised if we pass an `autocomplete_url`.
2025-11-03 14:25:05 +11:00
Gaetan Craig-Riou
3cffc5538a
Add tag filtering for tag autocomplete
2025-11-03 14:25:05 +11:00
Gaetan Craig-Riou
6d7908e1f8
Style formatting
2025-11-03 14:25:05 +11:00
Gaetan Craig-Riou
965b34318f
Add new component to provide tag autocomplete for variant tag
...
It uses composition and inject the TagListInputComponent as a depency,
which should be more flexible that creating a sub class. This new
component could potentially be made more generic if needed
2025-11-03 14:25:05 +11:00
Gaetan Craig-Riou
3bb9eb9765
Add endpoint to provide autocomplete tag for variant
...
It return a list of available tags and number of related rules, based on
the given enterprise and a partial match on the given tag
2025-11-03 14:25:05 +11:00
Gaetan Craig-Riou
bd39595917
Add ability to pass option to the tag input field
...
And also render any content given to the component via block
2025-11-03 14:25:05 +11:00
Gaetan Craig-Riou
81e16a9cdf
Add stimulus-autocomplete package
...
https://github.com/afcapel/stimulus-autocomplete/tree/main
2025-11-03 14:25:05 +11:00
Gaetan Craig-Riou
c38c8bcff2
Pass the variant_tag_enbabled options to relevant services
...
Plus add integration testing for variant tag rule filtering.
2025-11-03 14:25:05 +11:00
Gaetan Craig-Riou
7633af8ff2
Call VariantTagRulesFilterer when variant_tag feature is enabled
...
We only support either inventory or variant_tag feature, with the later
taking precedence if both are turned on.
2025-11-03 14:25:05 +11:00
Gaetan Craig-Riou
94c0ebd897
Fix error in the muliple tag rules spec
2025-11-03 14:25:05 +11:00
Gaetan Craig-Riou
7b3db4bae4
Add VariantTagRuleFilterer to filter variants by tag rule
2025-11-03 14:25:05 +11:00
Gaetan Craig-Riou
b1d95cac7f
Display filter by variant tag rule
...
We only support one of filter by inventory variants or filter by variants
at any given time, based on enabled feature. If both features inventory
and variant tag are enabled, variant tag takes precedence.
2025-11-03 14:25:05 +11:00
Gaetan Craig-Riou
3f297a8afa
Add tag rule to filter by variant
2025-11-03 14:25:05 +11:00
Gaetan Craig-Riou
af111a9625
Clean up tag rules specs
...
Remove unnecessary use mocking and use of `__send__`
2025-11-03 14:25:05 +11:00
Gaetan Craig-Riou
96f715b62b
Merge pull request #13661 from deivid-rodriguez/ruby-3.2
...
Bump Ruby from 3.1.7 to 3.2.9
2025-11-03 13:29:40 +11:00
Maikel
33b4e38fc5
Merge pull request #13664 from openfoodfoundation/dependabot/npm_and_yarn/jasmine-core-5.12.1
...
Bump jasmine-core from 5.12.0 to 5.12.1
2025-11-03 13:11:49 +11:00
Maikel
27e4ae9892
Merge pull request #13639 from deivid-rodriguez/verify-latest-reviewdog
...
Upgrade to latest reviewdog
2025-11-03 12:28:01 +11:00
Gaetan Craig-Riou
f434d8b066
Merge pull request #13658 from openfoodfoundation/dependabot/bundler/paranoia-2.6.4
...
Bump paranoia from 2.6.3 to 2.6.4
2025-11-03 12:05:44 +11:00