Luis Ramos
714bfafede
Merge pull request #6037 from arku/fix/hash-diff-deprecation
...
Remove Hash#diff from cancan helper
2020-09-19 20:21:24 +01:00
Luis Ramos
8f98fb830a
Merge pull request #6053 from jhsu802701/bundler_1_17_3
...
Upgraded the bundler version in the Dockerfile
2020-09-19 19:33:48 +01:00
Matt-Yorkley
6737270ab7
Rename partial
2020-09-19 15:49:14 +01:00
Matt-Yorkley
70bd2161ba
Rename Stripe Connect factory for clarity
2020-09-19 12:55:31 +01:00
Matt-Yorkley
1d01fc955d
Include StripeJS fixture and refactor to partial
2020-09-19 12:20:55 +01:00
Matt-Yorkley
4080e7daa4
Add comments in StripeJS mock
2020-09-19 12:20:55 +01:00
Matt-Yorkley
cca8f9faf6
Add missing behaviour in StripeJS mock
2020-09-19 12:20:55 +01:00
andresgutgon
636da229ad
Fix sticky search bar disappearing when cart is open.
...
So I think the issue is that all the HTML is wrapped on an
`off-canvas-wrap` class that is used for doing the sidebar car open over
main content. The problem is that when this car sidebar is open body of
HTML overflow is changed to `overflow: hidden` and search bar use CSS
`position: sticky;` which doesn't work when its parent has overflow
hidden. The issue was that `off-canvas-wrap` had an `overflow: inherit`
which means when body is set to overflow hidden this div inherits it and
break search bar position sticky when cart sidebar is opened. The
solution is to use `position: initial` which means use what a div has as
default value for `overflow` which I think it's `visible`. This class is
overriding the same class that comes from Foundation Framework that set
this div to be `overflow: hidden`. The override was added when [we added
search sticky](ff69389bb0 )
More info about the problem with [position:sticky and its parent having
overflow hidden](https://css-tricks.com/dealing-with-overflow-and-position-sticky/ ) also info about [position initial vs inherit](https://stackoverflow.com/a/29661356 )
2020-09-19 12:21:24 +02:00
andresgutgon
ef85ac3e27
Fixed admin header buttons dropping multiple lines.
2020-09-19 11:37:09 +02:00
Matt-Yorkley
368772dad2
Add another missing method to StripeJS mock
...
Our Angular code calls this method in some tests and expects a Promise object with a hash describing a payment method.
2020-09-19 00:39:39 +01:00
Matt-Yorkley
857f4e3a37
Add missing method to StripeJS mock
...
Our Angular code calls this method for interacting with live form validations and messages. We don't really need to use in tests, it just needs to exist otherwise the specs fail.
2020-09-19 00:39:39 +01:00
Matt-Yorkley
67d136548f
Update form elements to more accurately reflect actual Stripe form
...
These attributes more closely reflect the actual form injected by Stripe. The additional attributes are also useful for selecting elements in tests
2020-09-19 00:39:39 +01:00
Matt-Yorkley
4c77c41533
Remove unused postal field from form
2020-09-19 00:39:39 +01:00
Matt-Yorkley
49bd9bd778
Import StripeJS mock from fake_stripe gem
...
This is the original from https://github.com/thoughtbot/fake_stripe/blob/v0.3.0/lib/fake_stripe/assets/v3.js
2020-09-19 00:39:39 +01:00
Matt-Yorkley
0ba3977422
Add new Stripe checkout spec
2020-09-19 00:39:32 +01:00
Andy Brett
edefe1d4bc
use correct cache key for old preference
2020-09-18 14:35:51 -07:00
Matt-Yorkley
4ed34bb942
Add javascript debug option to test suite
2020-09-18 21:20:47 +01:00
Jason Hsu
560577827f
Upgraded the bundler version in the Dockerfile to be consistent with that specified in Gemfile.lock
2020-09-18 15:07:44 -05:00
Andy Brett
b9ee945062
fix nomethod error by interpolating integer inside string
2020-09-18 10:10:27 -07:00
Andy Brett
dc7b9ed8fa
use sql query to update weight calculator prefs
2020-09-18 09:55:29 -07:00
Luis Ramos
9c1a7c13dc
Adding the russian language
2020-09-18 16:43:57 +01:00
Luis Ramos
fe7d7b54d1
Make version number 1.0.0 as we dont want to mantain the app version here and update AGPL to v3
2020-09-18 16:20:09 +01:00
Luis Ramos
2fae7e0df3
Use moment js min and locale files from node_modules
...
In this commit fil and nl-be are also added
We could use moment/min/locales.min.js but that would add all locales available in moment which would be a move in size from current 30k in moment locales to 300k
2020-09-18 16:18:24 +01:00
Luis Ramos
d4c4bcaa50
Make node_modules available for code in app/assets
2020-09-18 15:53:34 +01:00
Luis Ramos
5b3f700fb4
Move momentjs from a Gemfile dependeny to a package.jons dependency and upgrade it from 2.20.1 to 2.28.0
2020-09-18 15:29:38 +01:00
Luis Ramos
a872667912
Add yarn.lock after yarn was added in ofn-install and installed in all servers, every ofn deploy will run yarn install now
2020-09-18 15:28:43 +01:00
Transifex-Openfoodnetwork
9cb7275250
Updating translations for config/locales/ar.yml
2020-09-18 19:49:55 +10:00
Transifex-Openfoodnetwork
3bf98e295d
Updating translations for config/locales/en_FR.yml
2020-09-18 17:36:38 +10:00
Transifex-Openfoodnetwork
678e0be0a5
Updating translations for config/locales/fr.yml
2020-09-18 17:36:29 +10:00
Andy Brett
843f43eb78
delete cached per_kg preference for all weight calculators
2020-09-17 17:30:43 -07:00
Andy Brett
96fb65600e
refactor views to oneliners without single letter variable names
2020-09-17 16:45:55 -07:00
Andy Brett
fdb1019ee2
fix styles per rubocop
2020-09-17 16:41:49 -07:00
Andy Brett
0ef4dec15e
specs for product import using pounds and ounces
2020-09-17 09:34:22 -07:00
Andy Brett
bd25e8b40d
Revert "schema update"
...
This reverts commit 73149dc695 .
2020-09-17 08:46:03 -07:00
Andy Brett
66099239aa
add translation for calculator preferred unit error
2020-09-17 08:42:08 -07:00
Andy Brett
988abf7a8c
update preference field interface to be more clear
2020-09-17 08:27:45 -07:00
Transifex-Openfoodnetwork
880ef9cf4f
Updating translations for config/locales/es.yml
2020-09-18 01:01:34 +10:00
Transifex-Openfoodnetwork
095633f21e
Updating translations for config/locales/ca.yml
2020-09-18 00:59:40 +10:00
Pau Pérez Fabregat
3a894a1cdb
Merge pull request #6002 from openfoodfoundation/dependabot/bundler/unicorn-5.7.0
...
Bump unicorn from 5.6.0 to 5.7.0
v3.2.8
2020-09-17 16:57:16 +02:00
Transifex-Openfoodnetwork
ee862891c1
Updating translations for config/locales/en_FR.yml
2020-09-18 00:51:30 +10:00
Transifex-Openfoodnetwork
9dccb641c7
Updating translations for config/locales/fr.yml
2020-09-18 00:50:02 +10:00
Andy Brett
73149dc695
schema update
2020-09-17 07:36:38 -07:00
Andy Brett
977e4e46f3
remove explicit raise from convert_weight
2020-09-17 07:36:28 -07:00
Andy Brett
6466829bdc
fix typo in weight calculator migration
2020-09-17 07:17:25 -07:00
Andy Brett
d1a87f7ba0
add oz and lb as allowed units in product import
2020-09-17 06:34:07 -07:00
Luis Ramos
455111093d
Fix easy rubocop issues
2020-09-17 14:18:51 +01:00
Luis Ramos
ecdba1fa4e
For some reason the factory create(:admin_user) is not working here, this new version works
2020-09-17 14:18:51 +01:00
Luis Ramos
8234ad0906
Ensure test order cycle coordinator is really an enterprise not managed by the user instead of relying on the factory logic
2020-09-17 14:18:51 +01:00
Luis Ramos
60ef32300b
No need to test code with different ability setup, this was a good spec for spree, in ofn we use and test the static auth config in Ability
2020-09-17 14:18:51 +01:00
Luis Ramos
405b317726
Merge ability and ability decorator
2020-09-17 14:18:45 +01:00