Skip to content

Feature/project title search#682

Open
VikasPattar2006 wants to merge 4 commits into
komalharshita:mainfrom
VikasPattar2006:feature/project-title-search
Open

Feature/project title search#682
VikasPattar2006 wants to merge 4 commits into
komalharshita:mainfrom
VikasPattar2006:feature/project-title-search

Conversation

@VikasPattar2006
Copy link
Copy Markdown
Contributor

Summary

This PR adds a project title search functionality to improve project discovery in DevPath. Users can now quickly filter recommended projects by typing keywords into a search bar, making it easier to find relevant projects without manually scrolling through all recommendations. The implementation includes dynamic client-side filtering, improved empty-state handling, and conditional visibility for the search input to enhance the user experience.

Related Issue

Closes #199

Type of Change

  • Bug fix — resolves a broken behaviour

  • Feature — adds new functionality

  • Data — adds new projects to data/projects.json

  • Documentation — updates docs, README, or code comments only

  • Style — CSS or visual changes only, no logic change

  • Refactor — restructures code without changing behaviour

  • Test — adds or updates tests

What Was Changed

File Change made
templates/index.html Added project search input container inside the results section
static/script.js Added dynamic filtering logic for project titles using the search input
static/script.js Added conditional rendering logic to show/hide the search container
static/style.css Added styling for empty search result message

How to Test This PR

  1. Clone this branch:
    git checkout feat/project-title-search

  2. Install dependencies:
    pip install -r requirements.txt

  3. Run the application:
    python app.py

  4. Open:
    http://127.0.0.1:5000

  5. Fill the recommendation form and generate project recommendations.

  6. Use the search bar above the results section.

  7. Verify that:

    • Projects filter dynamically while typing
    • Matching project titles remain visible
    • Non-matching projects disappear
    • An empty-state message appears if no project matches
    • The search bar only appears after results are generated

Self-Review Checklist

  • I have read CONTRIBUTING.md and followed all guidelines

  • My branch name follows the convention: feat/, fix/, docs/, data/, style/, test/

  • I have run python tests/test_basic.py and all 27 tests pass

  • I have run flake8 . locally and there are no errors

  • I have not introduced any print() or console.log() debug statements

  • I have not modified files outside the scope of the linked issue

  • If I changed the UI, I tested it at 375px (mobile) and 1280px (desktop)

  • If I added a project to the dataset, it has all required JSON fields

Notes for Reviewer

This PR focuses only on client-side project title filtering and UI improvements related to project discovery. No backend API changes were introduced.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 29, 2026

@VikasPattar2006 is attempting to deploy a commit to the komalsony234-1530's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

[Feature]: Add project title search functionality to improve project discovery

1 participant