Skip to content

Version 1.4.2

Latest

Choose a tag to compare

@Mavrag Mavrag released this 19 Jun 04:40
05a8c98

Added

  • Custom in-app dialogs (js/dialog.js) — replaces native Windows OS confirm/alert popups with dark-themed modals matching the app UI. Used for all destructive confirmations and error messages across History, Logs, and API Docs pages.
  • Working Clear History — DELETE /print-history server endpoint added; button on History page now fully functional. Deletes all monthly stats files while preserving the migration marker.
  • Automated test suite (59 tests, no printer required) — Jest + Supertest covering:
    • monthlyStats.js: addPrintJob, getPrintHistory, getStatisticsForDateRange, getAvailableMonths, getMonthlyReport, clearHistory, migrateFromPrintHistory
    • configStore.js: defaults, get/set, persistence
    • server.js: all API routes including pagination, filtering, and clear

Changed

  • History page pagination — loads 100 records at a time with a "Load More" button instead of fetching all records at once (was loading 25k+ records into memory). Type/status filters are server-side; date filters apply client-side on loaded records.
  • History page summary stats — Total Jobs / Successful / Failed counters now pulled from /statistics for accurate all-time totals regardless of what page of records is loaded.
  • /print-history API — now accepts limit, offset, documentType, status query parameters and returns total and hasMore alongside the jobs array.
  • Status & History pages — 3-card indicator rows now forced to a single row (repeat(3, 1fr)) with compact sizing; previously the third card would wrap to a second row.

Internal / Developer

  • Refactored server.js: moved all Express routes into createExpressApp() and exported it for testing — no production behaviour change.
  • Added __mocks__/electron.js and jest.config.js for test infrastructure.