Skip to content

fix(project-ideas): restore project generation and improve error hand…#273

Merged
KaranUnique merged 2 commits into
Canopus-Labs:mainfrom
akshith0107:fix/project-ideas-generator
Jun 22, 2026
Merged

fix(project-ideas): restore project generation and improve error hand…#273
KaranUnique merged 2 commits into
Canopus-Labs:mainfrom
akshith0107:fix/project-ideas-generator

Conversation

@akshith0107

Copy link
Copy Markdown
Contributor

Related Issue

Closes #266

Screen.Recording.2026-06-21.150311.-.Trim.mp4

Summary

This PR fixes the Project Ideas Generator feature, which was failing to generate project recommendations and displaying generic error messages to users.

The root cause was a combination of frontend and backend issues affecting AI prompt generation, API communication, and response handling. This update restores the complete project generation workflow and improves reliability when interacting with the AI service.


Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature
  • ♻️ Refactoring
  • 📝 Documentation update
  • 🎨 UI/UX improvement
  • 🔥 Other

Changes Made

Frontend

  • Fixed Project Ideas Generator request flow.
  • Restored and validated project generation prompt creation logic.
  • Improved API request handling for AI-generated project ideas.
  • Improved response parsing for AI-generated JSON output.
  • Added better error handling when invalid or empty responses are returned.
  • Improved fallback behavior when project generation fails.

Backend

  • Updated AI generation route handling.
  • Fixed prompt validation issues affecting project generation requests.
  • Improved AI response processing before returning data to the frontend.
  • Ensured generated project ideas are returned in a format consumable by the UI.

Validation

  • Updated AI prompt validation schema to support Project Ideas Generator requests.
  • Prevented valid project-generation prompts from being incorrectly rejected.

How Has This Been Tested?

  1. Selected multiple domains:

    • Frontend
    • Backend
    • Full Stack
    • AI / ML
    • Java
    • DevOps
  2. Generated project ideas for:

    • Beginner
    • Intermediate
    • Advanced
  3. Verified:

    • API requests complete successfully.
    • AI responses are returned correctly.
    • Project cards render without runtime errors.
    • Error state is displayed gracefully when generation fails.

Screenshots (if applicable)

Attach screenshots showing:

  • Domain and level selection
  • Successful project idea generation
  • Rendered project cards

Checklist

  • My code follows the project's guidelines
  • I have tested my changes
  • I have updated documentation where necessary
  • I have linked the related issue
  • My changes do not introduce new warnings or errors

@KaranUnique KaranUnique merged commit 39b5365 into Canopus-Labs:main Jun 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Project Ideas Generator throws buildPrompt is not defined error

3 participants