Gaetan Craig-Riou
98545741e6
Add tomselect_select helper
...
When using `tomselect_search_and_select` and searching isn't really
required it leaves the dropdown option open. It can then cause problem
when trying to interact with other element in the page. This happens
because clicking on the chosen option happena before the searching
finishes.
We can now use `tomselect_select` when searching is not actually
required.
It should not be a problem when search is required, as capybara will
wait for the option to appear on the page before clicking.
2024-01-24 14:47:21 +11:00
Gaetan Craig-Riou
270a310e0f
Use send_keys to populate tom select input
...
Setting the value directly doesn't trigger the search, presumably
because it doesn't trigger any javascript event.
2024-01-23 11:52:01 +11:00
dependabot[bot]
cd9c505c6b
chore(deps): bump tom-select from 2.2.3 to 2.3.1
...
Bumps [tom-select](https://github.com/orchidjs/tom-select ) from 2.2.3 to 2.3.1.
- [Release notes](https://github.com/orchidjs/tom-select/releases )
- [Commits](https://github.com/orchidjs/tom-select/compare/v2.2.3...v2.3.1 )
---
updated-dependencies:
- dependency-name: tom-select
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-23 11:52:01 +11:00
Gaetan Craig-Riou
46b1fe713f
Merge pull request #12072 from openfoodfoundation/dependabot/npm_and_yarn/js-big-decimal-2.0.7
...
Bump js-big-decimal from 2.0.4 to 2.0.7
2024-01-23 11:47:40 +11:00
Gaetan Craig-Riou
41c1b8da10
Merge pull request #12071 from openfoodfoundation/dependabot/bundler/shoulda-matchers-6.1.0
...
Bump shoulda-matchers from 6.0.0 to 6.1.0
2024-01-23 11:44:52 +11:00
dependabot[bot]
41268153c0
Bump js-big-decimal from 2.0.4 to 2.0.7
...
Bumps [js-big-decimal](https://github.com/royNiladri/js-big-decimal ) from 2.0.4 to 2.0.7.
- [Release notes](https://github.com/royNiladri/js-big-decimal/releases )
- [Commits](https://github.com/royNiladri/js-big-decimal/compare/v2.0.4...v2.0.7 )
---
updated-dependencies:
- dependency-name: js-big-decimal
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-22 09:36:14 +00:00
dependabot[bot]
36f32ddca2
Bump shoulda-matchers from 6.0.0 to 6.1.0
...
Bumps [shoulda-matchers](https://github.com/thoughtbot/shoulda-matchers ) from 6.0.0 to 6.1.0.
- [Release notes](https://github.com/thoughtbot/shoulda-matchers/releases )
- [Changelog](https://github.com/thoughtbot/shoulda-matchers/blob/main/CHANGELOG.md )
- [Commits](https://github.com/thoughtbot/shoulda-matchers/compare/v6.0.0...v6.1.0 )
---
updated-dependencies:
- dependency-name: shoulda-matchers
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-22 09:21:27 +00:00
Maikel
a55587b765
Merge pull request #12059 from openfoodfoundation/dependabot/bundler/stripe-10.6.0
...
Bump stripe from 10.5.0 to 10.6.0
2024-01-22 10:29:31 +11:00
Maikel Linke
e25464b38a
Re-record stripe API requests
2024-01-22 10:21:15 +11:00
Maikel
1f5541d2fb
Merge pull request #12064 from dacook/bump-prettier-v4
...
Bump prettier and pretty-quick
2024-01-22 10:15:30 +11:00
dependabot[bot]
acb6a866db
Bump stripe from 10.5.0 to 10.6.0
...
Bumps [stripe](https://github.com/stripe/stripe-ruby ) from 10.5.0 to 10.6.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/v10.5.0...v10.6.0 )
---
updated-dependencies:
- dependency-name: stripe
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-19 10:41:53 +00:00
Filipe
487a7b2257
Merge pull request #12058 from openfoodfoundation/dependabot/bundler/stripe-10.5.0
...
Filter out Stripe client_id
2024-01-19 10:36:34 +00:00
David Cook
40166bf3e8
Update spec/support/vcr_setup.rb
...
Co-authored-by: Maikel <maikel@email.org.au >
2024-01-19 09:55:39 +11:00
David Cook
df82db9a95
Fix Layout/LineLength
2024-01-19 09:24:30 +11:00
David Cook
bb19151705
Merge pull request #12035 from filipefurtad0/remove_default_selection_pr_template
...
Removes default selection for User facing changes
2024-01-19 09:21:15 +11:00
Maikel
0b8ac17354
Merge pull request #12060 from openfoodfoundation/dependabot/bundler/roo-2.10.1
...
Bump roo from 2.10.0 to 2.10.1
2024-01-19 09:06:56 +11:00
David Cook
efc4fce7de
Bump pretty-quick to v4.0.0
2024-01-19 09:03:21 +11:00
David Cook
9a5e9817a8
Bump prettier to v3.2.4
...
It's supported by the latest version of pretty-quick now.
2024-01-19 09:02:41 +11:00
Konrad
bed405794f
Merge pull request #11762 from binarygit/send-shipment-email-optionally
...
send-shipment-email-optionally
2024-01-18 12:02:00 +01:00
dependabot[bot]
7983988fde
Bump roo from 2.10.0 to 2.10.1
...
Bumps [roo](https://github.com/roo-rb/roo ) from 2.10.0 to 2.10.1.
- [Release notes](https://github.com/roo-rb/roo/releases )
- [Changelog](https://github.com/roo-rb/roo/blob/master/CHANGELOG.md )
- [Commits](https://github.com/roo-rb/roo/compare/v2.10.0...v2.10.1 )
---
updated-dependencies:
- dependency-name: roo
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-18 09:44:22 +00:00
David Cook
6e522cb055
Filter out Stripe client_id
2024-01-18 12:47:02 +11:00
Maikel
08ca85250a
Merge pull request #12018 from openfoodfoundation/dependabot/bundler/stripe-10.5.0
...
Bump stripe from 10.3.0 to 10.5.0
2024-01-18 12:41:17 +11:00
Maikel
1458f81bf8
Merge pull request #12049 from openfoodfoundation/dependabot/bundler/bullet-7.1.6
...
Bump bullet from 7.1.5 to 7.1.6
2024-01-18 12:33:16 +11:00
Maikel
a0e538d2df
Merge pull request #12053 from openfoodfoundation/dependabot/npm_and_yarn/pretty-quick-3.3.1
...
Bump pretty-quick from 3.1.3 to 3.3.1
2024-01-18 12:32:29 +11:00
David Cook
ccf0e78b91
Refactor
...
It's not as beautiful as I hoped, but it enforces the rule. Am I going too far? Probably.
2024-01-18 12:26:21 +11:00
dependabot[bot]
0e0ad26699
Bump bullet from 7.1.5 to 7.1.6
...
Bumps [bullet](https://github.com/flyerhzm/bullet ) from 7.1.5 to 7.1.6.
- [Changelog](https://github.com/flyerhzm/bullet/blob/main/CHANGELOG.md )
- [Commits](https://github.com/flyerhzm/bullet/compare/7.1.5...7.1.6 )
---
updated-dependencies:
- dependency-name: bullet
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-18 01:22:51 +00:00
Maikel
8be7935169
Merge pull request #12054 from openfoodfoundation/dependabot/bundler/bugsnag-6.26.2
...
Bump bugsnag from 6.26.1 to 6.26.2
2024-01-18 12:21:40 +11:00
David Cook
a2436e9a1a
Rename hidden keys
...
If they follow a rule, it reduces indirection and makes it easier to manage, I reckon.
2024-01-18 12:14:07 +11:00
dependabot[bot]
18ab0312bb
Bump bugsnag from 6.26.1 to 6.26.2
...
Bumps [bugsnag](https://github.com/bugsnag/bugsnag-ruby ) from 6.26.1 to 6.26.2.
- [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.26.1...v6.26.2 )
---
updated-dependencies:
- dependency-name: bugsnag
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-18 01:03:40 +00:00
Maikel
60acd566e1
Merge pull request #12042 from openfoodfoundation/dependabot/bundler/bootsnap-1.17.1
...
Bump bootsnap from 1.17.0 to 1.17.1
2024-01-18 12:02:18 +11:00
dependabot[bot]
2d839d3238
Bump pretty-quick from 3.1.3 to 3.3.1
...
Bumps [pretty-quick](https://github.com/prettier/pretty-quick ) from 3.1.3 to 3.3.1.
- [Release notes](https://github.com/prettier/pretty-quick/releases )
- [Changelog](https://github.com/prettier/pretty-quick/blob/master/CHANGELOG.md )
- [Commits](https://github.com/prettier/pretty-quick/compare/v3.1.3...v3.3.1 )
---
updated-dependencies:
- dependency-name: pretty-quick
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-17 09:06:08 +00:00
David Cook
bf649b2f96
Merge pull request #12044 from openfoodfoundation/dependabot/npm_and_yarn/hotkeys-js-3.13.5
...
Bump hotkeys-js from 3.13.3 to 3.13.5
2024-01-17 16:42:20 +11:00
Gaetan Craig-Riou
4b0e5ee7b6
Update all locales with the latest Transifex translations
v4.4.26
2024-01-17 16:23:08 +11:00
Gaetan Craig-Riou
2a9731f886
Reverse commenting out git status --porcelain
...
It was wrongly commented out in this commit:
7c9d4f1342
2024-01-17 16:20:43 +11:00
David Cook
f348cbc10c
Update Stripe cassettes
...
Note that stripe_account_spec.rb:51 requires a special client_id
2024-01-17 15:16:52 +11:00
David Cook
f14f325441
Record exception details
...
Why mask the actual exception with a made-up one? The name did convey a bit more context, but Bugsnag tracks the context anyway. It would be more helpful to record the details of the error.
Just in case, I checked if there were any recorded instances of StripeDeauthorizeFailure. I couldn't find any in Bugsnag (last 3 months) for AU, Germany, Katuma, NZ, Norway, UK, USA. Also no mention in GitHub issues.
2024-01-17 15:16:51 +11:00
David Cook
d7bb3b77a7
Add comment
...
We really need to update our documentation more, but this is better than nothing.
2024-01-17 15:14:44 +11:00
dependabot[bot]
2315c51221
Bump stripe from 10.3.0 to 10.5.0
...
Bumps [stripe](https://github.com/stripe/stripe-ruby ) from 10.3.0 to 10.5.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/v10.3.0...v10.5.0 )
---
updated-dependencies:
- dependency-name: stripe
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-17 15:14:44 +11:00
Maikel
12be3f9ff6
Merge pull request #12037 from mkllnk/dfc-import
...
Update variant name, price and stock through the DFC API
2024-01-17 11:47:29 +11:00
David Cook
dd502f0883
Merge pull request #12031 from dacook/buu/update-product-images-11065
...
[BUU] Update product images
2024-01-16 15:52:44 +11:00
David Cook
627863bdf7
Fix up button colour variables
2024-01-16 13:45:02 +11:00
David Cook
c67f0c52a2
Show edit button only when hover image
...
This required some branching in the haml, which would be nice to avoid. But we have more work to do here so we'll refactor at the end.
2024-01-16 13:45:02 +11:00
David Cook
fa9deeb948
Remove unused method
2024-01-16 13:45:02 +11:00
David Cook
471dadeaec
Accept only image files
...
Leaving the more specific validation in the Rails model (rather than try to duplicate it).
2024-01-16 13:45:02 +11:00
David Cook
88c840b3ee
Update styling for close button
...
I think we need a more general solution similar to ConfirmModalComponent's .modal-actions so that we can style all modals more consistently. But it's too late in the afternoon.
2024-01-16 13:45:00 +11:00
David Cook
6ed96bae85
Submit image when selected
...
This could have been done with a tiny amount of inline JS, but I went this way in case I needed any special logic for UJS. It turns out we don't.. but it still looks a bit cleaner this way.
2024-01-16 13:44:34 +11:00
David Cook
6479990f6d
Show image update form in modal
...
It submits to the existing controller. I wanted to submit it with StimulusReflex, but it [doesn't support file uploads](https://docs.stimulusreflex.com/guide/working-with-forms.html#a-note-about-file-uploads ). Perhaps we'll enhance this with javascript later.
2024-01-16 13:44:28 +11:00
David Cook
20ca33adbe
Merge pull request #11942 from dacook/buu-product-images-11065
...
[BUU] See product images
2024-01-16 13:41:48 +11:00
David Cook
38661a67bc
Add option to open modal instantly
...
Using pre-existing feature in ModalController
2024-01-16 12:53:07 +11:00
David Cook
137489f492
Refactor: move basic modal styles to generic parent component
...
The style was already being shared with a sibling component.
Now we can instantiate a plain old 'modal'.
2024-01-16 12:53:07 +11:00