grocy/controllers
google-labs-jules[bot] f41cb227fc feat: Adapt Grocy for the Chinese market
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.
2025-08-13 13:55:17 +00:00
..
Users Upgraded PHP-CS-Fixer / applied optimized rules 2023-08-02 18:44:30 +02:00
BaseApiController.php Move GetParsedAndFilteredRequestBody into BaseApiController 2023-09-01 17:58:02 +02:00
BaseController.php Finalized frontend external barcode lookup implementation (references #158) 2025-01-12 13:58:47 +01:00
BatteriesApiController.php Added option to include details in the webhook sent to label printers (#2704) 2025-03-21 16:34:33 +01:00
BatteriesController.php Add userfields to battery charge cycle tracking (#2490) 2024-03-10 18:12:02 +01:00
CalendarApiController.php API keys can now have a description 2023-05-23 20:31:51 +02:00
CalendarController.php Optimized imports 2023-05-13 14:43:51 +02:00
ChoresApiController.php Added option to include details in the webhook sent to label printers (#2704) 2025-03-21 16:34:33 +01:00
ChoresController.php Optimized imports 2023-05-13 14:43:51 +02:00
EquipmentController.php Optimized imports 2023-05-13 14:43:51 +02:00
ExceptionController.php Upgraded package php-di/php-di 2023-07-29 14:02:56 +02:00
FilesApiController.php Stream uploads to file (#2477) 2024-02-23 17:56:32 +01:00
GenericEntityApiController.php Handle stock userfields in generic entity interaction API endpoints (closes #2381) 2023-11-14 21:07:30 +01:00
GenericEntityController.php Optimized imports 2023-05-13 14:43:51 +02:00
GrocycodeTrait.php Upgraded PHP-CS-Fixer / applied optimized rules 2023-08-02 18:44:30 +02:00
LoginController.php Only accept application/json requests for (JSON) API requests 2023-09-01 00:53:25 +02:00
OpenApiController.php API keys can now have a description 2023-05-23 20:31:51 +02:00
PrintApiController.php Optimized imports 2023-05-13 14:43:51 +02:00
RecipesApiController.php Added option to include details in the webhook sent to label printers (#2704) 2025-03-21 16:34:33 +01:00
RecipesController.php Fixed product barcode scanning on the recipe ingredient edit page (fixes #2572) 2024-08-24 18:22:39 +02:00
StockApiController.php Added option to include details in the webhook sent to label printers (#2704) 2025-03-21 16:34:33 +01:00
StockController.php Optimized tooltip hide handling 2025-01-17 16:22:41 +01:00
StockReportsController.php feat: Adapt Grocy for the Chinese market 2025-08-13 13:55:17 +00:00
SystemApiController.php Optimized imports 2023-05-13 14:43:51 +02:00
SystemController.php Changed manifest title 2023-08-06 09:28:41 +02:00
TasksApiController.php Optimized imports 2023-05-13 14:43:51 +02:00
TasksController.php Optimized imports 2023-05-13 14:43:51 +02:00
UsersApiController.php Optimized imports 2023-05-13 14:43:51 +02:00
UsersController.php Upgraded PHP-CS-Fixer / applied optimized rules 2023-08-02 18:44:30 +02:00