Matt-Yorkley
623c0eada5
Reinstate removed naming on checkout routes and tidy up
2021-08-03 11:24:22 +02:00
Matt-Yorkley
937ba3ca0a
Ensure previously selected shipping method is selected in form
2021-08-03 11:24:17 +02:00
Matt-Yorkley
6f2035febe
Update (provisional) checkout actions boilerplate
2021-08-03 11:24:13 +02:00
Matt-Yorkley
2207aae679
Add strong params for checkout
...
We'll need to add more as we go
2021-08-03 11:24:08 +02:00
Matt-Yorkley
a32ca23ca5
Simplify routes and partials
2021-08-03 11:24:03 +02:00
Matt-Yorkley
aba3cf99a3
Fix address2 field
2021-08-03 11:23:58 +02:00
Matt-Yorkley
d10899d9ea
Simplify use of nested field helpers
2021-08-03 11:23:53 +02:00
Matt-Yorkley
cea2433c3e
Fix indentation
2021-08-03 11:23:30 +02:00
Matt-Yorkley
6b430f9440
Drop AMS injection for shipping methods
...
We don't need this now
2021-08-03 11:23:10 +02:00
Jean-Baptiste Bellet
57d7191332
Add new step, second one: payment method
...
Add payment method form
- select the right form depending on the path
2021-07-26 15:47:36 +02:00
Jean-Baptiste Bellet
9b29997498
Add selected class on form tab depending on the current path
2021-07-26 15:47:36 +02:00
Andy Brett
3d77ba49ac
pseudocode flow for steps
2021-07-26 15:47:36 +02:00
Andy Brett
939169c504
remove unused advance_to_state param
2021-07-26 15:47:36 +02:00
Jean-Baptiste Bellet
91c4beea0f
No need to add flash error for error
...
as we render error on each input with error
2021-07-26 15:47:36 +02:00
Jean-Baptiste Bellet
151a6fd16b
Add first stimulus controllers to display elements
...
1. Introduce a stimulus toggle_controller
- controller: { "data-controller": "toggle" }
- action: { "data-action": "toggle#toggle" }
- show or not: { "data-toggle-show": true || false }
- targets: { "data-toggle-target": "content", style: "display: none" }
Display payment method price
2. States are populated via a new dependant_select_controller by stimulus.
Usage:
- controller : { "data-controller": "dependant-select", "data-dependant-select-options-value": [ [1: ["option", "for", "1"], [2: ["option", "for", "2"] ] }
- target (on the populating target): { "data-dependant-select-target": "select" }
- source and action (on the input that leads the dependant select): {"data-dependant-select-target": "source", "data-action": "dependant-select#handleSelectChange"}
Some improvements on readability
3. Populate ShippingMethod description thanks to "shippingmethod_controller"
+
- Add countries and states
2021-07-26 15:47:36 +02:00
Jean-Baptiste Bellet
200ced62fb
Load shipping methods in the Controller
...
needed to populate the form
2021-07-26 15:47:36 +02:00
Jean-Baptiste Bellet
1076ec777c
Define a method error_message_on to display error by field
2021-07-26 15:47:36 +02:00
Andy Brett
6866cecdfa
start with a straight copy of CheckoutController - WIP!
2021-07-26 15:47:36 +02:00
Andy Brett
0ea968a900
add redirection to correct step
2021-07-26 15:47:36 +02:00
Jean-Baptiste Bellet
87a0a5846d
WIP; only advance order to delivery state
...
Use the hidden_field_tag rails helper and move it
2021-07-26 15:47:36 +02:00
Andy Brett
af79969d96
add SplitCheckoutController and conditional route
2021-07-26 15:47:36 +02:00
Jean-Baptiste Bellet
49f026629c
Add tabs for the new split checkout + first step: your details
...
- Add new split checkout for user with `split_checkout` feature
- Add the first step: Your details
- with 3 parts : Your details, Billing address and Delivery address
2021-07-26 15:47:36 +02:00
Maikel
c9159a3096
Merge pull request #7956 from filipefurtad0/add_ferrum_cuprite
...
Add the Ferrum-Cuprite driver to the stack
2021-07-23 10:27:41 +10:00
Matt-Yorkley
29acf957ae
Update all locales with the latest Transifex translations
2021-07-22 22:16:41 +01:00
Matt-Yorkley
82d8ab0bce
Merge pull request #7944 from openfoodfoundation/transifex
...
Transifex
2021-07-22 23:11:12 +02:00
Filipe
49aa1e189c
Merge pull request #69 from Matt-Yorkley/cuprite-tidyup
...
Cuprite tidyup
2021-07-22 14:30:40 +01:00
Matt-Yorkley
2b4d8fbd63
Reorganise cuprite setup code
2021-07-22 11:01:51 +01:00
Matt-Yorkley
1c493c7238
Don't use feature keyword in system test
2021-07-22 10:49:14 +01:00
Matt-Yorkley
7ee6e48f17
Ignore external scripts
...
In some cases the browser will try to load external files like fonts, Google maps JS, Stripe JS. This can cause network issues on slow connections and add a lot of unnecessary time to each test.
2021-07-22 10:48:16 +01:00
Matt-Yorkley
0fbba0fa9d
Clean up some comments
2021-07-22 10:20:57 +01:00
Matt-Yorkley
a14059a77d
Adjust timeout settings for more flexibility
2021-07-22 10:18:50 +01:00
Matt-Yorkley
ac64908c2b
Tidy up compiling helper
2021-07-22 10:18:18 +01:00
Filipe
b63eda8adf
Merge pull request #68 from Matt-Yorkley/cuprite
...
Run system tests in their own action
2021-07-21 22:14:41 +01:00
Matt-Yorkley
94e476d21f
Run system tests in their own action
2021-07-21 18:58:28 +01:00
filipefurtad0
85d2db52ae
Sets headless: true
2021-07-21 16:42:46 +01:00
Transifex-Openfoodnetwork
13e2097272
Updating translations for config/locales/de_DE.yml
2021-07-22 01:34:15 +10:00
filipefurtad0
df7f4d0a31
Removed some unecessary comments
2021-07-21 16:25:20 +01:00
filipefurtad0
ecbab52f06
Removes unecessary CAPYBARA_APP_HOST specification
2021-07-21 15:59:08 +01:00
filipefurtad0
386480d493
Adds changes on Gemfile.lock file
2021-07-21 15:57:42 +01:00
Matt-Yorkley
daa73d1aca
Merge pull request #7958 from Matt-Yorkley/pagy-overflow
...
Add overflow handling on pagination
v3.8.7
2021-07-21 13:19:43 +02:00
Matt-Yorkley
7597a58f53
Add overflow handling on pagination
2021-07-21 09:55:42 +01:00
Maikel Linke
cd99b502d8
Update translations
v3.8.6
2021-07-21 11:15:39 +10:00
Andy Brett
ba6dd01446
Merge pull request #7957 from Matt-Yorkley/uglifier
...
Use :harmony option with Uglifier when minimizing javascript
2021-07-20 12:35:36 -07:00
Matt-Yorkley
98ea70bfa0
Use harmony option with Uglifier when minimizing javascript
...
Resolves a bug where the asset pipeline tries to minify assets that have already been minified by Webpack
2021-07-20 19:11:50 +01:00
jibees
40abefa908
Merge pull request #7955 from Matt-Yorkley/stimulus-js
...
Add StimulusJS
2021-07-20 17:44:04 +02:00
filipefurtad0
ec07a3cd3d
Add the Ferrum-Cuprite driver to the stack
2021-07-20 15:52:21 +01:00
Matt-Yorkley
6882201533
Add StimulusJS and example controller
2021-07-20 15:22:16 +01:00
Transifex-Openfoodnetwork
32a7537cff
Updating translations for config/locales/es.yml
2021-07-20 23:38:11 +10:00
Transifex-Openfoodnetwork
94e30b5416
Updating translations for config/locales/ca.yml
2021-07-20 23:37:29 +10:00
Transifex-Openfoodnetwork
71d6680b8b
Updating translations for config/locales/en_FR.yml
2021-07-20 17:26:26 +10:00