Skip to content

[Bug]: "No Projects Found" state overlaps or fails to clear when regenerating project matches #730

@priya-gayu

Description

@priya-gayu

What happened?

Bug Description

When using the "Find Your Next Project" form, if a user inputs a combination of skills that yields no results (triggering the "No Projects Found" card), and then subsequently updates their skills to valid inputs and clicks "Generate My Projects", the application does not properly reset the UI state. The loading spinner and the previous error state clash, creating a confusing user experience.

🎬 Steps to Reproduce

  1. Navigate to the #find-project section of the live site.
  2. Select a highly restricted or conflicting set of options (e.g., Level: Advanced + Time: Low) to trigger the "No Projects Found" message.
  3. Without refreshing the page, clear the filters or add common skills like Python or SQL.
  4. Click "Generate My Projects" again.
  5. Notice that the old "No Projects Found" DOM element doesn't cleanly clear out while the system states "Finding matches...".

🎯 Expected Behavior

The container holding the results (## Recommended Projects) should completely clear its inner HTML or reset its state variable back to a clean loading animation state the exact moment the "Generate My Projects" button is clicked.

💻 Environment


🏷️ GSSoC 2026 Notice

I have diagnosed this UI state bug and would love to resolve it by cleaning up the conditional rendering logic in the results component.

@komalharshita please assign this issue to me under GSSoC 2026!

Steps to reproduce

  1. Scroll down to the #find-project section of the web page.
  2. Choose a highly restricted combination of filters (e.g., Level: Advanced + Time Commitment: Low) to trigger the "No Projects Found" message.
  3. Without refreshing the page, clear your inputs or select common skills like Python or SQL.
  4. Click the "Generate My Projects" button again.
  5. Notice that the old "No Projects Found" warning message stays stuck on the screen while the text says "Finding matches...".

Expected behaviour

The results container should completely clear out its old text and warning messages the exact moment the "Generate My Projects" button is clicked, showing a clean loading state instead.

Area of the app affected

Recommendation results

Python version

3.11.4

Operating system

Windows 11

Relevant error output or logs

Before submitting

  • I searched existing issues and this has not been reported before.
  • I can reproduce this bug consistently with the steps above.
  • I am running the latest version of the main branch.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions