- Update the background color to "#ED6A45"
- Update the font family and font size
- Update the button and icon colors to "#fff"
- Add hover and focus styles
- In MessageList component, update the description text to include the cost per question in bold.
- In MessageMarkdown component, update the explanation text for '/ask-code' command.
- Add sample questions for reference in the MessageMarkdown component.
- Disable input field and buttons when chat is in the generating state or
disabled state.
- Add a 'disabled' property to the ChatStore model to keep track of the
disabled state.
- Set the disabled state to true before starting the devchatAsk flow and
set it back to false after the flow completes.
- Update cancelDevchatAsk function to also set the disabled state back to
false.
- Set the disabled state to true before sending a common message and set
it back to false after sending the message.
- Update the text to reflect that GPT-4 usage is required instead of
mentioning /ask-code.
- Provide clearer information about the cost and analysis of up to
ten source files.
- Refactor the devchatAsk function to use MobX flow and handle message
creation differently.
- Add an isDevChatInstalled check before pushing bot messages to decide
whether to display an install prompt or not.
- Update the description for the 'ask-code' command in commandManager.ts
- Update the text in MessageList/index.tsx to promote the '/ask-code' command and provide additional information about the AI agent and pricing
- Add a condition to render the 'Card' component only when 'confirm' is true.
- This change ensures that the 'Card' component is only displayed for bot messages when the 'confirm' prop is true.
- Updated the styles in the MessageList component including the button font family and font size.
- Modified the Card component to always be displayed for 'bot' messages.
- Updated the text description of the cost range to approximately $0.1 - $0.5.
- Modified the size and color of the buttons for user interaction.
- Add conditional rendering for confirm button based on 'confirm' prop value
- Update onClick event handlers for 'Yes' and 'No' buttons to call appropriate functions
- Remove the useEffect hook in CurrentMessage that creates a bot message when `generating` is true. This logic is now handled elsewhere.
- Update the onSubmit handler in InputMessage to distinguish between different types of user input and call the appropriate methods in the ChatStore.
- Add the `startGenerating`, `commonMessage`, `goScrollBottom`, `sendLastUserMessage`, `cancelDevchatAsk` methods to the ChatStore to handle message generation and display.
- Extract the `contextInfo` function to convert chat contexts to the required format for sending to the extension.
- Add a `confirm` property to the `Message` model in the `ChatStore.ts` file.
- Add a `devchatAsk` method to create a user message followed by a bot message with the `confirm` property set to `true`.
MessageMarkdown:
- Removed unused imports.
- Modified useEffect() to analyze steps using mdast-util-from-markdown instead of splitting children directly.
- Modified code component to set the 'index' property based on the order of 'code' nodes in the tree.
MessageBody:
- Removed the messageText prop and replaced it with children prop to allow more flexibility in passing content.
- Updated the usage of MessageMarkdown to pass the temp prop as needed.
CurrentMessage:
- Removed unused import for 'mdast'.
- Modified marginTop value to always be '1em' instead of conditionally set based on chat.responsed.
MessageList:
- Updated the usage of MessageBody to pass the messageText as children prop.
MessageMarkdown:
- Updated the code component to determine the 'done' prop based on the index and the presence of 'code' nodes.
Note: The changes in the components involve refactoring and improving the code structure and functionality.
- Update package.json to include mdast dependencies
- Import necessary functions and types from mdast-util
- Update logic to use mdast functions and types
- Update rendering logic to work with new mdast structure
- Removed unnecessary empty fragment tags (<></>) surrounding the Accordion component.
- Updated the return statement to directly return the Accordion component.
- Removed unnecessary closing tag (</>) at the end of the return statement.
- Removed unused imports.
- Updated the query function in askcode_index_query.py to include additional parameters for controlling the DFS algorithm.
- Changed the verbose parameter to False in the call to smart_qa.run() to reduce console output.
- Split markdown content by ```step blocks
- Pass step content to Step component
- Step component handles collapsing and highlighting
- Support Step and step case insensitive
- Extract first line starting with # as step title
- Use last line with # Done to show step completed
- Check if last line is '# Done' to determine step completion
- Extract step contents, omitting first and last line
- Show check icon if step is completed, else show loader
- Remove closed prop which is no longer needed
- Add Accordion component from Mantine to wrap each step content
- Extract first line starting with '#' as section title
- Show chevron icon when section is collapsed
- Show check icon when code block is expanded
- Style Accordion to match VSCode theme
- Remove original toggle button and collapse component
- Create Step component to wrap code snippets in collapsible box
- Render Step instead of default code block for 'step' language
- Pass code snippet as children prop to Step
- Step renders language tag and toggle button
- Create LanguageCorner component to display language tag
- Update MessageMarkdown to render LanguageCorner
- Pass language prop from Message to LanguageCorner