Fix MICR font path, date import, PDF button bug; clean up config; add TODO markers

- Hardcode GnuMICR.otf path in pdfService.js; remove MICR_FONT_PATH env var
- Fix normalizeDate to handle MM/DD/YY (2-digit year) and return null on no match
- Fix generatePdf button DOM bug: update span directly instead of overwriting textContent
- Remove .env.example and NTFY_URL from docker-compose (app has no required config)
- Remove redundant fonts volume mount from docker-compose (fonts bundled in image)
- Mark MVP TODO items complete; add // TODO comments in source for post-MVP features
- Update README: correct slot height, remove stale env var docs
This commit is contained in:
2026-03-12 15:49:56 -06:00
parent f5b1292aff
commit c7ce87afd5
9 changed files with 54 additions and 73 deletions
+1 -4
View File
@@ -1,6 +1,6 @@
services:
check-printing:
image: ${DOCKERHUB_USERNAME}/check-printing:latest
image: dogiakos/check-printing:latest
container_name: check-printing
restart: unless-stopped
ports:
@@ -8,13 +8,10 @@ services:
volumes:
# Persistent data: SQLite DB lives here
- check-printing-data:/app/data
- ./fonts:/app/fonts:ro
environment:
- NODE_ENV=production
- PORT=3000
- DB_PATH=/app/data/check-printing.db
# Full path to MICR font inside container
- MICR_FONT_PATH=${MICR_FONT_PATH}
volumes:
check-printing-data: