Fix 75 Added AI assistant on the dashboard page#171
Open
unkeett wants to merge 6 commits intoDevSyncx:mainfrom
Open
Fix 75 Added AI assistant on the dashboard page#171unkeett wants to merge 6 commits intoDevSyncx:mainfrom
unkeett wants to merge 6 commits intoDevSyncx:mainfrom
Conversation
|
@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. |
|
🙌 Thanks @unkeett for raising this PR! |
Collaborator
|
@unkeett chatbot is not showing anywhere..it might be supposed to be shown on dashboard right. |
Collaborator
|
@unkeett any updates? |
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.
🧠 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