12 Commits

Author SHA1 Message Date
root
1b8954bd6b test: verify auto-deploy webhook 2026-07-14 14:27:12 +02:00
root
07e8f93d9d fix: adjust Dockerfiles for Pier build compatibility 2026-07-14 13:48:54 +02:00
root
ab1cd27b7a fix: simplify network format in docker-compose.pier.yml for Pier compat 2026-07-14 13:40:32 +02:00
47bd64dc15 test: trigger pier webhook v2 2026-07-14 13:31:24 +02:00
9c8aae3308 test: trigger pier webhook 2026-07-14 13:30:07 +02:00
root
71a8b81ace Add Pier deployment configuration (2 services: backend + frontend) 2026-07-14 12:23:39 +02:00
ef25759eda Fix attachment auto-print, persist cell format, migrate to Bun, 1-click launch
Print bug: remove hidden-iframe auto-print in printAttachment that fired the
OS print dialog on iframe.onload; open attachment in a new tab instead so
print only happens on an explicit Ctrl+P. Drop now-dead printIframeRef/cleanupPrintFrame.

Cell format persistence: new CellFormatToolbar + cellFormat.js save the last
saved per-claim-type header/item format to localStorage; new claims and added
rows inherit it so users don't re-size/re-bold each time. Backend
cell_format_service renders _cellFormat in Excel/PDF.

Bun migration: replace Node/yarn with Bun for the frontend build.
Dockerfile uses oven/bun:1-alpine; bun.lock replaces yarn.lock/package-lock.json;
start.bat files use bun. Frontend dev uses relative baseURL + craco proxy on
port 5000 (avoids CORS and the Grafana conflict on 3000).

1-click launch: root start.bat boots backend (uvicorn :8002) and frontend
(craco :5000) in child windows and opens the browser.

Repo cleanup: remove Node/yarn lockfiles, cursor sync scripts, stray test
reports/PDFs, root package.json/requirements.txt duplicates.

Backend services: claim_document_storage, payslip_storage,
pdf_company_extractor; attachment filenames normalized from PDF text.

Security: gitignore now excludes docker/local env files (with .env.example
allowed) so the live JWT secret cannot be committed.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-07 17:55:11 +08:00
1828f54745 Track frontend src/lib and fix root-only lib gitignore.
The global lib/ rule excluded api.js and auth.jsx from the repo, breaking deploys and API URL config.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-01 20:23:00 +08:00
19a28bb4c2 Fix pay slips 404 when frontend hits legacy API on port 8001.
Default API URL to 8002, align dev proxy, and detect outdated health before listing payslips.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-01 20:22:00 +08:00
9f246ee31c Add Pay Slips page with PDF upload and preview.
Per-user payslip library API, sidebar route, and clearer errors when the API is not deployed yet.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-01 20:18:30 +08:00
2613c9d337 Refocus repository on Claim App and enable Render GitHub deploys.
Remove ProcureFlow/Celery legacy, Cursor rules bundle, and scratch artifacts; add claim API routes, deploy docs with auto-deploy, and a claim-focused README.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-01 19:58:43 +08:00
ca749f2623 Initial import from Procurement claim-management branch
Claim types: EXPENSES, MEAL, MILEAGE, OT. Export excludes local MongoDB data and claim file upload blobs.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-29 21:32:47 +08:00