Maikel Linke
4c3d619260
Report customers in deterministic order
...
The result could be random before which led to a flaky spec. I could
have adjusted the spec but I thought that it may be better UX as well to
be deterministic, especially when exporting into spreadsheets.
2023-08-23 17:03:30 +10:00
Maikel Linke
226d270cc1
Remove now obsolete comment
2023-08-23 14:30:46 +10:00
Maikel Linke
58fc9fc8bb
Update symbol for technical changes
2023-08-23 14:29:52 +10:00
Maikel
7e55421ab8
Convey feature toggle release category more clearly
...
Co-authored-by: David Cook <david@redcliffs.net >
2023-08-23 12:38:49 +10:00
dependabot[bot]
ea46d15ad4
chore(deps): bump aws-sdk-s3 from 1.132.1 to 1.133.0
...
Bumps [aws-sdk-s3](https://github.com/aws/aws-sdk-ruby ) from 1.132.1 to 1.133.0.
- [Release notes](https://github.com/aws/aws-sdk-ruby/releases )
- [Changelog](https://github.com/aws/aws-sdk-ruby/blob/version-3/gems/aws-sdk-s3/CHANGELOG.md )
- [Commits](https://github.com/aws/aws-sdk-ruby/commits )
---
updated-dependencies:
- dependency-name: aws-sdk-s3
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-23 02:28:35 +00:00
dependabot[bot]
752d77110d
chore(deps): bump rails from 7.0.7 to 7.0.7.2
...
Bumps [rails](https://github.com/rails/rails ) from 7.0.7 to 7.0.7.2.
- [Release notes](https://github.com/rails/rails/releases )
- [Commits](https://github.com/rails/rails/compare/v7.0.7...v7.0.7.2 )
---
updated-dependencies:
- dependency-name: rails
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-23 02:28:07 +00:00
Maikel
57c44ffc72
Merge pull request #11429 from openfoodfoundation/dependabot/bundler/newrelic_rpm-9.4.2
...
chore(deps): bump newrelic_rpm from 9.4.1 to 9.4.2
2023-08-23 12:24:53 +10:00
Maikel
9bfb59d45f
Merge pull request #11428 from openfoodfoundation/dependabot/bundler/rubocop-1.56.1
...
chore(deps-dev): bump rubocop from 1.56.0 to 1.56.1
2023-08-23 12:23:43 +10:00
Mohamed ABDELLANI
c689e2da8b
remove ToS link on mails if ToS file is not set
2023-08-22 11:33:04 +01:00
Mohamed ABDELLANI
93c2cfd6c0
hide ToS from footer if the file is not set
2023-08-22 11:27:20 +01:00
Konrad
3aca33b8a6
Merge pull request #11230 from macanudo527/fix_products_controller
...
Add Query Object to Product Model to Fix Metrics/ClassLength
2023-08-22 11:38:09 +02:00
Mohamed ABDELLANI
b082475c35
update product's unit_value validation
2023-08-22 10:28:27 +01:00
Mohamed ABDELLANI
423163c4e9
hide agree to the ToS when not ToS file is set
2023-08-22 10:22:26 +01:00
Mohamed ABDELLANI
d47b47627c
tos_accepted? returns true if the ToS file is not set
2023-08-22 10:22:26 +01:00
dependabot[bot]
067ddb7bcd
chore(deps-dev): bump knapsack_pro from 5.3.5 to 5.4.1
...
Bumps [knapsack_pro](https://github.com/KnapsackPro/knapsack_pro-ruby ) from 5.3.5 to 5.4.1.
- [Changelog](https://github.com/KnapsackPro/knapsack_pro-ruby/blob/master/CHANGELOG.md )
- [Commits](https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v5.3.5...v5.4.1 )
---
updated-dependencies:
- dependency-name: knapsack_pro
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-22 09:04:55 +00:00
dependabot[bot]
238249e8ec
chore(deps): bump mime-types from 3.5.0 to 3.5.1
...
Bumps [mime-types](https://github.com/mime-types/ruby-mime-types ) from 3.5.0 to 3.5.1.
- [Changelog](https://github.com/mime-types/ruby-mime-types/blob/main/History.md )
- [Commits](https://github.com/mime-types/ruby-mime-types/compare/v3.5.0...v3.5.1 )
---
updated-dependencies:
- dependency-name: mime-types
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-22 09:03:13 +00:00
Mohamed ABDELLANI
a896d414c2
optimize system test
2023-08-22 09:16:47 +01:00
Mohamed ABDELLANI
3ab288f435
fix product's unit value validation
2023-08-22 09:16:47 +01:00
Mohamed ABDELLANI
d4dbc0adb5
fix unit_value initialization on the product duplicator
2023-08-22 09:16:47 +01:00
Mohamed ABDELLANI
a9e4159839
validate unit_value > 0 on product model
2023-08-22 09:16:47 +01:00
David Cook
2edf504d65
Ignore long classes for now
...
As much as I hate to add to this list, this is still a work in progress so it's not worth refactoring at this point.
2023-08-22 11:51:05 +10:00
David Cook
b0e77df226
Style form actions area
2023-08-22 11:51:05 +10:00
David Cook
fccde964bf
Enable 'medium' style for reset buttons
2023-08-22 11:46:56 +10:00
David Cook
7bf79441c8
Update link colours to match new design
2023-08-22 11:40:58 +10:00
David Cook
3cc5d7ba1d
Copy form styles to v3
2023-08-22 11:40:58 +10:00
David Cook
37d1113e4c
Align row headers with input contents
...
Inputs add extra padding, so we add the same padding to the header. Using an opt-in class, because I think we won't want this on all columns.
2023-08-22 11:40:58 +10:00
David Cook
8440c44a6f
Remove unused style
2023-08-22 11:40:58 +10:00
David Cook
2b09ec7c21
[fixup] Left line for row hover
2023-08-22 11:40:58 +10:00
David Cook
be24247df2
[wip] Left line for row hover
...
But it's not perfect. Can we use a pseudo element instead?
2023-08-22 11:40:58 +10:00
David Cook
565ea23175
Hide borders from inputs until hover
2023-08-22 11:40:58 +10:00
David Cook
ef63c520c0
Aggregate errors
2023-08-22 11:40:58 +10:00
David Cook
a70f392654
Show error messages
...
It's kinda hard to test reflexes..
2023-08-22 11:40:58 +10:00
David Cook
a0dba001bc
Attempt to save all records in bulk update
...
Before, it would abort after the first invalid record, and it doesn't tell you about the others. This way you find out about all at once.
This affects the existing Bulk Edit Products screen, and can result in longer error messages than before. But I would argue that's a good thing.
I think this is technically optional for BUU at this point, but a helpful improvement.
2023-08-22 11:40:58 +10:00
David Cook
71c36585bc
Retain order when saving.
...
Perhaps this should be tested in the system spec too ("I can rename a product and still see it after saving"). But I'd like to find the compromise to avoid bulking up system specs too much. I think it's covered well enough by the reflex spec?
2023-08-22 11:40:58 +10:00
David Cook
6ffe1ec1ad
Retain the order of products in the collection
2023-08-22 11:40:58 +10:00
David Cook
ae3cd6f7e0
Add bulk_update product form for product name
...
(For now at least,) we use one big standard Rails form, and ModelSet to update each record.
Submitting with Reflex allows us to manage the loading state along with the rest of the page (although I would rather use the built in HTTP POST standard).
Aria-label makes it a bit easier for testing (and accessibility software of course!). Technically it should have been aria-labelledby="id_of_column_header" but that would have resulted in more HTML and processing, which seemed silly.
Best viewed with whitespace ignored.
2023-08-22 11:40:58 +10:00
David Cook
a98242e5b4
Capybara: enable_aria_label
2023-08-22 11:40:58 +10:00
David Cook
e37a499125
Merge pull request #11383 from jibees/11274-buu-as-a-single-producer-i-should-not-be-able-to-see-the-producer-dropdown
...
🚧 Products V3: Do not display "Producers" selector if only one is possible
2023-08-22 11:33:12 +10:00
Maikel Linke
31d87ca087
Show producer filter only when multiple options
...
Also introducing a view spec here because the code was incorrectly
refactored before. The execution of the view spec takes only 100ms
which is much faster than a system spec.
2023-08-22 10:00:06 +10:00
Jean-Baptiste Bellet
6582a875c6
Do not display "Producers" selector if only one is possible
...
Fix #11274
Co-Authored-By: David Cook <david@redcliffs.net >
2023-08-22 10:00:06 +10:00
David Cook
71b297b5b5
Merge pull request #11417 from jibees/11410-go-back-to-top-after-selecting-a-page-in-pagination
...
🚧 BUU: Once products are loaded, scroll higher, ie. just above filters
2023-08-22 09:20:31 +10:00
Konrad
391d06130d
Merge pull request #11395 from duleorlovic/google-map-region
...
Add Google map region parameter
2023-08-21 18:14:56 +02:00
Mohamed ABDELLANI
aaf1d22ccc
fix order invoice generator must update the latest invoice
2023-08-21 16:10:05 +01:00
dependabot[bot]
397f365fe6
chore(deps): bump newrelic_rpm from 9.4.1 to 9.4.2
...
Bumps [newrelic_rpm](https://github.com/newrelic/newrelic-ruby-agent ) from 9.4.1 to 9.4.2.
- [Release notes](https://github.com/newrelic/newrelic-ruby-agent/releases )
- [Changelog](https://github.com/newrelic/newrelic-ruby-agent/blob/dev/CHANGELOG.md )
- [Commits](https://github.com/newrelic/newrelic-ruby-agent/compare/9.4.1...9.4.2 )
---
updated-dependencies:
- dependency-name: newrelic_rpm
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-21 09:28:35 +00:00
dependabot[bot]
c97b5b3693
chore(deps-dev): bump rubocop from 1.56.0 to 1.56.1
...
Bumps [rubocop](https://github.com/rubocop/rubocop ) from 1.56.0 to 1.56.1.
- [Release notes](https://github.com/rubocop/rubocop/releases )
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop/rubocop/compare/v1.56.0...v1.56.1 )
---
updated-dependencies:
- dependency-name: rubocop
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-21 09:27:48 +00:00
Maikel
af73720157
Merge pull request #11423 from openfoodfoundation/dependabot/bundler/puma-6.3.1
...
chore(deps): bump puma from 6.3.0 to 6.3.1
2023-08-21 14:04:20 +10:00
Maikel Linke
2917e2f849
Generate all release note categories with labels
...
If reviewers add the right labels to pull requests then the release
note categories can be generated automatically.
2023-08-21 10:39:52 +10:00
Maikel Linke
ff18270898
Allow has_and_belongs_to_many to reduce code
...
The Rails/HasAndBelongsToMany rule wants model classes for all
many-to-many relationship tables in the database. But our team thinks
that it's useful to declare has_and_belongs_to_many relationships which
don't require an additional model.
2023-08-21 10:12:33 +10:00
Neal Chambers
0b6b750706
Clarify Product Scope Query Spec
2023-08-20 13:01:34 +09:00
Neal Chambers
fc47c57603
Add helper method to products controller and Use query object
2023-08-20 13:00:39 +09:00