Enhanced Query Input#509
Open
GautamSai05 wants to merge 3 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Updates the chat UI input experience and adjusts backend build/auth configuration, while introducing JSON-based persistence for query/session tracking.
Changes:
- Replaced the footer
MessageInputwith a floating, centered text input + send button in the chat UI. - Updated backend startup/install scripts to build TypeScript automatically.
- Hardened Google OAuth env validation and added JSON files to store unknown queries and learning session state.
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 12 comments.
Show a summary per file
| File | Description |
|---|---|
| frontend/src/pages/ChatContainer.tsx | Adds floating input UI and local input state for sending messages |
| backend/queryHandling/unknown_queries.json | Adds persisted store for unrecognized user queries |
| backend/queryHandling/learning_sessions.json | Adds persisted store for learning session progress |
| backend/package.json | Builds on start and postinstall |
| backend/config/passport.ts | Adds env checks and changes GoogleStrategy configuration |
| backend/.env.example | Removes documented environment variable template |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+355
to
+360
| onKeyDown={e => { | ||
| if (e.key === "Enter" && inputValue.trim()) { | ||
| handleSendMessage(inputValue.trim()); | ||
| setInputValue(""); | ||
| } | ||
| }} |
Comment on lines
+366
to
+371
| onClick={() => { | ||
| if (inputValue.trim()) { | ||
| handleSendMessage(inputValue.trim()); | ||
| setInputValue(""); | ||
| } | ||
| }} |
Comment on lines
+349
to
352
| <input | ||
| type="text" | ||
| className="pl-5 pr-14 py-4 rounded-full bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 shadow-xl focus:outline-none focus:ring-2 focus:ring-blue-400 transition-all duration-200 text-base w-full" | ||
| placeholder="Type your DSA topic or question..." |
Comment on lines
+363
to
+364
| <button | ||
| type="button" |
| } | ||
| }} | ||
| disabled={isTyping || !inputValue.trim()} | ||
| title="Send" |
| passReqToCallback: true | ||
| }, | ||
| async ( | ||
| req: Express.Request, |
Comment on lines
+12
to
+14
| if (!googleClientId || !googleClientSecret) { | ||
| throw new Error('Missing Google OAuth environment variables'); | ||
| } |
Comment on lines
+6
to
+8
| "start": "npm run build && node index.js", | ||
| "build": "tsc", | ||
| "postinstall": "npm run build", |
Comment on lines
+1
to
+7
| { | ||
| "queries": [ | ||
| { | ||
| "query": "suggest a random topic", | ||
| "timestamp": "2025-09-10T16:23:35.927Z", | ||
| "processed": false | ||
| }, |
Comment on lines
+1
to
+6
| { | ||
| "default": { | ||
| "current_path": [ | ||
| "Searching", | ||
| "Sorting", | ||
| "Dynamic Arrays", |
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.
No description provided.