Commit Graph

7 Commits

Author SHA1 Message Date
Yoga Pangestu
71a7863244 feat: remove submittedCuttings relation and related attributes from Cutting and User models; update cuttings migration to remove submitted_by_id 2026-08-13 10:49:06 +07:00
Yoga Pangestu
1b48f5c24f feat: implement media handling for user profiles and employee management, including photo uploads and display 2026-08-12 21:57:28 +07:00
Yoga Pangestu
0023309a8f Refactor services to improve role checks and streamline data retrieval
- Updated CustomerService to simplify getAll method.
- Refactored ProductService to utilize HasRoleChecks trait and improved role verification logic.
- Enhanced ProductVariantService with new methods for fetching data for restocking and transactions.
- Cleaned up RawMaterialService by removing unused methods and improving data retrieval.
- Adjusted SupplierService to streamline getAll method.
- Refactored RoleService to use Spatie's Role model and improved role filtering logic.
- Updated NotificationService to handle role labels more effectively.
- Improved StockMutationService by removing redundant paginated method.
- Cleaned up various frontend components to directly accept necessary props instead of nested data objects.
- Updated tests to reflect changes in service method names and ensure proper notification handling.
2026-08-09 11:33:25 +07:00
Yoga Pangestu
f7ce2f1620 feat: enhance validation rules for various requests and update attribute names 2026-08-08 01:52:16 +07:00
Yoga Pangestu
cd0995f04e feat: add formatted accessors for various models and enhance date formatting 2026-08-07 23:04:28 +07:00
Yoga Pangestu
85556f8779 feat: enhance product management with approval and rejection workflows
- Added approval and rejection functionality for products, including new routes and methods in the ProductController.
- Implemented UI changes to display product status (pending, rejected) with appropriate badges and actions.
- Introduced a RejectDialog component for providing rejection reasons.
- Updated product columns to handle new actions for approving and rejecting products.
- Enhanced variant management to restrict actions based on product status.
- Refactored various components to improve code organization and readability.
2026-08-07 11:23:41 +07:00
Yoga Pangestu
7a1b107ce5 Refactor AGENTS.md to create a comprehensive module/feature development checklist, consolidating session notes, model relationships, casting, scopes, reorganized model structures, and conventions for backend and frontend development. Added mandatory reading section for project context and conventions. 2026-08-07 01:37:36 +07:00