Skip to content

feat: client chat interface & AI integration#10

Merged
tkowalczyk merged 1 commit into
mainfrom
feat/client-chat-ai-integration
Mar 22, 2026
Merged

feat: client chat interface & AI integration#10
tkowalczyk merged 1 commit into
mainfrom
feat/client-chat-ai-integration

Conversation

@tkowalczyk
Copy link
Copy Markdown
Contributor

Summary

  • Add chat API endpoints (GET/POST /chat/:slug/messages) with Claude API integration for AI-powered discovery interviews
  • Create message persistence layer (queries, Zod schemas) in data-ops
  • Build frontend chat UI at /p/:slug with message history, input form, and loading/pending states
  • Extract shared resultToResponse utility from duplicated handler code
  • 55 tests passing (unit + integration against real Neon Postgres, Claude SDK mocked)

Closes #3

Test plan

  • Verify pnpm run types passes
  • Verify pnpm --filter @repo/data-ops test -- --run passes (38 tests)
  • Verify pnpm --filter data-service test -- --run passes (17 tests)
  • Add ANTHROPIC_API_KEY to data-service .dev.vars
  • Start both dev servers and create a project via POST /projects
  • Open /p/:slug in browser — confirm chat loads, messages send, AI responds
  • Close and reopen the page — confirm conversation history resumes
  • e2e tests to follow after implementation review

🤖 Generated with Claude Code

Add chat endpoints (GET/POST /chat/:slug/messages) with Claude API
integration for discovery interviews. Create message persistence
queries, Zod validation schemas, and chat service with system prompt.
Build frontend chat UI at /p/:slug with message history, input form,
and loading states. Extract shared resultToResponse utility. Includes
unit and integration tests (55 total passing).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@tkowalczyk tkowalczyk merged commit 670ec2e into main Mar 22, 2026
@tkowalczyk tkowalczyk deleted the feat/client-chat-ai-integration branch March 22, 2026 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Client Chat Interface & AI Integration

1 participant