Commit Graph

196 Commits

Author SHA1 Message Date
Yoga Pangestu
2bb814702a feat: add ChartContainer and related components for enhanced charting capabilities in the dashboard
- Introduced ChartContainer, ChartTooltip, ChartTooltipContent, ChartLegend, and ChartLegendContent components to streamline chart rendering and tooltip management.
- Replaced existing donut chart implementation with a new pie chart component utilizing the new charting system.
- Updated dashboard to utilize the new chart components, improving maintainability and visual consistency.
- Refactored chart data handling and configuration for better integration with the new charting components.
2026-08-09 12:52:12 +07:00
Yoga Pangestu
a1ba9564c7 fix: correct total calculation by adjusting discount and negotiation price handling in transaction create and edit components 2026-08-09 12:31:01 +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
46af27e537 refactor: rename create/delete methods to store/destroy across multiple services; add transaction handling for cash and stock adjustments 2026-08-08 14:31:58 +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
6627422655 feat: enhance analysis page with additional revenue metrics and improve data handling 2026-08-08 13:40:18 +07:00
Yoga Pangestu
f7c13826eb feat: update dashboard titles to reflect today's data for attendance, revenue, and expenses 2026-08-08 12:41:52 +07:00
Yoga Pangestu
515b2e9848 refactor: reorganize admin routes for better structure and readability 2026-08-08 12:25:59 +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
4733df5827 Add homepage types and update routing to use HomepageController
- Created a new TypeScript file for homepage-related types including Product, ProductVariant, ProductCategory, and HomepageData.
- Updated the index.ts to export the new homepage types.
- Refactored the web routes to replace the inline closure for the home route with the HomepageController.
2026-08-07 17:29:59 +07:00
Yoga Pangestu
3c945a1372 fix: update error messages for form submissions to improve clarity 2026-08-07 15:43:52 +07:00
Yoga Pangestu
4b70da6715 feat: enhance leave request validation and fix timezone issues 2026-08-07 15:36:44 +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
e4d956843c feat: update TodayAttendanceAlert component and enhance card styling in attendance and dashboard pages 2026-08-07 14:32:45 +07:00
Yoga Pangestu
166419134f Refactor component imports for consistency and organization
- Updated import paths for various components to align with new directory structure.
- Changed imports from 'row-actions', 'confirm-dialog', 'image-preview-button', and 'file-upload' to their respective new locations in 'data-display', 'dialogs', and 'inputs'.
- Adjusted imports in multiple pages including purchase, restock, transaction, category, customer, product, raw-material, supplier, roles, and settings.
- Ensured all relevant components are imported from their new locations to maintain functionality.
2026-08-07 13:48:46 +07:00
Yoga Pangestu
d648d48632 feat: implement TodayAttendanceAlert component for improved attendance display and interaction 2026-08-07 13:25:41 +07:00
Yoga Pangestu
28f7ea0006 feat: add RETAIL case to ProductStockQuality enum and update label method 2026-08-07 13:02:07 +07:00
Yoga Pangestu
d10f731839 feat: enhance documentation with workflow tracing and session notes guidelines 2026-08-07 11:40:09 +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
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