Maikel
c00a35b5a4
Merge pull request #9173 from jibees/9172-change-i18n-key-from-delivery-address-to-shipping-info
...
Split Checkout: Change i18n key on first step from delivery address to shipping info
2022-05-12 10:36:18 +10:00
Filipe
6141641c23
Merge pull request #9164 from jibees/9143-add-order-token-when-checkout-is-complete
...
Add `order_token` params to the redirect URL after checkout
2022-05-11 13:50:48 +01:00
Jean-Baptiste Bellet
d942adcdd0
Change i18n key on first step
...
Delivery address --> shipping info
2022-05-11 10:11:51 +02:00
Maikel
bfc3e385ba
Merge pull request #9163 from openfoodfoundation/dependabot/npm_and_yarn/tom-select-2.0.2
...
Bump tom-select from 2.0.1 to 2.0.2
2022-05-11 14:02:25 +10:00
Jean-Baptiste Bellet
61f8dfd809
Add order_token params to the redirect URL after checkout
2022-05-09 17:45:52 +02:00
dependabot[bot]
51db3d5997
Bump tom-select from 2.0.1 to 2.0.2
...
Bumps [tom-select](https://github.com/orchidjs/tom-select ) from 2.0.1 to 2.0.2.
- [Release notes](https://github.com/orchidjs/tom-select/releases )
- [Commits](https://github.com/orchidjs/tom-select/compare/v2.0.1...v2.0.2 )
---
updated-dependencies:
- dependency-name: tom-select
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-05-09 09:56:35 +00:00
Maikel
44965ff235
Fix MAPI conditional on master
2022-05-09 12:35:52 +10:00
Maikel
e59d753333
Merge pull request #9044 from georgethoppil/optional-restock-items
...
Optional restock items
2022-05-09 09:08:26 +10:00
GeorgeThoppil
8903496a1b
Optional restocking items
2022-05-06 10:55:24 -04:00
Jean-Baptiste Bellet
edc0520ce3
Update all locales with the latest Transifex translations
2022-05-06 09:51:36 +02:00
jibees
bf5e7a12d1
Merge pull request #9142 from openfoodfoundation/transifex
...
Transifex
2022-05-06 09:48:47 +02:00
Filipe
fb834d3143
Merge pull request #9138 from jibees/9137-order-shipping-methods-alphabetically
...
Split checkout: Order shipping methods by name
2022-05-05 12:41:12 +01:00
Filipe
24acf21c6d
Merge pull request #9139 from jibees/6139-handle-shipping-method-description-with-no-space
...
Split Checkout: Handle shipping/payment method description with no space
2022-05-05 11:21:13 +01:00
Maikel Linke
ec7d7b0ad8
Fix workflow conditional
2022-05-05 14:22:39 +10:00
Maikel
ae728caac6
Merge pull request #9156 from mkllnk/mapi-condition
...
Run Mayhem4API CI check only within organisation
2022-05-05 14:01:51 +10:00
Maikel Linke
2758f83a2a
Run Mayhem4API only within organisation
...
The API key is not accessible outside.
2022-05-05 12:10:08 +10:00
Transifex-Openfoodnetwork
5162c5ecf9
Updating translations for config/locales/en_GB.yml
2022-05-03 20:19:09 +10:00
Maikel
5ff1c1c7c2
Merge pull request #9136 from mayhemheroes/mapi
...
add Mayhem for API as a github workflow
2022-05-03 16:00:26 +10:00
Filipe
664e2a5423
Merge pull request #9057 from jibees/9038-handle-payment-errors-on-split-checkout
...
Split checkout: handle cards that throws any errors
2022-05-02 12:20:02 +01:00
Transifex-Openfoodnetwork
183a6f8fc7
Updating translations for config/locales/nb.yml
2022-04-29 19:14:57 +10:00
Jean-Baptiste Bellet
132ab28070
Handle very long description without any space for shipping and ...
...
... payment methods
2022-04-29 10:15:50 +02:00
Jean-Baptiste Bellet
89aa76dbbc
Handle long payment description with no space
2022-04-29 10:15:50 +02:00
Jean-Baptiste Bellet
4635e67707
Create mixins to force wrap
...
No need to pre-wrap since we break-word
2022-04-29 10:15:50 +02:00
Transifex-Openfoodnetwork
8945142149
Updating translations for config/locales/en_FR.yml
2022-04-29 17:58:47 +10:00
Transifex-Openfoodnetwork
7cb6afbd96
Updating translations for config/locales/fr.yml
2022-04-29 17:49:58 +10:00
Maikel Linke
30ea017fa2
Update translations
v4.1.28
2022-04-29 10:23:58 +10:00
Maikel
126a6aa84a
Merge pull request #9114 from openfoodfoundation/fix-docker-setup
...
Fix Docker setup to ease entry for new contributors
2022-04-29 10:18:56 +10:00
Maikel
e2eb92fd90
Merge pull request #9119 from mkllnk/active-storage-part1
...
Store files with Active Storage in addition to Paperclip
2022-04-29 10:10:36 +10:00
J. David Lowe
ff1b895286
switch to openfoodfoundation
2022-04-28 14:42:24 -07:00
J. David Lowe
da2e7b404f
add Mayhem for API as a github workflow
2022-04-28 13:30:34 -07:00
Filipe
ce9bd37c9b
Merge pull request #9117 from jibees/9085-add-additionnal-items-in-/cart-page-for-split-checkout
...
Split checkout: Unless order is complete, /cart could be updated
2022-04-28 19:59:08 +01:00
Filipe
d57d812ab4
Merge pull request #9110 from georgethoppil/update-subscription-deleted-product
...
Return if variant is deleted
2022-04-28 15:54:51 +01:00
Jean-Baptiste Bellet
99c0416cc7
Handle long shipping method description with no spaces
2022-04-28 10:40:28 +02:00
jibees
335de1d038
Merge pull request #9121 from openfoodfoundation/transifex
...
Transifex
2022-04-28 10:10:13 +02:00
Transifex-Openfoodnetwork
5b9a5c1df6
Updating translations for config/locales/fr_CA.yml
2022-04-28 07:38:59 +10:00
Transifex-Openfoodnetwork
72641ba317
Updating translations for config/locales/en_CA.yml
2022-04-28 07:26:44 +10:00
Jean-Baptiste Bellet
34fcb4a1f7
Order shipping methods by name
...
+ create spec
2022-04-27 16:37:37 +02:00
Jean-Baptiste Bellet
b370ee328a
Click twice on "Next - Order summary" button
...
yes, this is a hack, but can't make it work as a normal behavior. For testing purpose, we use `spec/support/fixtures/stripejs-mock.js` and it seems not working with our `app/webpacker/controllers/stripe_controller.js`
2022-04-27 15:43:05 +02:00
Jean-Baptiste Bellet
5fe8060ea6
Actually don't use requestSubmit() as it is not supported by Safari
...
https://caniuse.com/?search=requestSubmit
2022-04-27 15:43:05 +02:00
Jean-Baptiste Bellet
a8afe7fee3
Use requestSubmit() method for actually submit the form with event
...
... that could be catch by turbo (and then handled by cable_ready)
`this.catchFormSubmit` avoid infinite loop then
2022-04-27 15:43:05 +02:00
Jean-Baptiste Bellet
8bbb80ef55
Catch GatewayError exception and handle by updating flash[:error]
2022-04-27 15:43:05 +02:00
François Turbelin
fe2ee57cb3
Use Install Bundler script in Dockerfile
2022-04-25 22:40:50 +02:00
Maikel Linke
9dc3c5a06c
Add task for ContentConfig image migration
2022-04-25 13:00:31 +10:00
Maikel Linke
1c1f9d73a3
Add task to migrate existing files to Active Storage
...
Common migrations look for all models with *_file_name attributes but I
found that unreliable in our code base. It finds too many model classes
and doesn't allow us to be more selective in the migration. So I used
our own migration declaration to migrate exactly those attachments
specified.
2022-04-25 13:00:31 +10:00
Maikel Linke
0b885b3954
Protect terms of service from migration updates
...
Active Storage always touches associated records when attachments are
changed. But for the Terms of Service it's important to keep the
updated_at date because that's how we find out how new it is and if a
customer accepted those terms already.
And while we migrate files, the content of the files will stay the same
and we don't want customers to be asked to accept the same terms again.
2022-04-25 13:00:31 +10:00
Maikel Linke
7bcfda0a52
Duplicate all new Paperclip files to ActiveStorage
...
We do this for all models in the code base. There's one special case,
the ConentConfiguration which is not a model and we can't use the same
approach there. We will have to deal with that separately later.
2022-04-25 13:00:31 +10:00
Maikel Linke
92bbcbb7ce
Process correct attachment when model has several
...
Luckily Paperclip has designated callbacks for processing each
attachment separately. We can just hook into that.
2022-04-25 13:00:31 +10:00
Maikel Linke
c36ad96acc
Move file duplication code to concern to share
...
I chose `has_one_migrating` as method name for two reasons:
1. It reflects Active Storage's method `has_one_attached`.
2. And it has the same length as Paperclip's `has_attached_file`.
Therefore the commits don't need any whitespace changes.
When we change it to `has_one_attached`, we will also remove the
Paperclip options which then don't need whitespace changes either.
2022-04-25 13:00:31 +10:00
Maikel Linke
ec64e5c8f7
Store images with Active Storage as well
...
While we migrate from Paperclip to Active Storage, we need to use both
at the same time to avoid any downtime or lost images.
Once the migration is complete, we want to use the same name for
attachment as before. Using Paperclip and Active Storage at the same
time creates a name conflict on a couple of methods.
I'm using alias_method as a temporary solution to access Active Storage
methods. We will remove that after the migration. I declare Paperclip
afterwards so that we have those methods declarations for backwards
compatibility now.
2022-04-25 13:00:31 +10:00
Maikel Linke
95cb6e93e7
Configure Active Storage
...
We are re-using the same config used for Paperclip except for disk
storage. Active Storage uses directory sharding on the local disk which
means that we can't create blob entries that point to the existing
Paperclip files. We will just copy them to the standard `storage/`
directory.
2022-04-25 13:00:30 +10:00