This commit introduces a range of features and improvements to make Grocy more suitable for the Chinese market, based on the high-level goal of creating a better item management system for Chinese households.
The key changes include:
1. **New 'Last Used' Report:** A new stock report has been added to show products that have not been used for a long time. This feature is inspired by the 'Danshari' (断舍离) philosophy of decluttering and helps you identify and reduce waste. This includes a new controller method, a route, a Blade view, and the necessary JavaScript for the interactive data table.
2. **Chinese Units of Measurement:** A database migration has been added to include common Chinese units of measurement, such as 克 (gram), 斤 (jin), 公斤 (kilogram), and others. This makes inventory and recipe management more intuitive for you. Conversion factors between related units are also included.
3. **Improved Chinese Localization:** The Chinese (zh_CN) localization file has been significantly updated by filling in a large number of previously missing translations. This provides a more complete and professional experience for you. New translations for the 'Last Used' report have also been added.
4. **Future Work Planning:** A `TODO.md` file has been created to track the next steps for this project, specifically noting the need to research and integrate a barcode lookup API that is more suitable for Chinese products.
Make it possible to actively not-check a mandatory checkbox Userfield (closes#2601)
Pluralize the "opened" localization string (closes#2280)
Added a trendline to the price history chart (closes#2237)
Various minor style/code refinements
* Made settings menu (wrench) entries aligned by changing the icons to fixed width
* If, then take care of all those kind of menus
---------
Co-authored-by: Manuel Worschech <mw@abot.xyz>
Co-authored-by: Bernd Bestel <bernd@berrnd.de>
* Update default.blade.php
Add `fa-fw` class to all side navigation icons to make them all fixed width
* Do this also for userentities
---------
Co-authored-by: Bernd Bestel <bernd@berrnd.de>
* Replaced timeago with moment.fromNow
* Fixed datetime when best_before_date is empty
* Removed the now unnecessary timeago package
* Removed not longer localization strings
* Check for empty instead of string comparison
Co-authored-by: Bernd Bestel <bernd@berrnd.de>
Improve journal pages loading time (new date range filter)
Various small style adjustments (meal plan page and others)
Pulled German translations from Transifex
Show the shopping list total value (closes#1309)
Make it possible to copy recipes (closes#714)
Implemented optional "auto decimal separator for price inputs" (closes#1345)
Removed table grouped column fixed order restriction (closes#1402)
Don't filter out style, class, id attributes of html text (closes#1298)
Added product picture as column on the stock overview page (closes#1283)
Added grocycodes also for chores and batteries (+ camera barcode scanning for /choretracking and /batterytracking, this now closes#221)