Yasuhiro Yoshida
8090945c34
Change visibilities of hubs on group page
...
Issue:
https://github.com/openfoodfoundation/openfoodnetwork/issues/5106
Hubs on group page for consumers are displayed unconditionally.
But they should only appear under the following conditions: Visible.
In addition, those that are active should only be filled with red color
when they have open order cycles.
This commit apply these rules and changes the visibility of each hub on
"Our Hubs" tab of group page for consumers accordingly.
2021-09-17 17:12:08 +03:00
Meron Ogbai
d73df78f43
Extract gateway_params to a private method
2021-09-17 16:48:53 +03:00
dependabot[bot]
d086f7694a
Bump bootsnap from 1.8.1 to 1.9.0
...
Bumps [bootsnap](https://github.com/Shopify/bootsnap ) from 1.8.1 to 1.9.0.
- [Release notes](https://github.com/Shopify/bootsnap/releases )
- [Changelog](https://github.com/Shopify/bootsnap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Shopify/bootsnap/compare/v1.8.1...v1.9.0 )
---
updated-dependencies:
- dependency-name: bootsnap
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-09-17 09:02:52 +00:00
dependabot[bot]
b2fb0366f7
Bump @rails/webpacker from 5.4.2 to 5.4.3
...
Bumps [@rails/webpacker](https://github.com/rails/webpacker ) from 5.4.2 to 5.4.3.
- [Release notes](https://github.com/rails/webpacker/releases )
- [Changelog](https://github.com/rails/webpacker/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rails/webpacker/compare/v5.4.2...v5.4.3 )
---
updated-dependencies:
- dependency-name: "@rails/webpacker"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-09-17 08:53:44 +00:00
Matt-Yorkley
f4c86a1b51
Merge pull request #8061 from Matt-Yorkley/turbo-checkout
...
Split Checkout new toys
2021-09-17 10:48:59 +02:00
Matt-Yorkley
02bcb7bcc7
Merge pull request #8192 from Matt-Yorkley/orders-path-issue
...
Fix order_path issue in cart page
2021-09-16 16:16:36 +02:00
Matt-Yorkley
d55a3f3340
Bump Turbo
2021-09-16 14:12:31 +01:00
Matt-Yorkley
47346e9f2c
Uncomment ActionCable in application.rb
...
We're not directly utilising it yet, but CableReady expects it to be loaded.
2021-09-15 18:52:24 +01:00
Andy Brett
f28200164b
Merge pull request #8154 from meronokbay/8098-custom-modal-order-deletion
...
Replaced the default alert and confirm modals in the order page by custom modals
2021-09-15 09:22:58 -07:00
Andy Brett
6e674b47ac
Merge pull request #8153 from sinansonmez/6140-change-profile-link-based-on-enterprise-profile
...
update profile link based on enterprise profile
2021-09-15 09:22:03 -07:00
Matt-Yorkley
0c879dc4c9
Fix order_path issue in cart page
...
The order_path route wasn't being inferred correctly from this Spree controller, causing errors to be thrown in the cart page if the number of editable orders was precisely one:
ActionView::Template::Error: undefined method `order_path'
2021-09-15 10:54:59 +01:00
dependabot[bot]
a1f7d8753b
Bump webpacker from 5.4.2 to 5.4.3
...
Bumps [webpacker](https://github.com/rails/webpacker ) from 5.4.2 to 5.4.3.
- [Release notes](https://github.com/rails/webpacker/releases )
- [Changelog](https://github.com/rails/webpacker/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rails/webpacker/compare/v5.4.2...v5.4.3 )
---
updated-dependencies:
- dependency-name: webpacker
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-09-15 09:03:58 +00:00
Nihal M. Kelanthodika
9d216f0cea
Merge pull request #8160 from apricot12/8019-Delivery_report
...
Show order total in Delivery/Payment Method reports instead of first …
2021-09-15 13:11:43 +05:30
Maikel
16aeb16519
Merge pull request #8172 from openfoodfoundation/dependabot/bundler/activemerchant-1.123.0
...
Bump activemerchant from 1.121.0 to 1.123.0
2021-09-15 17:14:29 +10:00
Andy Brett
2f5f2a03dd
Merge pull request #8182 from openfoodfoundation/dependabot/bundler/test-unit-3.4.7
...
Bump test-unit from 3.4.6 to 3.4.7
2021-09-14 11:02:48 -07:00
Andy Brett
8c78316718
Merge pull request #8181 from openfoodfoundation/dependabot/bundler/rubocop-1.21.0
...
Bump rubocop from 1.20.0 to 1.21.0
2021-09-14 11:02:19 -07:00
dependabot[bot]
841a7a31fa
Bump test-unit from 3.4.6 to 3.4.7
...
Bumps [test-unit](https://github.com/test-unit/test-unit ) from 3.4.6 to 3.4.7.
- [Release notes](https://github.com/test-unit/test-unit/releases )
- [Commits](https://github.com/test-unit/test-unit/compare/3.4.6...3.4.7 )
---
updated-dependencies:
- dependency-name: test-unit
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-09-14 09:03:26 +00:00
dependabot[bot]
6d9173deba
Bump rubocop from 1.20.0 to 1.21.0
...
Bumps [rubocop](https://github.com/rubocop/rubocop ) from 1.20.0 to 1.21.0.
- [Release notes](https://github.com/rubocop/rubocop/releases )
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop/rubocop/compare/v1.20.0...v1.21.0 )
---
updated-dependencies:
- dependency-name: rubocop
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-09-14 09:02:19 +00:00
Jean-Baptiste Bellet
ba09618374
Avoid rounded with float numbers errors with javascript
...
0.7/0.001 = 699.9999999999999
Use Math.round() to avoid this.
2021-09-14 10:45:31 +02:00
Andy Brett
82a8eed652
Merge pull request #8165 from openfoodfoundation/dependabot/bundler/view_component-2.40.0
...
Bump view_component from 2.39.0 to 2.40.0
2021-09-13 15:26:55 -07:00
Andy Brett
77ca05ebe5
Merge pull request #8175 from openfoodfoundation/dependabot/npm_and_yarn/jest-27.2.0
...
Bump jest from 27.1.1 to 27.2.0
2021-09-13 15:26:31 -07:00
Andy Brett
da912d2fdf
Merge pull request #8173 from openfoodfoundation/dependabot/bundler/test-unit-3.4.6
...
Bump test-unit from 3.4.5 to 3.4.6
2021-09-13 15:26:08 -07:00
Andy Brett
297dc56fe5
Merge pull request #8174 from openfoodfoundation/dependabot/bundler/rubocop-rails-2.12.2
...
Bump rubocop-rails from 2.12.0 to 2.12.2
2021-09-13 15:25:45 -07:00
dependabot[bot]
b0b91c959e
Bump jest from 27.1.1 to 27.2.0
...
Bumps [jest](https://github.com/facebook/jest ) from 27.1.1 to 27.2.0.
- [Release notes](https://github.com/facebook/jest/releases )
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md )
- [Commits](https://github.com/facebook/jest/compare/v27.1.1...v27.2.0 )
---
updated-dependencies:
- dependency-name: jest
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-09-13 09:09:54 +00:00
dependabot[bot]
a7e9acd435
Bump rubocop-rails from 2.12.0 to 2.12.2
...
Bumps [rubocop-rails](https://github.com/rubocop/rubocop-rails ) from 2.12.0 to 2.12.2.
- [Release notes](https://github.com/rubocop/rubocop-rails/releases )
- [Changelog](https://github.com/rubocop/rubocop-rails/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop/rubocop-rails/compare/v2.12.0...v2.12.2 )
---
updated-dependencies:
- dependency-name: rubocop-rails
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-09-13 09:05:04 +00:00
dependabot[bot]
d75b03debd
Bump test-unit from 3.4.5 to 3.4.6
...
Bumps [test-unit](https://github.com/test-unit/test-unit ) from 3.4.5 to 3.4.6.
- [Release notes](https://github.com/test-unit/test-unit/releases )
- [Commits](https://github.com/test-unit/test-unit/compare/3.4.5...3.4.6 )
---
updated-dependencies:
- dependency-name: test-unit
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-09-13 09:04:26 +00:00
dependabot[bot]
685a3eb14f
Bump activemerchant from 1.121.0 to 1.123.0
...
Bumps [activemerchant](https://github.com/activemerchant/active_merchant ) from 1.121.0 to 1.123.0.
- [Release notes](https://github.com/activemerchant/active_merchant/releases )
- [Changelog](https://github.com/activemerchant/active_merchant/blob/master/CHANGELOG )
- [Commits](https://github.com/activemerchant/active_merchant/compare/v1.121.0...v1.123.0 )
---
updated-dependencies:
- dependency-name: activemerchant
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-09-13 09:02:43 +00:00
Nihal
757b7513ef
Migrate Pin gateway peyments to check
2021-09-11 16:52:32 +05:30
Meron Ogbai
94ff59ebab
Make order spec click clearer
2021-09-11 13:37:14 +03:00
Meron Ogbai
a065a92616
Reorganize alert and confirm code
2021-09-11 13:36:28 +03:00
Meron Ogbai
aed84912a3
Use selector to get del element
2021-09-11 13:10:33 +03:00
Andy Brett
1ec9cce439
Merge pull request #8163 from mkllnk/migration-specs
...
Remove problematic migration spec
2021-09-10 10:32:29 -07:00
Nihal M. Kelanthodika
5811b6e3d1
Merge pull request #8064 from apricot12/Kill_stripe_connect
...
Kill stripe connect
2021-09-10 22:57:00 +05:30
Nihal
98a879a0e9
Restore removed spec to profile_storer_spec
2021-09-10 14:43:34 +05:30
Nihal Mohammed
98ff3980f8
Migration of StripeConnect to StripeSCA
2021-09-10 14:43:34 +05:30
Nihal Mohammed
eb17c208f9
Update stripe_stubs to handle stripeSCA
2021-09-10 14:43:34 +05:30
Nihal Mohammed
fa9f6432c3
Fix profile_storer.rb and profile_storer_spec
2021-09-10 14:43:34 +05:30
Nihal Mohammed
6ac835de2e
Fix response for payment_profile_id in profile_storer.rb
2021-09-10 14:43:34 +05:30
Nihal Mohammed
696d434979
Removed stripe connect example and fixed JSON generation in profile_storer spec
2021-09-10 14:43:34 +05:30
Nihal Mohammed
48c1312cea
Remove expectation to generate clean name for StripeConnect from payment_method_spec
2021-09-10 14:43:34 +05:30
Luis Ramos
0c240cee9a
A few more removals of stripe connect related code
2021-09-10 14:43:34 +05:30
Luis Ramos
f90e34bb47
Adapt specs to use stripe_sca_payment_method factory and delete stripe_connect_payment_method
2021-09-10 14:43:34 +05:30
Luis Ramos
9de9b41575
Remove stripe connect spec, there's a similar spec for stripesca below
2021-09-10 14:43:34 +05:30
Luis Ramos
60a8ae6675
Remove Stripe Connect gateway and related code
2021-09-10 14:43:24 +05:30
Luis Ramos
5434b51f75
Switch filter to StripeSCA, this must have been an error, must be tested (manually or automatically)
2021-09-10 14:41:06 +05:30
dependabot[bot]
93118f9c32
Bump view_component from 2.39.0 to 2.40.0
...
Bumps [view_component](https://github.com/github/view_component ) from 2.39.0 to 2.40.0.
- [Release notes](https://github.com/github/view_component/releases )
- [Changelog](https://github.com/github/view_component/blob/main/docs/CHANGELOG.md )
- [Commits](https://github.com/github/view_component/compare/v2.39.0...v2.40.0 )
---
updated-dependencies:
- dependency-name: view_component
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-09-10 09:02:41 +00:00
Nihal
43e6d1b933
Show order total in Delivery/Payment Method reports instead of first payment
2021-09-10 13:08:00 +05:30
Maikel Linke
10c2a1c55c
Remove problematic migration spec
...
Unfortunately, loading the migration code also reloads some Spree models
which causes errors later on. Another spec was failing with:
1) full-page cart viewing the cart when a product is soft-deleted shows the cart without errors
Failure/Error: variant.instance_variable_set :@hub, @hub
FrozenError:
can't modify frozen NilClass: nil
# ./lib/open_food_network/scope_variant_to_hub.rb:12:in `instance_variable_set'
The command to reproduce was:
rspec ./spec/features/consumer/shopping/cart_spec.rb[1:1:3:1]\
./spec/migrations/migrate_enterprise_fee_tax_amounts_spec.rb[1:1:1:1] --seed 0
I couldn't find a quick solution to make the migration not use app code.
Since the migration is a historical record now, it doesn't need repeated
testing.
2021-09-10 16:19:40 +10:00
Maikel
9affc6a945
Merge pull request #8108 from Matt-Yorkley/andand
...
Remove `andand` gem
2021-09-10 15:06:00 +10:00
Maikel Linke
e013d81e3d
Simplify safe navigation operator use < and []
2021-09-10 14:40:46 +10:00