Skip to content

feat(ai_assistant): add ask doubt chat experience#39

Open
Gowreesh-A-M wants to merge 2 commits intofeat/lms-ai-support-dashboardfrom
feat/lms-ai-ask-doubt
Open

feat(ai_assistant): add ask doubt chat experience#39
Gowreesh-A-M wants to merge 2 commits intofeat/lms-ai-support-dashboardfrom
feat/lms-ai-ask-doubt

Conversation

@Gowreesh-A-M
Copy link
Copy Markdown
Collaborator

  • add the Ask Doubt route from the AI Assistant hub with a dedicated chat screen
  • build localized chat UI with empty state, composer, history drawer, overlays, and message bubbles
  • add Riverpod session state for chats, pinning, renaming, deletion, mock replies, and image placeholder messages
  • update shared l10n strings and core surfaces used by the Ask Doubt experience

@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request delivers the foundational 'Ask Doubt' chat experience for the AI Assistant. It provides students with a dedicated, interactive interface to engage with an AI study assistant, complete with a localized and visually consistent chat UI. The implementation focuses on a smooth user flow, from initial navigation and quick suggestions to managing chat history and handling various message types, all backed by a robust state management system.

Highlights

  • New Ask Doubt Chat Experience: Introduced a dedicated chat screen for the 'Ask Doubt' feature within the AI Assistant hub, providing a focused environment for student inquiries.
  • Localized Chat UI Components: Implemented a comprehensive chat user interface including an empty state with quick suggestions, a floating composer, a history drawer for past sessions, and distinct message bubbles for user and AI responses, all fully localized.
  • Riverpod State Management: Integrated Riverpod for robust session state management, enabling features such as pinning, renaming, and deleting chat sessions, as well as handling mock replies and image placeholder messages.
  • Core UI and Localization Updates: Updated shared localization strings and core UI components (AppCard, AppHeader) to support the new Ask Doubt experience, ensuring consistent design and accessibility.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@Gowreesh-A-M Gowreesh-A-M force-pushed the feat/lms-ai-ask-doubt branch from e2e6a55 to b7bbc5b Compare March 18, 2026 12:11
@gemini-code-assist
Copy link
Copy Markdown

Warning

Gemini is experiencing higher than usual traffic and was unable to create the review. Please try again in a few hours by commenting /gemini review.

@Gowreesh-A-M
Copy link
Copy Markdown
Collaborator Author

/gemini review

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces the 'Ask Doubt' feature, a complete chat experience within the AI Assistant. The changes are extensive, including new screens, widgets, state management with Riverpod, and localization strings. The implementation is well-structured, with clear separation of concerns into different widgets and providers. I've identified a few issues: a potential race condition in the state provider when handling async responses, a memory leak due to improper FocusNode management, and a need for more robust unique ID generation. I've also pointed out some missing translations. Overall, this is a solid implementation of a complex feature.

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.

1 participant