Matt-Yorkley
50ab0731d7
Bump nokogiri to 1.13.2
2022-02-26 14:39:56 +00:00
Matt-Yorkley
0b616aa9ce
Update all locales with the latest Transifex translations
2022-02-24 23:34:16 +00:00
Filipe
36e3f1b7a6
Merge pull request #8883 from jibees/8475-send-email-when-payment-needs-authorization
...
Backoffice order, using stripe payment: when card requires auth, send authorization email to guest user
2022-02-24 13:07:31 +00:00
Matt-Yorkley
d945e69404
Merge pull request #8918 from openfoodfoundation/dependabot/npm_and_yarn/url-parse-1.5.7
...
Bump url-parse from 1.5.3 to 1.5.7
2022-02-22 08:17:02 +00:00
Filipe
385cd49964
Merge pull request #8876 from SarvarKh/product-import-validation
...
Fix product import on existing, empty unit_type and variant_unit
2022-02-21 23:20:04 +00:00
Filipe
28ac9d980c
Merge pull request #8849 from jibees/render-pdf-with-stylesheet
...
Create a new method pdf_stylesheet_pack_tag that actually include CSS in PDF files
2022-02-21 23:09:21 +00:00
Filipe
dbf5eb76f8
Merge pull request #8689 from apricot12/Transaction_fee_when_crediting
...
Revoke transaction fee if there is an amount to be credited in order
2022-02-21 20:30:19 +00:00
Filipe
89dc9b938b
Merge pull request #8864 from jibees/7934-display-tax-rate-for-shipping-on-invoice
...
Display tax rate for shipping in alternative invoice model
2022-02-21 20:02:44 +00:00
Filipe
7590b3ecf8
Merge pull request #8756 from jibees/8075-take-into-account-the-inherits_properties-attribute
...
Product that don't inherits from "producer"/"enterprise" properties should be filtered out by user on shop page
2022-02-21 19:04:08 +00:00
Filipe
9966b5b33c
Merge pull request #8565 from jibees/8171-group-by-imperial-unit
...
Handle imperial units in the Bulk Order Management interface
2022-02-21 14:47:38 +00:00
dependabot[bot]
07d20d2ba0
Bump url-parse from 1.5.3 to 1.5.7
...
Bumps [url-parse](https://github.com/unshiftio/url-parse ) from 1.5.3 to 1.5.7.
- [Release notes](https://github.com/unshiftio/url-parse/releases )
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.3...1.5.7 )
---
updated-dependencies:
- dependency-name: url-parse
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-19 09:25:58 +00:00
Matt-Yorkley
6c695df917
Merge pull request #8895 from Matt-Yorkley/cloned-subscription-syncing
...
Sync subscriptions on newly-cloned order cycles
2022-02-17 12:44:39 +00:00
Matt-Yorkley
9a27addd14
Merge pull request #8763 from openfoodfoundation/8577-split-name-column-in-customers-table
...
Split name column in customers table
2022-02-17 11:57:01 +00:00
Filipe
a6c5d8ca73
Merge pull request #8673 from filipefurtad0/split_checkout_auth_spec
...
Adds split-checkout toggling lines
2022-02-17 11:10:44 +00:00
Filipe
4dbf047647
Merge pull request #8871 from jibees/8827-preselect-shipping-method
...
SplitCheckout: preselect the shipping/payment method if the only one available
2022-02-17 10:54:20 +00:00
Jean-Baptiste Bellet
bcd306ebd4
Authorize payment email could be send to guest user
...
Always send the email to the order.email value
2022-02-17 09:40:28 +01:00
Jean-Baptiste Bellet
012e91879a
preselect the only available shipping method
2022-02-17 09:33:23 +01:00
Jean-Baptiste Bellet
716286497e
Add test to cover "preselect the shipping method" if only one is available
...
+ do not preselect if more than one are available
2022-02-17 09:33:23 +01:00
Jean-Baptiste Bellet
7be2f418d0
preselect the only available payment method
2022-02-17 09:33:23 +01:00
Jean-Baptiste Bellet
0e053a2601
Add test to cover "preselect the payment method" if only one is available
...
+ do not preselect if more than one
2022-02-17 09:33:23 +01:00
Matt-Yorkley
00fa84e3b5
Sync when switching from nil dates to open
2022-02-16 21:45:43 +00:00
Matt-Yorkley
5913720c85
Sync for both open and upcoming OCs when switching from closed
2022-02-16 18:33:09 +00:00
Matt-Yorkley
4592827261
Sync OC subscriptions if transitioning from closed to open
2022-02-16 13:03:27 +00:00
Matt-Yorkley
4260422ea7
Remove a couple of unnecessary memory assignments
2022-02-16 12:55:19 +00:00
Matt-Yorkley
d4488fdb3f
Return early if OC is closed
2022-02-16 12:53:22 +00:00
Matt-Yorkley
8c8b9d1b23
Sync subscriptions on newly-cloned order cycles
2022-02-16 10:44:22 +00:00
SarvarKhalimov
22de758e3a
Add spec for product import validation
2022-02-16 14:17:35 +05:00
Maikel Linke
33969de371
Allow shared_examples to have more than 25 lines
2022-02-16 11:41:28 +11:00
Maikel Linke
a6dee77071
Style
2022-02-16 10:33:49 +11:00
filipefurtad0
78946f908a
Adds shared examples; sets conditional filters on test cases
2022-02-15 23:23:31 +00:00
Matt-Yorkley
4c50ca69ea
Improve data migration logic and add test coverage
2022-02-16 10:23:24 +11:00
Matt-Yorkley
fd815a6af6
Don't change Customer factory name generating logic
2022-02-16 10:23:24 +11:00
Matt-Yorkley
feaa92406a
Split migration into two parts for easier testing
2022-02-16 10:23:24 +11:00
Maikel Linke
68193efcf6
Keep old customers.name column for compatibilty
...
Our app code will try to access the old attribute while the migration is
running. That would lead to errors during checkout.
2022-02-16 10:23:24 +11:00
François Turbelin
9a12957e27
Handle the empty-space name on customers
2022-02-16 10:23:23 +11:00
François Turbelin
de4d074cb3
Remove bill_address fetching logic
2022-02-16 10:23:23 +11:00
Maikel Linke
d09ba16411
Associate customers again
...
And simplify the before_validation actions.
2022-02-16 10:23:23 +11:00
Maikel Linke
07314af3f6
Spec customer record association more realistically
...
The newly added specs were tested on the master branch and passed. But
the previous commit broke one test case which I marked as pending here.
The removed specs are completely replaced by the new ones. Their main
downside was to test only small bits of internal behaviour without
considering the whole callback chain of the order. The new specs are
more realistic and catch bugs like mentioned above.
2022-02-16 10:23:23 +11:00
François Turbelin
554a8625e5
Refactor ensure_customer method
2022-02-16 10:23:23 +11:00
François Turbelin
5c9dd81595
Deal with nil attirubtes on bill_address
2022-02-16 10:23:23 +11:00
François Turbelin
6d986deb2d
Remove translation changes from locale file
2022-02-16 10:23:23 +11:00
François Turbelin
4cb31d04a7
Repair specs with default values on ensure_customer method
2022-02-16 10:23:23 +11:00
François Turbelin
50302163c0
Update migration with better logic and cosmetics
2022-02-16 10:23:23 +11:00
François Turbelin
9682b9256b
Arrange classes loading for good migration
2022-02-16 10:23:23 +11:00
François Turbelin
d016c47789
Refactor data migration to use data sets
2022-02-16 10:23:23 +11:00
François Turbelin
b8afb7ec4d
Add default values for new fields
2022-02-16 10:23:23 +11:00
François Turbelin
836a60a6c7
Add missing full_name bind to subscriptions serializer
2022-02-16 10:23:23 +11:00
François Turbelin
23776c7a3e
Fix more specs
2022-02-16 10:23:23 +11:00
François Turbelin
75345a95af
Update customer factory
2022-02-16 10:23:22 +11:00
François Turbelin
eefd9891d6
Add en translations
2022-02-16 10:23:22 +11:00
François Turbelin
7c25127ab6
Improve first_name and last_name setup
2022-02-16 10:23:22 +11:00
Adrien Chauve
ca46359224
More fixes
2022-02-16 10:23:22 +11:00
Adrien Chauve
9b93102a96
More fixes
2022-02-16 10:23:22 +11:00
Adrien Chauve
ba6523bb76
Add Customer.full_name
2022-02-16 10:23:22 +11:00
Adrien Chauve
5ca4d549e7
Update customer creation
2022-02-16 10:23:22 +11:00
Adrien Chauve
d0f347efaa
Add migration to split Customers.name into first and last names
2022-02-16 10:23:22 +11:00
Jean-Baptiste Bellet
405b7e6e17
Handle tax rates for ShippingMethod
...
Co-Authored-By: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com >
2022-02-15 15:16:58 +01:00
Matt-Yorkley
711a51f2ff
Remove .eligible scope
...
In this case we actually expect there to be no payment fee adjustments at all on the payment, regardless of their eligibility.
2022-02-15 12:24:28 +00:00
Matt-Yorkley
5fba7811c4
Remove #try
...
#try is useful when the object might be nil or might not respond to the given method. In this case we expect it to exist and respond to #finalized?, so this is a bit more precise.
2022-02-15 12:21:34 +00:00
Matt-Yorkley
5be1b139b9
Replace .stub with expect(x).to receive(:y)
...
The #stub method is slightly deprecated syntax. Using #expect has the additional benefit here of failing if the object does not receive the expected method call.
2022-02-15 12:19:15 +00:00
Matt-Yorkley
8084ad0068
Extract a comment-method so the code conveys it's purpose
2022-02-15 12:17:08 +00:00
Nihal M. Kelanthodika
b017420319
Add specs to check ensure payment method fee is not applied when crediting/refunding order
2022-02-15 11:52:26 +00:00
Nihal M. Kelanthodika
9215ccc353
Prevents creation of payment adnustment when refunding or crediting an order
2022-02-15 11:52:26 +00:00
Matt-Yorkley
7c7a09a75c
Merge pull request #8880 from openfoodfoundation/dependabot/npm_and_yarn/storybook/addon-controls-6.4.19
...
Bump @storybook/addon-controls from 6.4.18 to 6.4.19
2022-02-15 11:33:04 +00:00
Matt-Yorkley
0d2374f07e
Merge pull request #8881 from openfoodfoundation/dependabot/npm_and_yarn/storybook/server-6.4.19
...
Bump @storybook/server from 6.4.18 to 6.4.19
2022-02-15 11:32:47 +00:00
dependabot[bot]
1b7d72ffa7
Bump @storybook/server from 6.4.18 to 6.4.19
...
Bumps [@storybook/server](https://github.com/storybookjs/storybook/tree/HEAD/app/server ) from 6.4.18 to 6.4.19.
- [Release notes](https://github.com/storybookjs/storybook/releases )
- [Changelog](https://github.com/storybookjs/storybook/blob/v6.4.19/CHANGELOG.md )
- [Commits](https://github.com/storybookjs/storybook/commits/v6.4.19/app/server )
---
updated-dependencies:
- dependency-name: "@storybook/server"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-15 11:32:14 +00:00
dependabot[bot]
2952b0582a
Bump @storybook/addon-controls from 6.4.18 to 6.4.19
...
Bumps [@storybook/addon-controls](https://github.com/storybookjs/storybook/tree/HEAD/addons/controls ) from 6.4.18 to 6.4.19.
- [Release notes](https://github.com/storybookjs/storybook/releases )
- [Changelog](https://github.com/storybookjs/storybook/blob/v6.4.19/CHANGELOG.md )
- [Commits](https://github.com/storybookjs/storybook/commits/v6.4.19/addons/controls )
---
updated-dependencies:
- dependency-name: "@storybook/addon-controls"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-15 11:31:49 +00:00
Matt-Yorkley
4726e7a8a4
Merge pull request #8879 from openfoodfoundation/dependabot/npm_and_yarn/storybook/addon-docs-6.4.19
...
Bump @storybook/addon-docs from 6.4.18 to 6.4.19
2022-02-15 11:31:00 +00:00
Matt-Yorkley
46c0baee4f
Merge pull request #8885 from jibees/8882-handle-webpacker-error-for-email
...
Modify assets builder to get CSS inside emails when running in development mode
2022-02-15 11:23:42 +00:00
Maikel Linke
1d5ebe42a9
Update translations
2022-02-15 10:50:01 +11:00
Filipe
e9e5ad2221
Merge pull request #8865 from jibees/8769-use-the-user-in-the-request-to-check-flipper-constraint
...
Use the user in the request to check flipper constraint for split checkout urls
2022-02-14 19:38:27 +00:00
SarvarKhalimov
d69f42e940
Update app/models/product_import/entry_validator.rb
...
Co-authored-by: Maikel <maikel@email.org.au >
2022-02-15 00:10:32 +05:00
Filipe
2de2703e1f
Merge pull request #8868 from jibees/8852-improve-total-cell-design-on-order-summary-table
...
SplitCheckout : Improve design of the order summary table
2022-02-14 18:48:20 +00:00
Filipe
a9d7fa473e
Merge pull request #8870 from jibees/8853-handle-back-button-on-summary-page-for-the-split-checkout
...
Split checkout: handle the link for "Back to Payment method" button in the summary page
2022-02-14 18:29:11 +00:00
Filipe
ddfda4011d
Merge pull request #8873 from Matt-Yorkley/stripe-retries
...
Update checkout retry logic
2022-02-14 15:28:56 +00:00
Matt-Yorkley
e4030e673d
Merge pull request #8875 from openfoodfoundation/dependabot/npm_and_yarn/follow-redirects-1.14.8
...
Bump follow-redirects from 1.14.7 to 1.14.8
2022-02-14 14:03:59 +00:00
Jean-Baptiste Bellet
74ed878a0c
Specify the asset host for the action mailer to get the assets
...
when running in development with webpacker running as well.
2022-02-14 14:54:09 +01:00
Filipe
6acd8a29f2
Merge pull request #8874 from Matt-Yorkley/puma-update
...
Update puma to latest version
2022-02-14 09:11:51 +00:00
dependabot[bot]
699e9acfa5
Bump @storybook/addon-docs from 6.4.18 to 6.4.19
...
Bumps [@storybook/addon-docs](https://github.com/storybookjs/storybook/tree/HEAD/addons/docs ) from 6.4.18 to 6.4.19.
- [Release notes](https://github.com/storybookjs/storybook/releases )
- [Changelog](https://github.com/storybookjs/storybook/blob/v6.4.19/CHANGELOG.md )
- [Commits](https://github.com/storybookjs/storybook/commits/v6.4.19/addons/docs )
---
updated-dependencies:
- dependency-name: "@storybook/addon-docs"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-14 09:03:42 +00:00
Matt-Yorkley
ad44bd854b
Merge pull request #8878 from mkllnk/rubocop-action
...
Use our defined rubocop version on CI
2022-02-14 08:58:52 +00:00
Matt-Yorkley
3418e5282a
Use our defined rubocop version on CI
...
The default is to use the latest version. That's often fine because we
keep our version up-to-date but it may not always be. It's also great if
builds are re-producible.
2022-02-14 15:56:18 +11:00
Maikel
7601bdfd45
Merge pull request #8867 from openfoodfoundation/transifex
...
Transifex
2022-02-14 11:20:00 +11:00
SarvarKhalimov
42a0a973ba
Fix product import on existing, empty unit_type and variant_unit
2022-02-13 18:28:21 +05:00
dependabot[bot]
0338753421
Bump follow-redirects from 1.14.7 to 1.14.8
...
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects ) from 1.14.7 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases )
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.7...v1.14.8 )
---
updated-dependencies:
- dependency-name: follow-redirects
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-13 12:23:25 +00:00
Matt-Yorkley
996bc05b4f
Merge pull request #8866 from openfoodfoundation/dependabot/npm_and_yarn/karma-6.3.16
...
Bump karma from 6.3.15 to 6.3.16
2022-02-13 12:22:34 +00:00
Matt-Yorkley
15fc50441f
Update puma to latest version
2022-02-13 10:54:45 +00:00
Matt-Yorkley
e5818955ff
Invalidate all incomplete payments when creating a new one, not just those in "checkout" state.
...
Looking at prod data; when a checkout submission fails due to something like a card being out of date, the payment's state seems to be "pending" and not "checkout", which means this mechanism fro invalidating old payments is potentially not working where it should.
2022-02-11 17:25:27 +00:00
Jean-Baptiste Bellet
43cd604405
Update to the right link the "Back to Payment method" button
...
+ create a spec as well
2022-02-11 15:01:53 +01:00
Jean-Baptiste Bellet
f60068c0ce
Use the proxy OpenFoodNetwork::FeatureToggle
...
that actually call Flipper.enabled?
2022-02-11 11:19:00 +01:00
Jean-Baptiste Bellet
e50247db5a
Directly used the user in the request
...
not the memoized one @spree_current_user
2022-02-11 11:19:00 +01:00
Jean-Baptiste Bellet
d858d6f941
Improve design by aligning cell on right but with padding
2022-02-11 11:09:54 +01:00
Transifex-Openfoodnetwork
5519b8b455
Updating translations for config/locales/cy.yml
2022-02-11 21:02:57 +11:00
dependabot[bot]
dd4f45a504
Bump karma from 6.3.15 to 6.3.16
...
Bumps [karma](https://github.com/karma-runner/karma ) from 6.3.15 to 6.3.16.
- [Release notes](https://github.com/karma-runner/karma/releases )
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md )
- [Commits](https://github.com/karma-runner/karma/compare/v6.3.15...v6.3.16 )
---
updated-dependencies:
- dependency-name: karma
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-11 09:44:14 +00:00
Filipe
6e2c4a385a
Merge pull request #8810 from Matt-Yorkley/split-checkout-tax
...
Reduce expensive tax recalculation calls
2022-02-10 17:42:39 +00:00
Filipe
d8936b412e
Merge pull request #8819 from apricot12/8694-Improve_subsvriptions_index_perfomance
...
8694 improve subscriptions index perfomance by eager loading tags, suppliers and exchanges.
2022-02-10 17:37:00 +00:00
Filipe
820417e6cc
Merge pull request #8828 from apricot12/8794-Keep_schedule_when_cloning_OC
...
Carry over linked schedule to cloned Order Cycle
2022-02-10 17:09:56 +00:00
Filipe
0802b04feb
Merge pull request #8857 from jibees/8855-login-signup-on-private-shop
...
Open modal on login/signup links for a "Visible to Registered Customers Only" shop page
2022-02-10 13:47:02 +00:00
Jean-Baptiste Bellet
92cd918e5a
Add LoginModal as controller + connect action to open login modal
2022-02-10 09:52:13 +01:00
Maikel Linke
9c786ff39e
Update translations
2022-02-10 10:08:28 +11:00
Maikel
570f9f2dc0
Merge pull request #8837 from openfoodfoundation/transifex
...
Transifex
2022-02-10 10:04:20 +11:00
Maikel
fb920c8960
Merge pull request #8845 from mkllnk/swagger-cleanup
...
Add rspec tools for better integration of the coming API v1
2022-02-10 10:04:03 +11:00
Maikel
026d4dd087
Merge pull request #8848 from openfoodfoundation/dependabot/npm_and_yarn/jest-27.5.1
...
Bump jest from 27.5.0 to 27.5.1
2022-02-10 09:50:32 +11:00
Maikel
463473f2c3
Merge pull request #8840 from openfoodfoundation/dependabot/npm_and_yarn/karma-6.3.15
...
Bump karma from 6.3.13 to 6.3.15
2022-02-10 09:48:56 +11:00
Filipe
30c1d89525
Merge pull request #8822 from Matt-Yorkley/split-checkout-payment-total
...
[Split Checkout] Move setting of payment total during checkout into OrderUpdater
2022-02-09 16:21:47 +00:00
Transifex-Openfoodnetwork
61a4a72b97
Updating translations for config/locales/ru.yml
2022-02-09 23:30:55 +11:00
Jean-Baptiste Bellet
a951fd2c06
Create a new method pdf_stylesheet_pack_tag that actually include CSS file
...
If running in developpement (ie. `Webpacker.dev_server.running?`), use webpacker to actually render/serve the CSS files.
Source: https://stackoverflow.com/a/60541688
2022-02-09 11:21:50 +01:00
dependabot[bot]
4db72f7475
Bump jest from 27.5.0 to 27.5.1
...
Bumps [jest](https://github.com/facebook/jest ) from 27.5.0 to 27.5.1.
- [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.5.0...v27.5.1 )
---
updated-dependencies:
- dependency-name: jest
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-09 09:04:31 +00:00
dependabot[bot]
0ebe46a17f
Bump karma from 6.3.13 to 6.3.15
...
Bumps [karma](https://github.com/karma-runner/karma ) from 6.3.13 to 6.3.15.
- [Release notes](https://github.com/karma-runner/karma/releases )
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md )
- [Commits](https://github.com/karma-runner/karma/compare/v6.3.13...v6.3.15 )
---
updated-dependencies:
- dependency-name: karma
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-09 08:38:21 +00:00
Matt-Yorkley
f065b4c787
Merge pull request #8847 from jibees/yarn-resolve-lock-file
...
Update js dependencies lock file
2022-02-08 12:30:36 +00:00
Matt-Yorkley
8dc743f2d4
Extract update_payment_total method
2022-02-08 12:27:42 +00:00
Matt-Yorkley
1c180299a5
Pass indexed payment method tags to PaymentMethod Serializer
2022-02-08 11:42:24 +00:00
Matt-Yorkley
37b5e1b014
Allow Payment Method Serializers to receive options
2022-02-08 11:42:24 +00:00
Nihal M. Kelanthodika
3152fef2ef
Eager load distributors and cached_incoming_exchanges
2022-02-08 11:42:24 +00:00
Nihal M. Kelanthodika
f0d6cd1f59
Query payment_method_tags by id
2022-02-08 11:42:24 +00:00
Nihal M. Kelanthodika
ee77210e81
Eager load taggings in SubscriptionsController#Index
2022-02-08 11:42:24 +00:00
Matt-Yorkley
d1339fa253
Merge pull request #8833 from openfoodfoundation/dependabot/npm_and_yarn/webpack-dev-server-3.11.3
...
Bump webpack-dev-server from 3.11.2 to 3.11.3
2022-02-08 10:34:03 +00:00
Matt-Yorkley
eaeda23e4f
Merge pull request #8838 from SarvarKh/updated-getting-started
...
Update GETTING_STARTED.md to include creation of a new user
2022-02-08 10:32:58 +00:00
Matt-Yorkley
65ed199ba9
Merge pull request #8842 from openfoodfoundation/dependabot/npm_and_yarn/jest-27.5.0
...
Bump jest from 27.4.7 to 27.5.0
2022-02-08 10:31:16 +00:00
Jean-Baptiste Bellet
e6f7c961e1
Update yarn.lock
2022-02-08 10:26:22 +01:00
Maikel Linke
8f5cb7bd91
Update swagger files, separate v0 and v1, delete old file
...
The new v1 doesn't contain any API endpoints yet. We will add them later
when they are ready.
2022-02-08 11:44:36 +11:00
Matt-Yorkley
9d67606490
Generate rswag routes and helper
2022-02-08 11:43:49 +11:00
Matt-Yorkley
ae2726fc6b
Generate rswag initializers
...
Done via rswag rake tasks and tidied up a bit.
2022-02-08 11:43:49 +11:00
Matt-Yorkley
3a6fc59f80
Add rswag support gems
2022-02-08 11:43:49 +11:00
Maikel
1ba56851bb
Merge pull request #8839 from mkllnk/style
...
Update Rubocop todo list
2022-02-08 09:13:54 +11:00
SarvarKhalimov
97bdceb78a
Update GETTING_STARTED.md to include creation of a new user
2022-02-08 00:11:11 +05:00
dependabot[bot]
c0c7663452
Bump jest from 27.4.7 to 27.5.0
...
Bumps [jest](https://github.com/facebook/jest ) from 27.4.7 to 27.5.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.4.7...v27.5.0 )
---
updated-dependencies:
- dependency-name: jest
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-07 09:04:54 +00:00
Jean-Baptiste Bellet
4a3e0ea9b9
Use the right scope to retrieve products based on properties
2022-02-07 08:57:18 +01:00
Jean-Baptiste Bellet
dfe8ed26d9
Update tests and use ransack to search with the new scope: with_properties
2022-02-07 08:57:18 +01:00
Maikel Linke
572a65b324
Create a scope to retrieve product based on its properties
...
both inherited and own product properties
Update the product spec to test the scope that concern properties
2022-02-07 08:57:18 +01:00
Jean-Baptiste Bellet
f8002ae49a
Add some controller specs that handle the supplier_property filtering
...
with product that don't inherits properties
2022-02-07 08:57:18 +01:00
Jean-Baptiste Bellet
242459fae4
Create the test that actually failed and should not
2022-02-07 08:57:18 +01:00
Maikel Linke
d0bb52f709
Update Rubocop todo list
2022-02-07 16:55:45 +11:00
Maikel
78cbd7b5c7
Merge pull request #8834 from openfoodfoundation/dependabot/npm_and_yarn/storybook/addon-docs-6.4.18
...
Bump @storybook/addon-docs from 6.4.17 to 6.4.18
2022-02-07 16:29:50 +11:00
Maikel
0d729fa0a8
Merge pull request #8831 from openfoodfoundation/dependabot/npm_and_yarn/storybook/addon-controls-6.4.18
...
Bump @storybook/addon-controls from 6.4.17 to 6.4.18
2022-02-07 16:29:02 +11:00
dependabot[bot]
f2c3afdbfd
Bump @storybook/addon-docs from 6.4.17 to 6.4.18
...
Bumps [@storybook/addon-docs](https://github.com/storybookjs/storybook/tree/HEAD/addons/docs ) from 6.4.17 to 6.4.18.
- [Release notes](https://github.com/storybookjs/storybook/releases )
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md )
- [Commits](https://github.com/storybookjs/storybook/commits/v6.4.18/addons/docs )
---
updated-dependencies:
- dependency-name: "@storybook/addon-docs"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-07 05:16:40 +00:00
Maikel
3ae5672d1a
Merge pull request #8832 from openfoodfoundation/dependabot/npm_and_yarn/storybook/server-6.4.18
...
Bump @storybook/server from 6.4.17 to 6.4.18
2022-02-07 16:15:49 +11:00
Transifex-Openfoodnetwork
4c0b3bf9bf
Updating translations for config/locales/en_IE.yml
2022-02-05 03:19:28 +11:00
Transifex-Openfoodnetwork
f7de43e8b7
Updating translations for config/locales/en_IE.yml
2022-02-05 03:16:24 +11:00
Matt-Yorkley
8a1fcf8a62
Update all locales with the latest Transifex translations
2022-02-04 15:50:32 +00:00
Matt-Yorkley
08d7a4de92
Merge pull request #8799 from openfoodfoundation/transifex
...
Transifex
2022-02-04 15:46:52 +00:00
Filipe
0777212607
Merge pull request #8774 from Matt-Yorkley/drop-dead-action
...
Remove unused controller action
2022-02-03 19:47:18 +00:00
Filipe
e403fc171d
Merge pull request #8808 from Matt-Yorkley/login-modal
...
Remove all Angular code from Login/Signup process
2022-02-03 19:36:44 +00:00
Filipe
c4751d7056
Merge pull request #8813 from Matt-Yorkley/split-checkout-address-state
...
Split checkout: fix loading of saved addresses
2022-02-03 19:06:35 +00:00
Filipe
e2695fdbfb
Merge pull request #8829 from mkllnk/8824-patch-aws-sdk
...
Fix image uploads by patching aws-sdk
2022-02-03 12:44:13 +00:00
dependabot[bot]
cd0542af85
Bump webpack-dev-server from 3.11.2 to 3.11.3
...
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server ) from 3.11.2 to 3.11.3.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases )
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/v3.11.3/CHANGELOG.md )
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v3.11.2...v3.11.3 )
---
updated-dependencies:
- dependency-name: webpack-dev-server
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-03 09:05:42 +00:00
dependabot[bot]
a8e29d7c07
Bump @storybook/server from 6.4.17 to 6.4.18
...
Bumps [@storybook/server](https://github.com/storybookjs/storybook/tree/HEAD/app/server ) from 6.4.17 to 6.4.18.
- [Release notes](https://github.com/storybookjs/storybook/releases )
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md )
- [Commits](https://github.com/storybookjs/storybook/commits/v6.4.18/app/server )
---
updated-dependencies:
- dependency-name: "@storybook/server"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-03 09:05:34 +00:00
dependabot[bot]
67be08b40e
Bump @storybook/addon-controls from 6.4.17 to 6.4.18
...
Bumps [@storybook/addon-controls](https://github.com/storybookjs/storybook/tree/HEAD/addons/controls ) from 6.4.17 to 6.4.18.
- [Release notes](https://github.com/storybookjs/storybook/releases )
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md )
- [Commits](https://github.com/storybookjs/storybook/commits/v6.4.18/addons/controls )
---
updated-dependencies:
- dependency-name: "@storybook/addon-controls"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-03 09:05:19 +00:00
Maikel Linke
2e6d8c1216
Provide aws-sdk with working URI.encode method
...
The S3 class is calling URI.encode which is removed in Ruby 3. By
providing a URI module within the S3 class makes the S3 code call that
module instead.
2022-02-03 15:20:51 +11:00
Maikel Linke
6468b7d98d
Spec image upload
...
The use of AWS S3 was untested before and it failed after upgrading to
Ruby 3.
2022-02-03 11:25:16 +11:00
Filipe
787b643832
Merge pull request #8818 from jibees/8793-specify-a-min-width-for-radio-input
...
Split checkout: specify a min width for radio input that improve the rendering on iOS
2022-02-02 18:31:27 +00:00
Nihal M. Kelanthodika
b45f0f3416
Update order_cycle model spec to account for cloning of schedule along with OC
2022-02-02 21:21:38 +05:30
Nihal M. Kelanthodika
6293e927bc
Keep linked schedule when cloning OC
2022-02-02 19:13:48 +05:30
Maikel
433227cc09
Merge pull request #8820 from openfoodfoundation/dependabot/npm_and_yarn/karma-6.3.13
...
Bump karma from 6.3.12 to 6.3.13
2022-02-02 14:46:46 +11:00
Matt-Yorkley
f77ecc1968
Improve and simplify return authorizations test setup
2022-02-01 11:39:07 +00:00
Matt-Yorkley
7235d1813d
Update totals and payment explicitly in current (non-split) checkout
2022-02-01 11:39:07 +00:00
Matt-Yorkley
35392cb117
Remove Order#set_payment_amount!
2022-02-01 11:39:07 +00:00
Matt-Yorkley
31e6405125
Handle setting of payment amount during checkout in OrderUpdater
2022-02-01 11:39:07 +00:00
Filipe
ca0166a420
Merge pull request #8807 from Matt-Yorkley/closed-oc-payment-auth
...
Fix Stripe payment authorizing for closed order cycles
2022-02-01 11:16:31 +00:00
Filipe
998f7afdc4
Merge pull request #8523 from seballot/progress-for-ajax-request
...
Improve loading spinner display
2022-02-01 10:03:04 +00:00
Filipe
012527522c
Merge pull request #8640 from jibees/8630-make-buttons-sticky
...
Make split checkout buttons sticky on step 3
2022-02-01 09:41:33 +00:00
dependabot[bot]
bbf10a7198
Bump karma from 6.3.12 to 6.3.13
...
Bumps [karma](https://github.com/karma-runner/karma ) from 6.3.12 to 6.3.13.
- [Release notes](https://github.com/karma-runner/karma/releases )
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md )
- [Commits](https://github.com/karma-runner/karma/compare/v6.3.12...v6.3.13 )
---
updated-dependencies:
- dependency-name: karma
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-01 09:04:04 +00:00
Maikel
b995c3ed49
Merge pull request #8815 from openfoodfoundation/dependabot/npm_and_yarn/storybook/addon-controls-6.4.17
...
Bump @storybook/addon-controls from 6.4.14 to 6.4.17
2022-02-01 19:02:34 +11:00
dependabot[bot]
031258e1ee
Bump @storybook/addon-controls from 6.4.14 to 6.4.17
...
Bumps [@storybook/addon-controls](https://github.com/storybookjs/storybook/tree/HEAD/addons/controls ) from 6.4.14 to 6.4.17.
- [Release notes](https://github.com/storybookjs/storybook/releases )
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md )
- [Commits](https://github.com/storybookjs/storybook/commits/v6.4.17/addons/controls )
---
updated-dependencies:
- dependency-name: "@storybook/addon-controls"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-01 06:06:09 +00:00
Maikel
e060a059d8
Merge pull request #8817 from openfoodfoundation/dependabot/npm_and_yarn/storybook/addon-docs-6.4.17
...
Bump @storybook/addon-docs from 6.4.14 to 6.4.17
2022-02-01 17:05:42 +11:00
dependabot[bot]
f02c79751c
Bump @storybook/addon-docs from 6.4.14 to 6.4.17
...
Bumps [@storybook/addon-docs](https://github.com/storybookjs/storybook/tree/HEAD/addons/docs ) from 6.4.14 to 6.4.17.
- [Release notes](https://github.com/storybookjs/storybook/releases )
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md )
- [Commits](https://github.com/storybookjs/storybook/commits/v6.4.17/addons/docs )
---
updated-dependencies:
- dependency-name: "@storybook/addon-docs"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-02-01 05:40:34 +00:00
Maikel
2938de7eee
Merge pull request #8816 from openfoodfoundation/dependabot/npm_and_yarn/storybook/server-6.4.17
...
Bump @storybook/server from 6.4.14 to 6.4.17
2022-02-01 16:39:47 +11:00
Filipe
8d18279f53
Merge pull request #8784 from apricot12/7398-Weight_field-on-non-weight-variants
...
Convert variant.weight into decimal if integer or 0.0 if nil
2022-01-31 18:55:31 +00:00
Matt-Yorkley
5eb88e020c
Extract/clarify methods in tabs_controller
2022-01-31 16:35:41 +00:00
Matt-Yorkley
81f5755e3d
Add tests for tabs_controller
2022-01-31 16:34:35 +00:00
Filipe
4e4d9bb5a5
Merge pull request #8804 from Matt-Yorkley/split-checkout-fees
...
[Split Checkout] Ensure fees are applied during checkout update
2022-01-31 16:26:22 +00:00
Matt-Yorkley
5b434ca7c4
Replace conditional with a guard clause
2022-01-31 15:55:35 +00:00
Matt-Yorkley
11ed1574ca
Call #check_order_cycle_expiry in PaypalController and StripeController, but avoid it on #authorize action
...
The authorize action is used for authorizing off-session payments where the order is *already complete* and the order cycle may have closed (backoffice and subscriptions). They are essentially asynchronous and not coupled to the current open/closed state of the order cycle.
2022-01-31 15:55:35 +00:00
Matt-Yorkley
5e6dd1e6e1
Move #check_order_cycle_expiry method to OrderStockCheck and don't call it from BaseController :before_action callback
2022-01-31 15:55:35 +00:00
Jean-Baptiste Bellet
d97381548a
Specify a min width for radio
2022-01-31 15:50:37 +01:00
Nihal M. Kelanthodika
ddaac654ef
Add specs for conversion of variant weight input into decimal/0.0
2022-01-31 17:43:15 +05:30
Jean-Baptiste Bellet
da6be441f8
Make sticky buttons fullwidth on mobile
2022-01-31 11:47:35 +01:00
Jean-Baptiste Bellet
ae0a71b29d
This row adds an extra space on the right of the page
...
which introduce an horizontal scroll: visual regression
2022-01-31 11:47:21 +01:00
Filipe
6dac65ace5
Merge pull request #8803 from Matt-Yorkley/buttons-regression
...
Fix visual regression on filter buttons
2022-01-31 10:32:57 +00:00
Jean-Baptiste Bellet
fdeadd0940
Reduce margin on step3 since the container could be a little too high
2022-01-31 11:31:32 +01:00
Jean-Baptiste Bellet
d8391aa1d3
Create a div with a special class (checkout-step3)
...
... and attach the controller to it
Add the T&Cs inside the sicked container with submit buttons
2022-01-31 11:31:32 +01:00
Jean-Baptiste Bellet
293bc10dde
Create a sticky controller that handle the sticky position of an element
...
.. at the bottom
And then add the sticked class to this element if the element is actually sticked
2022-01-31 11:31:32 +01:00
Jean-Baptiste Bellet
3abef1b703
Specify css for this sticky container
...
with a nice box-shadow.
Handle special case for mobile view (ie. max width 700px)
2022-01-31 11:31:32 +01:00
Matt-Yorkley
5f02ab79d4
Adjust animation handling for show/hide
2022-01-31 10:02:09 +00:00
Transifex-Openfoodnetwork
8e1272b1e8
Updating translations for config/locales/en_GB.yml
2022-01-31 20:47:33 +11:00
dependabot[bot]
091c04427c
Bump @storybook/server from 6.4.14 to 6.4.17
...
Bumps [@storybook/server](https://github.com/storybookjs/storybook/tree/HEAD/app/server ) from 6.4.14 to 6.4.17.
- [Release notes](https://github.com/storybookjs/storybook/releases )
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md )
- [Commits](https://github.com/storybookjs/storybook/commits/v6.4.17/app/server )
---
updated-dependencies:
- dependency-name: "@storybook/server"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-31 09:04:40 +00:00
Matt-Yorkley
7c0a631f7f
Remove an unnecessary assignment
...
Co-authored-by: Maikel <maikel@email.org.au >
2022-01-31 08:40:58 +00:00
Matt-Yorkley
0516ec6f15
Enable test for loading address (now passing)
2022-01-30 11:33:31 +00:00
Matt-Yorkley
5e321c9f48
Fix country/state selection for shipping address; missing controller and data
2022-01-30 11:33:31 +00:00
Matt-Yorkley
611beb2e90
Rearrange controller placement, field order, and nesting
2022-01-30 11:33:31 +00:00
Matt-Yorkley
908a22bcb6
Don't repopulate states select on page load; breaks pre-filling selection from saved address
2022-01-30 11:33:31 +00:00
Matt-Yorkley
370ec17818
Improve countries and states loading
2022-01-30 11:33:31 +00:00
Matt-Yorkley
bf4428b688
Tidy up dependent-select controller
2022-01-30 11:33:31 +00:00
Matt-Yorkley
7e62bfcdfb
Add failing test for loading address with state correctly in split checkout
2022-01-30 11:33:31 +00:00
Matt-Yorkley
f5bde96701
Merge pull request #8812 from Matt-Yorkley/temp-translation
...
Disable test which depends on missing Transifex keys
2022-01-29 20:09:22 +00:00
Matt-Yorkley
f4fdc8740e
Disable test that depends on missing Transifex keys
2022-01-29 20:06:46 +00:00
Matt-Yorkley
448e4bb67b
Reduce expensive tax recalculation calls
...
This can only really be enabled once we've merged the split checkout
2022-01-29 18:56:52 +00:00
Transifex-Openfoodnetwork
22d5a63a5b
Updating translations for config/locales/ar.yml
2022-01-30 03:59:54 +11:00
Matt-Yorkley
f3792acf55
Drop workaround previously required to avoid a bug caused by the stringex gem
2022-01-29 14:49:23 +00:00
Matt-Yorkley
8b59ef20db
Improve controller tests
2022-01-29 14:49:23 +00:00
Matt-Yorkley
794e0e0326
Delete old login modal code
2022-01-29 14:49:23 +00:00
Matt-Yorkley
13a7fb79cf
Move more login handling out of Angular
2022-01-29 14:49:23 +00:00
Matt-Yorkley
77d8e7da90
Use non-Angular login modal in /registration pages
2022-01-29 14:49:23 +00:00
Matt-Yorkley
a522e597e1
Add Matamo event
2022-01-29 14:49:23 +00:00
Matt-Yorkley
6116fd8881
Improve inaccurate specs
2022-01-29 14:49:23 +00:00
Matt-Yorkley
50389a864a
Improve dynamic Angular Bootstrapping
2022-01-29 14:49:23 +00:00
Matt-Yorkley
89e692c6c8
Switch to CableCar for login responses
2022-01-29 14:49:23 +00:00
Matt-Yorkley
0577b46f3f
Create simpler non-Angular login modal
2022-01-29 14:49:23 +00:00
Matt-Yorkley
8a18a4de66
Clear up redirecting logic and path building
2022-01-29 10:08:51 +00:00
Matt-Yorkley
04da148af0
Decouple login modal opening from Angular
2022-01-29 10:08:51 +00:00
Matt-Yorkley
6561a7246b
Delete unused partial
2022-01-29 10:08:51 +00:00
Matt-Yorkley
798af2dafc
Drop unused #create action
2022-01-29 10:08:50 +00:00
Transifex-Openfoodnetwork
a6bf6470f7
Updating translations for config/locales/de_DE.yml
2022-01-29 12:14:24 +11:00
Filipe
e63225d389
Merge pull request #8727 from Matt-Yorkley/js-matomo-login
...
Move Matomo event tracking for login modal into Authentication service
2022-01-28 20:02:46 +00:00
Matt-Yorkley
6c6e5ca316
Ensure fees are applied during checkout
2022-01-28 11:38:23 +00:00
Matt-Yorkley
4ace7efd97
Fix visual regression on filter buttons
2022-01-28 10:40:01 +00:00
Transifex-Openfoodnetwork
6856f21e7e
Updating translations for config/locales/it.yml
2022-01-28 19:05:08 +11:00
Transifex-Openfoodnetwork
aae40c74a9
Updating translations for config/locales/en_US.yml
2022-01-28 10:15:26 +11:00
Transifex-Openfoodnetwork
0397a68072
Updating translations for config/locales/fr_CA.yml
2022-01-28 09:31:49 +11:00
Transifex-Openfoodnetwork
ccb9df708b
Updating translations for config/locales/en_CA.yml
2022-01-28 09:24:03 +11:00
Matt-Yorkley
8c33dc16e8
Update all locales with the latest Transifex translations
2022-01-27 18:24:01 +00:00
Matt-Yorkley
b588ab78b7
Merge pull request #8777 from openfoodfoundation/transifex
...
Transifex
2022-01-27 18:17:06 +00:00
Matt-Yorkley
73259d4fb7
Merge pull request #8797 from Matt-Yorkley/digest
...
Add digest gem explicitly
2022-01-27 18:09:14 +00:00
Matt-Yorkley
a535acc256
Add digest gem explicitly
...
This was previously part of the standard lib in Ruby, but is being transitioned to an external gem. Fixes console warning:
"warning: already initialized constant Digest::REQUIRE_MUTEX"
2022-01-27 15:51:27 +00:00
Filipe
49030049dd
Merge pull request #8732 from Matt-Yorkley/template-cull
...
Remove some Angular templates
2022-01-27 15:18:06 +00:00
Transifex-Openfoodnetwork
2eed23d14b
Updating translations for config/locales/fr.yml
2022-01-28 00:24:38 +11:00
Transifex-Openfoodnetwork
2e3bc758e3
Updating translations for config/locales/en_FR.yml
2022-01-28 00:24:36 +11:00
Matt-Yorkley
0bec693655
Merge pull request #8791 from Matt-Yorkley/split-checkout-terms
...
[Split Checkout] Update terms of service handling
2022-01-27 13:07:04 +00:00
Nihal M. Kelanthodika
23a7ba2479
Added before_save callback to convert variant weight to decimal and 0.0 if nil
2022-01-27 16:33:14 +05:30
Matt-Yorkley
312e6c3326
Merge pull request #8796 from Matt-Yorkley/drop-embedded-shops
...
Remove embedded shopfronts code
2022-01-27 10:05:51 +00:00
Transifex-Openfoodnetwork
9a46eaffba
Updating translations for config/locales/en_FR.yml
2022-01-27 19:18:10 +11:00
Transifex-Openfoodnetwork
135b629134
Updating translations for config/locales/fr.yml
2022-01-27 19:17:46 +11:00
Matt-Yorkley
1ee3d0f7a1
Drop embedded shops code
2022-01-26 19:58:39 +00:00
Filipe
75395f6f29
Merge pull request #8648 from Matt-Yorkley/csp
...
Configure CSP
2022-01-26 19:55:11 +00:00
Filipe
28a126024f
Merge pull request #8722 from cillian/remove-unused-js-from-products-form
...
Remove unused inline JavaScript from products/_form.html.haml
2022-01-26 19:14:24 +00:00
Filipe
374c05116b
Merge pull request #8726 from Matt-Yorkley/stringex-machina
...
Reduce impact of stringex gem
2022-01-26 19:02:41 +00:00
Filipe
54083ea803
Merge pull request #8738 from jibees/add-locale-to-stripe-elements
...
Add locale to stripe elements options to display stripe error messages in globale interface chosen language
2022-01-26 19:01:37 +00:00
Filipe
62457f0c69
Merge pull request #8778 from georgethoppil/master
...
Adding deleted_at check on variant_stock move
2022-01-26 17:33:29 +00:00
Filipe
404fb4cb7f
Merge pull request #8771 from tsara27/8458-missing-translation
...
Missing translation: table headers in product import validation table #8458
2022-01-26 17:22:44 +00:00
Filipe
53b96896a9
Merge pull request #8779 from mkllnk/7872-remove-stripe-connect
...
Upgrade old Stripe Connect payment methods to Stripe SCA and remove Stripe Connect
2022-01-26 11:57:26 +00:00
Filipe
cea4714296
Merge pull request #8761 from Dmoment/8457-missng-translation-or-between-buttons
...
removed translation or between buttons
2022-01-26 10:04:41 +00:00
Filipe
30b3b7455d
Merge pull request #8717 from jibees/6139-improve-radio-button-on-split-checkout
...
SplitCheckout: adjust display of long shipping method or payment method label
2022-01-25 16:32:38 +00:00
Filipe
8715e9865b
Merge pull request #8643 from jibees/8623-disable-save-card-option
...
Split Checkout: Show "Save card for future use" checkbox only on "Enter new card details" option selected
2022-01-25 16:11:20 +00:00
Filipe
733d788215
Merge pull request #8758 from Matt-Yorkley/split-checkout-payments
...
Split checkout: external payment processing
2022-01-25 15:55:56 +00:00
Matt-Yorkley
bfe70691c2
Add test coverage for accepting terms of service
2022-01-25 15:19:32 +00:00
Matt-Yorkley
6e8bb777e6
Show platform and distributor terms and conditions
2022-01-25 15:16:43 +00:00
jibees
b175375510
Merge pull request #8789 from Matt-Yorkley/drop-example-spec
...
Remove example system spec
2022-01-25 15:07:59 +01:00
Matt-Yorkley
31349ed3ae
Remove example system spec
2022-01-25 13:45:15 +00:00
Matt-Yorkley
51990e978b
Merge pull request #8786 from openfoodfoundation/dependabot/npm_and_yarn/karma-6.3.12
...
Bump karma from 6.3.11 to 6.3.12
2022-01-25 10:12:44 +00:00
dependabot[bot]
79547a07f7
Bump karma from 6.3.11 to 6.3.12
...
Bumps [karma](https://github.com/karma-runner/karma ) from 6.3.11 to 6.3.12.
- [Release notes](https://github.com/karma-runner/karma/releases )
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md )
- [Commits](https://github.com/karma-runner/karma/compare/v6.3.11...v6.3.12 )
---
updated-dependencies:
- dependency-name: karma
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-25 09:04:15 +00:00
Matt-Yorkley
caab2421b3
Merge pull request #8785 from mkllnk/8702-flaky-ticket-spec
...
Wait for JS in ticket printing spec for consistent pass
2022-01-25 09:03:11 +00:00
Maikel Linke
828e3ab08d
Wait for JS in spec for consistent pass
2022-01-25 14:12:50 +11:00
Maikel
792fc4bc6d
Merge pull request #8782 from openfoodfoundation/dependabot/npm_and_yarn/storybook/server-6.4.14
...
Bump @storybook/server from 6.4.13 to 6.4.14
2022-01-25 14:11:24 +11:00
dependabot[bot]
b20cbf010c
Bump @storybook/server from 6.4.13 to 6.4.14
...
Bumps [@storybook/server](https://github.com/storybookjs/storybook/tree/HEAD/app/server ) from 6.4.13 to 6.4.14.
- [Release notes](https://github.com/storybookjs/storybook/releases )
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md )
- [Commits](https://github.com/storybookjs/storybook/commits/v6.4.14/app/server )
---
updated-dependencies:
- dependency-name: "@storybook/server"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-25 01:32:10 +00:00
Maikel
3dabb9a99c
Merge pull request #8781 from openfoodfoundation/dependabot/npm_and_yarn/storybook/addon-docs-6.4.14
...
Bump @storybook/addon-docs from 6.4.13 to 6.4.14
2022-01-25 12:31:36 +11:00
dependabot[bot]
5a0ab0380d
Bump @storybook/addon-docs from 6.4.13 to 6.4.14
...
Bumps [@storybook/addon-docs](https://github.com/storybookjs/storybook/tree/HEAD/addons/docs ) from 6.4.13 to 6.4.14.
- [Release notes](https://github.com/storybookjs/storybook/releases )
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md )
- [Commits](https://github.com/storybookjs/storybook/commits/v6.4.14/addons/docs )
---
updated-dependencies:
- dependency-name: "@storybook/addon-docs"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-25 00:04:55 +00:00
Maikel
662bc6816d
Merge pull request #8780 from openfoodfoundation/dependabot/npm_and_yarn/storybook/addon-controls-6.4.14
...
Bump @storybook/addon-controls from 6.4.13 to 6.4.14
2022-01-25 11:04:16 +11:00
Matt-Yorkley
b5a1d9ebef
Allow using saved cards at checkout
2022-01-24 23:06:43 +00:00
George Thoppil
77e5aab6c8
Merge branch 'openfoodfoundation:master' into master
2022-01-24 16:48:21 -05:00
Matt-Yorkley
8c9ca3b0c3
Extract method and allow Stripe payment completion on orders in confirmation state
2022-01-24 20:49:06 +00:00
Matt-Yorkley
8552da2377
Extract and stub PaymentMethodFetcher
2022-01-24 20:28:59 +00:00
Matt-Yorkley
ebb69d7f93
Add controller test for payment redirect
2022-01-24 20:28:59 +00:00
Matt-Yorkley
167adb3ddc
Memoize selected_payment_method
2022-01-24 20:28:59 +00:00
Matt-Yorkley
02590014ab
Improve split checkout feature toggle
2022-01-24 20:28:59 +00:00
Matt-Yorkley
50b82d347b
Redirect to payment gateway during order confirmation
2022-01-24 20:28:59 +00:00
Matt-Yorkley
41d2fdb368
Bump cable_ready
2022-01-24 20:28:59 +00:00
Matt-Yorkley
b86e2c8c16
Merge pull request #8757 from Matt-Yorkley/ruby-3
...
Upgrade to Ruby 3
2022-01-24 19:54:13 +00:00
Matt-Yorkley
4082b867af
Merge pull request #8783 from openfoodfoundation/dependabot/npm_and_yarn/node-fetch-2.6.7
...
Bump node-fetch from 2.6.1 to 2.6.7
2022-01-24 16:30:45 +00:00
Matt-Yorkley
41d56ce98b
Add rexml
...
This was previously included in Ruby, and has now been extracted. It's used by activemerchant and selenium and possibly others, but those gems don't currently declare it as a dependency.
2022-01-24 14:34:48 +00:00
GeorgeThoppil
b2e9106654
Linting/Trailing whitespace
2022-01-24 09:30:55 -05:00
Matt-Yorkley
21a3a6e338
Update bootsnap
2022-01-24 14:11:08 +00:00
Matt-Yorkley
48a7cfa09e
Fix more deprecated keyword arguments
2022-01-24 14:11:08 +00:00
Matt-Yorkley
f7b65efb00
Bump to Ruby 3.0.3
2022-01-24 14:11:08 +00:00
Matt-Yorkley
8ec7d3b651
Fix use of deprecated keyword args syntax in reports
2022-01-24 14:11:08 +00:00
Matt-Yorkley
783c097653
Update roo gem for Ruby 3 compatibility
2022-01-24 14:11:08 +00:00
Matt-Yorkley
06b2031914
Update Ruby to 3.0.2
2022-01-24 14:11:08 +00:00
George Thoppil
745758b7de
Update spec/models/spree/order_spec.rb
...
Co-authored-by: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com >
2022-01-24 09:06:09 -05:00
Filipe
1ddff2c4bf
Merge pull request #8678 from Matt-Yorkley/dead-code-js-uri
...
Remove outdated jsUri
2022-01-24 13:15:02 +00:00
dependabot[bot]
7eed639164
Bump node-fetch from 2.6.1 to 2.6.7
...
Bumps [node-fetch](https://github.com/node-fetch/node-fetch ) from 2.6.1 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases )
- [Changelog](https://github.com/node-fetch/node-fetch/blob/main/docs/CHANGELOG.md )
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.1...v2.6.7 )
---
updated-dependencies:
- dependency-name: node-fetch
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-24 13:01:44 +00:00
Filipe
82b24026a7
Merge pull request #8747 from openfoodfoundation/dependabot/bundler/monetize-1.12.0
...
Bump monetize from 1.11.0 to 1.12.0
2022-01-24 13:01:08 +00:00
Filipe
1120e4e460
Merge pull request #8759 from jibees/8547-use-the-last-payment-in-the-Payment-Method-Report
...
Use the last payment method instead of the first for the Payment Method Report
2022-01-24 12:51:08 +00:00
Filipe
f17226ffbe
Merge pull request #8438 from cillian/show-out-of-stock-line-items
...
If an order has out of stock line items display them and let admins remove them
2022-01-24 12:18:19 +00:00
dependabot[bot]
93619cffdf
Bump @storybook/addon-controls from 6.4.13 to 6.4.14
...
Bumps [@storybook/addon-controls](https://github.com/storybookjs/storybook/tree/HEAD/addons/controls ) from 6.4.13 to 6.4.14.
- [Release notes](https://github.com/storybookjs/storybook/releases )
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md )
- [Commits](https://github.com/storybookjs/storybook/commits/v6.4.14/addons/controls )
---
updated-dependencies:
- dependency-name: "@storybook/addon-controls"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-24 09:05:56 +00:00
Maikel Linke
19909deaf6
Remove obsolete StripeConnect payment gateway
...
The newer StripeSCA is a complete replacement.
2022-01-24 12:35:45 +11:00
Maikel Linke
ee85b9654d
Remove references to StripeConnect class
2022-01-24 12:35:45 +11:00
Maikel Linke
f22c2b0e73
Remove option to create StripeConnect methods
2022-01-24 12:35:45 +11:00
Maikel Linke
191646b611
Update Stripe config description
2022-01-24 12:35:45 +11:00
Maikel Linke
9abacf9047
Upgrade old StripeConnect payment methods to SCA
...
StripeConnect has been replaced by StripeSCA. But we still have some
StripeConnect payment methods in our production databases. We need to
convert them to StripeSCA methods before we can remove the related
code and clean up. Otherwise our code would raise errors when
encountering an old StripeConnect method, not knowing what that is.
2022-01-24 12:35:45 +11:00
Maikel
205fb630cb
Fix typos in release task template
2022-01-24 10:23:51 +11:00
GeorgeThoppil
f1c4f80be4
Adding deleted_at check on variant_stock move
2022-01-23 13:45:54 -05:00
Matt-Yorkley
04e2b8728b
Merge pull request #8775 from openfoodfoundation/dependabot/npm_and_yarn/log4js-6.4.0
...
Bump log4js from 6.3.0 to 6.4.0
2022-01-22 10:56:18 +00:00
Matt-Yorkley
658011d574
Merge pull request #8776 from openfoodfoundation/dependabot/npm_and_yarn/nanoid-3.2.0
...
Bump nanoid from 3.1.30 to 3.2.0
2022-01-22 10:47:55 +00:00
Transifex-Openfoodnetwork
61b09a456b
Updating translations for config/locales/it.yml
2022-01-22 21:20:24 +11:00
dependabot[bot]
5e21ae23c0
Bump nanoid from 3.1.30 to 3.2.0
...
Bumps [nanoid](https://github.com/ai/nanoid ) from 3.1.30 to 3.2.0.
- [Release notes](https://github.com/ai/nanoid/releases )
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md )
- [Commits](https://github.com/ai/nanoid/compare/3.1.30...3.2.0 )
---
updated-dependencies:
- dependency-name: nanoid
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-22 09:49:33 +00:00
dependabot[bot]
30df9e5139
Bump log4js from 6.3.0 to 6.4.0
...
Bumps [log4js](https://github.com/log4js-node/log4js-node ) from 6.3.0 to 6.4.0.
- [Release notes](https://github.com/log4js-node/log4js-node/releases )
- [Changelog](https://github.com/log4js-node/log4js-node/blob/master/CHANGELOG.md )
- [Commits](https://github.com/log4js-node/log4js-node/compare/v6.3.0...v6.4.0 )
---
updated-dependencies:
- dependency-name: log4js
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-21 22:50:55 +00:00
Matt-Yorkley
e077607767
Remove unused controller action
2022-01-21 21:31:42 +00:00
Tsara Sudrajat
56ac2e4e61
Convert product headings to load from translation
2022-01-21 18:30:38 +07:00
Filipe
42c6cea78d
Merge pull request #8739 from Matt-Yorkley/split-checkout-completion
...
Split checkout completion
2022-01-20 14:38:01 +00:00
Deepak Chauhan
5a6f322fd7
Merge branch 'master' into 8457-missng-translation-or-between-buttons
2022-01-20 15:41:15 +05:30
Deepak Chauhan
45660b48bb
removed or from admin/show_more.html.haml and split_checkout/_guest.html.haml
2022-01-20 15:35:58 +05:30
Deepak Chauhan
018e19c2c8
removed translation or from _edit_resourse_link to prevent rspec failing
2022-01-20 13:05:05 +05:30
Deepak Chauhan
3b3eb1e522
removed translation or from en.yml
2022-01-20 10:15:44 +05:30
Maikel
ae38d94d71
Merge pull request #8743 from openfoodfoundation/transifex
...
Transifex
2022-01-20 10:54:10 +11:00
Matt-Yorkley
2f7ef33caf
Add test for maintaining hub selection after order completion
2022-01-19 22:43:54 +00:00
Matt-Yorkley
0f154de235
Use OrderCompletion in split checkout for #order_completion_reset
2022-01-19 17:51:03 +00:00
Matt-Yorkley
fb8f5ee5ce
Increase flexibility in test setup
2022-01-19 17:51:03 +00:00
Matt-Yorkley
49623f6b4a
Simplify test setup
2022-01-19 17:51:03 +00:00
Matt-Yorkley
d57e64cf7e
Add new order factories for checkout steps
2022-01-19 17:49:05 +00:00
Filipe
2e85783465
Merge pull request #8731 from Matt-Yorkley/split-checkout-default-addresses
...
Split checkout: default address saving
2022-01-19 17:43:51 +00:00
Filipe
7444e2d2f3
Merge pull request #8741 from Matt-Yorkley/guest-checkout-login
...
Fix split checkout guest user login
2022-01-19 16:43:24 +00:00
Filipe
baa3f64839
Merge pull request #8751 from openfoodfoundation/dependabot/bundler/rails-i18n-7.0.1
...
Bump rails-i18n from 6.0.0 to 7.0.1
2022-01-19 15:49:06 +00:00
Transifex-Openfoodnetwork
ec2bb34023
Updating translations for config/locales/ru.yml
2022-01-20 01:30:50 +11:00
Matt-Yorkley
2b960a04c6
Move Order callback entirely into service
2022-01-19 13:40:33 +00:00
Matt-Yorkley
8a944e3e78
Tidy up Order#save_default_addresses
2022-01-19 13:40:33 +00:00
Matt-Yorkley
8f37aa71f2
Save default addresses when requested during checkout
2022-01-19 13:40:33 +00:00
Matt-Yorkley
fb00a51ae8
Merge pull request #8653 from Matt-Yorkley/split-checkout-t-and-c
...
Split checkout T&Cs
2022-01-19 13:39:15 +00:00
Matt-Yorkley
21ed136e00
Enable opening login modal via broadcasted DOM Event
2022-01-19 13:14:10 +00:00
Matt-Yorkley
8ce27bed86
Move guest checkout handling to the frontend
2022-01-19 13:14:10 +00:00
Matt-Yorkley
27c7b16b03
Merge pull request #8748 from openfoodfoundation/dependabot/bundler/ddtrace-0.54.1
...
Bump ddtrace from 0.53.0 to 0.54.1
2022-01-19 09:50:10 +00:00
Maikel
a5b0324f76
Merge pull request #8750 from openfoodfoundation/dependabot/bundler/activerecord-import-1.3.0
...
Bump activerecord-import from 1.2.0 to 1.3.0
2022-01-19 15:13:41 +11:00
Maikel
31341537ff
Merge pull request #8749 from openfoodfoundation/dependabot/bundler/rubocop-rails-2.13.2
...
Bump rubocop-rails from 2.12.4 to 2.13.2
2022-01-19 15:12:07 +11:00
Maikel
88be980456
Merge pull request #8746 from openfoodfoundation/dependabot/bundler/stripe-5.42.0
...
Bump stripe from 5.39.0 to 5.42.0
2022-01-19 15:08:24 +11:00
Maikel
273d41fcd8
Merge pull request #8745 from openfoodfoundation/dependabot/bundler/listen-3.7.1
...
Bump listen from 3.7.0 to 3.7.1
2022-01-19 15:07:02 +11:00
Deepak Chauhan
7adc1186c6
removed transaltion or between buttons from multiple views
2022-01-19 03:16:55 +05:30
Matt-Yorkley
a6408007db
Merge pull request #8683 from filipefurtad0/add_specs_split_checkout_1
...
Adds additional test coverage on step 1
2022-01-18 21:12:27 +00:00
Deepak Chauhan
1ed5b3a3f6
removed translation or between buttons
2022-01-19 02:01:29 +05:30
Jean-Baptiste Bellet
8455d79f9b
Use the last payment method instead of the first for the Payment Method Report
2022-01-18 20:35:08 +01:00
filipefurtad0
9ef8e86e59
Removes xpath within blocks on spec file
2022-01-18 18:09:14 +00:00
filipefurtad0
f250f6dc53
Updates mandatory field error count after merging #8691
2022-01-18 15:12:15 +00:00
filipefurtad0
63ae159091
Changes assertion from URL to page content on spec file
2022-01-18 15:10:31 +00:00
filipefurtad0
3b6bb1c9a8
Removes within blocks; replaces field names by ids
2022-01-18 14:39:24 +00:00
filipefurtad0
ee601bb357
Uses reload to fetch bill/ship address ids
2022-01-18 14:39:24 +00:00
filipefurtad0
25244725e9
Changes assertion from URL to page content
2022-01-18 14:39:24 +00:00
filipefurtad0
ab2d92ab8f
Applies helper change on spec file
2022-01-18 14:39:24 +00:00
filipefurtad0
22d9da9edc
Changes helper name
2022-01-18 14:39:24 +00:00
filipefurtad0
ec4ec66051
Corrects rubocop offense
2022-01-18 14:39:24 +00:00
filipefurtad0
f3e0799205
Adds DB validation for same ship and bill addresses
2022-01-18 14:39:24 +00:00
filipefurtad0
3ad8e2df4f
Adds coverage on mandatory fields - details/billing/shipping
2022-01-18 14:39:24 +00:00
filipefurtad0
0da2d6e469
Adds coverage for required fields - address shipping
2022-01-18 14:39:24 +00:00
filipefurtad0
01f870b818
Adds coverage on ship_address_same_as_billing option
2022-01-18 14:39:24 +00:00
Matt-Yorkley
9acc67d413
Use https when loading google maps JS
2022-01-18 12:22:06 +00:00
Matt-Yorkley
931e68ef6f
Update script sources for google maps and bugnsag
2022-01-18 12:22:06 +00:00
Matt-Yorkley
a6af9b3ad5
Disable CSP on order ticket printing via QZ
2022-01-18 12:22:06 +00:00
Matt-Yorkley
8bb3fddbed
Use https when loading fonts in admin
2022-01-18 12:22:06 +00:00
Matt-Yorkley
4c9e64589b
Update style sources
2022-01-18 12:22:06 +00:00
Matt-Yorkley
6b0d5e01d5
Move preview pages to fixtures
2022-01-18 12:22:06 +00:00
Matt-Yorkley
accb9228ee
Tidy up embedding specs
2022-01-18 12:22:06 +00:00
Matt-Yorkley
d691940623
Simplify header checking in tests
2022-01-18 12:22:06 +00:00
Matt-Yorkley
6af5f46d30
Update CSP; re-enable Angular templates
...
We really need to remove all those Angular templates as soon as possible, and then revert this commit...
2022-01-18 12:22:06 +00:00
Matt-Yorkley
e8f3fe8510
Update header checks in tests
2022-01-18 12:22:06 +00:00
Matt-Yorkley
dfbd384c95
Refactor embedding to a Concern
2022-01-18 12:22:06 +00:00
Matt-Yorkley
4649698fc4
Remove #set_response_headers
2022-01-18 12:19:54 +00:00
Matt-Yorkley
6a3ca98ac6
Add frame-ancestors to CSP
2022-01-18 12:19:54 +00:00
Matt-Yorkley
05abb63036
Remove X-Frame-Options header
...
This header is largely deprecated, and is functionally replaced here by use of the frame-ancestors CSP configuration
2022-01-18 12:19:54 +00:00
Matt-Yorkley
ce9b64a848
Set Angular CSP
...
If you don't set this flag, Angular helpfully attempts to check if this is disabled by *triggering* a CSP violation just to see what happens... 🙈
2022-01-18 12:19:54 +00:00
Matt-Yorkley
114a9d8993
Allow unsafe_inline
2022-01-18 12:19:54 +00:00
Matt-Yorkley
0fc6b4c882
Add some whitelisting
2022-01-18 12:19:54 +00:00
Matt-Yorkley
0dd97a631e
Set CSP configuration
2022-01-18 12:19:54 +00:00
Matt-Yorkley
e1849e5fb6
Merge pull request #8752 from openfoodfoundation/dependabot/bundler/bugsnag-6.24.1
...
Bump bugsnag from 6.24.0 to 6.24.1
2022-01-18 12:09:51 +00:00
jibees
8a3c188f31
Merge pull request #8753 from openfoodfoundation/dependabot/bundler/sidekiq-6.3.1
...
Bump sidekiq from 6.2.2 to 6.3.1
2022-01-18 12:17:20 +01:00
Matt-Yorkley
1f31aed56d
Merge pull request #8754 from Matt-Yorkley/json
...
Bump json gem back up to 2.6.1
2022-01-18 10:29:26 +00:00
dependabot[bot]
6884da4f50
Bump sidekiq from 6.2.2 to 6.3.1
...
Bumps [sidekiq](https://github.com/mperham/sidekiq ) from 6.2.2 to 6.3.1.
- [Release notes](https://github.com/mperham/sidekiq/releases )
- [Changelog](https://github.com/mperham/sidekiq/blob/main/Changes.md )
- [Commits](https://github.com/mperham/sidekiq/compare/v6.2.2...v6.3.1 )
---
updated-dependencies:
- dependency-name: sidekiq
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-18 10:26:09 +00:00
dependabot[bot]
e9dda6cd96
Bump bugsnag from 6.24.0 to 6.24.1
...
Bumps [bugsnag](https://github.com/bugsnag/bugsnag-ruby ) from 6.24.0 to 6.24.1.
- [Release notes](https://github.com/bugsnag/bugsnag-ruby/releases )
- [Changelog](https://github.com/bugsnag/bugsnag-ruby/blob/master/CHANGELOG.md )
- [Commits](https://github.com/bugsnag/bugsnag-ruby/compare/v6.24.0...v6.24.1 )
---
updated-dependencies:
- dependency-name: bugsnag
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-18 10:25:40 +00:00
Transifex-Openfoodnetwork
98968591fc
Updating translations for config/locales/de_DE.yml
2022-01-18 21:25:22 +11:00
dependabot[bot]
cfd8f81b3a
Bump rails-i18n from 6.0.0 to 7.0.1
...
Bumps [rails-i18n](https://github.com/svenfuchs/rails-i18n ) from 6.0.0 to 7.0.1.
- [Release notes](https://github.com/svenfuchs/rails-i18n/releases )
- [Changelog](https://github.com/svenfuchs/rails-i18n/blob/master/CHANGELOG.md )
- [Commits](https://github.com/svenfuchs/rails-i18n/commits )
---
updated-dependencies:
- dependency-name: rails-i18n
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-18 10:24:56 +00:00
Matt-Yorkley
383d938d7c
Bump json back up to 2.6.1
2022-01-18 10:24:43 +00:00
dependabot[bot]
c0e63d8299
Bump activerecord-import from 1.2.0 to 1.3.0
...
Bumps [activerecord-import](https://github.com/zdennis/activerecord-import ) from 1.2.0 to 1.3.0.
- [Release notes](https://github.com/zdennis/activerecord-import/releases )
- [Changelog](https://github.com/zdennis/activerecord-import/blob/master/CHANGELOG.md )
- [Commits](https://github.com/zdennis/activerecord-import/compare/v1.2.0...v1.3.0 )
---
updated-dependencies:
- dependency-name: activerecord-import
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-18 10:24:29 +00:00
dependabot[bot]
661d678910
Bump rubocop-rails from 2.12.4 to 2.13.2
...
Bumps [rubocop-rails](https://github.com/rubocop/rubocop-rails ) from 2.12.4 to 2.13.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.4...v2.13.2 )
---
updated-dependencies:
- dependency-name: rubocop-rails
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-18 10:23:59 +00:00
dependabot[bot]
0c2c853e8e
Bump ddtrace from 0.53.0 to 0.54.1
...
Bumps [ddtrace](https://github.com/DataDog/dd-trace-rb ) from 0.53.0 to 0.54.1.
- [Release notes](https://github.com/DataDog/dd-trace-rb/releases )
- [Changelog](https://github.com/DataDog/dd-trace-rb/blob/master/CHANGELOG.md )
- [Commits](https://github.com/DataDog/dd-trace-rb/compare/v0.53.0...v0.54.1 )
---
updated-dependencies:
- dependency-name: ddtrace
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-18 10:23:17 +00:00
dependabot[bot]
944a899931
Bump monetize from 1.11.0 to 1.12.0
...
Bumps [monetize](https://github.com/RubyMoney/monetize ) from 1.11.0 to 1.12.0.
- [Release notes](https://github.com/RubyMoney/monetize/releases )
- [Changelog](https://github.com/RubyMoney/monetize/blob/main/CHANGELOG.md )
- [Commits](https://github.com/RubyMoney/monetize/compare/v1.11.0...v1.12.0 )
---
updated-dependencies:
- dependency-name: monetize
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-18 10:22:31 +00:00
dependabot[bot]
64ecc5757f
Bump stripe from 5.39.0 to 5.42.0
...
Bumps [stripe](https://github.com/stripe/stripe-ruby ) from 5.39.0 to 5.42.0.
- [Release notes](https://github.com/stripe/stripe-ruby/releases )
- [Changelog](https://github.com/stripe/stripe-ruby/blob/master/CHANGELOG.md )
- [Commits](https://github.com/stripe/stripe-ruby/compare/v5.39.0...v5.42.0 )
---
updated-dependencies:
- dependency-name: stripe
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-18 10:21:54 +00:00
dependabot[bot]
9ac5a1d379
Bump listen from 3.7.0 to 3.7.1
...
Bumps [listen](https://github.com/guard/listen ) from 3.7.0 to 3.7.1.
- [Release notes](https://github.com/guard/listen/releases )
- [Commits](https://github.com/guard/listen/compare/v3.7.0...v3.7.1 )
---
updated-dependencies:
- dependency-name: listen
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-18 10:21:14 +00:00
Matt-Yorkley
1fda316d4c
Merge pull request #8740 from Matt-Yorkley/rails-bump
...
Update Rails from 6.1.4.1 to 6.1.4.4
2022-01-18 10:19:24 +00:00
Matt-Yorkley
eb12648538
Merge pull request #8742 from openfoodfoundation/dependabot/npm_and_yarn/browserslist-4.19.1
...
Bump browserslist from 4.16.3 to 4.19.1
2022-01-18 09:57:12 +00:00
jibees
fdba942c7e
Merge pull request #8734 from mkllnk/dependencies
...
Restrict Dependabot to update only the lockfiles
2022-01-18 10:39:29 +01:00
Transifex-Openfoodnetwork
7d55bf9184
Updating translations for config/locales/en_FR.yml
2022-01-18 20:18:34 +11:00
Transifex-Openfoodnetwork
f8a9d9ecfa
Updating translations for config/locales/fr.yml
2022-01-18 20:18:22 +11:00
Matt-Yorkley
7c2b3cdf51
Fix param whitelisting
...
Co-authored-by: Maikel <maikel@email.org.au >
2022-01-18 09:14:55 +00:00
Matt-Yorkley
3bfea510b2
Update spec/services/url_generator_spec.rb
...
Co-authored-by: Maikel <maikel@email.org.au >
2022-01-18 08:45:46 +00:00
Maikel
7fb227710f
Merge pull request #8728 from shen-sat/6056-improve-auto-test-coverage-on-order-customer-details
...
[6045] Add test for hiding billing address form and adding new customer on o…
2022-01-18 11:46:11 +11:00
dependabot[bot]
98a8036c7b
Bump browserslist from 4.16.3 to 4.19.1
...
Bumps [browserslist](https://github.com/browserslist/browserslist ) from 4.16.3 to 4.19.1.
- [Release notes](https://github.com/browserslist/browserslist/releases )
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md )
- [Commits](https://github.com/browserslist/browserslist/compare/4.16.3...4.19.1 )
---
updated-dependencies:
- dependency-name: browserslist
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-18 00:42:43 +00:00
Maikel
1ad43964c1
Merge pull request #8737 from openfoodfoundation/dependabot/npm_and_yarn/storybook/addon-docs-6.4.13
...
Bump @storybook/addon-docs from 6.4.12 to 6.4.13
2022-01-18 11:31:58 +11:00
dependabot[bot]
de7860fd91
Bump @storybook/addon-docs from 6.4.12 to 6.4.13
...
Bumps [@storybook/addon-docs](https://github.com/storybookjs/storybook/tree/HEAD/addons/docs ) from 6.4.12 to 6.4.13.
- [Release notes](https://github.com/storybookjs/storybook/releases )
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md )
- [Commits](https://github.com/storybookjs/storybook/commits/v6.4.13/addons/docs )
---
updated-dependencies:
- dependency-name: "@storybook/addon-docs"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-18 00:16:49 +00:00
Maikel
ac0c8e8419
Merge pull request #8736 from openfoodfoundation/dependabot/npm_and_yarn/storybook/addon-controls-6.4.13
...
Bump @storybook/addon-controls from 6.4.12 to 6.4.13
2022-01-18 11:09:18 +11:00
dependabot[bot]
8d14b4d1fe
Bump @storybook/addon-controls from 6.4.12 to 6.4.13
...
Bumps [@storybook/addon-controls](https://github.com/storybookjs/storybook/tree/HEAD/addons/controls ) from 6.4.12 to 6.4.13.
- [Release notes](https://github.com/storybookjs/storybook/releases )
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md )
- [Commits](https://github.com/storybookjs/storybook/commits/v6.4.13/addons/controls )
---
updated-dependencies:
- dependency-name: "@storybook/addon-controls"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-18 00:05:06 +00:00
Maikel
d5f5b3065a
Merge pull request #8735 from openfoodfoundation/dependabot/npm_and_yarn/storybook/server-6.4.13
...
Bump @storybook/server from 6.4.12 to 6.4.13
2022-01-18 11:02:35 +11:00
Matt-Yorkley
8f883d53a3
Update Rails from 6.1.4.1 to 6.1.4.4
2022-01-17 21:37:09 +00:00
Matt-Yorkley
1cbb0d8bbd
Update all locales with the latest Transifex translations
2022-01-17 21:00:43 +00:00
Matt-Yorkley
bf6b221aa5
Merge pull request #8720 from openfoodfoundation/transifex
...
Transifex
2022-01-17 20:58:26 +00:00
Matt-Yorkley
632d94ee37
Merge pull request #8733 from Matt-Yorkley/bump-stimulusjs
...
Update to StimulusJS 3.0.1
2022-01-17 20:56:54 +00:00
Filipe
067f90b17c
Merge pull request #8712 from Matt-Yorkley/oc-mails
...
OC notifications
2022-01-17 20:30:40 +00:00
Filipe
8114eb1c9f
Merge pull request #8666 from openfoodfoundation/stripe-controller
...
Extract new StripeController
2022-01-17 20:21:40 +00:00
Filipe
62f0de75ee
Merge pull request #8679 from Matt-Yorkley/drop-jquery-ujs
...
Drop jquery_ujs
2022-01-17 16:30:25 +00:00
Jean-Baptiste Bellet
c22f3ec1db
Add locale to stripe elements options to display messages in right language
...
List of supported language by stripe elements:
https://stripe.com/docs/js/appendix/supported_locales
2022-01-17 15:10:51 +01:00
Transifex-Openfoodnetwork
084bbe576c
Updating translations for config/locales/en_FR.yml
2022-01-17 21:19:59 +11:00
Transifex-Openfoodnetwork
d870e972ae
Updating translations for config/locales/fr.yml
2022-01-17 21:11:58 +11:00
dependabot[bot]
6c622b170f
Bump @storybook/server from 6.4.12 to 6.4.13
...
Bumps [@storybook/server](https://github.com/storybookjs/storybook/tree/HEAD/app/server ) from 6.4.12 to 6.4.13.
- [Release notes](https://github.com/storybookjs/storybook/releases )
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md )
- [Commits](https://github.com/storybookjs/storybook/commits/v6.4.13/app/server )
---
updated-dependencies:
- dependency-name: "@storybook/server"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-17 09:08:04 +00:00
Maikel Linke
bbafe9ff94
Restrict Dependabot to update only the lockfiles
...
This enables us to specify versions in the Gemfile and package.json and
Dependabot won't suggest updates we excluded that way.
2022-01-17 11:42:14 +11:00
Matt-Yorkley
ac9fef883d
Fix Jest issue with updated StimulusJS package
2022-01-16 12:25:54 +00:00
Matt-Yorkley
c499f0757f
Bump StimulusJS to 3.0.1
2022-01-16 12:25:54 +00:00
Matt-Yorkley
31b4c06ea3
Update rendering and shipping_type_selector directive
2022-01-16 11:30:58 +00:00
Matt-Yorkley
a6ef7ca17f
Move shipping_type_selector template to views
2022-01-16 11:05:17 +00:00
Matt-Yorkley
f06ec94b30
Render shop_variant partial normally and remove shop_variant directive
2022-01-16 10:46:26 +00:00
Matt-Yorkley
e5009432c3
Render regular partials
2022-01-16 10:45:26 +00:00
Matt-Yorkley
3afd6c273a
Move shop_variant templates to views
2022-01-16 10:41:55 +00:00
Matt-Yorkley
11578a8852
Merge pull request #8730 from filipefurtad0/address_label_fix
...
Fixes translation/rendering inconsistency on Country label (step 3)
2022-01-15 20:33:02 +00:00
Transifex-Openfoodnetwork
f7e5034f69
Updating translations for config/locales/de_DE.yml
2022-01-16 07:02:27 +11:00
filipefurtad0
e7aa19c95d
Fixes translation/rendering inconsistency on Country label(step 3)
2022-01-15 19:43:57 +00:00
Matt-Yorkley
26ac59fbba
Move Matomo event tracking for login modal into Autherntication service
2022-01-15 16:21:33 +00:00
Filipe
dfdeb7368e
Merge pull request #8681 from SarvarKh/translation-correction
...
Add flash message translation for log out
2022-01-15 14:55:26 +00:00
Matt-Yorkley
18ac9b5335
Add support for generating valid/unique permalinks for Enterprises with non-roman characters in their name
2022-01-15 13:21:09 +00:00
Matt-Yorkley
2063bffad6
Replace use of Stringex#to_url with (encapsulated) UrlGenerator#to_url
2022-01-15 13:21:09 +00:00
Matt-Yorkley
0ef35b319c
Create UrlGenerator service
2022-01-15 13:21:09 +00:00
Shen Sat
c8e8308f22
Add test for hiding billing address form and adding new customer on orders page
2022-01-15 12:37:02 +00:00
Matt-Yorkley
3f5e5d52ad
Improve concern syntax and definition
2022-01-15 12:31:43 +00:00
Matt-Yorkley
ea312c78b0
Move PermalinkGenerator out of lib directory
2022-01-15 12:31:43 +00:00
Matt-Yorkley
1953a2ef6a
Don't require stringex
2022-01-15 12:31:43 +00:00
Matt-Yorkley
7be31c74a7
Don't load stringex gem by default in gemfile
2022-01-15 12:31:43 +00:00
Matt-Yorkley
7062cab31f
Replace unnecessary uses of StringEx#to_url with ActiveSupport#parameterize
2022-01-15 10:22:10 +00:00
Matt-Yorkley
11c6ce16ea
Move payment-authorizing tests to stripe controller spec
2022-01-14 19:41:08 +00:00
Matt-Yorkley
2f39f5bac4
Add re-routing for any unprocessed payments still using old return URL
2022-01-14 19:41:08 +00:00
Matt-Yorkley
5a2c14e79a
Use new return URL when authorizing Stripe payments in backoffice or subs
2022-01-14 19:41:08 +00:00
Matt-Yorkley
c209be9c17
Clarify params
...
Spree::Order.to_param outputs the order *number* (not the id) when used to build URLs. This makes it a bit more explicit.
2022-01-14 19:41:08 +00:00
Matt-Yorkley
12f7fc98fa
Move payment authorization to StripeController
...
This Stripe-payment-authorizing logic is used by backoffice and subscriptions orders (but not the checkout), and was previously being handled by the #show action in Spree::OrdersController. It involves the user being redirected back to OFN after visiting a Stripe URL.
2022-01-14 19:41:08 +00:00
Matt-Yorkley
6c2b623f8b
Tidy up OrderController
2022-01-14 19:41:08 +00:00
Matt-Yorkley
5a70664a6a
Pull stripe-related tests into new controller spec
2022-01-14 19:41:08 +00:00
Matt-Yorkley
c65beae869
Extract some methods and move to simpler callbacks with guard clauses
2022-01-14 19:41:08 +00:00
Matt-Yorkley
c4d55feac8
Extract #last_payment
2022-01-14 19:41:08 +00:00
Matt-Yorkley
ddf6e7eadd
Use proper module/namespace
2022-01-14 19:41:08 +00:00
Matt-Yorkley
48c4ecde08
Update checkout specs using deleted OrderCompletionReset
2022-01-14 19:41:08 +00:00
Matt-Yorkley
410485fbf4
Use #order_failed_route in #process_order_completion!
2022-01-14 19:41:08 +00:00
Matt-Yorkley
072f4f4c60
Use new stripe confirm path and remove dead code
2022-01-14 19:41:08 +00:00
Matt-Yorkley
3f3bfadb59
Simplify StripeScaPaymentAuthorize and clarify both return URL types (checkout and off-session)
2022-01-14 19:41:08 +00:00
Matt-Yorkley
7b8e1f5c30
Update/improve paypal controller specs
2022-01-14 19:41:08 +00:00
Matt-Yorkley
9583a3cc3d
Use order token param in specs
2022-01-14 19:41:08 +00:00
Matt-Yorkley
9b2801db24
Fix calls to private method #expire_current_order in specs
2022-01-14 19:41:08 +00:00
Matt-Yorkley
7fe770a855
Add route to catch pre-existing payments which may still use Checkout#edit as return URL
2022-01-14 19:41:08 +00:00
Matt-Yorkley
789c29f678
Extract #load_checkout_order
2022-01-14 19:41:08 +00:00
Matt-Yorkley
daee5b49b5
Extract #process_payment_completion!
2022-01-14 19:41:08 +00:00
Matt-Yorkley
76647863e8
Add new Stripe controller
2022-01-14 19:41:08 +00:00
Matt-Yorkley
28d89103eb
Extract #gateway_error
2022-01-14 19:41:08 +00:00
Matt-Yorkley
7633255bea
Extract #order_failed_route
2022-01-14 19:41:08 +00:00
Matt-Yorkley
414e1eb299
Tidy up OrdersController#load_order
2022-01-14 19:41:08 +00:00
Matt-Yorkley
6385d9a782
Simplify interface of #order_completion_route
2022-01-14 19:41:08 +00:00
Matt-Yorkley
7cbdb7c1a2
Remove paypal-specific workaround from OrdersController
...
The previous commit means this is no longer needed here.
2022-01-14 19:41:08 +00:00
Matt-Yorkley
1b459b2491
Extract #processing_failed
2022-01-14 19:41:08 +00:00
Matt-Yorkley
c1defdb1ff
Extract #order_processing_error
2022-01-14 19:41:08 +00:00
Matt-Yorkley
5c44614a8d
Extract and standardise payment/checkout #processing_succeeded
2022-01-14 19:41:08 +00:00
Matt-Yorkley
96f30133a7
Don't reset order for split checkout
...
The various places where we "reset" an order to cart state if a checkout submission does not succeed are an artifact of the process-all-the-steps-at-once approach of the current checkout.
2022-01-14 19:41:08 +00:00
Matt-Yorkley
1e21a6a32f
Extract and standardise use of #handle_insufficient_stock
2022-01-14 19:41:08 +00:00
Matt-Yorkley
b6cf6483f2
Extract and standardise use of order loading around checkout processing
2022-01-14 19:41:08 +00:00
Matt-Yorkley
4d6c4f850f
Remove pointless callbacks in CheckoutController
...
These exact same checks are already made in #load_order (and #order_invalid_for_checkout?), which is called before these other two (later) callbacks.
2022-01-14 19:41:08 +00:00
Matt-Yorkley
77d89ec7d0
Extract and standardise use of #order_completion_route
2022-01-14 19:41:08 +00:00
Matt-Yorkley
4c1fc2b326
Standardise use of #order_completion_reset
2022-01-14 19:41:08 +00:00
Matt-Yorkley
124b63fad0
Remove unused flash assignment
2022-01-14 19:41:08 +00:00
Matt-Yorkley
01bd77e437
Remove duplicate translation key
2022-01-14 19:41:08 +00:00
Matt-Yorkley
e58b1b1094
Tidy up before and after callbacks
2022-01-14 19:41:08 +00:00
Matt-Yorkley
9b6d4da8d5
Pull related lines into OrderCompletion#order_completion_reset
2022-01-14 19:41:08 +00:00
Matt-Yorkley
02995530e2
Pull apart OrderCompletionReset service
2022-01-14 19:41:08 +00:00
Matt-Yorkley
67b8a55273
Separate OrderCompletionReset from Checkout::PostCheckoutActions and don't pass controller objects to Checkout::PostCheckoutActions
...
We need to separate some of these bits to make them easier to call in different contexts. Also there's some weird stuff happening here with the controller being passed in to the service, and it seems like a code smell to me...
2022-01-14 19:41:08 +00:00
Matt-Yorkley
ad60f2392a
Delete unused return statement
2022-01-14 19:41:08 +00:00
Matt-Yorkley
06eb98bdf4
Extract #valid_order_line_items?
2022-01-14 19:41:08 +00:00
Transifex-Openfoodnetwork
3daaa9d50b
Updating translations for config/locales/es.yml
2022-01-15 05:45:15 +11:00
Matt-Yorkley
c5c5738382
Merge pull request #8706 from openfoodfoundation/mkllnk-pr-template
...
Change instructions to move release notes to the title of a new pull request
2022-01-14 13:57:28 +00:00
Matt-Yorkley
2d746a5f30
Merge pull request #8723 from cillian/remove-unused-js-from-general-settings-edit
...
Remove unused code for currency select menu which no longer exists
2022-01-14 13:54:45 +00:00
Cillian O'Ruanaidh
22a48de033
Remove unused code for currency select menu which no longer exists
...
This removes inline JavaScript for #8699 . This code was for the old currency select menu which was removed in 4839b7bd63
2022-01-14 12:33:30 +00:00
Cillian O'Ruanaidh
bc33df6659
Remove unused inline JavaScript from products/_form.html.haml
...
For #8699 . This code, which was introduced in 1309d80f65 , does not appear to be used. The CSS at https://github.com/openfoodfoundation/openfoodnetwork/blob/master/app/webpacker/css/admin/sections/products.scss#L6 is used instead.
2022-01-14 12:07:33 +00:00
Matt-Yorkley
534354a177
Add data migration
2022-01-14 11:23:41 +00:00
Transifex-Openfoodnetwork
93ecc894c6
Updating translations for config/locales/de_DE.yml
2022-01-14 07:09:03 +11:00
Transifex-Openfoodnetwork
f374186b8d
Updating translations for config/locales/fr_CA.yml
2022-01-14 05:20:05 +11:00
Transifex-Openfoodnetwork
883e137a43
Updating translations for config/locales/en_CA.yml
2022-01-14 04:27:24 +11:00
Transifex-Openfoodnetwork
d89bfd30c9
Updating translations for config/locales/en_CA.yml
2022-01-14 03:57:37 +11:00
Matt-Yorkley
1d4803c31a
Whitelist valid step param values
2022-01-13 13:55:33 +00:00
Matt-Yorkley
b850fd6fda
Add controller spec for split checkout
2022-01-13 13:55:33 +00:00
Matt-Yorkley
f378a9a0cb
Merge pull request #8715 from openfoodfoundation/dependabot/npm_and_yarn/karma-6.3.11
...
Bump karma from 6.3.10 to 6.3.11
2022-01-13 13:25:04 +00:00
Transifex-Openfoodnetwork
646bd05973
Updating translations for config/locales/en_FR.yml
2022-01-13 23:00:00 +11:00
Transifex-Openfoodnetwork
2cc1b6a2f8
Updating translations for config/locales/fr.yml
2022-01-13 22:43:21 +11:00
dependabot[bot]
a869388759
Bump karma from 6.3.10 to 6.3.11
...
Bumps [karma](https://github.com/karma-runner/karma ) from 6.3.10 to 6.3.11.
- [Release notes](https://github.com/karma-runner/karma/releases )
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md )
- [Commits](https://github.com/karma-runner/karma/compare/v6.3.10...v6.3.11 )
---
updated-dependencies:
- dependency-name: karma
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-13 10:51:41 +00:00
Matt-Yorkley
7366aeb333
Merge pull request #8718 from openfoodfoundation/revert-8709-dependabot/npm_and_yarn/webpack-dev-server-4.7.3
...
Revert "Bump webpack-dev-server from 3.11.2 to 4.7.3"
2022-01-13 10:48:19 +00:00
Matt-Yorkley
6e7fdd75ff
Revert "Bump webpack-dev-server from 3.11.2 to 4.7.3"
2022-01-13 10:47:58 +00:00
Jean-Baptiste Bellet
f78ff3fc3b
Improve display when label is long
...
(ie. longer than the available screen width)
2022-01-13 11:05:44 +01:00
Maikel
72edd9fa36
Merge pull request #8690 from apricot12/8489-Mising-stripe-translations
...
Add translations for all stripe decline codes
2022-01-13 16:30:24 +11:00
Maikel
de1d7f31a6
Merge pull request #8709 from openfoodfoundation/dependabot/npm_and_yarn/webpack-dev-server-4.7.3
...
Bump webpack-dev-server from 3.11.2 to 4.7.3
2022-01-13 16:26:03 +11:00
Maikel
50a94931d4
Merge pull request #8645 from Matt-Yorkley/initialization-deprecations
...
Initialization deprecations
2022-01-13 16:06:56 +11:00
dependabot[bot]
8eadb0af8a
Bump webpack-dev-server from 3.11.2 to 4.7.3
...
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server ) from 3.11.2 to 4.7.3.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases )
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v3.11.2...v4.7.3 )
---
updated-dependencies:
- dependency-name: webpack-dev-server
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-13 05:03:49 +00:00
Maikel
696bbdc2e2
Merge pull request #8649 from Matt-Yorkley/deprecation-fixes
...
Deprecation fixes
2022-01-13 15:59:47 +11:00
Maikel
7bac200b88
Merge pull request #8687 from openfoodfoundation/dependabot/npm_and_yarn/shortcut-buttons-flatpickr-0.4.0
...
Bump shortcut-buttons-flatpickr from 0.3.1 to 0.4.0
2022-01-13 15:57:26 +11:00
Maikel
9d9441a85f
Merge pull request #8714 from openfoodfoundation/dependabot/npm_and_yarn/follow-redirects-1.14.7
...
Bump follow-redirects from 1.13.0 to 1.14.7
2022-01-13 15:56:23 +11:00
Maikel
84b83da167
Merge pull request #8710 from openfoodfoundation/dependabot/npm_and_yarn/storybook/addon-docs-6.4.12
...
Bump @storybook/addon-docs from 6.4.9 to 6.4.12
2022-01-13 15:55:04 +11:00
Maikel
5257361df8
Merge pull request #8651 from Matt-Yorkley/custom-errors
...
Remove custom errors gem
2022-01-13 15:54:50 +11:00
dependabot[bot]
a6887bea0b
Bump @storybook/addon-docs from 6.4.9 to 6.4.12
...
Bumps [@storybook/addon-docs](https://github.com/storybookjs/storybook/tree/HEAD/addons/docs ) from 6.4.9 to 6.4.12.
- [Release notes](https://github.com/storybookjs/storybook/releases )
- [Changelog](https://github.com/storybookjs/storybook/blob/v6.4.12/CHANGELOG.md )
- [Commits](https://github.com/storybookjs/storybook/commits/v6.4.12/addons/docs )
---
updated-dependencies:
- dependency-name: "@storybook/addon-docs"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-13 04:34:20 +00:00
dependabot[bot]
c34570f398
Bump follow-redirects from 1.13.0 to 1.14.7
...
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects ) from 1.13.0 to 1.14.7.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases )
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.13.0...v1.14.7 )
---
updated-dependencies:
- dependency-name: follow-redirects
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-13 04:24:47 +00:00
Maikel
b9b78443a0
Merge pull request #8711 from openfoodfoundation/dependabot/npm_and_yarn/storybook/addon-controls-6.4.12
...
Bump @storybook/addon-controls from 6.4.9 to 6.4.12
2022-01-13 15:24:21 +11:00
Maikel
f973f62e49
Merge pull request #8708 from openfoodfoundation/dependabot/npm_and_yarn/storybook/server-6.4.12
...
Bump @storybook/server from 6.4.9 to 6.4.12
2022-01-13 15:23:34 +11:00
Matt-Yorkley
f8efff9a4e
Don't show terms of service unless required
2022-01-12 22:17:22 +00:00
Matt-Yorkley
18cdf98aa1
Set terms and conditions accepted when completing checkout
2022-01-12 22:17:22 +00:00
Matt-Yorkley
f2c506a292
Update and extract summary_step? check
2022-01-12 22:17:22 +00:00
Filipe
7709e86d41
Merge pull request #8676 from jibees/8668-split-checkout-as-guest
...
Handle checkout as guest feature on split checkout
2022-01-12 20:22:01 +00:00
Filipe
cc0de4618c
Merge pull request #8692 from jibees/8691-make-first-name-and-last-name-fields-mandatory
...
Validate the presence of first/last name if there is no company
2022-01-12 19:48:35 +00:00
Matt-Yorkley
58d3ad412a
Rename method for clarity
2022-01-12 17:52:10 +00:00
Matt-Yorkley
cb5dd6eed9
Move T&C checks to service
2022-01-12 17:52:10 +00:00
Matt-Yorkley
0143adb8e0
Merge pull request #8518 from pacodelaluna/fix-webpacker-container-configuration
...
Fix Webpacker container configuration
2022-01-12 14:35:00 +00:00
Matt-Yorkley
9be37b0aaa
Reset flags when cloning an OC
2022-01-12 11:44:21 +00:00
Matt-Yorkley
54e1a8807a
Use mails_sent flag for tracking mails
2022-01-12 11:44:21 +00:00
Matt-Yorkley
8f825a709c
Add mails_sent column to order cycles
2022-01-12 10:34:47 +00:00
dependabot[bot]
a474e19448
Bump @storybook/addon-controls from 6.4.9 to 6.4.12
...
Bumps [@storybook/addon-controls](https://github.com/storybookjs/storybook/tree/HEAD/addons/controls ) from 6.4.9 to 6.4.12.
- [Release notes](https://github.com/storybookjs/storybook/releases )
- [Changelog](https://github.com/storybookjs/storybook/blob/v6.4.12/CHANGELOG.md )
- [Commits](https://github.com/storybookjs/storybook/commits/v6.4.12/addons/controls )
---
updated-dependencies:
- dependency-name: "@storybook/addon-controls"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-12 09:07:12 +00:00
dependabot[bot]
6352929dc1
Bump @storybook/server from 6.4.9 to 6.4.12
...
Bumps [@storybook/server](https://github.com/storybookjs/storybook/tree/HEAD/app/server ) from 6.4.9 to 6.4.12.
- [Release notes](https://github.com/storybookjs/storybook/releases )
- [Changelog](https://github.com/storybookjs/storybook/blob/v6.4.12/CHANGELOG.md )
- [Commits](https://github.com/storybookjs/storybook/commits/v6.4.12/app/server )
---
updated-dependencies:
- dependency-name: "@storybook/server"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-12 09:05:53 +00:00
Maikel
165d121aab
Merge pull request #8650 from Matt-Yorkley/rubocop-skips-validations
...
Allow methods which skip callbacks in Rubocop
2022-01-12 13:06:46 +11:00
Maikel
71fe167092
Move release notes to the title of the PR
...
Github can generate release notes from titles automatically. That's much easier than us copying the text from each pull request.
Also changed:
- Converted instructions for the issue number to a comment to make pasting the issue number easier.
- More detail for testing instructions. Many people don't fill them out correctly.
- Formatting of comments for better readability.
2022-01-12 12:55:12 +11:00
Matt-Yorkley
fa06f30ebe
Merge branch 'master' into transifex
2022-01-11 21:10:28 +00:00
Sebastian Castro
115dfe445b
loading-message: make them all look the same in admin
...
use font awesome spinner instead of an image
2022-01-11 21:55:07 +01:00
Sebastian Castro
4a436978a9
loading-popup: debounce display
2022-01-11 21:55:07 +01:00
Sebastian Castro
0eb97f1cdc
loading-popup: improve style
2022-01-11 21:55:07 +01:00
Matt-Yorkley
80342e258b
Update all locales with the latest Transifex translations
2022-01-11 20:34:55 +00:00
Filipe
d66dac4ccb
Merge pull request #8621 from apricot12/Unit-value-shop-front
...
Update units when variant unit name is edited
2022-01-11 17:41:20 +00:00
Transifex-Openfoodnetwork
42c321850a
Updating translations for config/locales/en_CA.yml
2022-01-12 00:27:40 +11:00
Transifex-Openfoodnetwork
00d8b2be1f
Updating translations for config/locales/en_GB.yml
2022-01-12 00:27:38 +11:00
Transifex-Openfoodnetwork
c253a2f360
Updating translations for config/locales/en_FR.yml
2022-01-12 00:27:36 +11:00
Transifex-Openfoodnetwork
b944b53e99
Updating translations for config/locales/ru.yml
2022-01-12 00:24:38 +11:00
Transifex-Openfoodnetwork
3e9e159df2
Updating translations for config/locales/de_DE.yml
2022-01-12 00:24:32 +11:00
Transifex-Openfoodnetwork
db27639f0b
Updating translations for config/locales/en_US.yml
2022-01-12 00:24:30 +11:00
Filipe
4978c95e75
Merge pull request #8467 from SarvarKh/validate-social-links
...
Fix the issue with 'at' in enterprise twitter and instagram
2022-01-11 12:53:11 +00:00
Filipe
f2b14beea9
Merge pull request #8541 from jibees/8506-improve-shiped-email
...
Improve shipped email design
2022-01-11 11:36:32 +00:00
Filipe
da703b2d95
Merge pull request #8615 from jibees/8559-enable-sort-orders-by-order-full-name
...
Enable sorting orders by order full name
2022-01-11 11:27:36 +00:00
Jean-Baptiste Bellet
6e62985e19
update tests as there are now 2 more mandatory fields
...
First name and last name
2022-01-11 10:30:45 +01:00
Jean-Baptiste Bellet
1a270af82b
Test the presence of the firstname and the lastname if company is not present
...
Co-Authored-By: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com >
2022-01-11 10:30:45 +01:00
Transifex-Openfoodnetwork
f61ad4470d
Updating translations for config/locales/en_GB.yml
2022-01-11 20:11:03 +11:00
Maikel
3480c5d931
Merge pull request #8654 from Matt-Yorkley/rails-defaults
...
Apply recommended framework defaults
2022-01-11 16:12:27 +11:00
Transifex-Openfoodnetwork
82ecadc17c
Updating translations for config/locales/de_DE.yml
2022-01-11 09:30:24 +11:00
SarvarKhalimov
f09f6208c2
Remove trailing whitespace from user_sessions_controller_spec.rb
2022-01-11 00:01:08 +05:00
SarvarKhalimov
6c559995ab
Add test for user log_out user#destroy
2022-01-10 22:50:44 +05:00
SarvarKhalimov
5523b91364
Add translation for already_signed_out key in en.yml file
...
Co-authored-by: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com >
2022-01-10 22:20:21 +05:00
SarvarKhalimov
b8161fb028
Remove duplicated flash notice from app/controllers/spree/user_sessions_controller.rb
...
Remove flash duplicattion in favor of already existing devise default flash notice
Co-authored-by: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com >
2022-01-10 21:59:48 +05:00
Nihal M. Kelanthodika
000c59ffa7
Add translations for all stripe decline codes
2022-01-10 20:47:47 +05:30
jibees
cc1e3912ad
Merge pull request #8685 from openfoodfoundation/dependabot/npm_and_yarn/karma-6.3.10
...
Bump karma from 6.3.9 to 6.3.10
2022-01-10 15:23:29 +01:00
dependabot[bot]
346ec9ef1d
Bump karma from 6.3.9 to 6.3.10
...
Bumps [karma](https://github.com/karma-runner/karma ) from 6.3.9 to 6.3.10.
- [Release notes](https://github.com/karma-runner/karma/releases )
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md )
- [Commits](https://github.com/karma-runner/karma/compare/v6.3.9...v6.3.10 )
---
updated-dependencies:
- dependency-name: karma
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-10 12:14:59 +00:00
Matt-Yorkley
fd4a18a838
Merge pull request #8680 from openfoodfoundation/dependabot/npm_and_yarn/jest-27.4.7
...
Bump jest from 27.4.6 to 27.4.7
2022-01-10 12:11:12 +00:00
Jean-Baptiste Bellet
a1b21d7706
Take into account the lb unit name
2022-01-10 11:50:40 +01:00
Jean-Baptiste Bellet
f6e64f3a3c
Update the tests as well
2022-01-10 11:27:32 +01:00
Jean-Baptiste Bellet
c5beff249e
Should be divided by scale if the smallest unit
2022-01-10 11:27:18 +01:00
Jean-Baptiste Bellet
4c508a5bf9
Group by unit size is specific: it needs to be divided by scale if not the smallest unit
2022-01-10 11:24:22 +01:00
Jean-Baptiste Bellet
da9c0f4b8c
Refactor: create two internal methods: getScale and getFormattedValueWithUnitName
...
Then, the old formattedValueWithUnitName calls those two private methods
2022-01-10 11:23:30 +01:00
Jean-Baptiste Bellet
467183af48
Rename getScale to getLineItemScale to be more specific
2022-01-10 11:22:11 +01:00
dependabot[bot]
8d46a185d6
Bump shortcut-buttons-flatpickr from 0.3.1 to 0.4.0
...
Bumps [shortcut-buttons-flatpickr](https://github.com/jcsmorais/shortcut-buttons-flatpickr ) from 0.3.1 to 0.4.0.
- [Release notes](https://github.com/jcsmorais/shortcut-buttons-flatpickr/releases )
- [Commits](https://github.com/jcsmorais/shortcut-buttons-flatpickr/compare/0.3.1...0.4.0 )
---
updated-dependencies:
- dependency-name: shortcut-buttons-flatpickr
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-10 09:10:22 +00:00
Jean-Baptiste Bellet
36db396fe5
Do not redirect if user is logged in
2022-01-10 10:02:08 +01:00
Jean-Baptiste Bellet
573798e4a4
Handle visit /checkout/details in both case: authorized or not
2022-01-10 09:40:16 +01:00
Jean-Baptiste Bellet
9a74934f79
Do not redirect to /guest if step is specified
2022-01-10 09:40:16 +01:00
Jean-Baptiste Bellet
b6e8862401
Update test for guest checkout when distributor doesn't allow
2022-01-10 09:40:16 +01:00
Jean-Baptiste Bellet
6be2fbb0b9
Specify allow_guest_orders attribute
2022-01-10 09:39:46 +01:00
Jean-Baptiste Bellet
b1524aa0bd
Guard clause: redirect to /guest when POST
...
When there is no connected user, and when the distributor doesn't allow guest orders, redirect on POST method
2022-01-10 09:39:46 +01:00
Jean-Baptiste Bellet
a36d03a7ab
Update test as well ; guest checkout when distributor allow
2022-01-10 09:39:46 +01:00
Jean-Baptiste Bellet
2568d775ae
Create the guest view and its associated css
2022-01-10 09:39:46 +01:00
Jean-Baptiste Bellet
efda693f8e
Do not show tabs if the current step if the /guest step
2022-01-10 09:39:46 +01:00
Jean-Baptiste Bellet
f2c3a380ac
Redirect to /guest if distributor doesn't allow guest order
2022-01-10 09:39:46 +01:00
Jean-Baptiste Bellet
2929b6278d
Redirect to /guest if no step required and no current connected user
2022-01-10 09:39:45 +01:00
Jean-Baptiste Bellet
3e14501337
Create a new step: the guest view
2022-01-10 09:39:45 +01:00
Transifex-Openfoodnetwork
228f6db139
Updating translations for config/locales/ru.yml
2022-01-10 18:53:37 +11:00
Filipe
54c61f459e
Merge pull request #8677 from filipefurtad0/add_specs_split_checkout_1
...
Migrates some test scenarios from checkout_spec.rb
2022-01-09 16:20:41 +00:00
filipefurtad0
0af025d948
Re-writes test structure, descrive vs. context
2022-01-08 17:59:04 +00:00
Matt-Yorkley
99b75c9a6a
Adjust usage of remote-method links on credit card deletion
2022-01-08 16:54:23 +00:00
Matt-Yorkley
40ed23688d
Remove jquery_ujs
2022-01-08 16:54:23 +00:00
Transifex-Openfoodnetwork
fbeb295019
Updating translations for config/locales/fr_CA.yml
2022-01-08 09:09:50 +11:00
Transifex-Openfoodnetwork
d4d4b70eb2
Updating translations for config/locales/en_CA.yml
2022-01-08 08:50:21 +11:00
Matt-Yorkley
f23a12020c
Merge pull request #8675 from Matt-Yorkley/dead-code-spree-js
...
Remove unused JS
2022-01-07 14:29:24 +00:00
Cillian O'Ruanaidh
e2b8108972
If an order has out of stock line items display them and let admins remove them
2022-01-07 13:15:44 +00:00
filipefurtad0
4276be1132
Simplifies/re-writes 'before do' block
2022-01-07 13:11:27 +00:00
filipefurtad0
e2c5c08c1e
Updates the spec to reflect the changes in the helper
2022-01-07 13:06:28 +00:00
filipefurtad0
2df841f637
Renames module - removes 'request' naming
2022-01-07 13:03:44 +00:00
filipefurtad0
ebbc028dda
Removes split_ prefix from helper
2022-01-07 12:56:15 +00:00
filipefurtad0
9149306fc1
Moves(up)/renames SplitCheckoutHelper
2022-01-07 12:55:09 +00:00
filipefurtad0
12d1e45e06
Fixes rubocop issues
2022-01-07 12:13:15 +00:00
filipefurtad0
9685bb6ae9
Adds tests for logged-in user scenarios
2022-01-07 12:13:15 +00:00
filipefurtad0
93478d4079
Adds split-checkout helper
2022-01-07 12:13:15 +00:00
filipefurtad0
447d146365
Adds test out of stock product redirect
2022-01-07 12:13:15 +00:00
Jean-Baptiste Bellet
515e2cfc51
Multiply by unit_value as sumOfUnitValues is now scaled
2022-01-07 10:32:47 +01:00
Jean-Baptiste Bellet
b746eacd11
Both sumUnitValues and sumMaxUnitValues should handle imperial units
2022-01-07 10:32:46 +01:00
Jean-Baptiste Bellet
5db50481dd
Rounding to 3 decimals as scope method
2022-01-07 10:32:46 +01:00
Jean-Baptiste Bellet
d4435b5f10
Update variant_unit_manager_spec.js.coffee
2022-01-07 10:32:46 +01:00
Jean-Baptiste Bellet
9cf5645478
Add a spec to handle imperial units
2022-01-07 10:32:46 +01:00
Jean-Baptiste Bellet
7b2a9df326
Handle unitsVariant when calling formattedValueWithUnitName
...
- unitsVariant was unread but is necessary to compute the unit_name thanks to `VariantUnitManager.getUnitName()`
2022-01-07 10:32:46 +01:00
Jean-Baptiste Bellet
3922ffa6a9
Handle imperial units for VariantUnitManager
2022-01-07 10:32:45 +01:00
Transifex-Openfoodnetwork
9c37cd68f8
Updating translations for config/locales/en_US.yml
2022-01-07 03:29:40 +11:00
Matt-Yorkley
14a62f5d49
Change paths helpers to urls
2022-01-06 13:10:48 +00:00
Matt-Yorkley
95464cf956
Update uses of (removed) jsuri interface
2022-01-06 13:10:48 +00:00
Matt-Yorkley
0721800f56
Remove jsuri.js
2022-01-06 13:10:48 +00:00
dependabot[bot]
60e793b899
Bump jest from 27.4.6 to 27.4.7
...
Bumps [jest](https://github.com/facebook/jest ) from 27.4.6 to 27.4.7.
- [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.4.6...v27.4.7 )
---
updated-dependencies:
- dependency-name: jest
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-06 12:31:36 +00:00
Filipe
6f47619c5a
Merge pull request #8659 from openfoodfoundation/dependabot/npm_and_yarn/jquery-ui-1.13.0
...
Bump jquery-ui from 1.10.4 to 1.13.0
2022-01-06 12:28:34 +00:00
Filipe
f3ceffc4b6
Merge pull request #8662 from openfoodfoundation/dependabot/npm_and_yarn/select2-4.0.13
...
Bump select2 from 3.4.5 to 4.0.13
2022-01-06 12:22:44 +00:00
SarvarKhalimov
945969ba0c
Add flash message translation for log out
2022-01-06 16:25:15 +05:00
Matt-Yorkley
f42abe8268
Remove configs which are already enabled in framework defaults
2022-01-05 15:36:16 +00:00
Matt-Yorkley
8a0646704a
Bump framework defaults to 6.1
2022-01-05 15:35:22 +00:00
Matt-Yorkley
b51891f1ab
ActionMailer::MailDeliveryJob is the new default class for mailer handling
...
ActionMailer::DeliveryJob is deprecated in favour of ActionMailer::MailDeliveryJob, and will be removed in Rails 7
2022-01-05 15:35:22 +00:00
Matt-Yorkley
037c647336
Bump framework defaults to 6.0
2022-01-05 15:35:22 +00:00
Matt-Yorkley
973c60babd
Disable some incompatible defaults
...
Using `config.load_defaults` applies a large number of recommended config options, but some of them introduce breaking changes. By selectively disabling the ones that don't work nicely with OFN we can still get the benefits of all the other enabled options.
These options currently don't play nicely with OFN, and break the CI build in various places.
2022-01-05 15:35:22 +00:00
Matt-Yorkley
a19335d247
Enable framework defaults for Rails 5.2
2022-01-05 15:35:22 +00:00
Matt-Yorkley
49ab74e472
Remove unused JS
2022-01-05 15:25:55 +00:00
Matt-Yorkley
9aa6e79f2f
Merge pull request #8661 from SuprajaRamesh/fixing-missing-translation
...
Fixing missing translation for "Are you sure?" when deleting a product
2022-01-05 15:08:45 +00:00
Matt-Yorkley
8dbaa491f1
Merge pull request #8674 from openfoodfoundation/dependabot/npm_and_yarn/jest-27.4.6
...
Bump jest from 27.4.5 to 27.4.6
2022-01-05 15:07:20 +00:00
Matt-Yorkley
0ac831658b
Merge pull request #8660 from Matt-Yorkley/foreman-fix
...
Fix Foreman/Procfile environment loading issue
2022-01-05 15:06:53 +00:00
dependabot[bot]
8cb7755d08
Bump jest from 27.4.5 to 27.4.6
...
Bumps [jest](https://github.com/facebook/jest ) from 27.4.5 to 27.4.6.
- [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.4.5...v27.4.6 )
---
updated-dependencies:
- dependency-name: jest
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-05 09:07:12 +00:00
Matt-Yorkley
9956d627fa
Use fixed theme
2022-01-04 19:41:42 +00:00
Matt-Yorkley
ae00d997b1
Remove broken image references
2022-01-04 19:41:42 +00:00
Matt-Yorkley
6ce25a0e57
Vendor jquery-ui-theme
2022-01-04 19:41:42 +00:00
Matt-Yorkley
d00992c26c
Import additional jquery-ui files
2022-01-04 19:41:42 +00:00
Matt-Yorkley
3ad17aedd4
Merge pull request #8634 from Matt-Yorkley/order-tokens
...
Clarify use of order tokens
2022-01-04 13:05:41 +00:00
Matt-Yorkley
312cc3fc25
Update import of changed stylesheet filename
2022-01-04 12:47:17 +00:00
Filipe
13d04c367d
Merge pull request #8636 from Matt-Yorkley/stripe-auth-emails
...
Stripe auth email sending; quick tidy up
2022-01-04 11:01:47 +00:00
dependabot[bot]
dbb2107584
Bump select2 from 3.4.5 to 4.0.13
...
Bumps [select2](https://github.com/select2/select2 ) from 3.4.5 to 4.0.13.
- [Release notes](https://github.com/select2/select2/releases )
- [Changelog](https://github.com/select2/select2/blob/develop/CHANGELOG.md )
- [Commits](https://github.com/select2/select2/compare/3.4.5...4.0.13 )
---
updated-dependencies:
- dependency-name: select2
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-04 10:50:59 +00:00
dependabot[bot]
02aaab4bcc
Bump jquery-ui from 1.10.4 to 1.13.0
...
Bumps [jquery-ui](https://github.com/jquery/jquery-ui ) from 1.10.4 to 1.13.0.
- [Release notes](https://github.com/jquery/jquery-ui/releases )
- [Commits](https://github.com/jquery/jquery-ui/compare/1.10.4...1.13.0 )
---
updated-dependencies:
- dependency-name: jquery-ui
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-04 10:48:37 +00:00
jibees
3f0ac6ba08
Merge pull request #8646 from openfoodfoundation/dependabot/npm_and_yarn/mrujs-0.7.4
...
Bump mrujs from 0.7.2 to 0.7.4
2022-01-04 11:47:52 +01:00
Matt-Yorkley
c655c3b04e
Merge pull request #8664 from Matt-Yorkley/webpacker-admin-css
...
Rename admin css pack
2022-01-04 10:42:01 +00:00
Matt-Yorkley
39f0f56af7
Rename admin css pack
...
It looks like Webpacker can get confused sometimes when packs with different formats have the same name (eg: admin.js and admin.scss)...
2022-01-04 10:27:10 +00:00
SuprajaR
f9a1b17709
asserted the confirmation msg in test
2022-01-04 00:10:38 +05:30
Matt-Yorkley
82363b2c2a
Fix Foreman/Procfile environment loading issue
2022-01-03 17:42:58 +00:00
SuprajaR
f3f7fba855
Replacing text with translation
2022-01-03 22:28:56 +05:30
dependabot[bot]
7717674e2a
Bump mrujs from 0.7.2 to 0.7.4
...
Bumps [mrujs](https://github.com/ParamagicDev/mrujs ) from 0.7.2 to 0.7.4.
- [Release notes](https://github.com/ParamagicDev/mrujs/releases )
- [Changelog](https://github.com/ParamagicDev/mrujs/blob/main/CHANGELOG.md )
- [Commits](https://github.com/ParamagicDev/mrujs/compare/v0.7.2...v0.7.4 )
---
updated-dependencies:
- dependency-name: mrujs
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-03 15:17:26 +00:00
Filipe
59661f3a27
Merge pull request #7784 from Matt-Yorkley/webpacker-assets
...
Webpacker assets
2022-01-03 15:12:15 +00:00
Matt-Yorkley
f4262421a8
Fix capture styles
2022-01-03 14:07:33 +00:00
Jean-Baptiste Bellet
35c58ca5c9
Update all locales with the latest Transifex translations
2022-01-03 14:30:05 +01:00
jibees
bb7c423de4
Merge pull request #8644 from openfoodfoundation/transifex
...
Transifex
2022-01-03 14:28:38 +01:00
Transifex-Openfoodnetwork
1a0843fad4
Updating translations for config/locales/fr_CM.yml
2022-01-03 21:30:28 +11:00
jibees
329aeeed50
Merge pull request #8655 from filipefurtad0/remove_js_true_specs
...
Removes js: true setting from system specs
2022-01-03 09:49:18 +01:00
filipefurtad0
3a4ce808e8
Removes js: true setting from system specs
2021-12-29 19:42:05 +00:00
Matt-Yorkley
f5ebd47751
Replace customisations with explicit patch in an initializer
...
See previous commit.
This isn't nice, but it does the same job as the gem did. We can also update this code now as Rails changes (the gem was incompatible with Rails 7).
2021-12-28 10:19:35 +00:00
Matt-Yorkley
f07bc042b5
Remove custom_error_message gem
2021-12-27 22:00:55 +00:00
Matt-Yorkley
01f25cbd13
Move more assets after rebase
2021-12-27 17:45:06 +00:00
Matt-Yorkley
7cff1e01a8
Tell Zeitwerk to ignore app/webpacker directory.
...
The files here are not Ruby classes
2021-12-27 17:45:06 +00:00
Matt-Yorkley
2586ddc5ac
Fix a CSS compiling issue after rebase
2021-12-27 17:45:06 +00:00
Matt-Yorkley
eb224ec033
Move new CSS file after rebase
2021-12-27 17:45:06 +00:00
Matt-Yorkley
09b9c3d4d0
Fix postcss-loader config
...
The configuration keys have some issues across different versions of postcss
2021-12-27 17:45:06 +00:00
Matt-Yorkley
afd381cbad
Require fonts explicitly
2021-12-27 17:45:06 +00:00
Matt-Yorkley
297e2f1b38
Update webpacker css config
2021-12-27 17:45:06 +00:00
Matt-Yorkley
469c4e69e0
Update broken variable reference
...
The previous font variable is only present in admin css
2021-12-27 17:45:06 +00:00
Matt-Yorkley
959c89a3ec
Move new image
2021-12-27 17:45:06 +00:00
Matt-Yorkley
8a34e8e762
Move new scss files
2021-12-27 17:45:06 +00:00
Matt-Yorkley
9afc002286
Refactor use of image files in specs
2021-12-27 17:45:06 +00:00
Matt-Yorkley
c198dc0fca
Stub CSS request in invoice specs
2021-12-27 17:45:06 +00:00
Matt-Yorkley
1ff75ee642
Update preloaded font path
2021-12-27 17:45:06 +00:00
Matt-Yorkley
19fc4993d5
Delete unused Spree logo
2021-12-27 17:45:06 +00:00
Matt-Yorkley
aa6a4925ac
Update default images paths for logos
2021-12-27 17:45:06 +00:00
Matt-Yorkley
16c6155b14
Use old image tag in Angular template files
...
Angular templates apparently don't work with Webpacker... :/
2021-12-27 17:45:06 +00:00
Matt-Yorkley
9e6082f0cf
Use old image tag for non-compiled images
2021-12-27 17:45:06 +00:00
Matt-Yorkley
63f6567637
Use new image path when uploading files in specs
2021-12-27 17:45:06 +00:00
Matt-Yorkley
f2fc100b5f
Replace #image_path helper calls with #image_pack_path
2021-12-27 17:45:06 +00:00
Matt-Yorkley
3c9d461f5f
Provide #image_pack_path helper method
2021-12-27 17:45:06 +00:00
Matt-Yorkley
2888d75cd3
Replace #image_tag helper calls with #image_pack_tag
2021-12-27 17:45:06 +00:00
Matt-Yorkley
12f51febd3
Enable Webpack compiling for all images
2021-12-27 17:45:06 +00:00
Matt-Yorkley
31276ff3f5
Remove images and fonts from app/assets
2021-12-27 17:45:06 +00:00
Matt-Yorkley
a11aebb2ca
Update stylesheets loaded with wicked-pdf to use Webpack
...
Luckily wicked-pdf already has a corresponding helper method.
2021-12-27 17:45:06 +00:00
Matt-Yorkley
90956c9d10
Switch mail CSS to Webpacker
2021-12-27 17:45:06 +00:00
Matt-Yorkley
250f0c0a65
Bring in missing select2 image
...
This missing image was previously ignored, but now causes a compile error when not found.
2021-12-27 17:45:06 +00:00
Matt-Yorkley
a55c38c842
Fix image paths in vendored select2 stylesheet
2021-12-27 17:45:06 +00:00
Matt-Yorkley
0e4d77a1bc
Move current select2-rails gem stylesheet to /vendor
...
This version isn't available via npm and we can't load it from the gem any more as we move to Webpack assets.
As a side note: I think we'll need to replace Select2 soon anyway, so we can delete this once we've done that.
2021-12-27 17:45:06 +00:00
Matt-Yorkley
80be57a777
Install select2 via yarn and import CSS from node_modules
2021-12-27 17:45:06 +00:00
Matt-Yorkley
74bed15f7f
Fix crazy issue with @extend on icons
...
This one line of code was crashing asset compilation... :/
2021-12-27 17:45:06 +00:00
Matt-Yorkley
a38d495bef
Update admin css image paths
2021-12-27 17:45:06 +00:00
Matt-Yorkley
2ac3cda2f4
Deal with deprecated @extend syntax
...
Errors:
```
SassError: SassError: compound selectors may no longer be extended.
Consider `@extend a, :hover` instead.
See http://bit.ly/ExtendCompound for details.
```
2021-12-27 17:45:06 +00:00
Matt-Yorkley
2992439706
Include shared variables
2021-12-27 17:45:06 +00:00
Matt-Yorkley
df9f9c1c3b
Replace glob imports
...
Apparently glob imports aren't a thing in modern sass... *shrugs*
2021-12-27 17:45:06 +00:00
Matt-Yorkley
5bc02d1e74
Fix admin font paths and loading
2021-12-27 17:45:06 +00:00
Matt-Yorkley
6ee6fc733d
Remove duplicated imports
2021-12-27 17:45:06 +00:00
Matt-Yorkley
28f9f4245d
Fix deprecated syntax using @extend with :before
...
This is no longer valid scss
2021-12-27 17:45:06 +00:00
Matt-Yorkley
6f06205eed
Switch admin CSS to webpack
2021-12-27 17:45:06 +00:00
Matt-Yorkley
ba583dcf39
Install jquery-ui via yarn
...
We can delete the gem once the Javascript part has been handled
2021-12-27 17:45:06 +00:00
Matt-Yorkley
9d18f318ac
Remove Sprockets includes in admin scss
2021-12-27 17:45:06 +00:00
Matt-Yorkley
b33ac49442
Update vendor import paths
2021-12-27 17:45:06 +00:00
Matt-Yorkley
05ac7e6798
Comment out leaflet image paths
...
These images don't exist anywhere. They were silently ignored before.
2021-12-27 17:45:06 +00:00
Matt-Yorkley
0057dbcb89
Remove Sprockets require statements
2021-12-27 17:45:06 +00:00
Matt-Yorkley
bab60f4944
Drop foundation-rails gem
2021-12-27 17:45:06 +00:00
Matt-Yorkley
2e194ac312
Switch to npm-based Foundation javascript
2021-12-27 17:45:06 +00:00
Matt-Yorkley
54929ab6ed
Drop foundation-icons gem
...
It looks like we don't actually use these icons anywhere...
2021-12-27 17:45:06 +00:00
Matt-Yorkley
ec2213d2f0
Reduce duplicate import statements
...
It looks ike these CSS rules are actually being re-imported multiple times, which is bloating the output.
2021-12-27 17:45:06 +00:00
Matt-Yorkley
825aeeae04
Migrate images and update assets
2021-12-27 17:45:06 +00:00
Matt-Yorkley
cb27081425
Install Foundation 5.5.2 via yarn
2021-12-27 17:45:05 +00:00
Matt-Yorkley
8dfc30438b
Move CSS to Webpacker
2021-12-27 17:45:05 +00:00
Transifex-Openfoodnetwork
6a312b8cca
Updating translations for config/locales/it.yml
2021-12-28 03:49:53 +11:00
Matt-Yorkley
f0f5a1a2da
Allow methods which skip validations in Rubocop
...
There are plenty of places where we use methods which skip validations for perfectly good reasons...
2021-12-27 16:36:45 +00:00
Matt-Yorkley
aaf5d1ba38
Patch CanCan deprecated keyword arguments
...
Solves an issue with use of deprecated positional args. The version of CanCan which fixes this is not currently compatible with OFN...
2021-12-27 16:27:04 +00:00
Matt-Yorkley
4dc2172dd2
Update deprecated #search method name
...
DEPRECATION WARNING: #search is deprecated and will be removed in 2.3, please use #ransack instead (called from search at /home/user/Github/openfoodnetwork/lib/open_food_network/sales_tax_report.rb:40)
2021-12-27 16:24:33 +00:00
Matt-Yorkley
482879245f
Merge pull request #8632 from Matt-Yorkley/default-url-options
...
Set default_url_options in all environments
2021-12-27 12:23:49 +00:00
Matt-Yorkley
15c59d1a93
Merge pull request #8647 from Matt-Yorkley/test-suite-issues
...
Fix infinite loop in datepicker selection logic
2021-12-27 12:19:56 +00:00
Matt-Yorkley
c046f72ca8
Fix infinite loop in datepicker selection logic
2021-12-27 11:17:33 +00:00
Matt-Yorkley
70dc9a170e
Remove unnecessary config.autoload_paths
2021-12-25 20:51:55 +00:00
Matt-Yorkley
6aada422fd
Fix deprecation warnings around class loading during initialization
...
This:
```
DEPRECATION WARNING: Initialization autoloaded the constant User.
Being able to do this is deprecated. Autoloading during initialization is going
to be an error condition in future versions of Rails.
Reloading does not reboot the application, and therefore code executed during
initialization does not run again. So, if you reload User, for example,
the expected changes won't be reflected in that stale Class object.
This autoloaded constant has been unloaded.
In order to autoload safely at boot time, please wrap your code in a reloader
callback this way:
Rails.application.reloader.to_prepare do
# Autoload classes and modules needed at boot time here.
end
That block runs when the application boots, and every time there is a reload.
For historical reasons, it may run twice, so it has to be idempotent.
Check the "Autoloading and Reloading Constants" guide to learn more about how
Rails autoloads and reloads.
```
2021-12-25 20:51:18 +00:00
Matt-Yorkley
5b5a9ad750
Set default_url_options explicitly in all environments
2021-12-25 13:27:16 +00:00
Matt-Yorkley
b813acdab3
Tidy up (consolidate) setting of the "domain" in dev and test environments
2021-12-25 13:27:16 +00:00
Transifex-Openfoodnetwork
fd3bc76d8b
Updating translations for config/locales/en_FR.yml
2021-12-24 20:26:20 +11:00
Transifex-Openfoodnetwork
5d91e05dd0
Updating translations for config/locales/fr.yml
2021-12-24 20:25:42 +11:00
Filipe
750411fd15
Merge pull request #8592 from openfoodfoundation/gateway-redirects
...
Refactor payment gateway redirects handling
2021-12-23 21:35:45 +00:00
Filipe
e1664c173a
Merge pull request #8622 from openfoodfoundation/transifex
...
Transifex
2021-12-23 21:34:55 +00:00
Filipe
20c0195584
Merge pull request #8017 from cillian/hide-variants-with-no-stock
...
When creating backoffice orders hide variants with no stock by default
2021-12-23 21:34:06 +00:00
Filipe
b256696544
Merge pull request #8549 from mkllnk/deprecate-stripe-connect
...
Hide old "Stripe" (StripeConnect) payment method type, keep new Stripe SCA
2021-12-23 21:33:42 +00:00
Filipe
7560b4e056
Merge pull request #8482 from jibees/6689-search-city-and-state-name
...
Search enterprises through name + city and state_name
2021-12-23 21:33:06 +00:00
Filipe
a3f3d8f96f
Merge pull request #8598 from seballot/oc-notify-producers
...
Configuration to automatically notify producers on order cycle close
2021-12-23 21:31:45 +00:00
Matt-Yorkley
860c2ba03c
Update spec/models/order_cycle_spec.rb
2021-12-23 20:41:49 +01:00
Sebastian Castro
708d40ac67
reset_processed_at adds guard clause
2021-12-23 20:41:49 +01:00
Sebastian Castro
ed64b6176f
OC will renotify automatically if closing date change
2021-12-23 20:41:49 +01:00
Sebastian Castro
b76defc602
Improve notify producer button
...
Add icon
Better confirmation message
Adds tooltip
Adds small icon and change text if already notified
2021-12-23 20:41:49 +01:00
Sebastian Castro
d18b482b4c
Move button rules into dedicate file
2021-12-23 20:41:49 +01:00
Sebastian Castro
eb6797220f
Lift order cycle advanced settings UI
2021-12-23 20:41:49 +01:00
Sebastian Castro
95ff3d7a11
Add automatic_notification field in advanced settings
2021-12-23 20:41:49 +01:00
Matt-Yorkley
887879f410
Create job for handling of closing order cycles
2021-12-23 20:41:49 +01:00
Matt-Yorkley
492325b74a
Add automatic_notifications column to order_cycles table
2021-12-23 20:41:49 +01:00
Matt-Yorkley
e78cea457c
Add :unprocessed scope to OrderCycle
2021-12-23 20:41:42 +01:00
Matt-Yorkley
17a112907c
Add processed_at column to order_cycles table
2021-12-23 20:41:42 +01:00
Filipe
b786d89fe9
Merge pull request #8555 from jibees/8507-fix-product-search-order-
...
Searching variants should order results by variant display name
2021-12-23 17:41:01 +00:00
Jean-Baptiste Bellet
f121704dd5
"Save card for future use" checkbox is part of the stripelements
...
... and should be hidden is the end-user select an existing card
2021-12-23 14:25:24 +01:00
Filipe
24301000bf
Merge pull request #8631 from jibees/8625-step2-submit-errors
...
SplitCheckout - Handle submit on step2
2021-12-22 18:30:10 +00:00
Matt-Yorkley
570eb21469
Merge pull request #8638 from cillian/store-payment-captured-at
...
Add a :captured_at column on payments to store when they are captured
2021-12-22 15:21:55 +00:00
Nihal M. Kelanthodika
b848b082be
Add test case for update_units callback in product model
2021-12-22 20:08:52 +05:30
Filipe
4001fa985b
Merge pull request #8612 from Matt-Yorkley/packing-reports-filtering
...
Packing reports filtering
2021-12-22 13:03:17 +00:00
Matt-Yorkley
f0d54dd083
Tidy up #redirect_to_payment_gateway
2021-12-22 09:58:08 +00:00
jibees
2a0b7df7f4
clearer intention
...
- it uses simple index_by and map which is easier to understand than each_with_index.to_h
- it avoids sorting and therefore should be the most efficient solution.
Co-authored-by: Maikel <maikel@email.org.au >
2021-12-22 10:03:34 +01:00
Maikel
aae873df9d
Merge pull request #8639 from filipefurtad0/sitemap_spec_into_syste
...
Updates/moves sitemap_spec
2021-12-22 16:16:09 +11:00
Filipe
1cee7b6f17
Merge pull request #8614 from mkllnk/8606-subs-dups
...
Synchronise processing of subscriptions and avoid duplicate order creation
2021-12-21 16:57:46 +00:00
filipefurtad0
b79ae1af7a
Fixes rubocop offense
2021-12-21 10:51:20 +00:00
Matt-Yorkley
8016e90e07
Ensure payment method is actually selected
2021-12-20 18:47:22 +00:00
Matt-Yorkley
dd23e3d38a
Simplify payment method controller
2021-12-20 18:47:22 +00:00
Matt-Yorkley
b4dab46cf8
Remove unused code for changing required attributes
2021-12-20 18:36:28 +00:00
Matt-Yorkley
723d6489cd
Extract initSelectedCard()
2021-12-20 18:36:26 +00:00
Matt-Yorkley
9525e353a3
Don't try to select a card if there is no select element
...
This error was being thrown when the user had no cards saved:
```
TypeError: stripeCardsController is null
```
2021-12-20 18:36:09 +00:00
Matt-Yorkley
a64f654697
Don't try to select a card if there is no selectTarget
...
This error was being thrown when the user had no cards saved:
```
Error: Missing target element "stripe-cards.select"
```
2021-12-20 15:41:22 +00:00
Matt-Yorkley
f18fc3c2f3
Implement disconnect() to tidy up (remove) event listeners from the DOM when finished
2021-12-20 15:29:52 +00:00
Matt-Yorkley
d58f5aa25d
Move initialization to initialize()
2021-12-20 15:29:52 +00:00
Matt-Yorkley
33c156bb55
Extract (arrow) functions for callbacks used by event listeners and reduce variable assignments
2021-12-20 15:29:52 +00:00
Matt-Yorkley
24c051bad3
Simplify stripe selected check
2021-12-20 15:21:13 +00:00
filipefurtad0
b25e0ed87b
Deletes spec/features/consumer folder
2021-12-20 15:13:57 +00:00
filipefurtad0
c5b14827d0
Adds URL port to the assertion
2021-12-20 14:54:03 +00:00
filipefurtad0
eef89e73c8
Updates/moves sitemap_spec
2021-12-20 14:49:05 +00:00
Jean-Baptiste Bellet
ad24351bb3
Reorganize CSS to display error correctly
...
`.card-errors` is no more child of `.stripe-card`
2021-12-20 15:34:58 +01:00
Jean-Baptiste Bellet
2c5667ef56
Initialize stripe-cards controller when selecting a payment method
2021-12-20 15:34:58 +01:00
Jean-Baptiste Bellet
d4ec075dfc
Disabled stripe-cards input if a already registred card is select
...
And then re-enabled it, if use decide to register a new card
2021-12-20 15:34:58 +01:00
Jean-Baptiste Bellet
7b6aa99de2
Handle when input is already checked
...
ie. user hasn't click on anything
2021-12-20 15:34:58 +01:00
Jean-Baptiste Bellet
6ef7256295
Only submit handle form submit if stripeElementsForm is visible
2021-12-20 15:34:58 +01:00
Transifex-Openfoodnetwork
78ce44fffd
Updating translations for config/locales/en_GB.yml
2021-12-20 19:40:45 +11:00
Maikel Linke
6d1e984af7
Enable testers to activate StripeConnect
...
This will make it easier to test the removal of StripeConnect.
2021-12-20 17:16:39 +11:00
Maikel Linke
470fc92825
Fix old, confusing typo
2021-12-20 17:13:40 +11:00
Maikel Linke
22de357724
Hide deprecated StripeConnect payment gateway
...
StripeConnect has been replaced by StripeSCA but some people still use
the old StripeConnect. Let's prevent people from creating deprecated
payment methods before migrating existing data.
2021-12-20 17:12:19 +11:00
Maikel Linke
6966dea0f5
Extract changing Stripe method selection logic
...
It will change and it's clearer in a separate method.
2021-12-20 17:09:57 +11:00
Maikel Linke
28e6fa235c
Style Layout/HashAlignment
2021-12-20 15:23:58 +11:00
Maikel Linke
178d296c9f
Adapt specs to use stripe_sca_payment_method
...
There are still some specs directly related to StripeConnect and I left
them for now.
2021-12-20 15:00:14 +11:00
Maikel Linke
60adaf3646
Disallow StripeConnect in subscriptions
2021-12-20 15:00:14 +11:00
Luis Ramos
6c281e288c
Switch filter to StripeSCA, this must have been an error, must be tested (manually or automatically)
2021-12-20 15:00:13 +11:00
Matt-Yorkley
68af9b6e80
Only email the hub about authorization required when necessary
...
This is needed in subscriptions, but in the backoffice the hub manager gets a notification in the UI, so the email is not needed.
2021-12-17 19:03:23 +00:00
Cillian O'Ruanaidh
401cc19532
Fix Rubocop LineTooLong violation in spree/admin/variants_controller
2021-12-17 15:40:51 +00:00
Cillian O'Ruanaidh
9bc7922734
Only left join variant overrides belonging to the distributor when searching for in stock variants.
...
Before the :scope_to_distributor call was filtering out variants from other distributors anyway via the :exchange_variants table but it is clearer if we filter by distributor on the :variant_overrides left join too.
2021-12-17 15:25:55 +00:00
Cillian O'Ruanaidh
84eaafb822
Add a :captured_at column on payments to store when they are captured
...
Fixes #8611 .
2021-12-17 14:45:47 +00:00
Filipe
e036e9b979
Merge pull request #8591 from filipefurtad0/consumer_specs_into_system
...
Consumer specs into system
2021-12-17 13:52:28 +00:00
Matt-Yorkley
438c205d87
Add basic test to SubscriptionConfirmJob spec
2021-12-17 12:38:09 +00:00
Filipe
0cc7bdeafa
Merge pull request #8521 from seballot/confirm-hub-change
...
Confirmation popup on shop change in admin section.
2021-12-17 10:56:37 +00:00
Filipe
cd70ce95a6
Merge pull request #8594 from seballot/products-index
...
Hide loading html components on product index
2021-12-17 09:36:54 +00:00
Filipe
e1bd2fc695
Merge pull request #8600 from seballot/shop-filters
...
Make the shop filter section always visible when scrolling
2021-12-17 09:31:51 +00:00
Filipe
e85101e5ff
Merge pull request #8599 from seballot/select
...
Style all standard select as the text input in the backoffice
2021-12-17 09:25:43 +00:00
Matt-Yorkley
542e3ad1aa
Reuse StripeScaPaymentAuthorize in Admin::PaymentsController
2021-12-16 20:42:19 +00:00
Matt-Yorkley
dbe4d61e57
Add explanatory note for "off-session" payment processing
2021-12-16 17:57:53 +00:00
Matt-Yorkley
6b683d600f
Break up #call! with some readable comment-methods
2021-12-16 17:22:56 +00:00
Matt-Yorkley
bbdbf387b7
Combine SendAuthorizationEmails and StripeScaPaymentAuthorize
2021-12-16 17:13:16 +00:00
Matt-Yorkley
fb2c0a253b
Remove reference to params[:token] in Admin::Orders::CustomerDetailsController
...
params[:token] and session[:access_token] are only really used in the context of guest users in the customer-facing parts of the app. Here the user should be fully authenticated already to view the page. There aren't any URL that point at this controller which append a token to the params.
2021-12-16 14:02:50 +00:00
Matt-Yorkley
ec3dadfe68
Remove reference to params[:token] in PaymentsController
...
There seemingly shouldn't be any case where this controller actually receives a token param. There's only one place that creates urls that direct to this controller (Stripe authorization emails), and they do not attach any kind of token to the URL.
If the user is not logged in here (or doesn't have an access_token in their session), they get asked to log in.
Note to future devs: see previous commit for additional context.
2021-12-16 13:41:04 +00:00
Matt-Yorkley
9f49a84e7f
Clarify use of access tokens used for viewing order details as a guest user
...
There are 4 or 5 different places in the app where we reference a :token and params[:token] for completely different purposes (they're not even vaguely the *same* token).
This is an attempt to clarify the places in the app where we use params[:token] in relation to *orders*, for allowing guest users (who are not logged in) to view details of an order they have placed (like after checkout completion), and differentiate it from the various other places where params[:token] can actually be used for something entirely different!
2021-12-16 13:35:55 +00:00
Matt-Yorkley
35e20fc179
Can sort orders via bill_address.lastname
...
We only need to check the orders sort
Fix ordering in api/v0/orders_controller_spec
2021-12-16 09:33:38 +01:00
Matt-Yorkley
45beefc533
Keep the order of passed argument
...
Do not retrieve the orders list sorted by completed_at but by the order_ids array itself
Add BulkInvoiceJob spec and cover sorting behaviour
2021-12-16 09:33:38 +01:00
Jean-Baptiste Bellet
7a48ffdd38
Add order.full_name as new column
...
+ add the linked sortable header via `bill_address_lastname`
2021-12-16 09:26:49 +01:00
Jean-Baptiste Bellet
9c280ee612
add new line
2021-12-16 09:26:49 +01:00
Transifex-Openfoodnetwork
d2b0616a67
Updating translations for config/locales/de_DE.yml
2021-12-16 12:04:37 +11:00
Matt-Yorkley
ef7a02004e
Update specs
2021-12-15 21:20:58 +00:00
Matt-Yorkley
b77ff346a3
Replace #raise with #return in Checkout::StripeRedirect
...
The (potential) unhappy code path here was raising an error which would not be explicitly handled, and would in theory not return a useful message / response.
2021-12-15 21:20:58 +00:00
Matt-Yorkley
0fc4b851f2
Refactor payment gateway redirects handling
...
The checkout was holding a lot of responsibility for knowing which kinds of payment gateways are available and how to initiate the process of redirecting to the external payment page (if needed). This was being hidden somewhat by the way the logic was tucked away in services.
PaymentMethod objects now know whether or not they require an external payment process, and know how that process should be started and how to build the required URL.
So we can now *ask* any payment method if it requires external payment processing or not, and *tell* it to start the process and return the relevant URL (if needed).
2021-12-15 21:20:58 +00:00
Filipe
fd94f26765
Merge pull request #8557 from Matt-Yorkley/card-brand-formatting
...
Credit card brand formatting
2021-12-15 20:18:21 +00:00
Filipe
f6385215d3
Merge pull request #8568 from Matt-Yorkley/paypal-controller
...
Move paypal controller
2021-12-15 18:12:27 +00:00
Transifex-Openfoodnetwork
933492a596
Updating translations for config/locales/en_FR.yml
2021-12-16 03:45:53 +11:00
Transifex-Openfoodnetwork
125e93e38f
Updating translations for config/locales/fr.yml
2021-12-16 03:45:18 +11:00
Filipe
c4f4d67fc0
Merge pull request #8503 from jibees/split-checkout-payment-forms
...
Split checkout payment forms
2021-12-15 12:57:03 +00:00
Jean-Baptiste Bellet
a33ebbdc85
Include and joins after the order seems in order to select fields...
...
...that are in the order by
2021-12-15 10:11:51 +01:00
Nihal M. Kelanthodika
44c3820a8f
Update units when variant unit name is edited
2021-12-15 12:30:10 +05:30
Maikel Linke
0cc4e5728e
Reference product attributes for sorting correctly
...
The previous version failed in some cases as it relied on a table name
generated by Rails.
2021-12-15 15:23:52 +11:00
Matt-Yorkley
6bbcec1186
Merge pull request #8617 from openfoodfoundation/dependabot/npm_and_yarn/jest-27.4.5
...
Bump jest from 27.4.4 to 27.4.5
2021-12-14 11:55:46 +00:00
dependabot[bot]
d945c64248
Bump jest from 27.4.4 to 27.4.5
...
Bumps [jest](https://github.com/facebook/jest ) from 27.4.4 to 27.4.5.
- [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.4.4...v27.4.5 )
---
updated-dependencies:
- dependency-name: jest
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-12-14 09:06:31 +00:00
Maikel Linke
bc50a01953
Ensure deterministic query to avoid deadlocks
2021-12-14 11:33:16 +11:00
Maikel Linke
9b6c9bd773
Synchronise processing of proxy orders
2021-12-14 11:33:16 +11:00
Maikel Linke
ce0913758b
Bring initial proxy order processing closer
...
We want to make it one transaction soon.
2021-12-14 11:33:16 +11:00
Maikel Linke
7fdc2fdea2
Spec duplicate subscription order issue #8606
2021-12-14 11:33:16 +11:00
Matt-Yorkley
3800eb0eef
Merge pull request #8610 from Matt-Yorkley/user-class
...
Remove Spree.user_class
2021-12-13 15:52:00 +00:00
Maikel Linke
b7e0d46dad
Style Layout/LineLength
2021-12-13 13:56:52 +11:00
Maikel Linke
6aa6506df0
Style/StringConcatenation
2021-12-13 13:52:57 +11:00
Matt-Yorkley
48048e11e7
Improve test coverage around packing report filtering
2021-12-12 13:23:56 +00:00
Matt-Yorkley
aecdfee364
Reorganise :though associations on line_item and allow searching/filtering on product, supplier, order_cycle
2021-12-12 13:23:56 +00:00
Matt-Yorkley
1efaa7e726
Switch search filters from orders to line_items
2021-12-12 13:23:56 +00:00
Matt-Yorkley
e3f9825696
Rename #scoped_orders_relation
2021-12-11 19:04:22 +00:00
filipefurtad0
af548815ae
Fixes rubocop warnings
2021-12-11 17:48:09 +00:00
filipefurtad0
67d24373e6
Updates assertion to be Ferrum syntax compliant
2021-12-11 17:40:56 +00:00
filipefurtad0
eb315b42e4
Updates cookie_helper to support Ferrum syntax
2021-12-11 17:39:39 +00:00
filipefurtad0
472cc114c0
Fixes line break assertion in account_spec
2021-12-11 17:03:00 +00:00
Sebastian Castro
e20a8122b1
Make the shop filter section always visible when scrolling
2021-12-10 20:53:47 +01:00
Sebastian Castro
8fe125bd1b
Adds thin-scroll-bar class
2021-12-10 20:53:47 +01:00
Matt-Yorkley
6d2521bf5f
Remove Spree.user_class
...
This construct was previously used in Spree to switch out the user class with a dummy class during certain tests. We don't use this any more, so it's just mess.
🔥
2021-12-10 18:18:20 +00:00
filipefurtad0
345b9a181c
Updates/moves shops_spec into system
2021-12-10 17:48:01 +00:00
filipefurtad0
0e8cc0f916
Updates/moves producers_spec into system
2021-12-10 17:48:01 +00:00
filipefurtad0
2e313dd5e5
Updates/moves multilingual_spec into system
2021-12-10 17:48:01 +00:00
filipefurtad0
2b02fd8826
Updates/moves groups_spec into system
2021-12-10 17:48:01 +00:00
filipefurtad0
83468710d3
Updates/moves footer_links_spec into system
2021-12-10 17:48:01 +00:00
filipefurtad0
f304c6ad9c
Updates/moves account_spec into system
2021-12-10 17:48:01 +00:00
Matt-Yorkley
a4794b22d5
Delete route to non-existent paypal controller action
2021-12-10 11:46:53 +00:00
Matt-Yorkley
9fa19cb772
Update namespacing in specs
2021-12-10 11:46:53 +00:00
Matt-Yorkley
f101b06226
Update all references to paypal routes
2021-12-10 11:46:53 +00:00
Matt-Yorkley
0b48fa540a
Move paypal routes out of spree namespace
2021-12-10 11:46:52 +00:00
Matt-Yorkley
575f409ebf
Delete routes to non-existant content controller
2021-12-10 11:46:52 +00:00
Matt-Yorkley
5a1aa300d5
Delete route to non-existant checkout controller action
2021-12-10 11:46:52 +00:00
Matt-Yorkley
0d620aac94
Move paypal_controller out of spree namespace
2021-12-10 11:46:52 +00:00
Jean-Baptiste Bellet
a80818d2b6
Fix rubocop warning
...
Extra empty line detected at module body end.
2021-12-09 11:30:57 +01:00
jibees
53e12fb5e5
Get rid of conditional branches with & operator
...
Co-authored-by: Maikel <maikel@email.org.au >
2021-12-09 11:12:23 +01:00
jibees
3c491299fd
Update config/locales/en.yml
...
Co-authored-by: Maikel <maikel@email.org.au >
2021-12-09 11:05:41 +01:00
Sebastian Castro
bce9fc5b4e
Style all standard select as the text input
2021-12-09 10:09:39 +01:00
Sebastian Castro
18d966f0de
Closes #8441 Confirmation popup on shop change
2021-12-08 13:34:15 +01:00
Sebastian Castro
8624d11585
products-index: Hide html component with ng-cloak
2021-12-08 12:44:58 +01:00
Matt-Yorkley
83fafe9969
Fix stripe elements styling
...
The selectors are different now that we're not using Angular to build the stripe card element.
2021-12-07 16:46:42 +00:00
Matt-Yorkley
d22cb0e1e1
Add billing address name to card
2021-12-07 16:29:25 +00:00
Matt-Yorkley
6b8c91845e
Update strong params
2021-12-07 16:29:25 +00:00
Matt-Yorkley
2fe96c5f63
Update Stripe controller hidden fields
2021-12-07 16:29:25 +00:00
Matt-Yorkley
9979ecf8b4
Update view to use new Stimulus controller for Stripe card form
2021-12-07 16:29:25 +00:00
Matt-Yorkley
cbd7b37eb3
Change card field name
...
The order[card] field is already in use / needed for other data 👍
2021-12-07 16:29:25 +00:00
Matt-Yorkley
720d147421
Bring in stimulus controller for stripe elements
2021-12-07 16:29:25 +00:00
Matt-Yorkley
7f4b2cc00a
Tidy up checks on Enumerable objects
2021-12-07 16:29:25 +00:00
Matt-Yorkley
ce7fb1b4dc
Move select-options-formatting logic to helper
2021-12-07 16:29:25 +00:00
Matt-Yorkley
d85597fe4c
Rename stripe cards controller
2021-12-07 16:29:25 +00:00
Matt-Yorkley
8105f0ebf3
Simplify partial selecting and rename stripe_sca partial
2021-12-07 16:29:25 +00:00
Jean-Baptiste Bellet
33887e8b6e
Remove wrong min attribute on input
2021-12-07 16:27:22 +00:00
Jean-Baptiste Bellet
fd5ad7566a
Disabled all form elements that should not be sent to the controller
2021-12-07 16:27:22 +00:00
Jean-Baptiste Bellet
f7662947dc
Extract to a method that handle all the form elements
2021-12-07 16:27:22 +00:00
Jean-Baptiste Bellet
fbe69b8027
Manage savedCards or enter new card behavior for stripe payment form
2021-12-07 16:27:22 +00:00
Jean-Baptiste Bellet
7437c6a6d7
Add a stripe controller that show/hide stripe form if saved cards or not
2021-12-07 16:27:22 +00:00
Jean-Baptiste Bellet
34ce08d901
Format card label in card selector
2021-12-07 16:27:22 +00:00
Jean-Baptiste Bellet
68e4d55f80
Avoid ternary operator
2021-12-07 16:27:22 +00:00
Jean-Baptiste Bellet
f9b0798c88
Add stripe_sca, paypal, check payment method
...
Stripe_sca use the same template than stripe
2021-12-07 16:27:22 +00:00
Jean-Baptiste Bellet
e89caf7a0d
Add stripe as payment method
2021-12-07 16:27:22 +00:00
Jean-Baptiste Bellet
fc6fba4fe9
Move into specific folder
2021-12-07 16:27:22 +00:00
Jean-Baptiste Bellet
216e06cd6b
Update stripe card errors styles
2021-12-07 16:27:22 +00:00
Jean-Baptiste Bellet
792763d275
use specific gateway form template for split checkout
2021-12-07 16:27:22 +00:00
Jean-Baptiste Bellet
2564de4ca4
Display the right container by default regarding the selected_payment_method
2021-12-07 16:27:22 +00:00
Jean-Baptiste Bellet
5f3ea6accb
Do not init by hidden all the container
...
that allow to init the content without clicking on anything
2021-12-07 16:27:22 +00:00
Jean-Baptiste Bellet
7159cc3ff1
Handle required attribute on input for PaymentMethod controller
...
This is done for one reason : do not submit form with required attribute on input that are actually hidden ; this is not handle correctly by browsers.
This idea here is to add/remove the required attribute on each input if the form is visible or not.
2021-12-07 16:27:22 +00:00
Jean-Baptiste Bellet
3063b041d1
Change the paymentmethod controller to handle both desc and form
...
Add tests as well
Update _payment.html.haml
Update _payment.html.haml
2021-12-07 16:23:39 +00:00
Jean-Baptiste Bellet
cad8d8316d
Improve variant order when searching
2021-12-07 11:37:39 +01:00
Jean-Baptiste Bellet
1b6cfb60a1
Searching variants should order results by variants display name
2021-12-07 11:18:20 +01:00
Jean-Baptiste Bellet
12f7935a26
Add needed Helper to handle create
2021-12-07 11:18:20 +01:00
Jean-Baptiste Bellet
31cc2549ed
Order variant search by display_name
2021-12-07 11:18:20 +01:00
Matt-Yorkley
2408b7f74e
Simplify card formatting
2021-12-06 15:20:39 +00:00
Matt-Yorkley
4cdb892c75
Refactor formatting of credit card brand names and reformat automatically when saving
...
This little bit of "translation" between what we might receive as input and what ActiveMerchant requires is important, but currently the responsibility for this job is spread all over the code base. It can now just live in the CreditCard model (in one place) and doesn't need to be duplicated anywhere else (like several different places in frontend Javascript!)
2021-12-02 16:22:52 +00:00
Jean-Baptiste Bellet
57dc10888c
Improve shipped email design
...
- Use default class for header, content
- Use monospace font for the list of the items
- Add line breaks for the list of the items
2021-11-30 17:02:42 +01:00
Jean-Baptiste Bellet
9bc7343420
Create a mailer preview for the shipped email
...
Available on http://localhost:3000/rails/mailers/spree/shipment/shipped
2021-11-30 16:55:07 +01:00
François Turbelin
58d54aa4ec
Fix Webpacker container configuration
2021-11-26 09:22:18 +01:00
SarvarKhalimov
5d36c66aff
Update follow partial to reflect social urls correctly
2021-11-25 01:05:45 +05:00
SarvarKhalimov
c202c52d8b
Refactor correct_social_url method in enterprise model and its tests
2021-11-22 23:31:56 +05:00
SarvarKhalimov
f8c45b3e31
Update app/models/enterprise.rb - optimise delete @ method
...
Co-authored-by: Maikel <maikel@email.org.au >
2021-11-15 13:21:19 +11:00
SarvarKhalimov
6f9fc9f06c
Add a new rspec test and optimize existing for correct_social_url
2021-11-15 13:21:04 +11:00
SarvarKhalimov
5d2a5e63ec
Fix the issue with 'at' in interprise twitter and insgram
2021-11-15 13:21:04 +11:00
Jean-Baptiste Bellet
3df304c9d6
Search and match through name + city and state_name
...
- Rename enterpriseMatchesNameQueryFilter as well to enterpriseMatchesQueryFilter
- Update tests as well
2021-11-12 15:57:28 +01:00
Cillian O'Ruanaidh
2462d71ab5
When creating backoffice orders hide variants with no stock by default
...
But let people include out of stock variants by checking a checkbox if they want.
Note, we only apply the variants in stock scope if a distributor is
present. I think this is because this search method is also used when
setting up subscriptions so I don't think we want to change the
behaviour there.
Co-authored-by: Maikel Linke <maikel@email.org.au >
2021-10-08 13:13:32 +01:00