Skip to content

Feat/search box#20

Merged
the-khiem7 merged 2 commits intodevfrom
feat/search-box
Nov 9, 2025
Merged

Feat/search box#20
the-khiem7 merged 2 commits intodevfrom
feat/search-box

Conversation

@the-khiem7
Copy link
Copy Markdown
Member

This pull request refactors the product model and related code to simplify the data structures and add new functionality. The main changes include adding a slug field to the Product model and removing the ProductWithCategory model. There are also minor UI adjustments and cleanups to related code.

Model Refactoring and Data Structure Changes

  • Added a required slug field to the Product model in both lib/models/product.dart and all generated code, ensuring slug is included in serialization, equality, and copy methods. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16]
  • Removed the ProductWithCategory model and all related generated code, simplifying the codebase and focusing on a single product representation. [1] [2]
  • Removed the fromProduct factory method from ProductDraft, which previously converted a Product to a ProductDraft.

UI and Presentation

  • Adjusted the font size and line height for product name text in ProductCard for improved appearance.

These changes streamline the product models, improve maintainability, and prepare the codebase for future features that rely on product slugs.

@the-khiem7 the-khiem7 merged commit c21838a into dev Nov 9, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants