Commit Graph

174 Commits

Author SHA1 Message Date
Yoga Pangestu
f7a91739f9 feat: integrate thermal printer functionality with receipt encoding
- Added @point-of-sale/receipt-printer-encoder dependency to package.json.
- Implemented useThermalPrinter hook for managing Bluetooth and USB printer connections.
- Created encodeOrderReceipt function to format receipt data for printing.
- Enhanced TransactionIndex component to include printer connection options and receipt printing functionality.
- Added dropdown menu for selecting printer connection type (Bluetooth/USB) and printing receipt options (58mm/80mm).
- Updated TransactionCardRow to include print receipt actions.
- Defined TypeScript types for receipt printer encoder and web Bluetooth/USB APIs.
- Configured Vite to optimize dependencies for receipt printer encoder.
2026-08-07 09:34:11 +07:00
Yoga Pangestu
add157183b feat: replace useMemo with useState for selectedProductId and update product selection UI 2026-08-07 09:11:47 +07:00
Yoga Pangestu
9e60a1cf39 feat: add tiktok and shopee order IDs to transaction model and UI components 2026-08-07 09:04:16 +07:00
Yoga Pangestu
74c374e126 feat: update search placeholders to Indonesian language across various components 2026-08-07 08:55:59 +07:00
Yoga Pangestu
50b2be68ac Add error handling with toast notifications for form submissions
- Integrated toast notifications to display error messages when form submissions fail across various components, enhancing user feedback and experience.
- Updated components including DeleteUser, FormDialog, ManageTwoFactor, TwoFactorRecoveryCodes, TwoFactorSetupModal, PayrollPeriodShow, EmployeeCreate, EmployeeEdit, CuttingCreate, CuttingEdit, PurchaseCreate, PurchaseEdit, RestockCreate, RestockEdit, TransactionCreate, TransactionEdit, Category management, Product management, Raw Material management, Role management, Settings, and Authentication pages.
2026-08-07 08:50:11 +07:00
Yoga Pangestu
de45ae3bb7 feat: add search parameter cleanup in useServerTable hook 2026-08-07 08:44:30 +07:00
Yoga Pangestu
c6a87a64c9 feat: enhance dashboard with detailed statistics and charts
- Refactored the dashboard component to include attendance, revenue, and expense summaries.
- Added donut charts for order statistics by channel, payment type, marketing, and status.
- Implemented a greeting message based on the current time and user information.
- Updated routing to use DashboardController for the dashboard view.
- Introduced a new AnalysisController for future analysis features.
2026-08-07 08:35:01 +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
Yoga Pangestu
bc02af2a66 feat: enhance attendance management with employee-specific data and location tracking 2026-08-06 23:43:49 +07:00
Yoga Pangestu
9bbb00c69f feat: refactor column definitions to conditionally include action buttons based on user permissions 2026-08-06 22:48:00 +07:00
Yoga Pangestu
5ec0e9ff3b feat: add view payments permission for employee advances and update related checks 2026-08-06 22:41:40 +07:00
Yoga Pangestu
d2d10ea63a feat: add transfer stock and view stock mutations permissions for products 2026-08-06 22:19:58 +07:00
Yoga Pangestu
a10a1700b0 feat: add visibility check for leave requests based on user roles 2026-08-06 17:39:56 +07:00
Yoga Pangestu
c11962cda1 feat: rename attendanceDate method to formattedAttendanceDate for clarity 2026-08-06 17:31:08 +07:00
Yoga Pangestu
66d6c843c3 feat: add base64 media registration method with support for multiple image formats and S3 storage 2026-08-06 17:29:56 +07:00
Yoga Pangestu
78965e9728 feat: update RolePermissionSeeder to include additional permissions for analysis, attendance, employee advances, and payroll 2026-08-06 17:26:34 +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
ab217a8d79 feat: enhance Attendance model date formatting; add restricted roles check in EmployeeService; update RolePermissionSeeder with new payroll permissions 2026-08-06 17:16:50 +07:00
Yoga Pangestu
8df17601ea feat: enhance EmployeeAdvanceService and ExpenseService with validation and transaction handling; update transaction columns for improved display 2026-08-06 17:12:22 +07:00
Yoga Pangestu
42e04673c6 feat: update CashTransactionType enum and improve transaction labels; refactor EmployeeAdvanceService and PayrollPeriodService for consistency 2026-08-06 15:26:46 +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
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
8399de9d2e feat: improve code readability by standardizing spacing and formatting in TransactionService 2026-08-06 14:17: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
1fc058f974 feat: streamline lambda function syntax and enhance readability in RestockService 2026-08-06 14:01:37 +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
3fe74bf166 fix: remove 'employee_advances.pay' permission from RolePermissionSeeder 2026-08-06 11:40:57 +07:00
Yoga Pangestu
1f39565754 feat: update material_result handling in CuttingRequest, CuttingCreate, and CuttingEdit components 2026-08-06 11:19:04 +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
71128002d7 refactor: streamline material validation and stock management in create and update methods of CuttingService 2026-08-06 10:41:41 +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
577329365a feat: add active and nonactive scopes to RawMaterial model and apply active scope in CuttingService 2026-08-06 09:57:01 +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
3b49f5ff3a refactor: update user relationship in PushSubscription model and clean up User model attributes 2026-08-05 23:29:37 +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
fc1c84f420 refactor: remove readonly modifier from S3PresignedService property for consistency 2026-08-05 22:35:46 +07:00