Skip to content

Implement product#21

Merged
bahman026 merged 22 commits intoadminfrom
implement_product
Aug 12, 2025
Merged

Implement product#21
bahman026 merged 22 commits intoadminfrom
implement_product

Conversation

@bahman026
Copy link
Owner

No description provided.

Bahman Jafarzadeh and others added 22 commits August 9, 2025 18:28
- Add ProductResource with form and table definitions
- Create Product model with necessary attributes and relationships
- Generate ProductFactory for creating test data
- Implement migration for products table
- Add pages for listing, creating, and editing products

Signed-off-by: Bahman Jafarzadeh <bja@adlas.at>
- Change APP_URL to http://127.0.0.1:4040
- Add ASSET_URL with the same value as APP_URL

Signed-off-by: Bahman Jafarzadeh <bja@adlas.at>
…ETED, PUBLISHED, and DRAFT cases

- Implement label() method for status labels
- Implement color() method for status colors

Signed-off-by: Bahman Jafarzadeh <bja@adlas.at>
…n and content columns

- Removed searchable() method from description and content columns in CategoryResource
- Added Versioning class to manage version information

Signed-off-by: Bahman Jafarzadeh <bja@adlas.at>
- Add products() relation to Brand and Category models
- Add alt_text, is_featured, and order properties to Image model
- Update model type hints for new properties and relations

Signed-off-by: Bahman Jafarzadeh <bja@adlas.at>
- Create FilamentServiceProvider to configure Filament components
- Set up TextEntry and Column configurations
- Register custom icons for sidebar
- Add versioning information to sidebar footer

Signed-off-by: Bahman Jafarzadeh <bja@adlas.at>
- Include FilamentServiceProvider in the list of service providers
- This addition is essential for integrating Filament functionality into the admin area

Signed-off-by: Bahman Jafarzadeh <bja@adlas.at>
- Update BrandFactory to generate headings with a maximum length of 30 characters
- Improve data consistency and readability in testing environments

Signed-off-by: Bahman Jafarzadeh <bja@adlas.at>
- Add 'order' column to sort images
- Add 'is_featured' column to mark featured images- Add 'alt_text' column for alternative text description

Signed-off-by: Bahman Jafarzadeh <bja@adlas.at>
Signed-off-by: Bahman Jafarzadeh <bja@adlas.at>
- Create a new sidebar widget to show Filament version information
- Add styling for the sidebar and its components
- Implement conditional visibility based on sidebar collapse settings
- Include version details in a list format at the bottom of the sidebar

Signed-off-by: Bahman Jafarzadeh <bja@adlas.at>
- Create test cases for ProductResource in the admin panel
- Cover index page rendering, product listing, edit page rendering, product updates, product creation, and product deletion
- Include image upload functionality in the tests

Signed-off-by: Bahman Jafarzadeh <bja@adlas.at>
…nt- Remove TiptapEditor and related attributes from BrandResource

- Add TinyEditor for 'content' field with full column span
- Simplify the form structure for better usability
- Remove TiptapEditor and related attributes
- Add TinyEditor for 'content' field
- Keep existing functionality and layout
- Replace TiptapEditor with TinyEditor for product content- Add attribute management using Forms\Components\Repeater
- Improve product form layout and functionality
- Adjust table columns for better visibility
- Add 'withAttributes' method to the ProductFactory
- This method attaches random attributes to a product after creation
- It also assigns a random highlight status to the product
- Remove unnecessary 'attributes' and 'highlight' fields from the factory definition
- Add attributes() and highlights() methods to establish BelongsToMany relationship with Attribute model
- Remove 'attributes' and 'highlight' properties from fillable and casts arrays
- Update Product model to use new relationship methods for attribute management
- Remove 'attributes' and 'highlight' JSON columns from products table
- This change simplifies the table structure and removes unnecessary fields
- Rename `docker-entrypoint.sh` to `entrypoint.sh`
- Update file path and entrypoint declaration in Dockerfile
- Remove unnecessary HTML wrapping from content assertions in BrandResourceTest and CategoryResourceTest
- This change ensures that the tests accurately reflect the expected content without additional HTML formatting
…dd JavaScript to reinitialize tinyeditor instances after sorting elements

- Remove unnecessary attributes from product resource tests
- Adjust content formatting in product resource tests
- Remove awcodes/filament-tiptap-editor
- Add mohamedsabil83/filament-forms-tinyeditor
@bahman026 bahman026 merged commit b181c2b into admin Aug 12, 2025
1 check passed
@bahman026 bahman026 deleted the implement_product branch August 12, 2025 18:06
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.

1 participant