eCourt-note/wordaddin/services
Suphonchai Phoonsawat b8ff622999
All checks were successful
Deploy eCourt Note Web to Server / Validate Database Schema (Drizzle) (push) Successful in 5s
Deploy eCourt Note Web to Server / Build Web Docker Image (push) Successful in 1m28s
Deploy eCourt Note Web to Server / Deploy eCourt Note Web to Server (push) Successful in 4s
Deploy eCourt Note Web to Server / Notify Deployment Status (push) Successful in 0s
fix(docver): drop fields value limit + treat history 404 as empty in add-in
Two fixes from first real-Word testing of the unmocked versioning flow:

- fields value length: remove the limit entirely (was 10,000, briefly
  100,000) — real court documents run 100-200 pages with content
  controls several hundred thousand chars long; callers are Bearer-only
  and the column is Postgres jsonb (up to ~255MB), so no storage
  bottleneck. Structural guards stay: ≤1,000 keys (was 100), key ≤200
  chars, value must be string.
- getVersions in versioningService now maps the history 404 to an empty
  list: files stamped SavedByAddIn back in the mock era enter the
  tracking phase before any real upload exists, so the pane shows
  "ยังไม่มี version ในระบบ" and Save & Version creates v1 (implicit
  document creation) instead of surfacing a 404 error banner. Other
  errors still propagate.

Tests: 288/288 (new cases — 1M-char value passes, key cap 1,000/1,001,
history 404 -> []). E2E against MinIO: 50k and 1M-char Thai field values
upload 200 and roundtrip byte-exact through jsonb. Docs synced:
PLAN-DOCVER §1, CLAUDE.md.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-10-27 13:14:04 +07:00
..
apiClient.ts feat(addin): unmock versioning — real upload/download against docver API 2026-10-27 12:52:29 +07:00
authService.ts feat(addin): unmock versioning — real upload/download against docver API 2026-10-27 12:52:29 +07:00
autoSaveService.ts feat(wordaddin): port Word add-in taskpane from poc 2026-10-16 12:07:25 +07:00
documentService.ts feat(wordaddin): port Word add-in taskpane from poc 2026-10-16 12:07:25 +07:00
errors.ts feat(wordaddin): add template tools tab 2026-10-20 09:49:17 +07:00
fileService.ts feat(wordaddin): port Word add-in taskpane from poc 2026-10-16 12:07:25 +07:00
metadataService.ts feat(addin): implement e-Court ticket auth (ticket_data + HmacSha256) 2026-10-27 11:21:15 +07:00
templateService.ts feat(wordaddin): add template tools tab 2026-10-20 09:49:17 +07:00
ticketService.ts feat(addin): implement e-Court ticket auth (ticket_data + HmacSha256) 2026-10-27 11:21:15 +07:00
versionFlow.ts feat(wordaddin): port Word add-in taskpane from poc 2026-10-16 12:07:25 +07:00
versioningService.ts fix(docver): drop fields value limit + treat history 404 as empty in add-in 2026-10-27 13:14:04 +07:00