Skip to content

feat: production-harden AI chatbot, invest console, portfolio & categ… - #2

Merged
lekhanpro merged 1 commit into
mainfrom
master
Apr 8, 2026
Merged

feat: production-harden AI chatbot, invest console, portfolio & categ…#2
lekhanpro merged 1 commit into
mainfrom
master

Conversation

@lekhanpro

Copy link
Copy Markdown
Owner

…ories

  • Move Groq AI call server-side via web/api/chat.ts (Vercel edge fn)
    • GROQ_API_KEY no longer exposed in browser bundle
    • Handles 401, 429, timeout, missing key, malformed response
  • Update vercel.json with SPA rewrites + env secret reference
  • AIChatbot.tsx calls /api/chat with per-error-code user messages
  • InvestmentContext: new users start with empty portfolio/goals (no demo data)
  • PortfolioSection: mobile-first card layout, empty state + guided CTA
  • GettingStartedSection: lessons with real credible resource links (Zerodha, Investopedia, ET Money, Value Research, SEBI, NSE India)
  • AppContext: add updateCustomCategory() + mergeCategories() functions
  • Settings: full category edit/merge/archive/delete UI
  • types.ts: Category.archived field + new context function signatures
  • tailwind.config.ts: fix content paths, add darkMode class, xs breakpoint
  • vite-env.d.ts: manual ImportMeta.env type declarations

…ories

- Move Groq AI call server-side via web/api/chat.ts (Vercel edge fn)
  - GROQ_API_KEY no longer exposed in browser bundle
  - Handles 401, 429, timeout, missing key, malformed response
- Update vercel.json with SPA rewrites + env secret reference
- AIChatbot.tsx calls /api/chat with per-error-code user messages
- InvestmentContext: new users start with empty portfolio/goals (no demo data)
- PortfolioSection: mobile-first card layout, empty state + guided CTA
- GettingStartedSection: lessons with real credible resource links (Zerodha,
  Investopedia, ET Money, Value Research, SEBI, NSE India)
- AppContext: add updateCustomCategory() + mergeCategories() functions
- Settings: full category edit/merge/archive/delete UI
- types.ts: Category.archived field + new context function signatures
- tailwind.config.ts: fix content paths, add darkMode class, xs breakpoint
- vite-env.d.ts: manual ImportMeta.env type declarations

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@netlify

netlify Bot commented Apr 8, 2026

Copy link
Copy Markdown

Deploy Preview for spendv2 failed.

Name Link
🔨 Latest commit 4ec7abf
🔍 Latest deploy log https://app.netlify.com/projects/spendv2/deploys/69d69bd8da3bb00008a46bbe

@vercel

vercel Bot commented Apr 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
spendwisev2-main Ready Ready Preview, Comment Apr 8, 2026 6:18pm
spendwisev3 Error Error Apr 8, 2026 6:18pm

@vercel

vercel Bot commented Apr 8, 2026

Copy link
Copy Markdown

Deployment failed with the following error:

Environment Variable "GROQ_API_KEY" references Secret "groq_api_key", which does not exist.

Learn More: https://vercel.com/docs/environment-variables

@lekhanpro
lekhanpro merged commit 687b209 into main Apr 8, 2026
5 of 13 checks passed
@netlify

netlify Bot commented Apr 8, 2026

Copy link
Copy Markdown

Deploy Preview for spendv3 failed.

Name Link
🔨 Latest commit 4ec7abf
🔍 Latest deploy log https://app.netlify.com/projects/spendv3/deploys/69d69bd898e0d40009cd4a19

lekhanpro added a commit that referenced this pull request Apr 9, 2026
feat: production-harden AI chatbot, invest console, portfolio & categ…
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.

1 participant