84 Commits

Author SHA1 Message Date
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
204a881dfa Refactor object data merging in NewObjectForm to use lodash's merge for improved state management 2025-09-05 23:15:42 +01:00
c5355c8cf2 Implement DocumentPrintButton component for document template selection and printing functionality 2025-09-05 23:15:24 +01:00
5a656d43f1 Added AlertsDisplay component to ControlPrinter and updated state management to include objectData. 2025-09-05 23:14:32 +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
25743ddc2c Overhauled notes system. 2025-08-31 21:31:13 +01:00
e688bd891d Added reusable component for a missing placeholder. 2025-08-31 21:30:08 +01:00
4d01a6a04f Overhaul printer control 1. 2025-08-31 21:29:00 +01:00
5c69fa5fda Added color to object display. 2025-08-31 21:27:37 +01:00
eba1a87664 Refactor EditObjectForm to ObjectForm 2025-08-30 23:42:05 +01:00
71c83f6147 Fixed ws updating. 2025-08-30 23:38:51 +01:00
3f353c1f70 Fixed collapse button not being at bottom. 2025-08-24 10:50:59 +01:00
1a59ad9618 Started work on scroll bars. 2025-08-24 00:08:26 +01:00
31905d6bb5 Windows control buttons now work when a modal is visible. 2025-08-23 22:13:03 +01:00
2dad5afcb7 Windows UI fixes. 2025-08-23 21:09:03 +01:00
b1484bf127 Electron fixes and new menu icon. 2025-08-23 19:20:59 +01:00
7276633f3e Fixed electron dev so it uses a local web server for redirection alongside UI tweaks. 2025-08-23 13:55:02 +01:00
caa50709dd Fixed warnings 2025-08-23 11:21:59 +01:00
fbb0dd7b32 Bugfix: Fixed object update and creation ws. 2025-08-23 11:21:37 +01:00
5680b067a8 Fixed warnings and info pages. 2025-08-23 00:53:47 +01:00
bb047651ae Fixed incorrect var 2025-08-22 22:18:50 +01:00
9255f6bbe8 Fixed error due to same values. 2025-08-22 22:17:13 +01:00
5d6fe05227 Fixed warnings and removed logging. 2025-08-22 22:16:09 +01:00
78fcd4293d Fixed warnings 2025-08-22 21:08:47 +01:00
871f260661 Fix initialization check in EditObjectForm to ensure proper state management 2025-08-22 21:07:48 +01:00
4c3d37a7d0 Migration to Vite. 2025-08-22 20:28:50 +01:00
296fbe55df Enhance TemplateEditor component with new features and UI improvements
- Added a disabled state to the info button based on global object data.
- Adjusted preview scale increment and decrement values for finer control.
- Introduced a read-only button to display the current preview scale.
- Wrapped the ObjectProperty component in a scrollable div for better visibility in the modal.
- Increased modal width for improved layout and user experience.
2025-08-19 23:58:46 +01:00
8e823603f7 Enhance PropertyChanges component to support minimal rendering
- Added a 'minimal' prop to ObjectProperty components within PropertyChanges for improved rendering control.
- Updated both old and new object data displays to utilize the new 'minimal' prop, enhancing component flexibility.
2025-08-18 01:03:54 +01:00
11c76a0725 Refactor PrinterJobsTree component to enhance state display
- Replaced JobState and SubJobState components with a unified StateDisplay component for improved consistency in state representation.
- Updated the rendering logic to utilize StateDisplay for both job and sub-job states, enhancing code clarity and maintainability.
2025-08-18 01:03:44 +01:00
9a406bb7df Add ObjectTypeDisplay and ObjectTypeSelect components for enhanced object type management
- Introduced ObjectTypeDisplay component to visually represent object types with optional icons and labels.
- Created ObjectTypeSelect component to allow users to select object types from a dropdown, utilizing ObjectTypeDisplay for rendering options.
- Implemented prop types for both components to ensure proper type checking and documentation clarity.
2025-08-18 01:03:17 +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
dcf90469f4 Refactor ObjectSelect component to improve code clarity and maintainability
- Removed unnecessary whitespace to enhance code readability.
- Streamlined data handling logic for better performance and consistency.
- Improved structure of the loadData function for clearer data fetching and processing.
2025-08-18 01:02:48 +01:00
e423f32493 Enhance ObjectSelect component to support additional filtering and improved data handling
- Introduced a new 'masterFilter' prop to allow for more complex filtering scenarios.
- Updated data fetching logic to handle both array and object responses from the API, ensuring robust data management.
- Improved tree data handling by refining how children nodes are built and updated.
- Added a 'disabled' prop to control the component's interactivity.
- Enhanced prop types for better type checking and documentation clarity.
2025-08-18 01:02:27 +01:00
08dbbefada Enhance ObjectActions component to support action visibility filtering
- Introduced a recursive function to filter actions based on visibility, allowing for dynamic control over which actions are displayed.
- Updated the component to accept a new 'visibleActions' prop for improved customization.
- Improved code readability by restructuring the action filtering logic and ensuring proper handling of nested actions.
2025-08-18 01:01:29 +01:00
27e843e183 Refactor DashboardNavigation to streamline API server state management
- Removed unused PrintServerContext and related print server state management.
- Updated API server state handling to use a single context for connection status.
- Improved code readability by consolidating state checks and simplifying the rendering logic for connection status indicators.
2025-08-18 01:00:40 +01:00
df1115022a Refactor DashboardSidebar to support recursive item mapping
- Introduced a recursive function to map sidebar items and their children, enhancing the structure and maintainability of the component.
- Added onClick functionality for items with paths, improving navigation capabilities.
- Improved code readability by restructuring the item mapping logic.
2025-08-18 01:00:25 +01:00
b74a4bb174 Enhance CopyButton component to support customizable button type
- Added a new 'type' prop to the CopyButton component, allowing users to specify the button type.
- Updated the component's prop types to include the new 'type' prop for better type checking and documentation.
- Improved code readability by restructuring the component's props definition.
2025-08-18 01:00:11 +01:00
b45df50da5 Remove inital gcode. 2025-08-18 01:00:02 +01:00
653e4e6ab2 Refactor DashboardBreadcrumb component to enhance breadcrumb functionality
- Introduced a new segmentToModel function to dynamically retrieve model names based on URL segments.
- Simplified breadcrumb name mapping by removing unused entries and adding support for pluralized model labels.
- Improved breadcrumb item rendering logic for better clarity and maintainability.
2025-08-18 00:59:47 +01:00
678d5a0e90 Refactor ActionHandler and EditObjectForm components to support forward refs and improve functionality
- Updated ActionHandler to use forwardRef, allowing parent components to access the callAction method.
- Enhanced EditObjectForm with forwardRef, enabling external control over editing state and form handling.
- Added onEdit and onStateChange props to EditObjectForm for better integration with parent components.
- Improved form validation and state management within EditObjectForm, ensuring a smoother user experience.
- Cleaned up code for better readability and maintainability.
2025-08-18 00:58:52 +01:00
4201f2b4a3 Add CodeBlockEditor component for enhanced code editing experience
- Introduced CodeBlockEditor component to support multiple programming languages with syntax highlighting using CodeMirror.
- Implemented features such as customizable styles, read-only mode, and line number visibility.
- Added support for JSON object parsing and modal display for minimal view.
- Integrated theme context for dark mode support and improved user interaction with onChange handling.
- Defined prop types for better type checking and documentation.
2025-08-18 00:58:30 +01:00
a9a2801e27 Refactor ObjectProperty component and introduce StateDisplay
- Removed unused components (PrinterState, SubJobState, JobState, FilamentStockState).
- Added new StateDisplay component for handling state representation.
- Enhanced ObjectProperty to support new properties and rendering logic for code blocks and object types.
- Updated import paths and prop types accordingly for improved clarity and functionality.
2025-08-18 00:58:10 +01:00
e904cc10b4 Removed old audit log tabel. 2025-08-18 00:55:32 +01:00
c73b6fb33d Add new document management components and icons
- Introduced DocumentPrinters, DocumentSizes, and DocumentTemplates components for managing respective entities.
- Added corresponding info and design components for each entity.
- Created new SVG icons for document-related functionalities.
- Implemented hooks for column visibility and view mode management in the new components.
- Enhanced user experience with action buttons and modals for creating new entries.
2025-08-18 00:53:14 +01:00
9fd2b8ffa6 Removed unsed flag library and upgraded libraries. 2025-08-14 19:30:45 +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
ecca21fd6e Refactor TagsDisplay component to handle string and array inputs for tags, ensuring proper rendering and fallback for empty values. 2025-07-19 21:36:34 +01:00