Add optional message field to /submit for iOS review intercept

- /submit now requires email OR message (email-only calls unchanged)
- message trimmed + capped at 10k chars; stored via guarded ALTER TABLE migration
- /export CSV gains message column with proper quoting/escaping
- test suite (node --test): 9 tests covering compat, validation, truncation, CSV escaping

Ticket: T2 of review-flow-10x epic (chatai-ios#136)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014WPnLnXS4YRz9vVt1BEdeR
This commit is contained in:
Krishna Kumar
2026-07-22 12:22:30 -05:00
co-authored by Claude Fable 5
parent f30ed614e4
commit e73b4f7e34
5 changed files with 1033 additions and 14 deletions
+2 -1
View File
@@ -4,7 +4,8 @@
"description": "Lightweight form capture microservice",
"main": "index.js",
"scripts": {
"start": "node index.js"
"start": "node index.js",
"test": "node --test"
},
"dependencies": {
"sql.js": "^1.11.0",