You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
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:
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.