939 Commits

Author SHA1 Message Date
e3f79cfd00 Initial upgrade commit.
Some checks failed
farmcontrol/farmcontrol-ui/pipeline/head There was a failure building this commit
2026-08-23 19:27:53 +01:00
39908c811a Implement Reconnection Logic in ApiServerContext
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
- Added state management for connection issues, including reconnect progress and attempts, to enhance the robustness of the API server connection.
- Introduced functions to handle reconnect scheduling, countdowns, and teardown of socket connections, improving error handling during disconnections.
- Updated the connectToServer function to manage socket connections more effectively, ensuring a smoother user experience during connectivity issues.
- Enhanced the disconnect event handling to provide better feedback and state management when the API server is disconnected.
2026-08-23 18:27:05 +01:00
bcb7460bf2 Enhance Loading State in Dashboard Components
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
- Added a loading spinner to various components including InvoiceInfo, PaymentInfo, TaxRecordInfo, and others to improve user experience during data fetching.
- Integrated Spin component from Ant Design with a LoadingOutlined icon to visually indicate loading states for notes sections across multiple dashboard components.
- Ensured consistent loading behavior across all relevant components, enhancing overall responsiveness and user feedback.
2026-08-22 21:16:21 +01:00
0c38cea5b6 Fix modal centering logic in ActionsContext to prevent errors when resolvedModalAction is undefined. Updated useEffect to check for resolvedModalAction before setting modalCentered state. 2026-08-22 21:10:04 +01:00
6643c8a8c7 Add danger prop to action button in ObjectTable component 2026-08-22 21:07:47 +01:00
43464f8054 Refactor Delete Functionality Across Multiple Components
- Removed the delete action from various components including InvoiceInfo, PaymentInfo, and others to streamline functionality.
- Introduced a new DeleteObject component to handle deletion logic in a centralized manner, enhancing code maintainability.
- Updated models to utilize the new DeleteObject component for consistent deletion handling across the application.
- Simplified ObjectForm by eliminating the previous delete modal, improving component structure and clarity.
2026-08-22 21:06:32 +01:00
c99227816e Refactor Object Form and Child Table for Improved Data Handling and Computed Values Management
- Introduced applyComputedEntries function to streamline the merging of computed entries with existing object data, enhancing clarity and maintainability.
- Updated NewObjectForm and ObjectForm components to utilize applyComputedEntries for setting initial form data and computed values, improving data handling consistency.
- Refactored ObjectChildTable to ensure proper handling of value props and fallback mechanisms, enhancing user experience during editing.
- Removed unused DeleteObjectModal from ObjectForm, simplifying the component structure.
2026-08-22 21:01:50 +01:00
978f444538 Enhance Dashboard Navigation and Settings with Show Navigation Labels Feature
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
- Introduced a new setting for showNavigationLabels in the ThemeContext to manage the visibility of navigation labels.
- Updated the Settings component to allow users to toggle navigation labels and persist this setting.
- Modified the DashboardNavigation component to conditionally render navigation labels based on user preference.
- Adjusted App.css to improve styling for navigation items when labels are hidden.
2026-08-22 20:32:20 +01:00
3e86170e5c Refine App.css for Improved Layout and Styling Consistency
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
- Adjusted margin properties for .ant-flex and .object-display-tag to enhance visual alignment.
- Introduced a new margin for .ant-select-tree-node-content-wrapper to improve spacing.
- Updated border styling for .ant-tag.object-display-tag and .object-select-multiple for better visual distinction.
2026-08-22 20:21:36 +01:00
90d9ed286d Enhance Dashboard Components with New Features and Styling Improvements
- Updated App.css to refine styling for object display tags and introduced a border for better visual distinction.
- Enhanced NewDocumentJob component by adding a default quantity value for improved user experience.
- Introduced PrinterQueue component to manage and display printer job queues, enhancing the ControlPrinter functionality.
- Improved MissingPlaceholder component with additional props for customizable border and padding options.
- Adjusted ObjectDisplay and ObjectList components for better layout and interaction, including cursor changes for clickable elements.
- Updated ThemeContext to manage new color variables for consistent theming across components.
2026-08-22 20:02:50 +01:00
39f1b31ac8 Refactor DocumentTemplate for Improved Readability and Layout Adjustments
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
- Reformatted the NewDocumentTemplate import for better readability.
- Enhanced the layout of the DocumentTemplate component by adjusting column widths for various fields, improving overall data presentation.
- Ensured consistent formatting in the content rendering of NewDocumentTemplate, enhancing code clarity.
2026-08-22 18:13:49 +01:00
b917636bf1 Refactor ObjectList Component to Support Horizontal Scrolling and Improve Layout
- Updated ObjectList component to use Flex for layout, enhancing responsiveness and alignment.
- Introduced scrollHorizontal prop to conditionally render content in a horizontal scroll box.
- Adjusted ObjectProperty to pass scrollHorizontal prop, ensuring consistent behavior in table views.
- Enhanced SimplePropertyFilter to handle objectList type correctly, improving data handling.
2026-08-22 18:13:44 +01:00
39d5206130 Enhance Document Template Management with Referenced Templates Support
- Updated NewDocumentTemplate component to include 'referencedTemplates' in visible properties and object data management, improving template handling.
- Modified DocumentTemplate model to add 'referencedTemplates' field, allowing for better data structure and management of related templates.
- Adjusted App.css to refine styling for object display tags, enhancing visual consistency across the application.
2026-08-22 16:39:07 +01:00
cc1048fcaa Update App.css and PDFViewer.jsx for Enhanced Styling and Code Clarity
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
- Modified background color in App.css to use color-mix for improved visual effects.
- Added border and box-shadow to .react-pdf__Page class for better PDF presentation.
- Simplified conditional styling in PDFViewer.jsx for cleaner code structure.
2026-08-22 14:18:39 +01:00
7833b1dbce Enhance NewDocumentJob Component with Job Update Handling and Progress Display
Some checks reported errors
farmcontrol/farmcontrol-ui/pipeline/head Something is wrong with the build of this commit
- Integrated ProgressDisplay component to manage job deployment progress within the NewDocumentJob component.
- Added subscription to object updates for real-time job status tracking, improving user feedback during document processing.
- Refactored state management to handle job updates and deployment actions more effectively, enhancing overall functionality and user experience.
2026-08-22 14:02:29 +01:00
8035c2ba59 Refactor AppUpdateProgress and TemplatePreview to Use ProgressDisplay Component
- Replaced HProgress and ElipsisText with the new ProgressDisplay component in AppUpdateProgress for improved code clarity and reusability.
- Updated TemplatePreview to utilize ProgressDisplay for rendering download progress, enhancing consistency across components.
- Introduced ProgressDisplay component to encapsulate progress rendering logic, allowing for customizable label positioning and styling.
2026-08-22 13:37:36 +01:00
f9ac300267 Update bun.lock with New Dependencies for PDF and Canvas Support
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
- Added pdfjs-dist and react-pdf for enhanced PDF rendering capabilities.
- Introduced @napi-rs/canvas and its platform-specific dependencies to support canvas functionalities across various operating systems.
- Included make-cancellable-promise and make-event-props for improved promise handling and event properties management.
- Updated existing dependencies to ensure compatibility and maintain functionality.
2026-08-22 13:23:58 +01:00
d944697f9c Update NewDocumentJob Component for Improved TemplatePreview Layout
Some checks failed
farmcontrol/farmcontrol-ui/pipeline/head There was a failure building this commit
- Adjusted the sidebar div in the NewDocumentJob component to use a calculated height for better responsiveness.
- Ensured the sidebar maintains a minimum width, enhancing the overall layout and user experience of the TemplatePreview.
2026-08-22 13:19:57 +01:00
fb52a14dd0 Refactor TemplatePreview for Improved Layout and Responsiveness
- Replaced a div with a Flex component to enhance layout and alignment of the TemplatePreview.
- Adjusted styles to ensure minimum width and proper cursor behavior during panning.
- Streamlined iframe rendering within the new structure for better responsiveness and user experience.
2026-08-22 13:11:49 +01:00
47e4e60b86 Enhance TemplatePreview with Clear Iframe Contents Functionality
- Added a new function to clear iframe contents, improving resource management and preventing stale data display.
- Integrated the clearIframeContents function into the PDF preview type change handler, ensuring a clean slate when switching to PDF previews.
- Updated state management for iframe size and preview content to enhance user experience and maintain consistency.
2026-08-22 13:04:57 +01:00
9766f4b6c3 Update TemplatePreview Component with Enhanced Card Styling
Some checks failed
farmcontrol/farmcontrol-ui/pipeline/head There was a failure building this commit
- Modified the TemplatePreview component to improve the styling of the Card element, setting maxWidth, minWidth, and margin for better layout.
- Adjusted Flex component's gap for improved spacing between elements, enhancing overall visual presentation.
2026-08-22 13:00:53 +01:00
85273bea1b Add PDF Preview and Viewer Components with Enhanced Styling
Some checks failed
farmcontrol/farmcontrol-ui/pipeline/head There was a failure building this commit
- Introduced PDFPreview and PDFViewer components to facilitate PDF rendering and interaction within the dashboard.
- Implemented zoom and pan functionalities in PDFPreview for improved user experience.
- Enhanced App.css with styles for a new overlay during PDF loading, ensuring a smooth visual transition.
- Updated TemplatePreview to integrate PDF viewing capabilities, allowing users to preview PDF documents seamlessly.
- Modified ApiServerContext to support asynchronous PDF downloads, improving document handling efficiency.
2026-08-22 12:55:50 +01:00
6dcc5759f4 Enhance API Server Context and Template Helpers with New Features
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
- Added a new helper function 'renderDocumentTemplate' to the fcTemplateHelpers for improved document rendering capabilities.
- Introduced 'mapObjectFiltersForQuery' function to streamline filter mapping in API requests, enhancing code readability and maintainability.
- Updated API server context to utilize the new filter mapping function, improving data fetching logic and consistency in handling object filters.
- Refactored sorting parameters in API requests to use 'sortProperty' and 'sortOrder' for better clarity and alignment with naming conventions.
2026-08-22 02:36:03 +01:00
c5b421533f Add PageBreak Support to Template Elements and Enhance TemplatePreview Resizing
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
- Added 'PageBreak' to the list of template elements in schema.js, allowing for better document structuring.
- Updated TemplatePreview component to dynamically adjust the size of preview wrappers based on content dimensions, improving visual presentation and user experience.
2026-08-22 00:17:48 +01:00
f55a09ff1f Refactor TemplateEditor to Improve Loading State Handling
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
- Wrapped the TemplatePreview component in a Spin component to provide a loading indicator while content is being loaded.
- Enhanced the structure of the TemplatePreview component by ensuring proper style and props are passed, improving user experience during loading states.
2026-08-21 23:15:47 +01:00
53d488011b Add Pan Icon and Pan Filled Icon Components for Template Preview
- Introduced new PanIcon and PanFilledIcon components to enhance the TemplatePreview functionality.
- Implemented panning feature in TemplatePreview, allowing users to navigate through content more intuitively.
- Updated TemplatePreview to toggle panning mode with visual feedback using the new icons.
- Enhanced user experience by managing pointer events and cursor styles during panning.
2026-08-21 23:15:41 +01:00
fede8af6aa Enhance TemplatePreview Component with Scroll and Iframe Resizing Features
- Refactored the TemplatePreview component to improve iframe content size handling and scrolling behavior.
- Introduced a new ScrollBox component to manage scroll position and enhance user experience.
- Implemented a ResizeObserver to dynamically adjust iframe size based on content, ensuring better display of HTML previews.
- Added cleanup logic for the observer to prevent memory leaks during component unmounting.
2026-08-21 23:06:11 +01:00
699e178fa1 Refactor JavaScript Completion Support for Enhanced Autocomplete Functionality
- Renamed the javascriptCompletionSources function to javascriptCompletionSupport for clarity.
- Updated the implementation to utilize CodeMirror's built-in support for JavaScript, improving the handling of autocomplete sources.
- Streamlined the integration of completion sources for mixed languages, ensuring better performance and user experience.
2026-08-21 22:49:08 +01:00
56b9ad9e1a Enhance Document Size Configuration with New Padding Options
- Updated the NewDocumentSize component to include additional default values for print padding and padding dimensions (left, right, top, bottom).
- Modified the ApiServerProvider to pass padding parameters in API requests, ensuring consistent handling of new padding options.
- Expanded the DocumentSize model to incorporate new fields for print padding and padding dimensions, enhancing the document size configuration capabilities.
2026-08-21 22:39:11 +01:00
12b963a887 Refactor FilterInput Component for Improved Width Handling
- Adjusted the layout of the FilterInput component by wrapping the SimplePropertyFilter in a div with a max-width of 100%, ensuring better responsiveness and alignment.
- Removed the fixed width style to enhance flexibility across different screen sizes, improving overall user experience.
2026-08-21 21:51:50 +01:00
a6a40128e3 Add Background Color to Code Block Editor
- Introduced a new CSS rule to set the background color for the code block editor, enhancing visual distinction and user experience.
- This change improves the overall aesthetics of the editor interface, aligning it with the application's design standards.
2026-08-21 21:51:38 +01:00
ef79c881e4 Refactor FilterInput Component for Improved Layout and Styling
- Updated the FilterInput component to enhance its layout by applying a new class and adjusting styles for better responsiveness.
- Modified the ScrollBox and inner div styles to ensure proper sizing and alignment, improving the overall user interface.
- Added CSS rules to support the new layout, ensuring consistent behavior across different screen sizes.
2026-08-21 21:42:24 +01:00
f97bdc364d Add z-index for Spotlight Tooltip in Popover
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
- Introduced a new CSS rule to set the z-index for popovers containing spotlight tooltips, ensuring proper layering in the user interface.
- This change enhances the visibility and interaction of tooltips within the application, improving overall user experience.
2026-08-21 21:22:12 +01:00
be57b3fde7 Refactor Dashboard Components to Utilize Object Tools Context
- Updated multiple dashboard components to integrate the useDashboardObjectTools hook for managing object navigation buttons.
- Replaced direct rendering of ObjectTableNavigationButtons with a memoized version to enhance performance and maintainability.
- Ensured consistent handling of loading and editing states across various components, improving user experience.
2026-08-21 21:17:04 +01:00
42d6ac6422 Add Dashboard Object Tools Context and Chevron Icons
- Introduced DashboardObjectToolsContext and DashboardObjectToolsProvider for managing object tools state within the dashboard.
- Added ChevronLeftIcon and ChevronRightIcon components for navigation buttons, enhancing user interface consistency.
- Updated ObjectTableNavigationButtons to utilize new chevron icons and improved layout for better user experience.
- Refactored KeyboardShortcut and Tooltip components for cleaner code and improved functionality.
2026-08-21 21:11:15 +01:00
650d9a8513 Add Tooltip to Filter Icon in ObjectTable Component
- Wrapped the FilterIcon in a Tooltip component to enhance user experience by providing a visual cue for filtering functionality.
- Ensured the tooltip listens to parent events for better interaction on mobile devices.
2026-08-21 20:23:21 +01:00
33423fe437 Refactor CSS for Object Display Tags and Elipsis Text
- Removed redundant styles for object display tags to streamline CSS.
- Added padding to elipsis text wrapper for improved spacing and readability.
- Ensured consistent styling for code elements within object display tags, enhancing visual clarity.
2026-08-21 20:23:16 +01:00
86fb9162ad Update CSS Styles for Enhanced Visual Consistency and Shadow Effects
- Added new styles for submenu titles in the electron sidebar to improve layout.
- Adjusted drop shadow properties for keyboard elements in both light and dark modes for better visual depth.
- Increased border radius and modified box-shadow values for keyboard elements to enhance aesthetics and user experience.
2026-08-21 19:53:37 +01:00
e1fbd6070a Implement Keyboard Shortcuts and Tooltip Enhancements
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
- Added a new KeyboardKey component for consistent keyboard key styling across the application.
- Introduced KeyboardShortcut component to wrap buttons with keyboard shortcut hints, improving user accessibility.
- Enhanced Tooltip and CursorTooltip components to support a hideBorder prop, allowing for customizable tooltip appearances.
- Updated CSS styles for keyboard keys in light and dark modes, ensuring visual consistency and improved user experience.
2026-08-21 19:34:56 +01:00
59bf2702bf Enhance CSS Transitions for Improved User Experience
- Added transition properties to the body for smoother background changes.
- Increased transition duration for the dashboard splitter's size adjustments, enhancing visual fluidity during resizing.
2026-08-21 19:18:54 +01:00
fedc8ba5fa Enhance DashboardSidebar Item Mapping Logic
- Updated the mapItemsRecursively function to accept an additional parameter for controlling tooltip visibility on collapsed items, improving user experience.
- Adjusted the recursive mapping of children items to ensure tooltips are displayed correctly based on the new parameter, enhancing clarity in the sidebar's item representation.
2026-08-21 19:09:40 +01:00
a67a86f185 Add G-code Language Support for CodeMirror
- Introduced G-code command descriptions and a lookup function for tooltips in the new commands.js file.
- Implemented G-code language support in CodeMirror with syntax highlighting and tooltip functionality in the new index.js file.
- Updated codeBlockEditorUtils.js to include G-code language support, allowing for enhanced editing capabilities for G-code files.
2026-08-21 19:05:21 +01:00
9e88db5abe Refactor NotificationContext to Optimize Notification Fetching
- Introduced useRef hooks to store references for fetchNotifications, authenticated, and connected states, improving performance and reducing unnecessary re-renders.
- Updated useEffect hooks to utilize the refs for fetching notifications, enhancing clarity and responsiveness to state changes while maintaining functionality.
2026-08-21 11:37:57 +01:00
2ed961b9ec Refactor MacOS Vibrancy CSS for Main Content Layout
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
- Simplified CSS rules for light and dark modes in the MacOS vibrancy styles by removing unnecessary selectors related to the dashboard splitter.
- Enhanced clarity and maintainability of styles for the ant-layout main content layout, ensuring consistent background appearance across both modes.
2026-08-21 11:23:13 +01:00
c9f854379a Enhance Dashboard Layout and CSS Styles
- Updated the DashboardLayout component to set the height to 100% for improved layout consistency.
- Added padding to the dashboard splitter panels in the CSS to ensure proper spacing and alignment within the dashboard interface.
2026-08-21 11:22:41 +01:00
867a9c4e61 Refactor NotificationContext to Streamline Notification Fetching Logic
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
- Removed the useEffectEvent for fetching notifications and integrated the fetching logic directly into the useEffect hooks for improved clarity and performance.
- Updated dependency arrays to ensure notifications are fetched correctly based on authentication and connection status, enhancing responsiveness to state changes.
2026-08-21 11:09:49 +01:00
0225e229d8 Enhance MacOS Vibrancy Styles for Light and Dark Modes
- Updated CSS for MacOS vibrancy to include styles for the dashboard splitter in both light and dark modes, ensuring consistent background appearance across components.
- Improved specificity of styles for the ant-layout main content layout and splitter bar dragger to enhance visual clarity and user experience.
2026-08-21 11:09:38 +01:00
368e2ba9ef Refactor Tooltip Component to Improve Hover Target Management
- Introduced a variable for hovered targets in the Tooltip component to enhance clarity and maintainability of the hover state management.
- Updated the cleanup logic to directly reference the hovered targets variable, streamlining the event listener removal process.
2026-08-21 11:09:27 +01:00
8ff21a69a3 Remove unused 'lockResizeFor' prop from DashboardSidebarSplitter component to streamline code and improve clarity. 2026-08-21 11:09:13 +01:00
edf47b7c21 Update NotesPanel to Include 'type' in Dependency Array
- Modified the dependency array in the useEffect hook of the NotesPanel component to include 'type', ensuring that the effect re-runs when the type prop changes. This enhances the component's responsiveness to prop updates.
2026-08-21 11:08:59 +01:00