feat: POST /api/contact with Resend email and validation #19
No reviewers
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/vision-tech-solutions!19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/api-contact-endpoint"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
/contactto/api/contactwith Resend email notifications replacing Twilio SMSRESEND_API_KEYandCONTACT_EMAILenvironment variablesTest plan
Closes #10
🤖 Generated with Claude Code
⚠️ No Test Suite Detected
Commit:
cf409b99No
testscript found inpackage.json. Add a test script to enable automated testing.PR #19 Build Verification Report
Date: 2026-04-11 | Branch:
feature/api-contact-endpoint| Commit:cf409b91. Syntax Check
2. Test Suite (pytest)
All 33 tests pass including 12 new/updated validation, rate limit, and email tests.
Warnings (non-blocking): 4 deprecation warnings for
on_event— FastAPI recommends migrating to lifespan event handlers.3. Lint (ruff) — 7 issues found
app.py (3 errors):
F841line 648:has_prior_assistant_responseassigned but never usedF823line 807:sms_failuresreferenced before assignment (missingglobaldeclaration)F841line 810:sms_failuresassigned but never used (same scoping issue)test_app.py (4 errors):
F401line 7:hmacimported but unusedF401line 11:threadingimported but unusedF401line 12:collections.defaultdictimported but unusedF401line 13:time.monotonicimported but unused4. Docker Build
Docker not available in verification environment — skipped.
Recommendation
All tests pass and the core logic is correct. The lint issues to address before merge:
sms_failuresscoping bug (F823 at line 807) needs aglobal sms_failuresdeclaration inhealth_detail(), otherwise it will raiseUnboundLocalErrorat runtime.ruff check --fix).has_prior_assistant_responseon line 648.Fix the sms_failures scoping bug and unused imports, then merge.
Automated verification by agent-bot — replaces stale issues #85, #83, #78, #51
Pull request closed