Commit Graph

73 Commits

Author SHA1 Message Date
Yoga Pangestu
86cc8637bd feat: remove summary calculation and related component from Transaction management 2026-08-15 13:19:37 +07:00
Yoga Pangestu
22c9a4cf2a feat: add notification highlight feature to various services and frontend components
- Updated paginated methods in multiple services to accept a highlight parameter for filtering results.
- Modified notification URLs to include the highlight parameter for specific entity IDs.
- Enhanced frontend components to display a message when filtered by notification, with an option to show all entries.
- Implemented mark as read functionality in the notification bell component upon clicking a notification.
- Updated multiple index pages to handle the highlight prop and display relevant messages.
2026-08-15 00:11:40 +07:00
Yoga Pangestu
703cdb8b8b feat: add complete action for cuttings with notification and update route 2026-08-14 22:13:22 +07:00
Yoga Pangestu
c2354440e3 feat: implement lazy loading for restock items, optimize data fetching in Restock service and controller 2026-08-14 07:17:34 +07:00
Yoga Pangestu
0344648b74 feat: implement lazy loading for transaction items, optimize data fetching in Transaction service and controller 2026-08-14 07:07:13 +07:00
Yoga Pangestu
910be15abc feat: implement lazy loading for cutting materials and combinations, optimize data fetching in Cutting service and controller 2026-08-14 07:02:51 +07:00
Yoga Pangestu
113f9a7c4f feat: implement lazy loading for purchase items and optimize data fetching 2026-08-14 06:55:32 +07:00
Yoga Pangestu
ce901c2c8b feat: add variants endpoint and update product/raw material models for variant handling 2026-08-14 06:48:28 +07:00
Yoga Pangestu
49841a662c Refactor marketplace settings: remove MarketplaceFeeRule, update related database and UI components
- Deleted MarketplaceFeeRule class and its usage in settings migration.
- Removed 'is_affiliate' field from orders and related factories.
- Updated notifications table to use longText for body.
- Adjusted role permissions by removing marketplace-related permissions.
- Cleaned up admin settings page by removing marketplace settings section and related components.
- Updated tests to reflect the removal of marketplace settings and ensure other settings remain unaffected.
2026-08-14 03:20:18 +07:00
Yoga Pangestu
863d0e7b98 feat: add share functionality for cutting resource with route and controller method 2026-08-13 23:37:04 +07:00
Yoga Pangestu
8053ea2db4 feat: Enhance leave request and transaction management with user-specific data
- Added current user ID to leave request index for better context.
- Updated transaction management to include user-specific filters and summaries.
- Enhanced analysis service methods to incorporate user context for attendance and revenue metrics.
- Modified dashboard service to reflect user-specific attendance and financial summaries.
- Implemented role-based access control in leave request service for update and delete actions.
- Adjusted frontend components to utilize user-specific data for leave requests and transactions.
- Removed unused permissions from role seeder for cleaner access control.
2026-08-13 21:08:39 +07:00
Yoga Pangestu
1c9532199c feat: add is_featured attribute and toggle functionality for products 2026-08-13 12:02:49 +07:00
Yoga Pangestu
a778e2f499 feat: add cutting detail view and enhance cutting data handling in various components 2026-08-13 10:35:04 +07:00
Yoga Pangestu
ed93fd3eac feat: enhance cutting management with product name and status filters in the index view 2026-08-13 00:09:33 +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
ef987360f4 feat: enhance raw material filtering with name selection and add distinct name retrieval 2026-08-12 21:01:03 +07:00
Yoga Pangestu
10d2529dcd refactor: rename delete methods to destroy in Product and RawMaterialVariant controllers 2026-08-09 22:22:32 +07:00
Yoga Pangestu
eba21d3d3a refactor: clean up code by removing unused imports and improving formatting across multiple files 2026-08-09 11:50:38 +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
1c19e6c690 refactor: update service method names from create/delete to store/destroy across multiple controllers 2026-08-08 14:31:44 +07:00
Yoga Pangestu
48c031a86f feat: update various controllers to return back instead of redirecting to index routes; add payroll adjustment and payroll controllers 2026-08-08 14:18:04 +07:00
Yoga Pangestu
14140c39cc feat: enhance attendance index with leave tracking and employee details 2026-08-07 15:27:48 +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
bc02af2a66 feat: enhance attendance management with employee-specific data and location tracking 2026-08-06 23:43:49 +07:00
Yoga Pangestu
8aa4e83cd8 feat: enhance role selection in Employee edit page; add conditional rendering based on view permissions and update role filtering in EmployeeService 2026-08-06 17:18:53 +07:00
Yoga Pangestu
6ebcbc24c0 feat: add update status functionality for transactions with corresponding UI actions 2026-08-06 14:59:48 +07:00
Yoga Pangestu
1a5ac1dd85 feat: add date range filters and enhance transaction summary display 2026-08-06 14:41:10 +07:00
Yoga Pangestu
1d866d1b94 feat: add transaction summary feature with detailed metrics display 2026-08-06 14:25:44 +07:00
Yoga Pangestu
fe0c565196 feat: add product name filtering and retrieval in product management 2026-08-06 13:50:16 +07:00
Yoga Pangestu
58d45f8363 feat: add role-based visibility for employee management features 2026-08-06 13:41:26 +07:00
Yoga Pangestu
54ad2edaf7 feat: implement employee advance payment functionality with history tracking 2026-08-06 12:09:53 +07:00
Yoga Pangestu
81b5db77e2 feat: add filtering options for employee advances by status in index view 2026-08-06 11:53:41 +07:00
Yoga Pangestu
bcf5842c4a feat: enhance Purchase management with supplier filtering and pagination adjustments 2026-08-06 09:52:17 +07:00
Yoga Pangestu
fc1c84f420 refactor: remove readonly modifier from S3PresignedService property for consistency 2026-08-05 22:35:46 +07:00
Yoga Pangestu
3f77a9436d refactor: improve formatting consistency in various models and services 2026-08-05 20:27:27 +07:00
Yoga Pangestu
4517eeb7ee feat: enhance employee and leave request management
- Added roles property to Employee type and a new column for displaying employee roles in the employee table.
- Updated leave request columns to use formatted start and end dates instead of raw date strings.
- Enhanced leave request index to accept filter options for status dynamically.
- Refactored transaction index to support dynamic filter options for status, channel, and payment type.
- Introduced AGENTS.md for session notes detailing model relationships, casting, scopes, reorganizations, and conventions.
2026-08-04 23:03:56 +07:00
Yoga Pangestu
81f8135273 feat: add role selection to employee create and edit forms with conditional fields 2026-08-04 22:51:56 +07:00
Yoga Pangestu
8970c47a4a refactor: update constructors to use readonly properties for service dependencies 2026-08-04 15:58:11 +07:00
Yoga Pangestu
72848d51d8 feat: add transaction management page with filtering and CRUD functionality
- Implemented TransactionIndex component for displaying transactions with pagination and filtering options.
- Created TransactionCardRow component for rendering individual transaction details.
- Added TransactionItemSubRow component for displaying detailed order items within a transaction.
- Integrated delete confirmation dialog for transaction deletion.
- Updated routes to include transaction management with appropriate permissions.
2026-08-04 10:37:28 +07:00
Yoga Pangestu
e7aa582572 feat: add cutting management functionality with CRUD operations
- Implemented CuttingIndex component for listing and managing cuttings.
- Added routes for cutting management in web.php.
- Created CuttingTest for testing cutting-related features including authorization, validation, and stock management.
- Updated roles create and edit pages to include necessary imports.
- Refactored settings and profile pages to streamline imports.
- Enhanced permissions checks for cutting management actions.
2026-08-04 02:24:11 +07:00
Yoga Pangestu
cf0e772159 feat: implement restock management functionality
- Add RestockIndex component for displaying and managing restocks.
- Create RestockCardRow component for rendering individual restock items.
- Implement RestockItemSubRow component for displaying detailed item information.
- Define routes for restock management in web.php.
- Create RestockTest to cover various scenarios for restock creation, updating, and deletion.
- Ensure proper handling of permissions for restock actions.
- Add validation for restock data and ensure correct relationships are maintained.
2026-08-02 22:34:10 +07:00
Yoga Pangestu
9637671713 feat: enhance product management and purchase functionality
- Updated ProductIndex component to improve category and product filtering with memoization.
- Refactored Combobox components for better performance and usability.
- Added PurchaseController routes for managing purchases with appropriate permissions.
- Created comprehensive tests for purchase management, covering creation, updating, and deletion scenarios.
- Ensured proper handling of raw materials and their variants during purchase operations.
- Implemented validation for required fields in purchase creation and updates.
2026-08-02 14:07:16 +07:00
Yoga Pangestu
384460686e feat: implement raw material management features including CRUD operations and draft handling
- Added RawMaterialController and RawMaterialVariantController for managing raw materials and their variants.
- Introduced RawMaterialRequest and RawMaterialVariantRequest for validation.
- Implemented RawMaterialService and RawMaterialVariantService for business logic.
- Created hooks for saving drafts of raw materials.
- Developed UI components for creating, editing, and listing raw materials and variants.
2026-08-02 00:54:05 +07:00
Yoga Pangestu
44dab8271f feat: implement stock mutation functionality with service and controller; add pagination and UI components 2026-08-01 17:30:05 +07:00
Yoga Pangestu
15161b6ea4 feat: implement stock transfer functionality for product variants with validation and notifications 2026-08-01 15:15:38 +07:00
Yoga Pangestu
841767d5b1 feat: implement product draft functionality for create and edit pages 2026-08-01 14:40:06 +07:00
Yoga Pangestu
9cf3e2bb6b refactor: update ProductRequest namespace and reintroduce the class 2026-08-01 13:38:13 +07:00
Yoga Pangestu
e3c0f14c43 feat: implement product variant management
- Add a custom hook `useCardTableExpand` for managing expandable card tables.
- Refactor product columns to include variant edit and delete handlers.
- Integrate `CardTable` component for displaying products with expandable variant details.
- Create `ProductCardRow` component for rendering product information in a card format.
- Implement variant editing functionality with a dedicated `ProductVariantEdit` component.
- Add `VariantSubRow` component to display variant details in a table format.
- Update routes to handle product variant editing and deletion.
- Enhance tests to cover variant editing and deletion scenarios.
2026-08-01 13:19:07 +07:00
Yoga Pangestu
23cc327190 Refactor code for improved readability and consistency across multiple files
- Adjusted indentation and formatting in login, permissions, profile, and security pages for better readability.
- Enhanced the clarity of conditional statements and function calls in permissions and profile components.
- Updated type definitions in vite-env.d.ts for better code structure.
- Cleaned up array mapping syntax in ProductTest.php for consistency.
2026-08-01 10:14:47 +07:00
Yoga Pangestu
2a3e70b78d Refactor role management and pagination in admin panel
- Updated RoleIndex component to handle pagination, sorting, and searching for roles.
- Adjusted data structure for roles to include pagination details.
- Enhanced tests for various admin features (Finance, HR, Master) to validate pagination and data structure.
- Ensured all relevant tests check for data structure consistency, including total counts and pagination details.
2026-08-01 02:54:24 +07:00