119 Commits

Author SHA1 Message Date
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
a6a52fa81b Updated control and design icon. 2025-08-18 00:56:50 +01:00
93848602bb Refactor ApiServerContext to improve socket event handling and authentication
- Updated socket connection to use 'user' type for authentication.
- Refactored event handling methods for object updates and new objects to use more descriptive names.
- Enhanced subscription methods for object updates and types, ensuring better organization and clarity.
- Introduced new methods for fetching template previews, generating host OTP, and sending object actions.
- Improved logging for better debugging and tracking of socket events.
2025-08-18 00:56:39 +01:00
e4ab4ea9c7 More document templates code. 2025-08-18 00:56:14 +01:00
e904cc10b4 Removed old audit log tabel. 2025-08-18 00:55:32 +01:00
aa41ad0192 Added splitter margin. 2025-08-18 00:55:20 +01:00
257cebf15c Refactor routing structure in App component to utilize modular route files for Production, Inventory, Management, and Developer sections. Update import paths for stylesheets and streamline route management for improved maintainability and organization. 2025-08-18 00:54:54 +01:00
ed322436e6 Add OTP functionality and related components for host management
- Introduced HostOTP component to handle one-time passcode generation and display.
- Added OTPIcon for visual representation of OTP functionality.
- Updated HostInfo component to integrate OTP modal and manage state for OTP actions.
- Refactored Host model to include a new 'connect' action for OTP access.
- Created new SVG and design assets for OTP icon representation.
- Enhanced user experience with loading states and progress indicators for OTP validity.
2025-08-18 00:54:20 +01:00
ec2d656b6e Add package-lock.json and update package.json with new dependencies
- Introduced package-lock.json to manage exact versions of dependencies.
- Updated package.json to include additional CodeMirror language support and UI components.
- Adjusted yarn.lock to reflect changes in package resolutions and versions.
2025-08-18 00:53:44 +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
08311a4a94 Added big fixes allowing dynamic obtaining of the token. 2025-07-20 22:50:40 +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
587ef7f480 Enhance Electron integration by adding ElectronContext for managing window state and external URL handling. Update AuthContext to support Electron-specific login flows and improve session management. Add new icons and adjust App.css for better UI consistency. 2025-07-20 18:29:36 +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
fdd16b2301 Add grouping options for Filament, GCodeFile, Printer, and Vendor models 2025-07-19 21:36:22 +01:00
3a1eb27b50 Improved UI aesthetics. 2025-07-19 21:36:02 +01:00
da0ea83e57 Update App.css to adjust flag line-height to 0.7 and hide dashboard cards header in the table body for improved layout. 2025-07-19 21:35:32 +01:00
8dbd87ff4c Remove debug logging statements from ApiServerContext and AuthContext to clean up the code and improve performance. 2025-07-19 21:35:20 +01:00
cd83679232 Add support for additional property types in ObjectProperty component, including variance, markdown, and object list displays. Enhance prop types to accommodate functions for prefix, suffix, and object type. Update ObjectInfo to pass custom property props. 2025-07-14 23:09:56 +01:00
38f03f8fe9 Refactor NotesPanel component to integrate ApiServerContext for fetching notes, add support for parent type in new note creation, and streamline note handling logic. 2025-07-14 23:09:21 +01:00
9a1f58aafe Add ObjectList component to display a list of objects with icons and IDs, enhancing the dashboard's UI. 2025-07-14 23:08:51 +01:00
a0ab5be6f2 Add danger property to action items in ObjectActions component and refine action filtering logic 2025-07-14 23:08:33 +01:00
5aa7355b0f Enhance PropertyChanges component to handle cases where both old and new values are absent, and improve rendering logic for displaying property changes. 2025-07-14 23:08:18 +01:00
a505e1aaba Add OperationDisplay component to visually represent operation types with icons and tags 2025-07-14 23:07:24 +01:00
a5458c6b67 Refactor InfoCollapse component to use collapseKey prop for active state management and improve structure 2025-07-14 23:07:15 +01:00
3bd2628960 Minor UI fix 2025-07-14 23:05:52 +01:00
d46402983f Add DeleteObjectModal component for confirming deletion of objects 2025-07-14 23:05:37 +01:00
b6c2cb22f4 Add VarianceDisplay component and update StockEvent model for variance type 2025-07-14 23:05:10 +01:00
0a897e663c Removed unnecessary wrapper elements and improving readability. 2025-07-14 23:04:44 +01:00
3ad0002bbb Moved more common functions into ApiServerContext 2025-07-14 23:04:18 +01:00
b71537dc64 Updated models 2025-07-14 23:02:26 +01:00
2a18f3d697 Refactoring 2025-07-14 22:59:47 +01:00
4788b76363 Added delete functionality 2025-07-14 22:58:12 +01:00
528d8d1259 Fixed ID Display 2025-07-14 22:57:20 +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
157d115c82 Minor fixes 2025-07-07 00:35:10 +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
9ccf7faa2f Added dayjs dependency for date manipulation and refactored components to replace IdText with IdDisplay for consistent ID representation. Updated logging to use loglevel for improved debugging and removed console logs for cleaner code. 2025-06-29 22:38:11 +01:00
0634919bb6 Refactored application to replace SocketContext with PrintServerContext for WebSocket communication. Updated related components to utilize print server events for real-time updates. Removed unused SocketContext and NotificationContext files. Updated package dependencies to use loglevel instead of log4js for improved logging capabilities. 2025-06-29 02:28:01 +01:00
8caad73f0b Update README.md 2025-06-28 14:10:27 +00:00
cb5a01644e Added read me. 2025-06-28 15:08:38 +01:00
c4ba3ae91c Added font styles for typography components, removed unused CSS files, and updated session button text for clarity. Enhanced layout styles for collapsible components and adjusted sidebar dimensions. 2025-06-28 15:06:25 +01:00
4545550ab8 Refactored VendorInfo component to use useCallback for fetchVendorDetails, improving performance and preventing unnecessary re-renders. Enhanced DashboardTable with a scroll handler for dynamic loading of data when scrolling up and down in card view. 2025-06-28 13:44:44 +01:00
859ae656d6 Refactored state display components to utilize StateTag for consistent state representation across AuditLogs, JobState, PrinterState, SubJobState, and others. Removed redundant badge logic and improved ObjectSelect for multi-select capabilities. Cleaned up unused props and streamlined vendor selection process. 2025-06-28 02:55:35 +01:00