Commit Graph

1030 Commits

Author SHA1 Message Date
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
Bernd Bestel
8560becb83
Optimized product picker barcode clear handling (fixes #2745) 2025-05-26 20:20:40 +02:00
Bernd Bestel
d6f3595684
Fixed shoppinglistitemtostock flow purchase dialog close handling (fixes #2739) 2025-05-25 21:44:12 +02:00
Fándly Gergő
e786433273
Replaced barcode scanning library with ZXing (#2706)
* Replaced barcode scanning library with ZXing

* Applied code formatting rules

* Delete now obsolete user settings

* Review

---------

Co-authored-by: Bernd Bestel <bernd@berrnd.de>
2025-03-21 17:41:39 +01:00
Bernd Bestel
541318e964
Include non-latin font variants / clean up font-weight (closes #2699) 2025-03-12 17:48:06 +01:00
Bernd Bestel
d1a8900f98
Also show the product's default store on /stockoverview (closes #2698) 2025-03-10 17:36:23 +01:00
Bernd Bestel
72453eac0a
Transpose product column index when searching in it (fixes #2688) 2025-02-27 17:07:30 +01:00
Bernd Bestel
2b994fd2ee
Handle window.top in embedded iframe situations (fixes #2686) 2025-02-24 19:52:43 +01:00
Bernd Bestel
ce5be6645e
Optimized /locationcontentsheet only-in-stock checkbox page reload persistence (in Chrome) (references #2669) 2025-02-06 20:27:35 +01:00
Bernd Bestel
b7c4011e80
Fixed link userfield saving (fixes #2670) 2025-02-06 20:09:19 +01:00
Bernd Bestel
6a7436dbf0
Persist shopping list print settings (closes #2667) 2025-02-03 18:36:10 +01:00
Bernd Bestel
11fdf5929a
Apply table filters on /tasks load (fixes #2660) 2025-01-31 16:33:55 +01:00
Bernd Bestel
a35db9f1d3
Optimized form input field navigation delay 2025-01-31 15:35:34 +01:00
Bernd Bestel
a177e2a185
Fixed preset-checklist userfield saving (fixes #2655) 2025-01-29 23:27:17 +01:00
Bernd Bestel
1f5263ef22
Escape DataTable regex searches (fixes #2654) 2025-01-27 17:25:25 +01:00
Bernd Bestel
aad589eaca
Optimized product picker focus handling 2025-01-24 16:46:42 +01:00
Bernd Bestel
f4226876c9
Set focus to input after canceled product picker workflow 2025-01-23 23:22:50 +01:00
Bernd Bestel
bbd5f5e7ae
Minor style refinements 2025-01-23 18:08:50 +01:00
Bernd Bestel
8e1d9a4871
Improved mobile filter element spacing 2025-01-22 19:23:41 +01:00
Bernd Bestel
d76d5d2537
Optimized night mode sidebar colors 2025-01-21 21:28:26 +01:00
Bernd Bestel
38882c5ec6
Optimized night mode custom-select background color 2025-01-21 21:09:31 +01:00
Bernd Bestel
9c0e0c5870
Optimized big header button menus 2025-01-21 20:59:01 +01:00
Bernd Bestel
0ff5aee6f6
Optimized the recipe ingredient mark as done button layout 2025-01-19 20:45:56 +01:00
Bernd Bestel
1946ff870e
Make it possible to round up shopping list and recipe ingredient amounts (closes #902, closes #2644) 2025-01-19 20:16:37 +01:00
Bernd Bestel
e3965ed82c
Added a new product option default_purchase_price_type (closes #566) 2025-01-19 16:35:45 +01:00
Bernd Bestel
bc78359dba
Make it possible to disable open per product (closes #1911) 2025-01-19 14:57:19 +01:00
Bernd Bestel
83b8b95b73
Streamline in stock / out of stock wording 2025-01-18 10:33:26 +01:00
Bernd Bestel
23d7b6ad3c
Allow partially in stock recipes to be consumed (closes #386) 2025-01-18 10:23:31 +01:00
Bernd Bestel
4300da8f64
Optimized night mode mobile sidebar active page color 2025-01-17 19:37:02 +01:00
Bernd Bestel
fe2a628f35
Right align the sidebar on mobile 2025-01-17 17:06:21 +01:00
Bernd Bestel
6605eeafd0
Optimized tooltip hide handling 2025-01-17 16:22:41 +01:00
Bernd Bestel
ded742a7c1
Various minor usability refinements 2025-01-16 21:34:01 +01:00
Bernd Bestel
b0dded1346
Added a new stock settings to always show all products on /stockoverview (closes #2398) 2025-01-15 21:44:45 +01:00
Bernd Bestel
dc05753a0f
Added a new product preset for default_stock_label_type (closes #2445) 2025-01-15 20:34:53 +01:00
Bernd Bestel
97dbd7bf08
Optimized chore on-time tracking (closes #2385) 2025-01-14 20:39:07 +01:00
Bernd Bestel
9cac3b2311
Make track now / next schedule buttons on /choresoverview swappable (closes #2424) 2025-01-14 19:43:12 +01:00
Bernd Bestel
11d28622e8
Squashed commit
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
2025-01-14 17:54:06 +01:00
Bernd Bestel
c99dd46007
Keep selected date range when navigating through different group by variants of the stockreport/spendings (closes #2532) 2025-01-13 23:13:24 +01:00
Bernd Bestel
caa28af0d2
Make product barcode matching case insensitive (closes #2609) 2025-01-13 22:29:33 +01:00
Bernd Bestel
c8ccc0b529
Optimized Userfield save event handling (fixes #2458) 2025-01-13 21:00:06 +01:00
Bernd Bestel
f4d5f21832
Squashed commit
Fixed recipe ingredient costs/calories calculation when having different QUs and when only_check_single_unit_in_stock is set (fixes #2529)
Added a new column "Product picture" on /products (closes #2640)
Fixed partly opening stock entries stock_id handling (fixes #2391)
2025-01-13 17:41:08 +01:00
Bernd Bestel
e7cea3d949
Optimized camera barcode scanner component 2025-01-13 00:09:28 +01:00
Bernd Bestel
96059a1b32
Optimized camera barcode scanner component 2025-01-12 23:51:00 +01:00
Bernd Bestel
245bdbe6e8
Optimized camera display/selection in barcodescanner.js 2025-01-12 19:21:40 +01:00
Bernd Bestel
632162c1be
More initial form field focus optimizations 2025-01-12 17:57:50 +01:00
Bernd Bestel
7d6b76effb
Fixed Userfield initialization on /purchase and /inventory (fixes #2581) 2025-01-12 17:40:39 +01:00
Bernd Bestel
b6ce9eec30
Allow empty QU when editing product barcodes (fixes #2526) 2025-01-12 14:27:19 +01:00
Bernd Bestel
c73be7d18e
Finalized frontend external barcode lookup implementation (references #158) 2025-01-12 13:58:47 +01:00
Bernd Bestel
c9ffe4885d
Implemented frontend external barcode lookup workflow + a plugin for Open Food Facts (closes #158) 2025-01-11 20:04:32 +01:00
Bernd Bestel
a2c2049037
More modal iframe dialog handling improvements 2025-01-11 15:41:04 +01:00