[ADD] User: Show categorized search path suggestions while typing #12

Open
Avatar
soniprathmesh opened on May 3
  • When the user focuses on the main search input and starts typing, show categorized suggestions based on SitepathModel data (as shown in the images below).

    • For example, typing GTU should surface:

      GTU
      GTU / results
      GTU / notification
      GTU / myresults
      
    • After typing a space (e.g., GTU ), display the next-level paths (see Image 2).

  • Data source:

    • Create two models to back this feature:

      1. SitepathCategoryModel

        • name (varchar)
        • alternative_name (varchar) — comma-separated aliases (e.g., "users, students")
        • path (varchar)
        • icon (image or URL)
      2. SitepathModel

        • name (varchar)
        • alternative_name (varchar) — comma-separated aliases (e.g., "home, dashboard")
        • path (varchar)
        • login_path (varchar)
        • icon (image or URL)
        • is_login (bool)
        • is_access (bool)
        • is_deleted (bool)
        • category (ForeignKey to SitepathCategoryModel)
Image 1: Category suggestions for “GTU”

Image 1 Preview

Image 2: Sub-path suggestions for “GTU ”

Image 2 Preview

Avatar CjSidharth self-assigned at May 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment