Skip to content

Fix 75 Added AI assistant on the dashboard page#171

Open
unkeett wants to merge 6 commits intoDevSyncx:mainfrom
unkeett:fix-75-ai-assistant
Open

Fix 75 Added AI assistant on the dashboard page#171
unkeett wants to merge 6 commits intoDevSyncx:mainfrom
unkeett:fix-75-ai-assistant

Conversation

@unkeett
Copy link
Contributor

@unkeett unkeett commented Oct 6, 2025

🧠 Description

This PR introduces a minimal AI-powered assistant to the DevSync dashboard to enhance user engagement and provide productivity insights.

Backend

New route: /api/assistant

POST /message (JWT-protected): Returns a rules-based reply using user data such as streaks, goals, activity, and time spent. Placeholder for future LLM integration.

GET /nudge (JWT-protected): Returns motivational messages based on user streaks.

Mounted under general rate-limiting in server.js.

Controller logic in controllers/assistant.controller.js to compose user context.

Placeholders added for future LLM integration (services/llmService.js and services/insightsService.js).

Frontend

ChatBubble.jsx: Floating button at the top-right corner below the navbar.

ChatAssistant.jsx: Modal overlay with message list, input field, and API calls to backend endpoints.

Integrated into the Home page (src/App.jsx) with local state to handle open/close functionality.

Styling: Bubble positioned at top-24 right-6; modal uses h-[70vh] and scrollable content.

Next Steps

Integrate commit/problem tracking into backend models.

Enhance UX with typing indicators via Server-Sent Events or WebSockets.

Implement full LLM-based responses for dynamic assistant behavior.

✅ Type of Change

💡 Feature

@vercel
Copy link

vercel bot commented Oct 6, 2025

@unkeett is attempting to deploy a commit to the Annanya's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link

github-actions bot commented Oct 6, 2025

🙌 Thanks @unkeett for raising this PR!
Our team will review it soon ⏳ — meanwhile, please make sure your PR follows our contributing guidelines 👉 Contributing Guidelines 🎉

@Annanyatiwary4
Copy link
Collaborator

@unkeett chatbot is not showing anywhere..it might be supposed to be shown on dashboard right.
have you imported it properly?

@Annanyatiwary4
Copy link
Collaborator

@unkeett any updates?

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.

2 participants