Skip to content

AI-Powered Study Planner with Task Generation#372

Closed
PixelCode01 wants to merge 19 commits into
alphaonelabs:mainfrom
PixelCode01:feature/study-planner
Closed

AI-Powered Study Planner with Task Generation#372
PixelCode01 wants to merge 19 commits into
alphaonelabs:mainfrom
PixelCode01:feature/study-planner

Conversation

@PixelCode01
Copy link
Copy Markdown

This PR introduces an AI-powered study planner that helps students create personalized study plans with intelligent task generation.
Key Features:
AI-powered study plan generation based on subject and time constraints
Smart task breakdown with estimated hours
Interactive task management (complete/uncomplete)
Progress tracking with weekly statistics
Difficulty level selection for study plans
Real-time progress updates

Screenshots

Screenshot from 2025-03-30 10-37-12
Screenshot from 2025-03-30 10-37-31
Screenshot from 2025-03-30 10-37-36
Screenshot from 2025-03-30 10-38-11
Screenshot from 2025-03-30 10-38-20-1
Screenshot from 2025-03-30 10-38-29
Screenshot from 2025-03-30 10-38-43

Technical Changes:
Added StudyPlan and StudyTask models
Implemented AI task generation using Gemini model
Enhanced response cleaning for reliable JSON parsing
Added difficulty field to StudyPlan model
Improved task display and completion handling
Added weekly progress tracking
Testing Instructions:
Create a new study plan
Select subject and total hours
Click "Generate Tasks" to get AI-generated study tasks
Test task completion functionality
Verify progress tracking
Check weekly statistics

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Mar 30, 2025

Warning

Rate limit exceeded

@PixelCode01 has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 3 minutes and 4 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 4d0c2e0 and 1cd3a2d.

⛔ Files ignored due to path filters (2)
  • static/images/logo.png is excluded by !**/*.png
  • web/static/images/x-logo.svg is excluded by !**/*.svg
📒 Files selected for processing (71)
  • .env.sample (1 hunks)
  • ai/admin.py (1 hunks)
  • ai/apps.py (1 hunks)
  • ai/migrations/0001_initial.py (1 hunks)
  • ai/migrations/0002_alter_progressrecord_options_and_more.py (1 hunks)
  • ai/migrations/0002_chatsession_message.py (1 hunks)
  • ai/migrations/0003_merge_20250322_0656.py (1 hunks)
  • ai/migrations/0004_alter_message_options_alter_progressrecord_options_and_more.py (1 hunks)
  • ai/migrations/0005_studysession_studymaterial_studyprogress.py (1 hunks)
  • ai/migrations/0006_achievement_groupdiscussion_discussionreply_and_more.py (1 hunks)
  • ai/migrations/0007_remove_discussionreply_discussion_and_more.py (1 hunks)
  • ai/migrations/0008_achievement_subject_alter_chatsession_options_and_more.py (1 hunks)
  • ai/migrations/0009_studyplan_completed_hours.py (1 hunks)
  • ai/migrations/0010_interaction_audio_elements_and_more.py (1 hunks)
  • ai/migrations/0011_studytask.py (1 hunks)
  • ai/models.py (1 hunks)
  • ai/progress.py (1 hunks)
  • ai/services.py (1 hunks)
  • ai/services/__init__.py (1 hunks)
  • ai/services/ai_provider.py (1 hunks)
  • ai/services/config.py (1 hunks)
  • ai/services/demo_provider.py (1 hunks)
  • ai/services/gemini_provider.py (1 hunks)
  • ai/services/nlp_utils.py (1 hunks)
  • ai/services/progress_tracker.py (1 hunks)
  • ai/templates/ai/achievements.html (1 hunks)
  • ai/templates/ai/ai_base.html (1 hunks)
  • ai/templates/ai/chat.html (1 hunks)
  • ai/templates/ai/dashboard.html (1 hunks)
  • ai/templates/ai/feedback.html (1 hunks)
  • ai/templates/ai/group_discussions.html (1 hunks)
  • ai/templates/ai/learning_path.html (1 hunks)
  • ai/templates/ai/learning_path_details.html (1 hunks)
  • ai/templates/ai/learning_style.html (1 hunks)
  • ai/templates/ai/minimal_chat.html (1 hunks)
  • ai/templates/ai/progress.html (1 hunks)
  • ai/templates/ai/progress_dashboard.html (1 hunks)
  • ai/templates/ai/settings.html (1 hunks)
  • ai/templates/ai/study_planner.html (1 hunks)
  • ai/templatetags/__init__.py (1 hunks)
  • ai/templatetags/ai_filters.py (1 hunks)
  • ai/templatetags/ai_url_tags.py (1 hunks)
  • ai/templatetags/custom_filters.py (1 hunks)
  • ai/templatetags/filters.py (1 hunks)
  • ai/tutor.py (1 hunks)
  • ai/tutors.py (1 hunks)
  • ai/urls.py (1 hunks)
  • ai/views.py (1 hunks)
  • ai_assistant/templatetags/url_tags.py (1 hunks)
  • ai_assistant/urls.py (1 hunks)
  • requirements.txt (1 hunks)
  • scripts/test_gemini.py (1 hunks)
  • scripts/test_gemini_flash.py (1 hunks)
  • static/css/ai_components.css (1 hunks)
  • static/css/markdown.css (1 hunks)
  • tests/test_ai.py (1 hunks)
  • web/admin.py (0 hunks)
  • web/email_backend.py (2 hunks)
  • web/forms.py (2 hunks)
  • web/migrations/0033_profile_email_notifications_and_more.py (1 hunks)
  • web/migrations/0049_merge_20250329_0802.py (1 hunks)
  • web/models.py (1 hunks)
  • web/settings.py (6 hunks)
  • web/static/css/markdown.css (1 hunks)
  • web/templates/ai/chat.html (1 hunks)
  • web/templates/ai/dashboard.html (1 hunks)
  • web/templates/ai/tutor.html (1 hunks)
  • web/templates/base.html (10 hunks)
  • web/templates/notification_preferences.html (1 hunks)
  • web/urls.py (4 hunks)
  • web/views.py (2 hunks)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai plan to trigger planning for file edits and PR creation.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions
Copy link
Copy Markdown
Contributor

🚨 Missing Open Issue Link

This pull request appears to not reference any open GitHub issue.

As per our workflow requirements, all PRs should address an existing open issue. This ensures:

  • Changes are properly tracked
  • Work is discussed before implementation
  • Code reviews are more focused

How to Fix This

Please link this PR to an existing open issue using one of these methods:

  1. Reference the issue in your PR description: "Fixes darkmode/about #123" or "Addresses darkmode/about #123"
  2. Use GitHub's interface to link the PR to an issue in the Development section
    - Look for the section that says "Development" on the right side of your PR
    - Click "Link an issue" or "Link issues"
    - Select the relevant issue(s)
  3. If no issue exists yet, please create one first
  4. If you linked to a closed issue, please link to an open issue instead

This PR will be automatically closed. Feel free to reopen it once you've linked it to an open issue or added appropriate labels.

Thank you for your contribution!

@github-actions github-actions Bot closed this Mar 30, 2025
@PixelCode01 PixelCode01 deleted the feature/study-planner branch March 31, 2025 10:02
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