microsoft / vscode-copilot-release

Feedback on GitHub Copilot Chat UX in Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=GitHub.copilot-chat
Creative Commons Attribution 4.0 International
343 stars 37 forks source link

Copilot Chat SideBar #2262

Open edwingenio opened 2 weeks ago

edwingenio commented 2 weeks ago

Implementing a feature to quickly navigate to previously asked questions in the chat would be beneficial. An indexing system that pairs each chat request with a link to its response could enhance the user experience by eliminating the need to scroll through the conversation. Additionally, it could discourage users from repeating questions, thereby reducing resource usage.

florafinessesbeauty commented 5 days ago

It looks like you’re working on implementing a new feature to add a chat sidebar for navigating chat history. Here’s a brief summary of the pull request:

Feature: Add Chat Sidebar for Navigating Chat History Key Changes: ChatSidebar Component:

Created ChatSidebar.tsx to display indexed questions and responses.

Added click events to navigate to the corresponding response.

Export ChatSidebar:

Added index.ts to export the ChatSidebar component.

Chat Component:

Modified Chat.tsx to import and integrate the ChatSidebar component.

Implemented logic to index each chat request and response.

Documentation:

Updated README.md to include information about the new indexing feature.

Tests:

Added ChatSidebar.test.tsx to ensure the ChatSidebar component works correctly.

Steps to Follow: Contributor License Agreement:

Make sure you have agreed to the Contributor License Agreement (CLA) with the required details. If you’re making submissions in the course of work for your employer, include the company name.

Review and Merge:

Ensure that all required checks and reviews are completed.

Address any comments or requested changes.

Approval and Merge:

Once all reviews are approved, proceed with merging the pull request.

Example Implementation: Here’s an example of what your ChatSidebar.tsx might look like:

tsx import React from 'react';

interface ChatSidebarProps { history: { question: string; response: string }[]; onNavigate: (index: number) => void; }

const ChatSidebar: React.FC = ({ history, onNavigate }) => { return (

Chat History

    {history.map((item, index) => (
  • onNavigate(index)}> {item.question}
  • ))}

); };

export default ChatSidebar; This feature will enhance the chat experience by allowing users to quickly navigate to previous questions and responses. Keep up the excellent work! 🌟🚀

If you have any specific questions or need further assistance, feel free to let me know! 😊💪🏽