Commit Graph

169 Commits

Author SHA1 Message Date
ncoronel 59ed592787 feat: enhance Category and Brand resources with tenant handling and serialization improvements 2026-06-29 14:18:29 -03:00
ncoronel 24235c5ca9 feat: add brand and category relationships to products, update requests and resources, and seed product catalog from images 2026-06-29 13:47:05 -03:00
ncoronel 49771ebb13 feat: implement product and attachment management service with supporting migrations and API controllers 2026-06-29 12:13:21 -03:00
ncoronel cd420e02d8 feat: create ProductService to handle product, variant, and attribute management operations 2026-06-29 12:04:14 -03:00
ncoronel 0206ee2985 feat: implement product variant CRUD operations and tenant configuration seeding 2026-06-29 11:59:07 -03:00
ncoronel 9b7d728117 feat: implement product and attribute management services with corresponding controllers and feature tests 2026-06-29 11:37:22 -03:00
ncoronel b5b57a753c feat: implement product and variant management controllers with request validation and feature tests 2026-06-29 11:10:04 -03:00
ncoronel 18504594eb feat: implement product creation workflow with variants, attribute definitions, and validation logic 2026-06-29 11:02:04 -03:00
ncoronel 9d3ed17c00 feat: implement BrandSeeder and CategorySeeder and register them in DatabaseSeeder 2026-06-29 10:02:12 -03:00
ncoronel 74e443ece1 feat: add attachment relationship to ProductVariant model and database schema 2026-06-29 09:56:15 -03:00
ncoronel 6efda4727f feat: implement product attribute options with database migration, resource, and validation requests 2026-06-29 09:48:56 -03:00
ncoronel b0508d79b3 feat: implement Attachment domain for file storage and integrate into Tenant service for logo management 2026-06-29 09:43:46 -03:00
ncoronel 67bc9e6cb4 feat: add DatabaseSeeder and TenantSeeder with sample tenant configuration and assets 2026-06-29 09:32:09 -03:00
ncoronel 4125d8353d feat: add multi-tenant controllers for catalog and tenant management and implement pagination macro in AppServiceProvider 2026-06-29 09:02:39 -03:00
ncoronel 31b65eb676 feat: implement full CRUD support and database schema for multi-tenant architecture 2026-06-26 16:57:59 -03:00
ncoronel 8708cea122 feat: implement tenant update request validation and add feature tests for domain bootstrapping 2026-06-26 16:23:14 -03:00
ncoronel 54aa696145 feat: implement tenant management system with attachment support and bootstrap controller 2026-06-26 13:17:48 -03:00
ncoronel 1f9d876bc3 feat: implement tenant management system including database schema, CRUD services, and bootstrap functionality 2026-06-26 12:16:50 -03:00
ncoronel 0dae985230 feat: implement tenant management system including CRUD operations and domain bootstrapping functionality 2026-06-26 11:55:05 -03:00
ncoronel 4c237fb729 feat: implement product attributes and tenant properties management with CRUD controllers, requests, and domain models 2026-06-26 11:40:07 -03:00
ncoronel edb4c128d6 Merge branch 'feature/compras' into dev 2026-06-26 11:16:11 -03:00
ncoronel 2ce21799c7 feat(attachments): enhance AttachmentService to support base64 file uploads and refactor file handling logic 2026-06-25 16:09:46 -03:00
ncoronel 17799122e2 feat(attachments): update filename generation in AttachmentService to include file extension 2026-06-25 15:43:31 -03:00
ncoronel e4448d810e feat(cart): remove carritos and carrito_items migration files 2026-06-25 15:34:04 -03:00
ncoronel 7994fe0c96 feat(attachments): refactor attachment management to use attachable pivot table and update related models and tests 2026-06-25 15:30:11 -03:00
ncoronel ee59236d55 feat(attachments): ensure 'key' is set as UUID on attachment creation and update tests for key validation 2026-06-25 15:11:31 -03:00
ncoronel aec92d5346 feat(attachments): implement AttachmentService for managing uploads and deletions, add AttachmentStorageException for error handling 2026-06-25 15:02:52 -03:00
ncoronel 6db98ddc1a feat(attachments): add HasAttachments trait to manage attachment relationships 2026-06-25 14:47:21 -03:00
ncoronel 56b87f0c12 feat(attachments): add AttachmentType enum and update Attachment model to use it 2026-06-25 14:44:44 -03:00
ncoronel 9c5a29d933 feat(attachments): add 'key' field to Attachment model and migration, generate UUID on creation 2026-06-25 14:31:03 -03:00
ncoronel 049484dee5 feat(storage): implement S3 file upload and temporary URL generation functionality 2026-06-25 14:23:34 -03:00
ncoronel 3360e81e96 feat(aws): update AWS configuration in .env.example and filesystems.php for enhanced settings 2026-06-25 14:20:30 -03:00
ncoronel 93aead8dbf feat(dependencies): add league/flysystem-aws-s3-v3 and aws/aws-sdk-php to composer files 2026-06-25 12:18:46 -03:00
ncoronel 740566b02d refactor(attachments): remove is_public field from Attachment model and migration 2026-06-25 12:16:51 -03:00
ncoronel b874a45724 feat(attachments): create Attachment model and migration for file attachments 2026-06-25 12:07:52 -03:00
ncoronel 6c45f45815 feat(purchase): implement PurchaseController with CRUD operations and request validation 2026-06-25 10:58:55 -03:00
ncoronel 70f51ac863 feat(purchase): add Purchase and PurchaseItem models with migrations for compras and compra_items tables 2026-06-25 10:34:33 -03:00
ncoronel 492c6c4ac2 feat(cart): implement cart management with add, update, and remove item functionalities 2026-06-25 10:24:45 -03:00
ncoronel a5b1539a80 feat(cart): create carritos and carrito_items tables with relationships 2026-06-25 10:08:29 -03:00
ncoronel 9b82800921 feat(cart): add Cart and CartItem models with item management methods 2026-06-25 10:03:17 -03:00
ncoronel 0e2ffc1c74 feat(catalog): add product variant controller, requests and resources 2026-06-24 15:29:01 -03:00
ncoronel 1907178e52 refactor(catalog): nest catalog routes under tenant
Move Catalog endpoints under /api/tenants/{tenant:codigo} and derive tenant
context from the route instead of request payload fields.

- scope marcas, categorias, productos, and product-attributes by tenant
- enforce tenant ownership in catalog controllers
- remove tenant_codigo and tenant_code from Catalog request validation
- update product attribute tests to use tenant-scoped routes
2026-06-24 15:16:38 -03:00
ncoronel c6e5177df1 feat(catalog): add tenant-scoped product attributes and variant definitions 2026-06-24 15:08:13 -03:00
ncoronel 689d115a8f feat(tenant): reintroduce tenant-specific props and instance values
Restore props support only for the Tenant domain using a tenant-scoped model
instead of the removed generic Prop/Propable implementation.

Add tenant prop definitions and instance values:
- add TenantProp and TenantPropValue models
- add tenant-only data type enum and prop validation rules
- add migrations for tenant_props and tenant_prop_values tables
- persist prop values by tenant_codigo + tenant_prop_codigo

Expose tenant prop management through the Tenant domain:
- add TenantPropController with CRUD endpoints
- add Store/Update request classes for tenant prop definitions
- register tenant-props routes

Re-enable tenant prop syncing and serialization:
- restore createWithProps/updateWithProps flows in Tenant
- validate props on tenant create/update requests
- include collapsed props in TenantResource
- keep the implementation scoped to Tenant without reintroducing polymorphic props

Add coverage for the new tenant prop behavior:
- update bootstrap tenant feature test to assert prop values
- add feature tests for tenant prop creation and validation
2026-06-24 14:50:58 -03:00
ncoronel 75129b7552 remove props 2026-06-24 14:43:10 -03:00
ncoronel 8e343ea9c3 Add ProductVariant model and migration for productos_variantes table 2026-06-24 11:41:42 -03:00
ncoronel 696010a70e Remove unused 'props' unset operation in store and update methods across Brand, Category, Product, and Tenant controllers 2026-06-24 11:13:18 -03:00
ncoronel e4139d48aa Refactor request validation to use model-specific prop synchronization and add migrations for categories and brands 2026-06-24 11:02:35 -03:00
ncoronel 8d840d94a0 Update StoreCategoryRequest to require tenant_code only when categoria_id is present 2026-06-24 10:43:23 -03:00
ncoronel b2c8f13d2e Refactor TenantController to use createWithProps and updateWithProps methods for improved property synchronization 2026-06-24 10:40:30 -03:00