Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI improvements Planning Issue : Searchbar and Search Results page #5708

Closed
6 of 20 tasks
CleverFool77 opened this issue May 11, 2019 · 62 comments · Fixed by #5851
Closed
6 of 20 tasks

UI improvements Planning Issue : Searchbar and Search Results page #5708

CleverFool77 opened this issue May 11, 2019 · 62 comments · Fixed by #5851
Labels
design issue requires more design work and discussion (i.e. mockups and sketches) gsoc outreachy summer-of-code

Comments

@CleverFool77
Copy link
Member

CleverFool77 commented May 11, 2019

New Searhbar ?
Hi @jywarren Regarding this, I wanted to ask that What would be new design of searhbar.
Should it be something like below ?
ff
cc : @gautamig54
Checklists

Searchbar

  • Add further after discussion regarding UI

Search Results

  • two column @CleverFool77

  • Pill or Tab design in left column to choose between search by options @CleverFool77

    • a topmost button labelled "All", which is highlighted when Search results are returned
    • a 2nd button labelled "People"
    • a 3rd button labelled "By Type", that expands into a dropdown
    • the drop down menu should have items "Questions" "Wikis" "Notes"
  • Sort By date option @gautamig54

  • try the search by google option and display results of google search @CleverFool77

  • showing "featured results" for search terms (and thinking of how we can store them)

  • showing "related tags" in the top of the search results

  • showing the # of results per type

  • make the navbar search go to /search?q=____ instead of /search/_____

  • replacing the main Content search view with Google search results currently stored in wiki page at https://publiclab.org/w/search

  • adding related tags based on the query

  • adding a listener so that as you type new queries, it updates related tags (this will be harder but I have some code for it, and we can do in follow-up!)

  • let's show a spinner icon while it loads the autocomplete results! (as shown below) - say, replacing the magnifying glass icon?

  • Let's change the inline heading "Tags" to "Topics"

  • let's put the actual tagname in a badge so it's recognizable as a topic...?

  • can we filter out powertags from the tags autocomplete

@CleverFool77 CleverFool77 added the design issue requires more design work and discussion (i.e. mockups and sketches) label May 11, 2019
@ebarry ebarry added this to the Search improvements milestone May 13, 2019
@jywarren
Copy link
Member

Hi! This is looking great. I think more is coming via @ebarry but just wanted to note this great search results page design by @IshaGupta18 here:

https://publiclab.org/notes/IshaGupta18/03-22-2019/outreachy-19-proposal-public-lab-ui-improvements#Part+9:+Search+results

We have a page in the shared mockups presentation for search results UI where @ebarry and I built on that design idea a bit too:

Screen Shot 2019-05-13 at 12 51 33 PM

This is all a bit more to do with displaying the results rather than the search input form but is still related. Thank you!!!

@jywarren jywarren mentioned this issue May 13, 2019
4 tasks
@jywarren
Copy link
Member

Also noting relation to #5719!

@CleverFool77
Copy link
Member Author

HI @jywarren
The design of search results UI looks great.
I haven been thinking about results of search, and had similar design UI for that.
I've updated the issue regarding search results UI and added todos checklists.
What I am curious about the searhbar.
Is there gonna be a new minimal search UI like google or we'll have a searchbar in navbar only.

@jywarren
Copy link
Member

jywarren commented May 14, 2019 via email

@IshaGupta18
Copy link
Collaborator

IshaGupta18 commented May 14, 2019 via email

@CleverFool77
Copy link
Member Author

Hi @jywarren ,
Maybe we can just have search option in navbar which would link to another page.
At newpage, we can have minimal search bar like google and we can do various search by option , there itself.
What do you think about this ?

@CleverFool77
Copy link
Member Author

Hi @gautamig54
As I can see gsoc starts later than outeachy and you have exams too.
So I'll begin the work for design. I have done assignments for checklists for myself.
Thanks !!

UI improvements - Summer Of Code 2019 automation moved this from To do to Done May 18, 2019
@CleverFool77 CleverFool77 reopened this May 18, 2019
UI improvements - Summer Of Code 2019 automation moved this from Done to In progress May 18, 2019
@gautamig54
Copy link
Contributor

@CleverFool77 I am done with my exams. Let's start with the UI implementation. Let's take it one by one. I will get started with the people's page. Thanks!

@CleverFool77
Copy link
Member Author

CleverFool77 commented May 19, 2019

Hi @gautmig54 How about we take two issues together. Both people section and questions page sideways. What do you think?
So that if checklists of one section are dependent on each other and we are unable to move forward. At that time, we can work on different checklist from different issue.
But in real, let's take people section first. I'll do the assignment then.
Thanks.

@CleverFool77
Copy link
Member Author

CleverFool77 commented May 19, 2019

Hi @jywarren @gauravano
I was going through the search results UI section.
I did some chnages to code and did this (below)
Screenshot from 2019-05-19 22-48-17

Is pill size correct or is there need to chnage this.
Should the design be like this only ? I need suggestion so that I can move forward.
Thanks !!!!

@gautamig54
Copy link
Contributor

@CleverFool77 I think it will look better if you can reduce the pill size and shift the left column downwards.

@gautamig54 gautamig54 changed the title UI improvements Planning Issue : Searchbar UI improvements Planning Issue : Searchbar and Search Results page May 19, 2019
@CleverFool77
Copy link
Member Author

CleverFool77 commented May 20, 2019

Hi @gautamig54 So should it be 3/4 of what it is right now ?
Screenshot from 2019-05-20 12-37-18

Smaller pill size
Screenshot from 2019-05-20 13-16-33

@IshaGupta18
Copy link
Collaborator

Hey this looks pretty great!

@gautamig54
Copy link
Contributor

@CleverFool77 The original width of the pill looks better. Maybe you can try altering the height of the pills and also centre align the text in the them.

UI improvements - Summer Of Code 2019 automation moved this from To do to Done Jun 6, 2019
@CleverFool77 CleverFool77 reopened this Jun 6, 2019
UI improvements - Summer Of Code 2019 automation moved this from Done to In progress Jun 6, 2019
@CleverFool77
Copy link
Member Author

CleverFool77 commented Jun 6, 2019

Hi @ebarry @jywarren

I was trying out the code, So I wanted to ask instead of search box, I should have Try with Google search link which would have action of google search (Similar to UI which you posted above ) or Should it be just searchbox like below ? And the other results for intra search would be hidden when google search results are shown ?

Screenshot from 2019-06-06 16-20-59

@CleverFool77 CleverFool77 moved this from In progress to In progress Issues in UI improvements - Summer Of Code 2019 Jun 6, 2019
@jywarren
Copy link
Member

jywarren commented Jun 6, 2019 via email

@CleverFool77
Copy link
Member Author

Hi @jywarren
I did add screenshot in comment above.
How do you want Google search to be ? default be like ? Similar to Try your search with Google as it appears in UI and then get the Google results ?
or View All entry be a button leading to action of custom google search

@jywarren
Copy link
Member

jywarren commented Jun 6, 2019

Oh I see, sorry! So, let's try to not show "Google" unless it is a lot of work to remove it. How does that sound?

@CleverFool77
Copy link
Member Author

Ohkk!! I'm still pretty confused about the UI , so I'll show the mockup first then let's see and do the further changes.

@ebarry
Copy link
Member

ebarry commented Jun 6, 2019

Thank you @CleverFool77 !!!

@CleverFool77
Copy link
Member Author

Hi @gautamig54 Can you look over some of the parts for search section here ?
Thanks !!!

@gautamig54
Copy link
Contributor

Sure! I will take up the # of results and the sort by issues.
Sorry for missing this one out.
Thanks!

@CleverFool77
Copy link
Member Author

Hi @jywarren I wanted to ask that as per the documentation https://developers.google.com/custom-search/docs/element, the search can be triggered either through searchbox or url in programmatic execution .
Is searchresults-only tag from componentConfig which is triggered by a <a> tag has Try the search with Google line ?

So we need to execute the params[:query] for which we are doing search, to be executed for google search triggered by id given to above <a>?

@jywarren
Copy link
Member

the search can be triggered either through searchbox or url in programmatic execution .

Yes, and I think that's what we're doing via the q= param! as in #5708 (comment)

Is searchresults-only tag from componentConfig which is triggered by a tag has Try the search with Google line ?

So we need to execute the params[:query] for which we are doing search, to be executed for google search triggered by id given to above ?

Sorry i'm not quite sure I follow, what are you looking to do? Trigger the search from JavaScript?

@jywarren
Copy link
Member

Would you like to try making the navbar search go to /search?q=____ instead of /search/_____ now, and replacing the main Content search view with Google search results? We're doing well here so we can start this process now I think.

So we'll need:

  • make the navbar search go to /search?q=____ instead of /search/_____
  • replacing the main Content search view with Google search results currently stored in wiki page at https://publiclab.org/w/search
  • adding related tags based on the query
  • adding a listener so that as you type new queries, it updates related tags (this will be harder but I have some code for it, and we can do in follow-up!)

How does this sound?

@jywarren
Copy link
Member

jywarren commented Jun 21, 2019

Let's add a few more for the navbar search, if it's OK!

  • let's show a spinner icon while it loads the autocomplete results! (as shown below) - say, replacing the magnifying glass icon?
  • Let's change the inline heading "Tags" to "Topics"
  • let's put the actual tagname in a badge so it's recognizable as a topic...?
  • can we filter out powertags from the tags autocomplete (@ebarry is this right?)

image

Would become:

image

<ul class="typeahead dropdown-menu" role="listbox">
<li class="dropdown-header">TOPICS</li>
<li class="active"><a class="dropdown-item" href="#" role="option"><span style="font-size:100%" class="badge badge-primary">education</span></a></li>

@CleverFool77
Copy link
Member Author

This looks cool. I'll add them to list @jywarren
Hi @rexagod I need help in JavaScript for triggering the Custom Google search with click on link.

@rexagod
Copy link
Member

rexagod commented Jun 25, 2019

Sure thing, @CleverFool77! Can you link me to the code?

@CleverFool77
Copy link
Member Author

CleverFool77 commented Jun 25, 2019

#5708 (comment)

#5708 (comment)

#5708 (comment)

I was using the code from the links by @jywarren in the method I wrote. I tried from api documentation to find a method of triggering search without search box and link.
But I'm not sure about the usage of the url part searching without searchbox from documentation

@rexagod
Copy link
Member

rexagod commented Jun 27, 2019

But I'm not sure about the usage of the url part searching without searchbox from documentation

Hello, @CleverFool77. I take it that the parameter search implementation is what's causing the problem here?

If that's the case, how about attaching an onload listener for window.location.href and parse that for parameters then use those parameters to trigger a search (the same way you do for onclick for the searchbar)?

What do you think?

@CleverFool77
Copy link
Member Author

Thank you so much @rexagod
Yes I guess this method will work, I'll try it out 🤔
Thanks 😃

@jywarren
Copy link
Member

Done here!!! Yay!

UI improvements - Summer Of Code 2019 automation moved this from In progress Issues to Done Aug 26, 2019
@ebarry
Copy link
Member

ebarry commented Aug 26, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design issue requires more design work and discussion (i.e. mockups and sketches) gsoc outreachy summer-of-code
Projects
No open projects
7 participants