Skip to content

Enhanced Query Input#509

Open
GautamSai05 wants to merge 3 commits into
vicharanashala:team-chirag-semantic-analysisfrom
GautamSai05:team-chirag-semantic-analysis
Open

Enhanced Query Input#509
GautamSai05 wants to merge 3 commits into
vicharanashala:team-chirag-semantic-analysisfrom
GautamSai05:team-chirag-semantic-analysis

Conversation

@GautamSai05

Copy link
Copy Markdown

No description provided.

Copilot AI review requested due to automatic review settings June 11, 2026 20:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 MessageInput with 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",
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