50 Commits

Author SHA1 Message Date
89b6f476c1 Add ModelRoutes and ActionsContext for enhanced model management
- Introduced ModelRoutes to handle dynamic routing for model pages based on object models.
- Created ActionsContext to manage actions and modal states across components, improving action handling and navigation.
- Updated various components to utilize the new buildActionUrl utility for consistent URL generation.
- Refactored existing components to integrate the ActionsProvider, enhancing state management and user interaction.
2026-08-01 18:25:29 +01:00
d982b8dfb3 Refactor components to improve logging and ID handling
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
- Removed console.log statements from FilePreview and ObjectForm components for cleaner code.
- Replaced console.log with loglevel in KeyboardShortcut for better logging management.
- Updated ID handling in ObjectForm, ObjectTable, PrinterMiscPanel, PrinterPositionPanel, and PrinterTemperaturePanel components to ensure IDs are consistently converted to lowercase, enhancing data integrity.
2026-08-01 16:18:37 +01:00
1efebeeda6 Refactor ObjectTable component for improved readability and styling consistency
- Simplified the loadPage function call by consolidating parameters into a single line, enhancing code clarity.
- Updated the Splitter component's className to include 'large', ensuring consistent styling across the dashboard components.
2026-08-01 14:44:56 +01:00
bc465f7202 Integrate TableStateContext for enhanced table state management
- Introduced TableStateContext to manage table filters and sorting, allowing for persistence across sessions and URL parameters.
- Updated ObjectTable and DashboardBreadcrumb components to utilize the new context for improved filter handling and user experience.
- Refactored DashboardLayout to include TableStateProvider, ensuring consistent state management across the dashboard components.
2026-08-01 12:38:21 +01:00
84b7197bb9 Enhance ObjectCard and ObjectTable components with skeleton loading support
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
- Added an `isSkeleton` prop to ObjectCard for conditional rendering of skeleton loaders, improving user experience during data fetching.
- Updated ObjectTable to manage skeleton boundaries, allowing for dynamic loading of pages based on visibility of skeleton cards.
- Refactored scroll handling in ObjectTable to utilize IntersectionObserver for better performance and responsiveness.
2026-08-01 12:19:27 +01:00
3c634a90d0 Refactor ObjectCard and ObjectTable components for improved layout and responsiveness
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
- Introduced a new method to dynamically calculate card column span based on container width in ObjectTable, enhancing responsiveness.
- Updated ObjectCard to simplify rendering logic by extracting name and state properties into a separate component.
- Added min-width: 0 to relevant CSS classes in App.css to ensure proper layout handling and prevent overflow issues.
2026-08-01 00:05:10 +01:00
c6ad465ad6 Enhance layout and styling across various components
- Added min-height: 0 to Flex components in multiple files to improve layout consistency.
- Updated App.css with new styles for .farmcontrol-splitter and .objectTableCards to enhance visual structure and overflow handling.
- Refactored ObjectTable component to utilize ScrollBox for better scrolling behavior and layout management.
2026-07-31 23:41:49 +01:00
f85b176709 Refactor ActivityIndicator and ObjectCard components to utilize Thumbnail for image rendering
- Removed unnecessary state and effects related to image loading in ActivityIndicator, replacing them with the new Thumbnail component for better performance and simplicity.
- Updated ObjectCard to conditionally render a Thumbnail based on the presence of a thumbnail property, enhancing the visual representation of objects.
- Introduced a new Thumbnail component to handle image fetching and rendering, including support for blurHash decoding and fallback UI.
2026-07-31 22:54:18 +01:00
c6ec643a2f Refactor ObjectDisplay and ObjectTable components for improved subscription handling
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
- Updated ObjectDisplay to subscribe to object updates based on the object ID, enhancing responsiveness to changes.
- Refactored ObjectTable to streamline subscription logic, ensuring real-time updates are managed more efficiently and reducing unnecessary re-renders.
2026-07-26 19:26:52 +01:00
dcbf308988 Refactor dashboard components to replace LockIndicator with ActivityIndicator
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
- Updated various components to use ActivityIndicator instead of LockIndicator for better activity tracking.
- Adjusted layout spacing by changing Space component size from 'middle' to 'small' for improved UI consistency.
- Modified object form state to include activities instead of lock status, enhancing the user experience during editing.
2026-07-26 00:51:36 +01:00
b16cdd6e96 Enhance styling and functionality of dashboard components
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
- Added new CSS variables for padding in ScrollBox to improve layout.
- Updated ObjectForm to include console logs for debugging during editing cancellation.
- Refactored ObjectInfo to use mergeWith for better array handling in state updates.
- Enhanced ObjectProperty and ObjectTable components to support new props for better integration with tags.
- Improved TagsDisplay and TagsInput components for better tag management and display, including loading states and dynamic options fetching.
- Introduced getModelPropertyValues function in ApiServerContext for fetching model-specific property values, enhancing data handling capabilities.
2026-07-24 23:20:00 +01:00
5c436e6afa Update SKELETON_HEIGHT in ObjectTable component for improved layout consistency. Adjust Skeleton.Input height for better visual alignment in the dashboard table. 2026-07-23 23:24:52 +01:00
8dc74f1a8e Enhance ObjectTable component by adding support for action handling with new props for row actions and visibility of action buttons. Refactor skeleton data creation and improve loading logic for better performance and user experience during data fetching. 2026-07-20 02:07:10 +01:00
edce328880 Refactor ObjectTable component to improve data handling and loading logic. Introduce skeleton page creation for better user experience during data fetching. Optimize page management and scrolling behavior, enhancing performance and maintainability.
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
2026-07-18 19:56:37 +01:00
9c2dd62c7e Implement scroll optimization in ObjectTable component by introducing scroll operation throttling and refactoring scroll handling logic. Add dedicated functions for scrolling up and down to improve user experience during data loading.
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
2026-07-18 15:43:58 +01:00
18431bf10d Adjust scrollHeight calculations in ObjectTable component for improved layout consistency across different environments.
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
2026-07-05 01:38:20 +01:00
b2cb143f39 Update ObjectTable component to set default size for FilterSidebar panel, improving layout consistency in the dashboard. 2026-07-04 22:12:48 +01:00
657c1dd17e Add expandHeight prop to various Dashboard components for improved layout flexibility
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
2026-06-22 01:48:12 +01:00
27f5989eb8 Added splitter to filter sidebar. 2026-06-20 22:56:07 +01:00
fb9454d8e0 Refactor Stock Transfers and Management Components
- Adjusted width of Stock Transfers modal for better UI consistency.
- Enhanced New Stock Transfer form with default transfer name generation and improved validation handling.
- Added Product Categories to Management Sidebar and updated routing for better navigation.
- Implemented delete functionality in Host Info component.
- Improved User Info layout for mobile responsiveness and added ObjectProperty component for better data display.
- Updated FileUpload and FileList components to support minimal display mode.
- Enhanced ObjectTable with subscription filtering and improved rendering logic.
- Added new properties and filters to Stock Transfer and Product models for better data management.
2026-06-14 23:51:45 +01:00
7a5ea5416b Numerious fixes. 2026-05-17 19:11:25 +01:00
b4512a1948 Improved card design for object table. 2026-03-22 00:02:17 +00:00
af063f7acc Implemented filter sidebar.
Some checks are pending
farmcontrol/farmcontrol-ui/pipeline/head Build queued...
2026-03-13 22:51:32 +00:00
1e2adb2b28 Implemented multiple app passwords.
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
2026-03-02 01:58:34 +00:00
67b567f710 Fixed is skeleton bug
Some checks failed
farmcontrol/farmcontrol-ui/pipeline/head There was a failure building this commit
2026-01-04 20:27:57 +00:00
9fb884638f Add ActionsIcon component and corresponding SVG icon
- Introduced a new ActionsIcon component that utilizes an SVG for rendering.
- Updated ObjectTable to display the ActionsIcon in the actions column when applicable.
- Added the SVG file for the ActionsIcon to the assets/icons directory.
2025-12-27 21:22:44 +00:00
7e1ec9f3ae Removed development logging. 2025-12-27 15:19:09 +00:00
50bc816e97 Added edit mode to tables. 2025-12-27 13:50:30 +00:00
d7827ecb6d Implemented new message context. 2025-12-14 23:06:42 +00:00
f7532338b6 Refactor ObjectTable component to utilize refs for table filter and sorter management
- Replaced state management for tableFilter and tableSorter with refs for improved performance and reduced re-renders.
- Introduced tableData state to manage flattened data for display.
- Updated data fetching logic to reference current filter and sorter values from refs.
- Enhanced useEffect to flatten pages array for table display.
2025-12-07 02:42:18 +00:00
13bbcbe50e Added tax rates, tax records and minor style improvements. 2025-12-03 23:35:30 +00:00
8ed0287d73 Adjust ObjectTable fixed column behavior for mobile and update action column width calculation 2025-11-23 13:21:48 +00:00
8c622420bb Fixed loading glitch if web server becomes unresponsive. 2025-11-21 19:15:25 +00:00
48631c98c3 Refactor file handling and update API methods for improved file management. Renamed fetchObjectContent to fetchFileContent, updated related function calls, and enhanced file preview capabilities. Removed unused components and optimized imports. 2025-11-16 17:02:15 +00:00
5300874b80 Enhance ObjectTable component to support Electron context; adjust scroll height based on Electron environment and improve action button handling with dynamic disabled state. 2025-09-05 23:17:20 +01:00
e4b766fab1 Removed more logging. 2025-08-31 22:02:48 +01:00
4271a7f084 Removed logging. 2025-08-31 22:01:58 +01:00
8bbfe20ec4 Fixed object update issues. 2025-08-31 21:31:54 +01:00
71c83f6147 Fixed ws updating. 2025-08-30 23:38:51 +01:00
fbb0dd7b32 Bugfix: Fixed object update and creation ws. 2025-08-23 11:21:37 +01:00
5d6fe05227 Fixed warnings and removed logging. 2025-08-22 22:16:09 +01:00
4c3d37a7d0 Migration to Vite. 2025-08-22 20:28:50 +01:00
b4763e01af Refactor ObjectTable component to improve real-time update handling
- Updated subscription methods to use more descriptive names for clarity.
- Simplified the new event handler to always reload data on updates.
- Enhanced code readability by restructuring useEffect dependencies and callback functions.
2025-08-18 01:03:05 +01:00
a20235a953 Refactor routing logic in App component to conditionally use HashRouter or BrowserRouter based on the environment. Update AuthContext and related components to replace 'authenticated' with 'token' for improved authentication handling. Enhance NotesPanel and ObjectTable components to manage loading states and data fetching more effectively, ensuring better user experience and error handling. 2025-07-20 20:20:30 +01:00
66e137fac2 Refactor LockIndicator imports to use common path across components, remove unused LockIndicator file, and update related components for consistency. Enhance DashboardBreadcrumb for improved path mapping and add Hosts section to ManagementSidebar. Adjust ObjectSelect for better object handling and update ObjectTable for improved loading behavior. 2025-07-20 18:29:48 +01:00
eb7f285eef Fixed skeleton bug 2025-07-14 22:56:44 +01:00
9ba65075be New flag display, updated old components to use model system. Implemented some inventory features. 2025-07-12 20:14:40 +01:00
3c2d3ec858 Refactored management components to enhance data handling and UI consistency. Integrated ObjectTable for audit logs across various entities, including Parts, Products, and Users. Updated column visibility management and removed unused imports for cleaner code. Improved error handling in API interactions and streamlined component structures for better maintainability. 2025-07-07 00:30:38 +01:00
fdc862d16c Refactored management components to utilize ObjectTable for consistent data representation and improved functionality. Updated column visibility handling and integrated new model properties for better data management. Removed unused imports and streamlined code for enhanced readability. 2025-07-06 01:51:14 +01:00
fe85250838 Refactored components to replace DashboardTable with ObjectTable for improved consistency and functionality. Updated FilamentStockInfo, PartStocks, StockAudits, and other inventory management components to utilize NotesPanel instead of DashboardNotes. Removed unused DashboardNotes and DashboardTable components to streamline the codebase. 2025-07-04 21:29:27 +01:00