Skip to content

feat(ai-support): Add AI support dashboard#38

Open
Gowreesh-A-M wants to merge 6 commits intomainfrom
feat/lms-ai-support-dashboard
Open

feat(ai-support): Add AI support dashboard#38
Gowreesh-A-M wants to merge 6 commits intomainfrom
feat/lms-ai-support-dashboard

Conversation

@Gowreesh-A-M
Copy link
Collaborator

  • Add the paid active AI Support experience and route it from the tab shell.
  • Build the greeting header, quick actions, recommendation card, weak-topic list, and recent help section.
  • Refine colors, shadows, spacing, and typography to match the approved design and sync the OpenSpec docs.

@gemini-code-assist
Copy link

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 AI Support dashboard, a significant new feature for paid users. It integrates personalized learning tools directly into the main application flow, offering quick access to AI-driven doubt resolution, practice exams, and tailored topic recommendations. The implementation adheres to established design principles and sets the stage for future AI enhancements by introducing a dedicated, modular package.

Highlights

  • New AI Support Dashboard: Introduced a dedicated 'AI Support' dashboard (AIAssistantPage) for paid active users, replacing the 'Explore' tab in the main navigation shell. This dashboard provides a centralized hub for AI-powered learning features.
  • Core UI Components Implemented: Developed key UI components for the AI dashboard, including a personalized greeting header, quick action cards for 'Ask a Doubt' and 'Practice Exam', a 'Recommended for You' section highlighting weak topics, and a 'Recent Help' activity log with status indicators.
  • New ai_assistant Flutter Package: Created a new Flutter package (packages/ai_assistant) to encapsulate all AI-related features, including models, mock data, screens, and widgets, promoting modularity and reusability.
  • Design System Integration and Refinements: Refined UI elements such as colors, shadows, spacing, and typography to align with the approved design specifications. A new recommendationAccent color token was added to the design system for consistent highlighting.
  • Internationalization Support: Added new localization keys and strings across English, Arabic, and Malayalam for all AI Assistant dashboard elements, ensuring a localized user experience.
  • Navigation and Routing Updates: Modified the application's routing (app_router.dart) to dynamically display the 'AI Support' tab for paid active users and route to the new AIAssistantPage, while conditionally disabling the 'Explore' tab.

🧠 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.

Changelog
  • app/pubspec.yaml
    • Added ai_assistant package as a dependency.
  • openspec/changes/lms-ai-assistant-hub/.openspec.yaml
    • Added new OpenSpec YAML configuration for the AI Assistant hub.
  • openspec/changes/lms-ai-assistant-hub/design.md
    • Added detailed design document for the AIAssistantPage dashboard, outlining context, goals, non-goals, component architecture, design tokens, data flow, risks, and trade-offs.
  • openspec/changes/lms-ai-assistant-hub/proposal.md
    • Added proposal document detailing the 'why', 'what changes', 'capabilities', and 'impact' of the AI Assistant dashboard feature.
  • openspec/changes/lms-ai-assistant-hub/specs/lms-ai-assistant-hub/spec.md
    • Added detailed requirements and scenarios for the AI Assistant Dashboard Layout, Quick Action Section, Personalized Recommendations, Recent Activity List, and Navigation Tab Adaptation.
  • openspec/changes/lms-ai-assistant-hub/tasks.md
    • Added a comprehensive task list for the implementation of the AI Assistant hub, covering setup, component implementation, page assembly, integration, and verification.
  • openspec/screen_inventory.md
    • Updated screen inventory to include 'AI Support Tab' as a replacement for 'Explore' for Paid Active users and re-indexed phases.
  • packages/ai_assistant/lib/ai_assistant.dart
    • Added library export file for ai_assistant package, exposing AIAssistantPage and ai_models.dart.
  • packages/ai_assistant/lib/data/ai_mock_data.dart
    • Added mock data for user name, study insights, weak topics, and recent AI activities.
  • packages/ai_assistant/lib/models/ai_models.dart
    • Added data models for AIRecommendation, WeakTopic, AIActivityType, AIActivityStatus, and AIActivity.
  • packages/ai_assistant/lib/screens/ai_assistant_page.dart
    • Added the main AIAssistantPage widget, assembling various AI assistant components into a scrollable dashboard.
  • packages/ai_assistant/lib/widgets/ai_activity_item.dart
    • Added AIActivityItem widget to display individual AI interaction activities with dynamic icons, status badges, and rotation animation for processing status.
  • packages/ai_assistant/lib/widgets/ai_greeting_header.dart
    • Added AIGreetingHeader widget for displaying a personalized greeting, study insight, and an AI-powered trust line.
  • packages/ai_assistant/lib/widgets/ai_quick_action_card.dart
    • Added AIQuickActionCard widget for displaying primary actions like 'Ask a Doubt' and 'Practice Exam' with custom icons and descriptions.
  • packages/ai_assistant/lib/widgets/ai_recommendation_card.dart
    • Added AIRecommendationCard widget to highlight a weak topic with a progress bar and a call-to-action button.
  • packages/ai_assistant/pubspec.lock
    • Added pubspec.lock file for the new ai_assistant package, detailing its dependencies.
  • packages/ai_assistant/pubspec.yaml
    • Added pubspec.yaml for the new ai_assistant package, defining its name, description, environment, dependencies, and dev dependencies.
  • packages/core/lib/design/design_config.dart
    • Added recommendationAccent color property to DesignColors for both light and dark themes.
    • Updated DesignColors constructor and copyWith method to include recommendationAccent.
  • packages/core/lib/generated/l10n/app_localizations.dart
    • Added new localization getters and methods for AI Assistant tab title, greeting, study insight, quick actions, ask doubt, practice exam, recommendations, more topics, recent help, view all, and activity statuses.
  • packages/core/lib/generated/l10n/app_localizations_ar.dart
    • Implemented new AI Assistant localization strings for Arabic.
  • packages/core/lib/generated/l10n/app_localizations_en.dart
    • Implemented new AI Assistant localization strings for English.
  • packages/core/lib/generated/l10n/app_localizations_ml.dart
    • Implemented new AI Assistant localization strings for Malayalam.
  • packages/core/lib/l10n/app_ar.arb
    • Added new ARB entries for AI Assistant features, including tab title, greetings, quick actions, recommendations, and activity statuses.
  • packages/core/lib/l10n/app_en.arb
    • Added new ARB entries for AI Assistant features, including tab title, greetings, quick actions, recommendations, and activity statuses.
  • packages/core/lib/l10n/app_ml.arb
    • Added new ARB entries for AI Assistant features, including tab title, greetings, quick actions, recommendations, and activity statuses.
  • packages/core/lib/widgets/app_card.dart
    • Modified AppCard logic to simplify effectiveShowBorder calculation, allowing borders to show even with shadows.
  • packages/core/lib/widgets/app_tab_bar.dart
    • Added a disabled property to AppTabItem to allow conditional disabling of navigation tabs.
  • packages/core/test/design/design_provider_test.dart
    • Updated design provider tests to include the new recommendationAccent color.
  • packages/core/test/widgets/app_primitive_design_test.dart
    • Updated primitive design tests to include the new recommendationAccent color.
  • packages/testpress/lib/navigation/app_router.dart
    • Imported ai_assistant package.
    • Updated AppTabItem definitions to use localized strings and include the new 'AI Support' tab.
    • Modified the StatefulShellRoute to conditionally display and route to the AIAssistantPage for the 'AI Support' tab, and set the 'Explore' tab as disabled.
    • Updated _tabPaths to include the new /ai-assistant route.
  • packages/testpress/pubspec.yaml
    • Added ai_assistant package as a dependency.
Activity
  • All planned tasks for the AI Assistant hub, including setup, component implementation, page assembly, integration, and verification, have been marked as completed according to tasks.md.
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.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

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.

Copy link

@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 a new AI Support dashboard, replacing the Explore tab for certain users. The changes include creating a new ai_assistant package with all the necessary widgets, models, and mock data for the dashboard UI. The routing, design tokens, and localization files have been updated accordingly. My review focuses on improving maintainability by using design system tokens instead of hardcoded values and fixing a few minor issues in documentation and widget implementation.

Gowreesh-A-M and others added 5 commits March 17, 2026 17:14
…n card

Replace the greeting header with a new AIDoubtHero widget that makes
"Ask a Doubt" the primary focal point of the AI assistant page.

Tone down AIRecommendationCard by swapping the thick-bordered container
for AppCard, removing the full-width CTA button, and reducing sizes
across icon, text, and progress bar.
…dgets

Refactored AIDoubtHero to follow clean code principles and maintain a single level of abstraction.
- Extracted _HeroGreeting, _SubtitleTicker, _HeroSearchBar, _SuggestionPills, and _ModuleSolutionsButton.
- Encapsulated timer and page controller logic within the _SubtitleTicker widget.
Replaced all hardcoded strings in AiDoubtHero with l10n keys —
greetings, subtitles, search hint, suggestion pills, divider, and
module solutions button. Added corresponding ARB entries for EN, AR,
and ML with generated localizations updated.
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