114 Commits

Author SHA1 Message Date
67f929e369 Refactor inventory schemas to remove redundant stock event calculations
- Removed the `getStockEventTotal` function and associated `recalculate` methods from filamentStock, partStock, and productStock schemas to streamline code and reduce redundancy.
- Updated stockEvent schema to include a new `recalculate` method that centralizes stock recalculation logic for improved maintainability.
- Enhanced the stockEvent schema with additional utility functions for building update data and recalculating parent stock based on events.
2026-07-26 16:10:38 +01:00
0b39eef045 Add hasThumbnails field to file schema
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good
- Introduced a new optional field `hasThumbnails` in the file schema to indicate the presence of thumbnail images.
- Set the default value of `hasThumbnails` to false for improved data management.
2026-07-26 03:07:45 +01:00
49226290b6 Add ActivityManager and integrate activity tracking functionality
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good
- Introduced the ActivityManager class to handle object activity tracking, including viewing and editing events.
- Implemented methods for setting, clearing, and retrieving activities, as well as subscribing to activity updates via websockets.
- Replaced the LockManager with ActivityManager in SocketUser and SocketManager classes to streamline activity management.
- Added comprehensive tests for ActivityManager to ensure correct functionality and error handling.
- Removed LockManager and its associated tests to eliminate redundancy in functionality.
2026-07-26 00:43:24 +01:00
e80022513f Remove unnecessary console logs from utility and schema files for cleaner code. Update index definitions for consistency in filament and printer profile schemas.
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good
2026-07-23 21:44:40 +01:00
aad49bfcfd Add formatTraceData utility and integrate into logging
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good
- Introduced a new utility function `formatTraceData` to standardize the formatting of trace data for logging purposes.
- Updated various modules including auth, database, and stats manager to utilize `formatTraceData` for improved log clarity and consistency.
- Added new schemas for printer profiles and filament profiles to enhance the data model.
- Implemented tests for session authentication to ensure robust functionality and error handling.
2026-07-20 02:11:56 +01:00
15132fefa0 Add user settings management functionality
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good
- Introduced a new UserSettingsManager class to handle user-specific settings, including retrieval and updates.
- Implemented user settings schema to define defaults and manage user-specific configurations.
- Enhanced SocketUser class to integrate user settings event handlers for getting and updating settings.
- Added comprehensive tests for UserSettingsManager to ensure correct functionality and error handling.
2026-07-18 14:48:46 +01:00
1cb6efdb2d Update payment schema. 2026-07-18 14:34:26 +01:00
63c4471652 Updated models.
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good
2026-07-18 13:36:04 +01:00
107ec278ef Fixed template crash.
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good
2026-07-13 23:20:40 +01:00
4b2f4c4bf8 Add text indexes to various schemas for improved search capabilities
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good
- Introduced text indexes in invoice, payment, tax record, and multiple inventory and management schemas to enhance search functionality.
- Updated schemas include invoice, payment, tax record, filament stock, order item, part stock, product stock, purchase order, shipment, stock audit, stock event, stock location, stock transfer, app password, audit log, courier, courier service, document job, document printer, document size, document template, filament, filament SKU, file, host, material, note type, part, part SKU, product, product category, product SKU, tax rate, user, vendor, gcode file, job, printer, subjob, client, listing, listing variant, and marketplace schemas.
- Improved search performance and flexibility across the application by leveraging text indexing.
2026-07-04 22:03:31 +01:00
0d395d3cb0 Enhance SocketUser tests to verify removal of all listeners during disconnection.
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good
- Added verification for `removeAllListeners` method in both SocketUser and UpdateManager to ensure proper cleanup of event listeners during disconnection handling.
2026-07-04 16:54:55 +01:00
516402d40d Enhance UpdateManager and SocketUser classes to improve subscription management and disconnection handling.
Some checks failed
farmcontrol/farmcontrol-ws/pipeline/head There was a failure building this commit
- Added `removeAllListeners` method in UpdateManager to clear all subscriptions efficiently.
- Updated SocketUser's `handleDisconnect` method to log user disconnection more accurately based on user presence.
- Introduced subscription tracking in UpdateManager to manage active subscriptions.
2026-07-04 15:30:16 +01:00
cf979a6db0 Update invoice schema to support dynamic references for 'from' and 'to' fields by introducing 'fromType' and 'toType' fields, enhancing flexibility in vendor and client associations.
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good
2026-07-04 15:18:25 +01:00
6d4ed27996 Remove 'fileName' field from part schema to streamline data structure and improve clarity in part management. 2026-07-04 15:18:19 +01:00
083cc95523 Integrate expandObjectIds utility in UpdateManager to enhance object update handling, ensuring expanded values are emitted in socket events.
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good
2026-07-04 15:18:04 +01:00
7002e5a6c1 Enhance callback handling in SocketUser class to ensure callback is a function before invocation, preventing potential runtime errors. 2026-07-04 15:17:56 +01:00
0748256ce8 Refactor filament schema recalculation logic to use filamentSku model instead of orderItem model. This change improves the efficiency of recalculating SKUs associated with a filament.
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good
2026-06-21 23:59:34 +01:00
4f9ed6039b Add fields for payment authorisation and decline tracking in payment schema
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good
- Introduced 'authorisedAt' and 'declinedAt' fields to the payment schema to track payment status changes.
- Added new rollup configurations for counting and summing authorised and declined payments.
2026-06-21 22:32:59 +01:00
b1245595d9 Refactor UpdateManager to enhance filter matching logic, replacing listObjects calls with direct filter checks, and improve event emission for object updates. Added tests for reference filter matching. 2026-06-21 22:32:17 +01:00
3481b07a55 Refactor tax record model: moved taxRecord schema to finance directory and updated import path in models.js 2026-06-21 22:23:03 +01:00
4bfc7fae2a Implemented about page.
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good
2026-06-21 13:19:18 +01:00
a1e4bcaf18 Added 'part' reference to partSkuUsage schema to enforce required relationship with part model.
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good
2026-06-20 23:16:22 +01:00
76fa5e910f Fixed origins.
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good
2026-06-20 22:06:15 +01:00
a2f9412cbd Refactor Jenkinsfile to remove unnecessary script execution during dependency installation and add pnpm workspace configuration for specific builds.
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good
2026-06-15 00:21:22 +01:00
7a79238183 Update Jenkinsfile to allow script execution during dependency installation
Some checks failed
farmcontrol/farmcontrol-ws/pipeline/head There was a failure building this commit
2026-06-14 23:55:16 +01:00
3196385c72 Updated configuration log level to debug, added product category model and references in product schema, enhanced stock schemas with recalculation methods, and improved socket event handling to support filters for subscriptions. 2026-06-14 23:52:03 +01:00
b9b40c55ca Numerious fixes. 2026-05-17 19:11:33 +01:00
c38c1dee24 Implemented stock locations.
Some checks failed
farmcontrol/farmcontrol-ws/pipeline/head There was a failure building this commit
2026-05-17 16:55:05 +01:00
ca3f28fc74 Added stock location and stock transfer models, updated inventory schemas to include stockLocation references, and modified stock event schema to support stockTransfer owner type. 2026-03-21 23:14:14 +00:00
8a9c272de4 Implemented listing schemas. 2026-03-21 21:39:21 +00:00
61e4b666ef Implemented market places.
Some checks failed
farmcontrol/farmcontrol-ws/pipeline/head There was a failure building this commit
2026-03-13 23:32:34 +00:00
938d44d8dc Updated GCode file schema. 2026-03-13 22:56:08 +00:00
b2c854bce9 Implemented materials.
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good
2026-03-08 01:28:31 +00:00
7a500ffa58 Added missing SKUs. 2026-03-08 01:07:39 +00:00
bea9e45cd4 Implemented Part SKUs. 2026-03-07 23:34:17 +00:00
41c221c477 Gitignore test results. 2026-03-07 22:44:11 +00:00
d1dbbe2b11 Implemented Product SKU.
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good
2026-03-07 22:42:03 +00:00
f358eaa1d0 Updated product stock schema to include default state as 'draft', added 'postedAt' field, and introduced rollup configurations for 'draft' and 'posted' states.
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good
2026-03-07 20:38:00 +00:00
a9999f95d0 Implemented product stocks.
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good
2026-03-07 13:38:19 +00:00
bfbcfc3e66 Updated production vars.
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good
2026-03-07 13:05:43 +00:00
a955def849 Enhanced CORS configuration in SocketManager and added allowed origins to server settings in config.json.
Some checks reported warnings
farmcontrol/farmcontrol-ws/pipeline/head This commit is unstable
2026-03-06 23:54:01 +00:00
ddf230a20a Added correct cors origin.
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good
2026-03-06 23:49:49 +00:00
ab70b6e11e Implemented sales order calculations.
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good
2026-03-06 21:14:15 +00:00
028fa9dd94 Implemented multiple app passwords.
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good
2026-03-02 01:58:10 +00:00
289673813a Implemented redis session storage.
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good
2026-03-01 17:06:17 +00:00
840aa0781b Updated models. 2026-03-01 16:55:15 +00:00
7a398c79a1 Implemented notifications.
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good
2026-03-01 01:42:38 +00:00
ce49b257a6 Added pnpm lock.
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good
2026-02-01 21:51:49 +00:00
09376f7536 Switch to pnpm.
Some checks failed
farmcontrol/farmcontrol-ws/pipeline/head There was a failure building this commit
2026-02-01 21:42:22 +00:00
ad8441f72f Added build status to readme.me
All checks were successful
farmcontrol/farmcontrol-ws/pipeline/head This commit looks good
2025-12-29 02:40:15 +00:00