tractatus/.claude
TheFlow efab76e13c feat(crm): implement unified contact form system
Complete CRM foundation with contact modal in footer

Backend:
- Contact.model.js: Full CRUD model with statistics tracking
- contact.controller.js: Submit, list, assign, respond, update, delete
- contact.routes.js: Public submission + admin management endpoints
- routes/index.js: Mount contact routes at /api/contact

Frontend:
- footer.js: Replace mailto link with Contact Us modal button
- Contact modal: Form with type, name, email, org, subject, message
- CSRF protection: Extracts token from cookie (like newsletter)
- Rate limiting: formRateLimiter (5/min)
- Validation: Input sanitization + required fields
- UX: Success/error messages, auto-close on success

Admin UI:
- navbar-admin.js: New 'CRM & Communications' section
- Links: Contact Management, Case Submissions, Media Inquiries

Foundation for multi-project CRM across tractatus, family-history, sydigital

Next: Build /admin/contact-management.html page
2025-10-24 16:56:21 +13:00
..
backups fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
metrics fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
session-archive fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
sessions fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
framework-incidents.json fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
instruction-history.json feat(cache): enforce mandatory cache version updates for JS changes 2025-10-24 09:43:20 +13:00
instruction-history.json.backup fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
instruction-history.json.backup-3.5-1761042346894 fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
instruction-history.json.backup-20251012-143441 fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
instruction-history.json.backup-pre-inst-073-1761077855528 fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
instruction-history.json.backup-pre-security-rules-1761044345329 fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
plan-registry.json fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
session-state.json feat(crm): implement unified contact form system 2025-10-24 16:56:21 +13:00
token-checkpoints.json fix(submissions): extract data from API response wrappers 2025-10-24 16:35:10 +13:00
tractatus-config.json fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
user-suggestions.json fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00