Skip to content

Admin#22

Merged
bahman026 merged 41 commits intomainfrom
admin
Aug 12, 2025
Merged

Admin#22
bahman026 merged 41 commits intomainfrom
admin

Conversation

@bahman026
Copy link
Owner

No description provided.

bahman026 and others added 30 commits December 23, 2024 21:52
Signed-off-by: Bahman026 <Bahman026@gmail.com>
Signed-off-by: Bahman026 <Bahman026@gmail.com>
Signed-off-by: Bahman026 <Bahman026@gmail.com>
Signed-off-by: Bahman026 <Bahman026@gmail.com>
Signed-off-by: Bahman026 <Bahman026@gmail.com>
Signed-off-by: Bahman026 <Bahman026@gmail.com>
Signed-off-by: Bahman026 <Bahman026@gmail.com>
Signed-off-by: Bahman Jafarzadeh <bja@adlas.at>
- Change working directory from ./ShopFlow to ./admin for all steps
- Update composer, npm, and artisan commands to run in new directory- Modify phpstan analysis command to use correct directory

Signed-off-by: Bahman Jafarzadeh <bja@adlas.at>
…butes

- Change type annotation from array<int, string> to list<string> for $fillable and $hidden attributes in User model
- This change improves type safety and clarity in the codebase

Signed-off-by: Bahman Jafarzadeh <bja@adlas.at>
…install --no-dev' command before database migration

- This ensures all required dependencies are installed before running migrations
- Improves the reliability of the Docker container setup process

Signed-off-by: Bahman Jafarzadeh <bja@adlas.at>
- Update the visibility check for user records to handle null values
- Use nullable type hint and null coalescing operator for more robust code

Signed-off-by: Bahman Jafarzadeh <bja@adlas.at>
- 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
bahman026 and others added 11 commits August 12, 2025 21:21
- 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 c0224ba into main Aug 12, 2025
1 check passed
@bahman026 bahman026 deleted the admin branch August 12, 2025 18:09
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