Add Mindful Coach — Next.js chat UI with coach personas and Vercel deployment - #96
Open
avaradharaju wants to merge 7 commits into
Open
Add Mindful Coach — Next.js chat UI with coach personas and Vercel deployment#96avaradharaju wants to merge 7 commits into
avaradharaju wants to merge 7 commits into
Conversation
Ship the first working frontend backed by the existing FastAPI chat API, including light/dark/system theming and monorepo routing for local dev and Vercel. Co-authored-by: Cursor <cursoragent@cursor.com>
Scope Python lib/ ignore to the repo root so frontend/src/lib is tracked. Co-authored-by: Cursor <cursoragent@cursor.com>
Let users pick among four guarded coach characters and adjust response style, while migrating Vercel config to services and fixing production API routing. Co-authored-by: Cursor <cursoragent@cursor.com>
Standardize activity structure, add an overview table, and improve readability with collapsible long responses and consistent formatting. Co-authored-by: Cursor <cursoragent@cursor.com>
Include fork, pull request, live app, and health check URLs to complete the challenge submission section. Co-authored-by: Cursor <cursoragent@cursor.com>
Show model generation time on coach replies and cap model, output tokens, and input length via environment variables for safer public deployments. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds Mindful Coach — a production-style mental wellness coaching app built for the AI Engineer Challenge.
vercel.jsonroutes/api/*to FastAPI and everything else to Next.jsLinks
feat/build-uiArchitecture
Key files:
frontend/— Next.js chat UI, theme, persona/creativity controlsapi/index.py—/api/chatand/api/healthendpointsapi/prompts/— guardrails, character templates, system prompt buildervercel.json— dual-service routing (frontend + backend)Features
Coach personas
Users pick a coaching style before chatting. All personas share safety guardrails (not a therapist, crisis handling, coaching scope only).
Creativity control
Slider from Focused (~0) to Creative (~100) adjusts tone and style through the system prompt. Vibe check shows clearly different responses at low vs high settings.
UX polish
Vibe Check highlights
Documented in the README Vibe Check Your LLM App section:
Known limitations
Test plan
/api/healthreturns{"status":"ok"}in productionOPENAI_API_KEYsetDeploy notes
Deploy from the repository root (not
frontend/). Root Directory in Vercel must be empty so both the Next.js frontend and Python backend deploy via theservicesblock invercel.json.