• Jacob Schatz's avatar
    Merge branch 'issue_3400_port' into 'master' · 403b7fe1
    Jacob Schatz authored
    Location aware search
    
    Closes #3400 #14217
    
    Introduces suggestion grouping on the search box and adds the ability to the user to remove the location to search on.
    
    
    **Notes**
    - Suggestions are now grouped by category.
    - Suggestions are displayed when no location is set.
      - Would be great to provide suggestions for the specified location which could be a project or group.
    - A location is set from the server for projects/groups related urls.
    
    **Default Apparence**
    
    ![](/uploads/9fad1a354fb0e4b13cfd36698c061ab4/default.gif)
    
    **When location badge is present**
    
    ![](/uploads/ddc6379f407061e188f9f4a7a9a8c9b8/location-badge.gif)
    
    **Suggestions**
    
    ![suggestions](/uploads/2df288e00ad496b31a1a2efc2a4a9f6d/suggestions.gif)
    
    **Suggestions when location badge is present**
    
    ![](/uploads/f6ef09d3aed124179ab4e228b848486e/location-present-suggestions.gif)
    
    Closes #3400 
    
    See merge request !3212
    403b7fe1
gl_dropdown.js.coffee 10.2 KB