Commit Graph

105 Commits

Author SHA1 Message Date
BXY
5934f1b5cf feat: implement soft-delete and audit fields for catalog categories and bindings 2026-10-28 17:36:23 +08:00
robinj0726
7ee9497cfa feat: enhance error handling in ListGroupNodes with detailed query diagnostics 2026-10-28 16:55:47 +08:00
BXY
deaf35e55c feat: refactor product group handling to use structured product items with SPU numbers 2026-10-28 16:28:39 +08:00
BXY
d1a4207d3e feat: update product group handling to support leaf groups and brand product bindings 2026-10-28 15:27:32 +08:00
BXY
99e9b200d9 feat: add ProductIDs to CategoryRecord and implement handling for second-level groups 2026-10-28 10:31:23 +08:00
BXY
9e1dbdf583 feat: enhance product group handling by validating second-level groups and updating queries 2026-10-28 10:08:35 +08:00
robinj0726
0b4726efce fix: standardize timestamps and database sessions on UTC 2026-10-28 01:30:29 +08:00
BXY
6f49fd3fc5 feat: add ProductCount to BrandRecord and update brand queries 2026-10-27 18:08:15 +08:00
BXY
075f72c2d9 feat: add unit test for cross-border JSON round-trip functionality 2026-10-27 16:00:35 +08:00
BXY
6c4170f1e1 feat: implement freight charge update functionality for products 2026-10-27 11:09:45 +08:00
BXY
c48f722137 feat: add brands handling to supplier records and update proto conversion 2026-10-26 18:59:50 +08:00
BXY
099d6eeab0 feat: implement product category path handling and enhance product category retrieval 2026-10-26 14:22:21 +08:00
BXY
0a58b5e332 feat: enhance product creation error handling and validation for brand and supplier references 2026-10-26 11:45:21 +08:00
BXY
47539d663d feat: enhance product metadata handling with category, group, and brand summaries 2026-10-26 11:14:47 +08:00
BXY
7ce922d440 feat: update batch delete logic to use product ID placeholders 2026-10-26 10:02:14 +08:00
robinj0726
6074355b39 feat: add priority column to product_category and update related indexes 2026-10-24 21:29:30 +08:00
BXY
791e09b35b feat: update product status terminology from OFF_SALE to SOLD_OUT across documentation and codebase 2026-10-22 11:06:05 +08:00
BXY
d35d54be80 feat: add BatchGetStorefrontProductSKUs method for fetching sellable SKU prices 2026-10-21 09:25:10 +08:00
BXY
a86d9a7513 feat: add product status filtering to product list and request handling 2026-10-20 14:52:13 +08:00
BXY
bc77fe942c feat: enhance product status handling and error messages for sold-out state 2026-10-20 11:58:33 +08:00
BXY
087d42fb6e feat: add presale configuration and delivery limits to product model and migrations 2026-10-19 12:05:22 +08:00
BXY
feb1364be6 feat: implement multi-level catalog category tree with nested children support 2026-10-16 18:11:17 +08:00
robinj0726
c8e9db4300 feat: remove deprecated regions from freight region data 2026-10-12 11:55:33 +08:00
robinj0726
dfabd4a382 feat: add new regions and economic development zones to the freight region data 2026-10-12 11:46:51 +08:00
robinj0726
eeb3efa996 feat: add region indexing and rules validation for freight templates
- Implemented RegionIndex to manage region codes and their relationships from embedded region.json.
- Added ValidateRulesJSON function to validate freight rules against specified criteria, including region code existence and overlap checks.
- Created unit tests for rules validation covering various scenarios including valid rules, overlap detection, and error handling for invalid inputs.
- Updated freight_template_server to integrate rules validation during freight template creation and updates, ensuring compliance with the new rules structure.
2026-10-10 18:54:45 +08:00
BXY
4e010a6476 feat: add category_properties field to products and implement group creation with child groups 2026-10-10 18:27:19 +08:00
BXY
c2d0aa604f feat: allow non-unique SKU business codes and optional SPU codes; update related database constraints 2026-10-10 13:01:19 +08:00
BXY
d4ef3b5a57 feat: add GetProductTotalSoldQuantity method to track total sold quantity for products 2026-10-09 19:29:22 +08:00
BXY
e2e14ae337 feat: remove S3 public endpoint configuration and related logic from the project 2026-10-09 16:46:27 +08:00
BXY
339558075e feat: add platform category ID and parent category ID columns to product_category table 2026-10-09 09:25:38 +08:00
BXY
e70510682a feat: add platform category identifiers and validation in product category handling 2026-10-09 09:22:12 +08:00
BXY
e5d0075f37 feat: enhance product category listing with hierarchical structure and optimized queries 2026-10-08 19:15:52 +08:00
BXY
cb81c23830 feat: add product category handling in product repository and server logic 2026-10-08 19:05:09 +08:00
BXY
155ab11d9f fix: update productCategoryColumns to include table alias for clarity 2026-10-08 18:21:12 +08:00
BXY
ee3c935f70 feat: implement postgresInt32Array type for scanning PostgreSQL INTEGER[] values 2026-10-08 17:17:22 +08:00
BXY
9567b967b2 feat: add index for active product categories by parent and name 2026-10-08 15:06:22 +08:00
BXY
6f6887f0d2 Refactor product category schema and server logic
- Updated the product_category table schema to remove tenant_id and store_id, and added new fields: priority, rule_id, category_type, channel_list, has_children, has_prop_required, extra, cert_status_code, cert_status_pass, and cert_status_msg.
- Modified SQL scripts to drop and recreate product_category and product_category_bindings tables with the new schema.
- Refactored the ProductServer methods to remove store scope requirements and adjust to the new product category structure.
- Updated error handling and validation in Create, Update, and Delete product category methods.
- Added new patch handling for product categories to accommodate the updated schema.
- Introduced a new SQL script to rebuild the standard product category tree, ensuring a clean migration to the new structure.
2026-10-08 14:56:54 +08:00
BXY
e86d4084f9 feat: add S3 public endpoint configuration and complete detail HTML image URLs 2026-10-08 10:51:14 +08:00
BXY
2776c4d55c feat: add product category validation and update product list filter to use ProductCategoryID 2026-10-07 19:40:07 +08:00
robinj0726
cdc47d888f feat: implement product group update and delete functionalities 2026-10-02 01:23:36 +08:00
robinj0726
f28df52a12 feat: implement freight template management and scheduled sales promotion 2026-10-02 00:59:46 +08:00
robinj0726
947a1dea7c feat: add catalog category list filter and batch product writes
Support AND category/group filtering and store-scoped batch status, delete, absolute price, and replace-group with a 100-item cap.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-01 23:47:53 +08:00
BXY
91f307ce19 feat: add storefront category visibility check and related error handling 2026-09-29 18:30:19 +08:00
BXY
a67703d55c feat: implement CopyProductToStore functionality and add corresponding tests 2026-09-28 17:06:44 +08:00
BXY
c258915f5b feat: introduce product category management
- Added SQL scripts to recreate product category and catalog tables, including necessary indexes and comments.
- Implemented repository for product category management, including CRUD operations and binding/unbinding products to categories.
- Developed gRPC server methods for creating, retrieving, listing, updating, and deleting product categories.
- Added error handling for various scenarios, including version conflicts and category constraints.
- Implemented helper functions for converting between internal representations and gRPC messages.
2026-09-24 18:28:18 +08:00
BXY
504c88fa40 feat: add supply price to SKU records and update related database schema 2026-09-24 15:27:21 +08:00
BXY
0d533f0196 feat: add product list filtering capabilities and corresponding validation 2026-09-24 14:31:59 +08:00
BXY
bb82460117 feat: implement ListProductSKUs to return current SKU stock projections for a product 2026-09-23 20:23:15 +08:00
BXY
9c31d0e869 feat: add category and group name uniqueness checks with corresponding error handling 2026-09-23 18:15:26 +08:00
BXY
6e7449646c feat: update ListCategoryProducts to return product IDs and adjust related methods 2026-09-23 17:41:39 +08:00