Commit Graph

163 Commits

Author SHA1 Message Date
Yoga Pangestu
7976a457f5 refactor: improve code readability by standardizing spacing and formatting in TransactionService 2026-08-14 03:31:52 +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
0aae00a96b feat: enhance revenue analysis by adding payroll and expense calculations 2026-08-14 00:32:37 +07:00
Yoga Pangestu
78c432eaa0 feat: add base salary default value to employee edit form 2026-08-14 00:05:59 +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
95df2e9dc7 feat: optimize cash overview calculations for total balance, deposits, and withdrawals 2026-08-13 21:20:53 +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
5e07a1b910 feat: update LeaveRequest status check to use LeaveRequestStatus enum 2026-08-13 18:23:00 +07:00
Yoga Pangestu
867517f034 feat: enhance employee advances migration logic to update status values 2026-08-13 17:44:29 +07:00
Yoga Pangestu
b905c0a2c6 feat: update EmployeeAdvance status values and related logic, modify notifications accordingly 2026-08-13 17:36:55 +07:00
Yoga Pangestu
7d21a1e6db feat: add cart context and functionality, update welcome page with new components and styles
- Implemented CartContext for managing cart state, including adding, removing, and updating items.
- Added CartDrawer component to display cart items.
- Updated AppHeader to include cart item count.
- Enhanced welcome page with new layout, improved product image handling, and updated call-to-action buttons.
- Refactored homepage data types to accommodate new features and removed unused properties.
2026-08-13 17:19:56 +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
5c1343d575 feat: remove subtotal from restock model, migration, and related components 2026-08-13 11:30:20 +07:00
Yoga Pangestu
e61f6fce7e feat: implement data fixing commands for various entities including cuttings, orders, and pricing 2026-08-13 11:11:08 +07:00
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
a778e2f499 feat: add cutting detail view and enhance cutting data handling in various components 2026-08-13 10:35:04 +07:00
Yoga Pangestu
5182dcc012 feat: enhance search functionality in paginated methods to include related product and raw material variants 2026-08-13 08:48:44 +07:00
Yoga Pangestu
5a89a0d1e3 feat: update attribute labels in various request files to use lowercase Indonesian terms for consistency 2026-08-13 08:39:32 +07:00
Yoga Pangestu
1f41f04199 feat: remove unused media collection clearing in destroy methods and add CleanupOrphanedMediaJob for orphaned media management 2026-08-13 00:39:46 +07:00
Yoga Pangestu
e1a0d25c3c feat: update relationships in models to include trashed records for CuttingMaterial, OrderItem, ProductVariant, and RestockItem 2026-08-13 00:28:10 +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
fbdad6923c feat: enhance product and raw material models with additional stock formatting attributes and update image preview components to include descriptions 2026-08-12 22:14:08 +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
5335e5ad58 feat: add receipt conversion URLs for media handling across various services and components 2026-08-12 21:35:46 +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
278493b4c6 refactor: optimize product name retrieval and enhance category selection in ProductIndex component 2026-08-12 20:38:11 +07:00
Yoga Pangestu
ff8dc64a27 feat: add media handling capabilities to multiple models and improve media conversion process 2026-08-12 20:36:35 +07:00
Yoga Pangestu
a3c642e173 refactor: standardize spacing in lambda functions and SQL queries across services 2026-08-12 20:17:09 +07:00
Yoga Pangestu
7164bd96d3 feat: add validation for product prices in transaction creation and editing 2026-08-12 20:16:57 +07:00
Yoga Pangestu
e9faa6a322 feat: update media handling to use 'images' collection and improve path generation
- Refactored CustomPathGenerator to handle S3 keys and default paths more effectively.
- Changed media collection references from 'photos' to 'images' across various services.
- Updated methods to retrieve media URLs using the new path generation logic.
- Enhanced transaction-related components to display associated images.
2026-08-12 12:11:29 +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
59cc0a5309 fix: remove size validation from shared_prices and variants prices rules 2026-08-09 22:22:17 +07:00
Yoga Pangestu
27beb38e55 feat: add revenue trend analysis feature with chart visualization in Analysis component 2026-08-09 16:45:53 +07:00
Yoga Pangestu
485ae8e5ce feat: add getNames method to ProductService for retrieving product names 2026-08-09 16:31:03 +07:00
Yoga Pangestu
0cce4ee73d feat: enhance StatCard component with description prop and update chart tooltips for better localization
- Added optional description prop to StatCard for additional context.
- Updated ChartTooltipContent to format numbers according to Indonesian locale.
- Refactored revenue and expense charts in the Analysis page to use new chart configurations and improved tooltip content.
- Introduced DashboardPieChart component for displaying order statistics by channel, payment type, marketing, and status.
- Adjusted revenue summary calculations in the Dashboard page to reflect changes in data structure.
2026-08-09 16:30:16 +07:00
Yoga Pangestu
3fab97e7e5 fix: correct array conversion in getForCutting method of RawMaterialVariantService 2026-08-09 15:08:00 +07:00
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
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
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