Commit Graph

104 Commits

Author SHA1 Message Date
Yoga Pangestu
6ebcbc24c0 feat: add update status functionality for transactions with corresponding UI actions 2026-08-06 14:59:48 +07:00
Yoga Pangestu
508a0e3fa8 feat: update label and separator components for improved styling; refactor transaction create/edit pages and add field components 2026-08-06 14:53:21 +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
0a6a441ec4 feat: add formatted stock display and enhance product variant attributes 2026-08-06 14:16:29 +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
f008e46f54 feat: restrict edit and delete actions to pending leave requests 2026-08-06 13:41:31 +07:00
Yoga Pangestu
58d45f8363 feat: add role-based visibility for employee management features 2026-08-06 13:41:26 +07:00
Yoga Pangestu
8eb3e565ec feat: enhance payroll period functionality with role-based visibility and improved data handling 2026-08-06 13:30:04 +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
175decfa22 fix: remove truncation from description display in various components 2026-08-06 11:42:22 +07:00
Yoga Pangestu
3ef948c47f feat: enhance CuttingItemSubRow to display total material usage and results by raw material 2026-08-06 10:57:31 +07:00
Yoga Pangestu
659104fa19 fix: update terminology from "Per Unit" to "Per Produk" in CuttingCreate and CuttingEdit components 2026-08-06 10:46:57 +07:00
Yoga Pangestu
aaafbb92a2 feat: update validation rules in CuttingRequest and enhance error handling in CuttingCreate and CuttingEdit components 2026-08-06 10:35:08 +07:00
Yoga Pangestu
b45052dc55 feat: refactor CuttingItemSubRow to improve material grouping and display logic 2026-08-06 10:14:49 +07:00
Yoga Pangestu
62341ac50a refactor: clean up imports and improve code readability across multiple components 2026-08-06 09:55:11 +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
b4cb3f4d48 feat: add rowClassName prop to CardTable for dynamic row styling 2026-08-06 09:29:35 +07:00
Yoga Pangestu
f49cebb35a refactor: remove unused variant handling and clean up PurchaseEdit component 2026-08-06 09:16:27 +07:00
Yoga Pangestu
fb70cca1dc fix: update condition for rendering button based on variants length in create and edit pages 2026-08-06 08:57:09 +07:00
Yoga Pangestu
4ac83c8e78 feat: add permission checks for various actions across admin pages
- Integrated permission checks using `can` function in payroll period management to control visibility of adjustment, pay, and cancel actions.
- Updated employee management to conditionally render edit, reset password, and delete actions based on permissions.
- Enhanced leave request management with permission checks for approve, reject, edit, and delete actions.
- Implemented permission checks in cutting management for edit and delete actions.
- Added permission checks for purchase management actions including create, edit, and delete.
- Integrated permission checks in restock management for create, edit, and delete actions.
- Updated transaction management to conditionally render create, edit, and delete actions based on permissions.
- Enhanced category management with permission checks for edit and delete actions.
- Integrated permission checks in customer management for edit and delete actions.
- Updated product management to conditionally render create, edit, and delete actions based on permissions.
- Enhanced raw material management with permission checks for edit and delete actions.
- Integrated permission checks in supplier management for edit and delete actions.
- Updated role management to conditionally render edit and delete actions based on permissions.
2026-08-05 22:52:35 +07:00
Yoga Pangestu
c887eddd88 refactor: remove unused import of router for cleaner code 2026-08-05 22:25:26 +07:00
Yoga Pangestu
bd20162c13 refactor: replace anchor tags with Link components for improved navigation consistency 2026-08-05 20:48:58 +07:00
Yoga Pangestu
b70a40af4d feat: implement sorting for lines in purchase and restock create/edit components; enhance user experience 2026-08-05 20:26:58 +07:00
Yoga Pangestu
3e9776696d Refactor permissions and sidebar items; enhance user role checks
- Updated HandleInertiaRequests middleware to include user permissions in the shared data.
- Modified RolePermissionSeeder to redefine permissions and roles, adding new permissions and restructuring existing ones.
- Refactored app-sidebar component to filter menu items based on user permissions, improving sidebar visibility based on roles.
- Enhanced useCan hook to support checking multiple permissions with canAny function.
- Updated web routes to enforce permission checks on various resource routes, ensuring proper access control.
2026-08-04 23:57:00 +07:00
Yoga Pangestu
0a688f1028 refactor: streamline user query methods for improved readability and maintainability 2026-08-04 23:15:00 +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
3cb5b46aab fix: add overflow-visible class to Card component for improved layout 2026-08-04 12:58:42 +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
00a848747f feat: add reject price handling in restock management and update related components 2026-08-03 13:03:03 +07:00
Yoga Pangestu
266abb81e7 refactor: remove minimum value constraint from RupiahInput and NumberInput components across various forms 2026-08-02 23:42:52 +07:00
Yoga Pangestu
d91ec8869e refactor: replace tooltip buttons with row actions component in supplier and role columns
feat: implement delete confirmation dialog component for better UX

refactor: update supplier and role index pages to utilize new form dialog and delete confirm dialog components

feat: add reusable form dialog component for creating and editing entities

feat: introduce filter popover component for enhanced filtering options in data tables

feat: create image preview button component for displaying images with modal preview

feat: add page header component for consistent page layout

feat: implement row actions component for handling actions on table rows

feat: add status badge component for displaying entity statuses

feat: create toggle status component for easily toggling entity states

feat: implement draft save hook for auto-saving form data

feat: add server table hook for managing server-side pagination and filtering

feat: create utility functions for formatting dates and numbers

feat: add constants for month names and measurement units
2026-08-02 23:40:12 +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
ab3ec86931 fix: update timezone to Asia/Jakarta and adjust date formatting in attendance component 2026-08-02 15:07:04 +07:00
Yoga Pangestu
38b4a31c6b refactor: update stock and quantity fields to use integer type across models, requests, factories, and migrations; introduce NumberInput component for consistent numeric input handling 2026-08-02 14:59:13 +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
75f821957d refactor: reorder imports and enhance event handling in product and raw material draft hooks 2026-08-02 12:47:18 +07:00
Yoga Pangestu
3039396192 refactor: update PhoneNumberInput usage in Customer and Supplier components for improved code clarity 2026-08-02 12:04:56 +07:00
Yoga Pangestu
6e165d95c4 refactor: remove 'No' column from various finance and HR tables to streamline data presentation 2026-08-02 01:50:43 +07:00
Yoga Pangestu
a632dd1a67 fix: adjust Card component styling in DataTable for improved layout consistency 2026-08-02 01:27:32 +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
a53fe3c2fd refactor: remove unused router imports and clearProductDraft calls in product draft hooks 2026-08-01 19:28:48 +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
10db7bc5a2 Refactor product variant photo handling to support multiple images
- Updated ProductVariantService to handle multiple photo keys and URLs.
- Introduced FileUploadMultiple component for uploading multiple images.
- Modified product creation and editing forms to accommodate multiple photos.
- Adjusted data structures in product drafts and tests to reflect changes in photo handling.
- Enhanced image preview modal to navigate through multiple images.
2026-08-01 15:49:38 +07:00
Yoga Pangestu
f97e59bccf refactor: improve layout formatting in AppShell and AppSidebarLayout; update button text in ProductCreate and ProductEdit 2026-08-01 15:15:44 +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
fbd7aa5862 refactor: update layout styles for AppHeader and AppSidebarLayout components 2026-08-01 14:51:21 +07:00